/* ============================================================
   Frontal Codes — Marketing Site
   Design System: Code Dark + Run Green · Vibrant Block-based
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette */
  --color-primary: #1E293B;     /* slate-800 */
  --color-secondary: #334155;   /* slate-700 */
  --color-cta: #22C55E;         /* green-500 — run green */
  --color-cta-hover: #16A34A;   /* green-600 */
  --color-cta-glow: rgba(34, 197, 94, 0.35);
  --color-background: #0F172A;  /* slate-900 */
  --color-text: #F8FAFC;        /* slate-50 */

  /* Supplementary */
  --color-muted: #94A3B8;       /* slate-400 */
  --color-subtle: #64748B;      /* slate-500 */
  --color-border: rgba(148, 163, 184, 0.12);
  --color-border-strong: rgba(148, 163, 184, 0.22);
  --color-surface: #1E293B;
  --color-surface-2: #182234;
  --color-surface-hover: #233149;
  --color-danger: #EF4444;
  --color-warn: #F59E0B;
  --color-info: #38BDF8;

  /* Typography */
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-cta: 0 8px 24px rgba(34, 197, 94, 0.25), 0 0 0 1px rgba(34, 197, 94, 0.2) inset;
  --shadow-nav: 0 8px 32px rgba(0, 0, 0, 0.5);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur-base: 200ms;
  --dur-slow: 300ms;

  /* Layout */
  --nav-h: 72px;
  --maxw: 1200px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34, 197, 94, 0.12), transparent 70%),
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out);
}

button { font-family: inherit; }

::selection {
  background: var(--color-cta);
  color: #052e16;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
  position: relative;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-cta);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.section-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-cta);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--color-muted);
  max-width: 640px;
  line-height: 1.65;
}

.text-gradient {
  background: linear-gradient(120deg, #F8FAFC 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-green { color: var(--color-cta); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  text-align: center;
  white-space: nowrap;
  line-height: 1;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-cta);
  color: #052e16;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  background: var(--color-cta-hover);
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.4), 0 0 0 1px rgba(34, 197, 94, 0.3) inset;
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.6);
  color: var(--color-text);
  border-color: var(--color-border-strong);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--color-cta);
}

.btn-ghost {
  background: transparent;
  color: var(--color-muted);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 0.95rem;
}

.btn:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-background), 0 0 0 4px var(--color-cta);
  border-radius: var(--radius-md);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 60;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: box-shadow var(--dur-slow) var(--ease-out),
              border-color var(--dur-slow) var(--ease-out),
              background var(--dur-slow) var(--ease-out);
}

.navbar.is-scrolled {
  box-shadow: var(--shadow-nav);
  border-color: var(--color-border-strong);
  background: rgba(15, 23, 42, 0.92);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.navbar-brand .brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cta);
  box-shadow: 0 0 12px var(--color-cta-glow);
  flex-shrink: 0;
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.navbar-links a {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-muted);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}

.navbar-links a:hover { color: var(--color-text); background: rgba(148, 163, 184, 0.06); }

.navbar-links a.is-active {
  color: var(--color-cta);
}

.navbar-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.25rem;
  height: 1px;
  background: var(--color-cta);
}

.navbar-actions {
  display: none;
  align-items: center;
  gap: 0.625rem;
}

@media (min-width: 1024px) {
  .navbar-links,
  .navbar-actions { display: flex; }
}

.github-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}
.github-badge:hover { border-color: var(--color-border-strong); color: var(--color-cta); }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out),
              visibility var(--dur-slow);
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.mobile-menu a:hover { color: var(--color-cta); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  max-width: 100%;
  background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.18), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero > .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-cta);
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-block: 1.25rem 1.5rem;
}

.hero-sub {
  font-size: 1.0625rem;
  color: #CBD5E1;
  max-width: 580px;
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.install-pill {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  max-width: 100%;
}

.install-pill .prompt { color: var(--color-cta); }
.install-pill .cmd { color: #E2E8F0; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.copy-btn:hover { color: var(--color-text); background: rgba(148, 163, 184, 0.15); }
.copy-btn.is-copied {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: var(--color-cta);
}

/* ---------- Cards ---------- */
.card {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  transition: border-color var(--dur-slow) var(--ease-out),
              background var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--color-border-strong);
  background: rgba(30, 41, 59, 0.75);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: var(--color-text);
}

.card-desc {
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-cta);
}
.card-link:hover { color: var(--color-cta-hover); gap: 0.55rem; }
.card-link svg { transition: transform var(--dur-base) var(--ease-out); }
.card-link:hover svg { transform: translateX(3px); }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

