/* ============================================================
   Mode Agent — Homepage Styles
   Dark terminal aesthetic · Brand: #00D47E (terminal green)
   ============================================================ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --bg:           #0e1117;
  --bg-2:         #080b10;
  --surface:      #14171d;
  --surface-2:    #1a1d23;
  --border:       rgba(255, 255, 255, 0.08);
  --border-2:     rgba(255, 255, 255, 0.12);

  --brand:        #00D47E;
  --brand-dim:    rgba(0, 212, 126, 0.12);
  --brand-glow:   rgba(0, 212, 126, 0.35);
  --brand-light:  #4DFFC0;
  --brand-btn:    #03a966;

  --text-1:       #ffffff;
  --text-2:       rgba(255, 255, 255, 0.62);
  --text-3:       rgba(255, 255, 255, 0.5);

  --green:        #3DD68C;
  --blue:         #7C9EF8;
  --purple:       #B08BF8;
  --yellow:       #F0C35F;

  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;

  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;

  --nav-h:        60px;
  --container:    1160px;
  --section-gap:  72px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ── Accessibility baseline ────────────────────────────────── */
/* Visible keyboard focus ring (do not remove without a replacement). */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Suppress the UA outline only for non-keyboard (mouse/touch) focus. */
:focus:not(:focus-visible) {
  outline: none;
}

/* Skip to main content — visually hidden until focused. */
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text-1);
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 8px;
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Visually hidden but available to screen readers. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ── Utilities ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-gap) 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 12px 0 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 790px;
  margin: 0 auto;
  line-height: 1.7;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 4px 12px;
  border: 1px solid rgba(0, 212, 126, 0.25);
  border-radius: 100px;
  background: var(--brand-dim);
  margin-bottom: 24px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
  position: relative;
  min-height: 44px;
}
.btn-primary {
  background: var(--brand-btn);
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
}
.btn-primary:hover {
  background: #029057;
  box-shadow: 0 0 24px rgba(3, 169, 102, 0.4);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-1);
  padding: 10px 20px;
  font-size: 14px;
  border: 1px solid var(--border-2);
}
.btn-ghost:hover {
  border-color: var(--border-2);
  background: var(--surface);
  transform: translateY(-1px);
}
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; min-height: 36px; justify-content: center; }

/* ── Navigation ────────────────────────────────────────────── */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
.nav-wrapper.scrolled {
  background: rgba(14, 17, 23, 0.88);
  border-color: var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.nav-logo-img {
  display: block;
  width: auto;
  /* black.svg has black paths on transparent bg, invert to white for dark theme */
  filter: invert(1);
}
.nav-logo-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-dim);
  border: 1px solid rgba(253, 79, 0, 0.2);
  padding: 2px 6px;
  border-radius: 100px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text-1); background: var(--surface); }
.nav-github-link {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-cta { margin-left: 8px; }

/* ── Nav Dropdown ─────────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown-trigger:hover { color: var(--text-1); background: var(--surface); }
.nav-dropdown-trigger svg { transition: transform 0.2s; }
.nav-dropdown.open .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown-menu a:hover { color: var(--text-1); background: var(--surface-2); }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 0 56px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(0, 212, 126, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
}
.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-copy { max-width: 790px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 28px;
  background: var(--surface);
}
.hero-badge::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand), 0 0 20px rgba(0, 212, 126, 0.4);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--brand), 0 0 20px rgba(0, 212, 126, 0.4); }
  50% { opacity: 0.75; box-shadow: 0 0 6px var(--brand); }
}
.hero-title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-accent {
  background: linear-gradient(135deg, #2fbc83 0%, var(--brand-light) 50%, #a3f0d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-subtitle strong { color: var(--text-1); font-weight: 500; }
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.install-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  max-width: 100%;
}
.install-prompt { color: var(--brand); user-select: none; }
.install-cmd { color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  color: var(--text-3);
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.copy-btn:hover { color: var(--text-1); background: var(--surface-2); }
.copy-btn.copied { color: var(--green); }

/* ── Terminal ──────────────────────────────────────────────── */
.hero-terminal-wrap {
  position: relative;
}
.agent-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: float 3s ease-in-out infinite;
}
.agent-badge-1 { top: -18px; right: 40px; animation-delay: 0s; }
.agent-badge-2 { bottom: 20px; left: -24px; animation-delay: 0.8s; }
.agent-badge-3 { top: 50%; right: -28px; transform: translateY(-50%); animation-delay: 1.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.agent-badge-3 { animation-name: float-mid; }
@keyframes float-mid {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 5px)); }
}

.agent-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-3);
}
.agent-dot.active {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 1.8s ease infinite;
}

