/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--gray-800);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
  font-size: 0.875em;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

img {
  max-width: 100%;
  display: block;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-900);
}

.nav-logo img {
  height: 28px;
  width: 28px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
}

.nav-links a:hover {
  color: var(--gray-900);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  cursor: pointer;
}

.btn-sm {
  padding: 6px 14px;
  background: var(--gray-900);
  color: #fff !important;
}

.btn-sm:hover {
  background: var(--gray-700);
}

.btn-primary {
  padding: 10px 24px;
  background: var(--gray-900);
  color: #fff;
}

.btn-primary:hover {
  background: var(--gray-700);
}

.btn-outline {
  padding: 10px 24px;
  background: #fff;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

/* Hero */
.hero {
  padding: 128px 24px 80px;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 52px;
}

/* Terminal */
.hero-terminal {
  text-align: left;
  background: var(--gray-900);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-800);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-800);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: #ef4444;
}
.dot.yellow {
  background: #eab308;
}
.dot.green {
  background: #22c55e;
}

.terminal-title {
  margin: 0 auto;
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
}

.terminal-body {
  padding: 20px 24px;
  font-family: "SF Mono", "Fira Code", Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--gray-100);
  overflow-x: auto;
  background: var(--gray-900);
}

.t-prompt {
  color: #93c5fd;
  font-weight: 600;
  background: var(--gray-900);
}
.t-thinking {
  color: var(--gray-300);
  font-style: italic;
  background: var(--gray-900);
}
.t-exec {
  color: #c4b5fd;
  font-weight: 600;
  background: var(--gray-900);
}
.t-response {
  color: #6ee7b7;
  font-weight: 600;
}

/* Section shared */
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.section-header p {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 440px;
  margin: 0 auto;
}

/* Features */
.features {
  padding: 96px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  padding: 28px;
  background: #fff;
  border-right: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.15s;
}

.feature-card:hover {
  background: var(--gray-50);
}

/* Remove right border on last in each row */
.feature-card:nth-child(3n) {
  border-right: none;
}

/* Remove bottom border on last row */
.feature-card:nth-last-child(-n + 3) {
  border-bottom: none;
}

.feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Get Started */
.get-started {
  padding: 96px 24px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.steps {
  max-width: 600px;
  margin: 0 auto 52px;
  display: flex;
  flex-direction: column;
}

.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.step-content h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 5px;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.step-content a {
  color: var(--gray-700);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.code-block {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin: 8px 0;
  overflow-x: auto;
}

.code-block code {
  background: none;
  color: var(--gray-100);
  padding: 0;
  font-size: 0.8rem;
}

.code-comment {
  color: var(--gray-600);
}

/* Flags */
.flags-table {
  max-width: 600px;
  margin: 0 auto;
}

.flags-table h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.flags-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.flag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.terminal-body code {
  background: var(--gray-900);
  color: var(--gray-300);
}

.flag code {
  flex-shrink: 0;
  font-size: 0.75rem;
  background: var(--gray-100);
  color: var(--gray-700);
}

.flag span {
  color: var(--gray-500);
}

/* Roadmap */
.roadmap {
  padding: 96px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
}

.roadmap-card {
  padding: 28px;
  background: #fff;
  border-right: 1px solid var(--gray-200);
  transition: background 0.15s;
}

.roadmap-card:last-child {
  border-right: none;
}

.roadmap-card:hover {
  background: var(--gray-50);
}

.roadmap-status {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  margin-bottom: 14px;
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
}

.roadmap-card:first-child .roadmap-status {
  border-color: #bfdbfe;
  color: var(--blue-600);
  background: var(--blue-50);
}

.roadmap-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.roadmap-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Footer */
.footer {
  padding: 48px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.footer-logo img {
  height: 24px;
  width: 24px;
  border-radius: 5px;
}

.footer p {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--gray-900);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    border-right: none;
  }

  .feature-card:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--gray-200);
  }

  .feature-card:last-child {
    border-bottom: none;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-card {
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }

  .roadmap-card:last-child {
    border-bottom: none;
  }

  .flags-grid {
    grid-template-columns: 1fr;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }
}