/* Color accents for card icons */
.ic-green  { background: rgba(34, 197, 94, 0.12);  color: #22C55E; }
.ic-blue   { background: rgba(56, 189, 248, 0.12); color: #38BDF8; }
.ic-violet { background: rgba(167, 139, 250, 0.12); color: #A78BFA; }
.ic-amber  { background: rgba(245, 158, 11, 0.12); color: #F59E0B; }
.ic-rose   { background: rgba(244, 63, 94, 0.12);  color: #FB7185; }
.ic-teal   { background: rgba(20, 184, 166, 0.12); color: #2DD4BF; }

/* ---------- Trust bar ---------- */
.trust-bar {
  border-block: 1px solid var(--color-border);
  padding-block: 2.5rem;
  background: rgba(15, 23, 42, 0.4);
}
.trust-bar .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.trust-bar .trust-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-subtle);
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2.5rem;
}
.trust-logos .logo-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-subtle);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--dur-base) var(--ease-out);
}
.trust-logos .logo-item:hover { color: var(--color-text); }

/* ---------- Problem / Solution ---------- */
.ps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .ps-grid { grid-template-columns: 1fr 1fr; } }

.ps-col h3 {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ps-col.is-problem h3 { color: #FB7185; }
.ps-col.is-solution h3 { color: var(--color-cta); }

.ps-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(30, 41, 59, 0.4);
  margin-bottom: 0.875rem;
  transition: border-color var(--dur-base) var(--ease-out);
}
.ps-item:hover { border-color: var(--color-border-strong); }
.ps-item .ps-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.is-problem .ps-icon { background: rgba(244, 63, 94, 0.12); color: #FB7185; }
.is-solution .ps-icon { background: rgba(34, 197, 94, 0.12); color: var(--color-cta); }
.ps-item h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}
.ps-item p { font-size: 0.875rem; color: var(--color-muted); line-height: 1.6; }

/* ---------- How it works (steps) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-slow) var(--ease-out),
              background var(--dur-slow) var(--ease-out);
}
.step-card:hover { border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.04); }

.step-num {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-cta);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.04em;
}
.step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step-desc { font-size: 0.875rem; color: var(--color-muted); line-height: 1.65; }
.step-visual {
  margin-top: 1.25rem;
  height: 60px;
  display: flex;
  align-items: center;
}

/* ---------- Terminal demo ---------- */
.terminal {
  background: #0a1120;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 80px rgba(34, 197, 94, 0.08);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid var(--color-border);
}
.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.terminal-dot.r { background: #FF5F57; }
.terminal-dot.y { background: #FEBC2E; }
.terminal-dot.g { background: #28C840; }
.terminal-title {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
}
.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  min-height: 320px;
  color: #E2E8F0;
}
.term-input { color: var(--color-cta); font-weight: 600; }
.term-prompt { color: var(--color-cta); }
.term-out { color: #CBD5E1; }
.term-agent { color: #38BDF8; }
.term-ok { color: var(--color-cta); }
.term-merge { color: #A78BFA; font-weight: 600; }
.term-error { color: var(--color-danger); font-weight: 600; }
.term-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--color-cta);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* Metric cards */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 768px) { .metrics-grid { grid-template-columns: repeat(3, 1fr); } }

.metric-card {
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.metric-value {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-cta);
  line-height: 1;
  letter-spacing: -0.03em;
}
.metric-label {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ---------- Dual model (opensource / cloud) ---------- */
.dual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .dual-grid { grid-template-columns: 1fr 1fr; } }

.dual-card {
  position: relative;
  padding: 2rem;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
}
.dual-card.is-featured {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2), 0 30px 80px rgba(34, 197, 94, 0.18);
}
.dual-card.is-featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.4), transparent 40%, transparent 60%, rgba(34, 197, 94, 0.2));
  z-index: -1;
  filter: blur(2px);
}

.dual-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong);
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}
.dual-badge.is-premium {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.35);
  color: var(--color-cta);
}