.terminal {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 24px 64px rgba(0,0,0,0.7),
    0 0 80px rgba(0,212,126,0.04);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #0d1018;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.terminal-dots { display: flex; gap: 6px; }
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green  { background: #28C840; }
.terminal-title {
  font-size: 12px;
  color: #555;
  margin: 0 auto;
}
.terminal-body {
  padding: 20px 20px 24px;
  min-height: 320px;
  overflow: hidden;
}
.t-line {
  white-space: pre;
  min-height: 1.65em;
}
.t-prompt  { color: var(--brand); }
.t-cmd     { color: #e2e8f0; }
.t-dim     { color: #4a5568; }
.t-label   { color: #6b7280; }
.t-planner { color: #F0883E; }
.t-arch    { color: #7C9EF8; }
.t-coder1  { color: #3DD68C; }
.t-coder2  { color: #79C0FF; }
.t-tester  { color: #D2A8FF; }
.t-success { color: var(--green); }
.t-done    { color: var(--brand); font-weight: 500; }
.t-cursor  { display: inline-block; width: 8px; height: 14px; background: var(--brand); animation: blink 1s step-end infinite; vertical-align: text-bottom; margin-left: 2px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── Stats bar ─────────────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 32px 0;
}
.stats-list {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}
.stats-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 48px;
  border-right: 1px solid var(--border);
}
.stats-list li:last-child { border-right: none; }
.stat-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-1);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-3);
}

/* ── Use Cases ─────────────────────────────────────────────── */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
}
.use-case-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding: 32px 24px;
  transition: background 0.2s, transform 0.2s;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.use-case-card:hover {
  background: var(--surface);
}
.use-case-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.use-case-icon svg { width: 20px; height: 20px; }
.use-case-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.3;
}
.use-case-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
}
.use-case-arrow {
  font-size: 18px;
  margin-top: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.use-case-card:hover .use-case-arrow {
  opacity: 1;
  transform: translateX(0);
}
.use-cases-footnote {
  text-align: center;
  color: var(--text-3);
  font-size: 15px;
  margin-top: 32px;
  letter-spacing: -0.01em;
}

/* ── Providers ─────────────────────────────────────────────── */
.providers {
  padding: 72px 0;
  text-align: center;
}
.providers-heading {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.providers-subtext {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 32px;
  max-width: 790px;
  margin-left: auto;
  margin-right: auto;
}
.providers-list {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.provider-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.provider-chip:hover { border-color: var(--border-2); color: var(--text-1); background: var(--surface-2); }
.provider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Features ──────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
}
.feature-card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.2s;
  position: relative;
}
.feature-card:hover { background: var(--surface); }
.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-dim);
  border: 1px solid rgba(0,212,126,0.2);
  border-radius: var(--radius);
  color: var(--brand);
  margin-bottom: 16px;
}
.feature-icon svg { width: 18px; height: 18px; }
.feature-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.3;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}
.feature-card strong { color: var(--text-1); font-weight: 500; }

/* ── How it works ──────────────────────────────────────────── */
.how-it-works { background: var(--bg-2); margin-top: -32px; padding-top: 32px; }
.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
  padding: 40px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.step:hover { border-color: var(--border-2); }
.step-number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  background: var(--brand-dim);
  border: 1px solid rgba(0,212,126,0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-content h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.step-content p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 480px;
}
.step-code {
  flex-shrink: 0;
  min-width: 340px;
  max-width: 420px;
}
.step-code pre {
  background: #0b0e14;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
  overflow-x: auto;
  white-space: pre;
}
.step-code .hlp { color: var(--brand); }
.step-code .hlg { color: var(--green); }
.step-code .hly { color: var(--yellow); }

/* ── Comparison table ──────────────────────────────────────── */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table thead th {
  padding: 16px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.compare-table thead th:first-child {
  border-radius: var(--radius-lg) 0 0 0;
}
.compare-table thead th:last-child {
  border-radius: 0 var(--radius-lg) 0 0;
}
.compare-table thead th.mode-col {
  color: var(--brand);
  background: rgba(0,212,126,0.06);
}
.compare-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.compare-table tbody tr:last-child { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--surface); }
.compare-table tbody td {
  padding: 14px 20px;
  color: var(--text-2);
  white-space: nowrap;
}
.compare-table tbody td:first-child { color: var(--text-1); font-weight: 450; }
.compare-table tbody td.mode-col { background: rgba(0,212,126,0.04); }
.check-yes { color: var(--green); font-size: 16px; font-weight: 600; }
.check-no  { color: var(--text-3); }
.check-partial { color: var(--yellow); }
.compare-legend {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-3);
  text-align: right;
}

/* ── Install ───────────────────────────────────────────────── */
.install-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
}
.install-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.install-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  font-family: var(--font-mono);
}
.tab-btn:hover { color: var(--text-1); }
.tab-btn.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.install-code-wrap {
  position: relative;
}
.install-code {
  padding: 24px 28px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-2);
  overflow-x: auto;
  background: transparent;
  margin: 0;
}
.install-code code { font-family: inherit; }
.copy-btn-code {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  transition: color 0.15s, background 0.15s;
}
.copy-btn-code:hover { color: var(--text-1); background: var(--surface); }
.copy-btn-code.copied { color: var(--green); border-color: rgba(61,214,140,0.3); }