.dual-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.dual-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.dual-list li {
  display: flex;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: #CBD5E1;
  line-height: 1.55;
}
.dual-list li svg { flex-shrink: 0; margin-top: 0.2rem; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.price-card {
  position: relative;
  padding: 2rem 1.75rem;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
}
.price-card.is-popular {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4), 0 30px 80px rgba(34, 197, 94, 0.18);
  transform: translateY(-4px);
}
.price-badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.85rem;
  background: var(--color-cta);
  color: #052e16;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.price-tier {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.price-amount {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  margin-block: 0.5rem 0.25rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-cadence {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}
.price-desc {
  font-size: 0.9rem;
  color: #CBD5E1;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}
.price-features li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #CBD5E1;
  align-items: flex-start;
}
.price-features li svg { flex-shrink: 0; margin-top: 0.2rem; color: var(--color-cta); }

/* ---------- Architecture diagram ---------- */
.arch-diagram {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  font-family: var(--font-mono);
}
.arch-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.arch-node {
  padding: 0.85rem 1.25rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #CBD5E1;
  white-space: nowrap;
  transition: border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}
.arch-node.is-active {
  border-color: rgba(34, 197, 94, 0.5);
  color: var(--color-cta);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.15);
}
.arch-node.is-memory {
  border-color: rgba(167, 139, 250, 0.5);
  color: #C4B5FD;
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.15);
}
.arch-arrow {
  color: var(--color-subtle);
  font-size: 1.25rem;
  line-height: 1;
  font-family: var(--font-mono);
}
.arch-arrow-down {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, var(--color-border-strong), transparent);
  position: relative;
}
.arch-arrow-down::after {
  content: "▼";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-subtle);
  font-size: 0.625rem;
}

/* ---------- Roadmap ---------- */
.roadmap-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.roadmap-item {
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.roadmap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.875rem;
}
.roadmap-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
}
.roadmap-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
}
.roadmap-bar {
  height: 6px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.roadmap-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-cta), #4ADE80);
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.2s var(--ease-out);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 800px;
  margin-inline: auto;
}
.faq-item {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out);
}
.faq-item[open] { border-color: rgba(34, 197, 94, 0.35); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg {
  flex-shrink: 0;
  color: var(--color-muted);
  transition: transform var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}
.faq-item[open] summary svg { transform: rotate(45deg); color: var(--color-cta); }
.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  text-align: center;
  padding-block: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  border-top: 1px solid var(--color-border);
}
.final-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1100px;
  height: 600px;
  max-width: 95%;
  background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.25), transparent 65%);
  filter: blur(50px);
  pointer-events: none;
}
.final-cta > .container { position: relative; z-index: 1; }
.final-cta h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.035em;
  margin-block: 1rem 1.25rem;
}
.final-cta .sub {
  color: #CBD5E1;
  font-size: 1.0625rem;
  max-width: 580px;
  margin-inline: auto;
  line-height: 1.65;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--color-border);
  background: rgba(15, 23, 42, 0.6);
  padding-block: 4rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .tagline {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-top: 0.85rem;
  max-width: 280px;
  line-height: 1.6;
}
.footer-social { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  transition: color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.footer-social a:hover { color: var(--color-cta); border-color: rgba(34, 197, 94, 0.4); }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer-col a {
  color: #CBD5E1;
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--color-cta); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-subtle);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-bottom .links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--color-text); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.text-center { text-align: center; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-strong), transparent);
  margin-block: 1rem;
}

/* Hide horizontal scroll on small screens */
html, body { max-width: 100%; }

/* ---------- Mission list (about.html) ---------- */
.mission-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mission-list li {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}
.mission-list li:hover { border-color: var(--color-border-strong); background: rgba(30, 41, 59, 0.6); }
.mission-num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-cta);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  line-height: 1.6;
}
.mission-list strong {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--color-text);
}
.mission-list li span {
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.mission-list li > div { display: flex; flex-direction: column; gap: 0.2rem; }

/* ---------- Timeline (about.html) ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 88px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--color-border-strong) 8%, var(--color-border-strong) 92%, transparent);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  align-items: start;
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-subtle);
  text-align: right;
  padding-top: 0.2rem;
  white-space: nowrap;
}
.timeline-dot {
  position: absolute;
  left: 82px;
  top: 1.5rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-background);
  border: 2px solid var(--color-cta);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.9), 0 0 16px rgba(34, 197, 94, 0.35);
  z-index: 1;
  transition: transform var(--dur-base) var(--ease-out);
}
.timeline-item:hover .timeline-dot { transform: scale(1.25); }
.timeline-dot.is-seed {
  border-color: #4ADE80;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.9), 0 0 20px rgba(74, 222, 128, 0.45);
}
.timeline-content {
  padding: 1.1rem 1.25rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-slow) var(--ease-out),
              background var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  margin-left: 1rem;
}
.timeline-item:hover .timeline-content {
  border-color: var(--color-border-strong);
  background: rgba(30, 41, 59, 0.7);
}
.timeline-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.timeline-desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* Timeline responsive: collapse date above content on narrow screens */
@media (max-width: 640px) {
  .timeline::before { left: 6px; top: 0; bottom: 0; }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-left: 1.5rem;
  }
  .timeline-date { text-align: left; padding-top: 0; }
  .timeline-dot { left: 0; top: 1.1rem; }
  .timeline-content { margin-left: 0; }
}