/* Syntax highlight classes */
.sh-comment { color: #4a5568; }
.sh-cmd     { color: #79C0FF; }
.sh-str     { color: #A5D6A7; }
.sh-key     { color: #F0883E; }
.sh-val     { color: var(--green); }

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner { padding: var(--section-gap) 0; border-top: 1px solid var(--border); }
.cta-inner {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 24px;
  padding: 80px 48px;
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0,212,126,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-heading {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.cta-sub {
  font-size: 17px;
  color: var(--text-2);
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg-2);
}
.footer-top {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  margin-bottom: 48px;
}
.footer-logo { margin-bottom: 12px; }
.footer-tagline {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 4px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-3);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.footer-social a:hover { color: var(--text-1); background: var(--surface); }
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  font-size: 14px;
  color: var(--text-3);
  transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--text-1); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-3);
}
.footer-bottom a {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-bottom a:hover {
  color: var(--text-2);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; gap: 48px; }
  .hero-terminal-wrap { max-width: 600px; margin: 0 auto; }
  .hero-copy { max-width: 100%; }
  .hero-subtitle { max-width: 100%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: auto 1fr; }
  .step-code { grid-column: 1 / -1; min-width: 0; max-width: 100%; }
}

@media (max-width: 768px) {
  :root { --section-gap: 72px; }

  /* Nav */
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }

  /* Hero */
  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 56px; }
  .terminal-body { min-height: 240px; }

  /* Section headers */
  .section-header { margin-bottom: 48px; }

  /* Features + Use Cases */
  .features-grid { grid-template-columns: 1fr; }
  .use-cases-grid { grid-template-columns: repeat(2, 1fr); }

  /* Nav dropdown — full width on mobile */
  .nav-dropdown-menu { min-width: 160px; }

  /* Steps */
  .step { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .step-number { display: none; }
  .step-code pre { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Compare table */
  .table-scroll { -webkit-overflow-scrolling: touch; }
  .compare-table thead th { font-size: 12px; padding: 12px 10px; white-space: normal; }
  .compare-table tbody td { font-size: 13px; padding: 11px 10px; white-space: normal; }
  .compare-table tbody td:first-child { min-width: 130px; }

  /* Agent badges clutter the terminal on small screens */
  .agent-badge { display: none; }

  /* CTA */
  .cta-inner { padding: 40px 24px; text-align: center; }
  .cta-actions { justify-content: center; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }

  /* Stats */
  .stats-list li { padding: 12px 18px; }
}

@media (max-width: 480px) {
  :root { --section-gap: 56px; }

  .container { padding: 0 16px; }

  /* Section headers */
  .section-header { margin-bottom: 36px; }
  .section-sub { font-size: 15px; }

  /* Hero */
  .hero { padding-top: calc(var(--nav-h) + 36px); padding-bottom: 44px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .install-bar { width: 100%; box-sizing: border-box; }
  .install-cmd { max-width: none; flex: 1; min-width: 0; }
  .hero-terminal-wrap { display: none; }

  /* Install code */
  .install-code { font-size: 12px; padding: 16px; }
  .install-card { border-radius: var(--radius); }

  /* Compare — font-size already reduced at 768; shrink further */
  .compare-table thead th { font-size: 11px; padding: 10px 10px; }
  .compare-table tbody td { font-size: 12px; padding: 9px 10px; }

  /* CTA */
  .cta-inner { padding: 32px 20px; }
  .cta-heading { font-size: clamp(22px, 5vw, 32px); }
  .cta-sub { font-size: 14px; }
  .cta-actions { flex-direction: column; gap: 10px; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer-top { gap: 28px; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-col-title { font-size: 12px; }

  /* Stats */
  .stats-bar { padding: 20px 0; }
  .stats-list { flex-direction: column; align-items: center; }
  .stats-list li { border-right: none; border-bottom: 1px solid var(--border); width: 100%; text-align: center; padding: 16px 16px; }
  .stats-list li:last-child { border-bottom: none; }
  .stat-value { font-size: 28px; }
  .stat-label { font-size: 13px; margin-top: 2px; }

  /* Use cases */
  .use-cases-grid { grid-template-columns: 1fr; }

  /* Providers */
  .providers-list { gap: 8px; }
  .provider-chip { font-size: 12px; padding: 6px 12px; }

  /* Mobile hamburger X animation */
  .nav-mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ── Mobile nav open state ──────────────────────────────────── */
/* Single drawer: nav links fill a panel anchored below the bar */
.nav-wrapper.mobile-open .nav-links {
  display: flex;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  padding: 12px 0 12px;
  background: rgba(14, 17, 23, 0.98);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
}
.nav-wrapper.mobile-open .nav-links li {
  display: block;
}
.nav-wrapper.mobile-open .nav-links a {
  display: block;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-2);
  border-radius: 0;
  background: none;
}
.nav-wrapper.mobile-open .nav-links a:hover,
.nav-wrapper.mobile-open .nav-links a.active {
  color: var(--text-1);
  background: none;
}
.nav-wrapper.mobile-open .nav-cta {
  display: none;
}
.nav-cta-mobile { display: none !important; }
.nav-wrapper.mobile-open .nav-links .nav-cta-mobile {
  display: block !important;
  margin: 12px 24px 12px !important;
  text-align: center !important;
  padding: 10px 20px !important;
  background: var(--brand-btn) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  border-radius: var(--radius) !important;
}