/* ---------- Comparison tables (pricing.html) ---------- */
.table-wrap {
  overflow-x: auto;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  min-width: 640px;
}

.cmp-table thead th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 1.1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border-strong);
  background: rgba(15, 23, 42, 0.4);
  white-space: nowrap;
}
.cmp-table thead th.is-featured { color: var(--color-cta); }

.cmp-table tbody td,
.cmp-table tbody th[scope="row"] {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  color: #CBD5E1;
  vertical-align: middle;
  text-align: left;
}
.cmp-table tbody th[scope="row"] {
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Category header row inside tbody */
.cmp-table tr.cmp-cat th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cta);
  padding: 1.1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border-strong);
  background: rgba(34, 197, 94, 0.05);
}

.cmp-table tbody tr:last-child td,
.cmp-table tbody tr:last-child th { border-bottom: none; }

/* Highlight the Pro column (3rd column: feature name is child 1, tds are 2/3/4) */
.cmp-table thead th:nth-child(3) { color: var(--color-cta); }
.cmp-table tbody td:nth-child(3) { background: rgba(34, 197, 94, 0.045); }
.cmp-table tbody tr.cmp-cat th:nth-child(1) { /* keep category bg */ }

.cmp-table tbody tr:hover td { background: rgba(148, 163, 184, 0.05); }
.cmp-table tbody tr:hover td:nth-child(3) { background: rgba(34, 197, 94, 0.08); }

/* Cell content variants */
.cell-check {
  color: var(--color-cta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cell-dash {
  color: var(--color-subtle);
  font-family: var(--font-mono);
  font-size: 1rem;
}
.cell-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-muted);
  white-space: nowrap;
}

/* Token pricing table — lighter variant */
.cmp-table.is-compact tbody td,
.cmp-table.is-compact tbody th[scope="row"] {
  padding: 0.9rem 1.1rem;
}
.cmp-table.is-compact thead th { padding: 0.95rem 1.1rem; }
.tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-cta);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  white-space: nowrap;
}
.provider-chain {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.price-per {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-text);
  font-size: 0.9rem;
  white-space: nowrap;
}
.price-per.is-free { color: var(--color-cta); }

@media (max-width: 640px) {
  .cmp-table { min-width: 540px; }
  .cmp-table thead th,
  .cmp-table tbody td, .cmp-table tbody th[scope="row"] { padding: 0.75rem 0.85rem; }
}

/* ---------- Speed comparison: side-by-side + mobile slider ---------- */
.compare-wrapper {
  position: relative;
  width: 100%;
}

/* Grid: side-by-side on desktop, stacked overlay on mobile */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative;
}

.compare-panel {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  min-height: 540px;
}
.compare-left {
  background: linear-gradient(135deg, #1f1414 0%, #0f0a0a 100%);
  color: #FCA5A5;
}
.compare-right {
  background: linear-gradient(135deg, #0a1a14 0%, #051712 100%);
  color: #86EFAC;
}

/* Panel head */
.compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.compare-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid currentColor;
}
.compare-left .compare-badge {
  color: #FB7185;
  border-color: rgba(251, 113, 133, 0.4);
  background: rgba(251, 113, 133, 0.08);
}
.compare-right .compare-badge {
  color: #22C55E;
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.08);
}
.compare-duration {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}
.compare-left .compare-duration { color: #F59E0B; }
.compare-right .compare-duration { color: #22C55E; }

/* ============ EDITOR MOCKUP (manual side) ============ */
.editor-mockup {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0d0808;
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 280px;
}
.editor-tabs {
  display: flex;
  gap: 0;
  padding: 0 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
}
.editor-tab {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.55rem 0.85rem;
  color: #64748B;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.editor-tab.is-active {
  color: #FCA5A5;
  border-bottom-color: #F59E0B;
}
.editor-body {
  flex: 1;
  padding: 0.85rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.75;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.editor-line {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0 0.5rem;
  min-height: 1.4em;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 280ms ease-out, transform 280ms ease-out;
}
.editor-line.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* File blocks (only one visible at a time) */
.editor-file {
  display: none;
  flex-direction: column;
  gap: 0;
}
.editor-file.is-active {
  display: flex;
}

/* Statusbar overtime state */
.sb-clock.is-overtime {
  color: #F87171 !important;
  font-weight: 700;
  animation: overtime-pulse 1.6s ease-in-out infinite;
}
@keyframes overtime-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}
.line-num {
  color: #475569;
  min-width: 1.5rem;
  text-align: right;
  font-size: 0.68rem;
  user-select: none;
  flex-shrink: 0;
}
.line-content {
  color: #FCA5A5;
  white-space: pre;
}
.editor-caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: #F59E0B;
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: caret-blink 1s steps(2) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* Editor syntax tokens */
.syn-import  { color: #C084FC; }
.syn-mod      { color: #FBBF24; }
.syn-comment  { color: #64748B; font-style: italic; }
.syn-def      { color: #C084FC; }
.syn-fn       { color: #60A5FA; }
.syn-var      { color: #FCA5A5; }
.syn-keyword  { color: #F472B6; }
.syn-str      { color: #86EFAC; }
.syn-num      { color: #FB923C; }

.editor-statusbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(245, 158, 11, 0.12);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: #64748B;
}
.sb-spacer { flex: 1; }
.sb-clock { color: #F59E0B; font-weight: 600; }

/* ============ TERMINAL MOCKUP (frontal side) ============ */
.terminal-mockup {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0a1120;
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 280px;
}
.terminal-mockup .terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid var(--color-border);
}
.terminal-mockup .terminal-title {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-muted);
}
.compare-term {
  flex: 1;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.85;
  color: #CBD5E1;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.compare-term .t-prompt { color: var(--color-cta); font-weight: 600; margin-right: 0.4rem; }
.compare-term .t-cmd { color: #E2E8F0; }
.compare-term .t-time { color: #64748B; }
.compare-term .t-out  { color: #CBD5E1; }
.compare-term .t-ok   { color: var(--color-cta); }
.compare-term .t-agent { color: #38BDF8; }
.compare-term .t-merge { color: #A78BFA; font-weight: 600; }
.t-caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: var(--color-cta);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: caret-blink 1s steps(2) infinite;
}
.t-caret.is-hidden { display: none; }

/* Terminal command line (typing target) */
.term-cmd-line { display: flex; align-items: baseline; gap: 0.2rem; min-height: 1.4em; }

/* Terminal steps (progressive reveal) */
.term-step,
.agent-lanes,
.parallel-events {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 240ms ease-out, transform 240ms ease-out;
  min-height: 0;
}
.term-step.is-revealed,
.agent-lanes.is-revealed,
.parallel-events.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.term-merge-line .t-merge { font-size: 0.88rem; }

/* Parallel agent lanes */
.agent-lanes {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0.6rem;
  margin: 0.3rem 0;
  background: rgba(34, 197, 94, 0.04);
  border-left: 2px solid rgba(34, 197, 94, 0.4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.agent-lane {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: agent-pulse 1.4s ease-in-out infinite;
}
.agent-dot.ic-blue   { background: #38BDF8; box-shadow: 0 0 8px rgba(56, 189, 248, 0.6); }
.agent-dot.ic-green  { background: #22C55E; box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); }
.agent-dot.ic-violet { background: #A78BFA; box-shadow: 0 0 8px rgba(167, 139, 250, 0.6); }
@keyframes agent-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.25); }
}
.agent-name { color: #38BDF8; }
.parallel-events { padding-left: 0.5rem; }
.parallel-events .pe-row { padding-left: 0.5rem; }

/* Footer stats (shared) */
.compare-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.cmp-stat {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.7rem;
}
.cmp-stat-v {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.1;
}
.cmp-stat-l {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
  margin-top: 2px;
}
.compare-left  .cmp-stat-v { color: #F87171; }
.compare-right .cmp-stat-v { color: #22C55E; }

/* ============ MOBILE SLIDER OVERLAY ============ */
.compare-handle { display: none; }
.compare-hint { display: none; }

@media (max-width: 1023px) {
  .compare-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .compare-wrapper {
    aspect-ratio: 4 / 5;
    min-height: 560px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border-strong);
    box-shadow: var(--shadow-card);
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
  }
  .compare-panel {
    position: absolute;
    inset: 0;
    grid-column: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 1.1rem;
    min-height: 0;
  }
  .compare-right {
    clip-path: inset(0 0 0 50%);
    transition: none;
  }
  .compare-handle {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: rgba(248, 250, 252, 0.9);
    cursor: ew-resize;
    z-index: 10;
  }
  .compare-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--color-cta);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: box-shadow var(--dur-base) var(--ease-out);
  }
  .handle-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    color: #0F172A;
    z-index: 1;
    pointer-events: none;
  }
  .compare-handle:focus-visible { outline: none; }
  .compare-handle:focus-visible::after {
    box-shadow:
      0 0 0 2px var(--color-background),
      0 0 0 4px var(--color-cta),
      0 4px 16px rgba(0, 0, 0, 0.4);
  }
  .compare-hint {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -3.75rem);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--color-text);
    background: rgba(15, 23, 42, 0.85);
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    pointer-events: none;
    z-index: 11;
    opacity: 0.35;
    transition: opacity var(--dur-base) var(--ease-out);
    white-space: nowrap;
  }
  .compare-wrapper:hover .compare-hint,
  .compare-wrapper:focus-within .compare-hint { opacity: 1; }
  .editor-body, .compare-term { font-size: 0.7rem; }
  .compare-panel { gap: 0.75rem; }
  .compare-duration { font-size: 0.9rem; }
}

@media (hover: none) { .compare-hint { display: none !important; } }

/* Math banner */
.compare-math {
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  color: var(--color-muted);
  font-size: 0.95rem;
}
.compare-math .m-strong { color: var(--color-cta); font-weight: 600; }
.compare-math .m-sep { margin-inline: 0.5rem; opacity: 0.5; }

/* Reduced motion: reveal everything immediately */
@media (prefers-reduced-motion: reduce) {
  .editor-line, .term-step, .agent-lanes, .parallel-events {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .editor-caret, .t-caret, .agent-dot { animation: none !important; }
}

.navbar-brand img.brand-logo { display: block; border-radius: 8px; }


/* ============================================================
   Waitlist (hero + final CTA)
   ============================================================ */

.waitlist-form {
  width: 100%;
  max-width: 460px;
  margin: 0;
}

.waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.waitlist-row input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.waitlist-row input[type="email"]::placeholder { color: var(--color-subtle); }

.waitlist-row input[type="email"]:focus {
  outline: none;
  border-color: var(--color-cta);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.waitlist-row .btn { white-space: nowrap; }
.waitlist-row .btn:disabled { opacity: 0.6; cursor: wait; }

/* Honeypot: ekran dışı, klavye/ekran okuyucu erişimi yok — botlar doldurur */
.waitlist-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.waitlist-status {
  margin: 0.625rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--color-muted);
  min-height: 1.3em;
}

.waitlist-status[data-tone="success"] { color: var(--color-cta); }
.waitlist-status[data-tone="error"] { color: #F87171; }
.waitlist-status a { color: inherit; text-decoration: underline; }

.waitlist-form.is-done .waitlist-row { display: none; }

.waitlist-form--centered { margin-inline: auto; }

.waitlist-form--centered .waitlist-row {
  flex-direction: column;
  max-width: 420px;
  margin-inline: auto;
}

.waitlist-form--centered .waitlist-row .btn { justify-content: center; }

.waitlist-fineprint {
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-subtle);
  letter-spacing: 0.02em;
  text-align: center;
}

.waitlist-fineprint a { color: var(--color-muted); text-decoration: underline; }

.hero-alt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-muted);
  transition: color var(--dur-base) var(--ease-out);
}

.hero-alt-link:hover { color: var(--color-text); }

@media (max-width: 640px) {
  .waitlist-form--centered .waitlist-row { flex-direction: column; }
}
