/* ==========================================================================
   NH Wheel — landing page
   Brand: navy #0B132B + neon green #39FF88
   ========================================================================== */

:root {
  --navy: #0B132B;
  --navy-deep: #070D1F;
  --navy-alt: #0E1833;
  --surface: #111C3B;
  --surface-2: #16244B;
  --line: rgba(140, 160, 220, 0.14);
  --line-2: rgba(140, 160, 220, 0.26);
  --text: #E9EEF8;
  --text-2: #A7B2CC;
  --text-3: #6F7C9C;
  --green: #39FF88;
  --green-hover: #6BFFA6;
  --green-soft: rgba(57, 255, 136, 0.1);
  --green-line: rgba(57, 255, 136, 0.35);
  --red: #FF6B7A;
  --amber: #FFC857;
  --opus: #B79CFF;
  --sonnet: #7FA8FF;
  --haiku: #5EE0C8;

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
code { font-family: var(--font-mono); font-size: 0.86em; color: var(--green); background: rgba(57, 255, 136, 0.08); padding: 1px 6px; border-radius: 5px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

::selection { background: var(--green); color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 12px 20px; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-primary { background: var(--green); color: var(--navy); box-shadow: 0 0 0 0 rgba(57, 255, 136, 0.5); }
.btn-primary:hover { background: var(--green-hover); box-shadow: 0 8px 30px -6px rgba(57, 255, 136, 0.55); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--green-line); background: var(--green-soft); }
.btn .ic { transition: transform 0.2s var(--ease); }
.btn:hover .ic { transform: translateX(2px); }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); color: var(--text);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.icon-btn:hover { border-color: var(--green-line); color: var(--green); background: var(--green-soft); }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--green), #1BC5A4); box-shadow: 0 0 12px var(--green); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(11, 19, 43, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand em { font-style: normal; color: var(--green); }
.brand-mark { width: 30px; height: 30px; fill: none; stroke: var(--green); stroke-linecap: round; color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; color: var(--text-2); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-links a.is-active { color: var(--green); }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; background: transparent; border: 1px solid var(--line-2); }
.nav-toggle .ic { width: 22px; height: 22px; }

/* ---------- Pill / kicker ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px;
  border-radius: 999px; border: 1px solid var(--green-line); background: var(--green-soft);
  color: var(--text); font-size: 14px; font-weight: 500;
  transition: background 0.2s;
}
.pill:hover { background: rgba(57, 255, 136, 0.16); }
.pill .ic { color: var(--green); }
.pill-short { display: none; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(57, 255, 136, 0.18); animation: pulse 2s infinite; }

.kicker { display: inline-block; font-family: var(--font-mono); font-size: 13px; color: var(--green); letter-spacing: 0.02em; margin-bottom: 14px; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(57, 255, 136, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(57, 255, 136, 0); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 40px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(140, 160, 220, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 160, 220, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.glow-1 { width: 620px; height: 420px; left: 50%; top: 2%; transform: translateX(-50%); background: rgba(57, 255, 136, 0.16); }
.glow-2 { width: 520px; height: 520px; right: -140px; top: 46%; background: rgba(46, 107, 230, 0.18); }
.hero-wheel {
  position: absolute; width: 720px; height: 720px; left: -260px; top: 120px; opacity: 0.05;
  fill: none; stroke: var(--green); color: var(--green); stroke-linecap: round;
  animation: spin 80s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-copy { max-width: 880px; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.6vw, 80px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; margin: 26px 0 22px; }
.hl { color: var(--green); text-shadow: 0 0 40px rgba(57, 255, 136, 0.35); }
.lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--text-2); max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-meta { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: var(--text-3); font-size: 14px; }
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .ic { color: var(--text-2); }

.hero-visual { position: relative; width: min(1120px, 100%); margin-top: 64px; perspective: 1600px; }
.hero-browser { transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, 0deg)); transform-origin: 50% 0; transition: transform 0.6s var(--ease); }
.hero-visual::after {
  content: ''; position: absolute; left: 8%; right: 8%; bottom: -30px; height: 80px; z-index: -1;
  background: rgba(57, 255, 136, 0.28); filter: blur(60px); border-radius: 50%;
}

/* Browser frame */
.browser { margin: 0; border-radius: var(--radius); overflow: hidden; background: #0F1834; box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 14px; background: #131F42; border-bottom: 1px solid var(--line); }
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #2A3862; }
.dots i:first-child { background: #FF5F57; }
.dots i:nth-child(2) { background: #FEBC2E; }
.dots i:nth-child(3) { background: #28C840; }
.tab-title { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 7px; padding: 3px 12px 3px 9px; }
.tab-title .ic { width: 13px; height: 13px; color: var(--green); stroke-width: 3; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: #F0F2F5; }

/* Floating cards */
.float-card {
  position: absolute; z-index: 2; text-align: left;
  background: rgba(17, 28, 59, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.55);
  font-size: 13px; color: var(--text-2);
  animation: float 6s ease-in-out infinite;
}
.fc-head { display: flex; align-items: center; gap: 10px; }
.fc-head b { display: block; color: var(--text); font-size: 13.5px; line-height: 1.3; }
.fc-head small { color: var(--text-3); font-size: 12px; }
.ava { width: 32px; height: 32px; border-radius: 9px; display: inline-grid; place-items: center; flex: none; color: #fff; }
.ava .ic { width: 17px; height: 17px; }
.ava-test { background: linear-gradient(135deg, #059669, #34D399); }
.ava-pr { background: var(--green); color: var(--navy); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-left: auto; animation: pulse 1.6s infinite; flex: none; }
.fc-agent { width: 250px; right: -34px; top: 16%; }
.fc-agent .fc-line { margin: 10px 0 8px; }
.fc-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.fc-bar i { display: block; height: 100%; width: 40%; background: var(--green); border-radius: 3px; animation: load 4.5s var(--ease) infinite; }
@keyframes load { 0% { width: 8%; } 80%, 100% { width: 100%; } }
.fc-pr { width: 250px; left: -40px; top: 58%; animation-delay: -2s; }
.fc-checks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.fc-checks li { display: flex; align-items: center; gap: 7px; }
.fc-checks .ic { color: var(--green); stroke-width: 2.6; }
.fc-goal { width: 260px; left: -56px; top: 12%; animation-delay: -4s; }
.fc-goal small { font-family: var(--font-mono); font-size: 11px; color: var(--green); letter-spacing: 0.05em; text-transform: uppercase; }
.fc-goal p { color: var(--text); font-size: 14px; margin-top: 4px; line-height: 1.45; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--green); margin-left: 2px; vertical-align: -0.15em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Numbers ---------- */
.numbers { padding: 56px 0 24px; }
.numbers-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.num { padding: 28px 22px; display: flex; align-items: center; gap: 16px; }
.num + .num { border-left: 1px solid var(--line); }
.num b { font-family: var(--font-display); font-size: 52px; line-height: 1; color: var(--green); font-weight: 700; letter-spacing: -0.03em; min-width: 0.7em; }
.num span { font-size: 14px; color: var(--text-2); line-height: 1.4; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--navy-alt), var(--navy)); border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 700; letter-spacing: -0.03em; }
.section-head p { margin-top: 18px; color: var(--text-2); font-size: 17.5px; }
.section-head p b { color: var(--text); font-weight: 600; }
.muted-h { color: var(--text-3); }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text-2); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2339FF88' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-8.5'/%3E%3C/svg%3E") center / 11px no-repeat;
  border: 1px solid var(--green-line);
}

/* ---------- Overview ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 44px 1.15fr 1fr; gap: 18px; align-items: stretch; }
.split-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)); }
.split-card h3 { font-size: 22px; margin: 6px 0 18px; }
.split-card-ai { border-color: var(--green-line); background: linear-gradient(180deg, rgba(57, 255, 136, 0.09), rgba(57, 255, 136, 0.02)); box-shadow: 0 0 60px -20px rgba(57, 255, 136, 0.3); }
.split-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); color: var(--text); margin-bottom: 18px; }
.split-card-ai .split-icon { background: var(--green); color: var(--navy); border-color: transparent; }
.split-icon .ic { width: 22px; height: 22px; }
.split-tag { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.split-card-ai .split-tag { color: var(--green); }
.split-arrow { display: grid; place-items: center; color: var(--green); }
.split-arrow .ic { width: 28px; height: 28px; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }

.sources { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; }
.sources-label { color: var(--text-3); font-size: 14px; margin-right: 4px; }
.source-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font-size: 14px; }
.source-chip .ic { width: 16px; height: 16px; }
.source-chip:first-of-type .ic { color: var(--green); stroke-width: 3; }

/* ---------- How it works ---------- */
.flow { display: grid; grid-template-columns: 330px 1fr; gap: 28px; align-items: start; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; position: relative; }
.flow-step {
  position: relative; width: 100%; display: grid; grid-template-columns: 30px 40px 1fr; align-items: center; gap: 12px;
  padding: 14px 16px; text-align: left; border-radius: 12px; background: transparent; border: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s; overflow: hidden;
}
.flow-step:hover { background: rgba(255, 255, 255, 0.03); }
.flow-step.is-active { background: var(--surface); border-color: var(--line-2); }
.flow-num { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.flow-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--text-2); transition: all 0.25s; }
.flow-step.is-active .flow-ic { background: var(--green); color: var(--navy); border-color: transparent; box-shadow: 0 0 24px -4px rgba(57, 255, 136, 0.6); }
.flow-step.is-done .flow-ic { color: var(--green); border-color: var(--green-line); }
.flow-txt b { display: block; font-family: var(--font-display); font-size: 17px; color: var(--text); }
.flow-txt small { color: var(--text-3); font-size: 13px; }
.flow-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.flow-progress i { display: block; height: 100%; width: 0; background: var(--green); }
.flow-step.is-active .flow-progress i { animation: progress var(--step-ms, 7000ms) linear forwards; }
.flow.is-paused .flow-step.is-active .flow-progress i { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }

.flow-stage { position: relative; min-height: 520px; }
.flow-panel { display: grid; gap: 22px; animation: panelIn 0.5s var(--ease); }
.flow-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.panel-copy h3 { font-size: 26px; margin-bottom: 10px; }
.panel-copy p { color: var(--text-2); max-width: 720px; }

/* Mock UI cards */
.mock { border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(180deg, #121E40, #0F1834); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); overflow: hidden; }
.mock-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.mock-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.mock-title .ic { color: var(--green); }
.mock-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; }
.mock-body { padding: 18px; }
.mock-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; margin: 14px 0 6px; }
.mock-label:first-child { margin-top: 0; }
.mock-input { border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); border-radius: 8px; padding: 10px 12px; font-size: 14.5px; }
.mock-textarea { min-height: 66px; color: var(--text); }
.criteria { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.criteria li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); font-size: 14px; opacity: 0; transform: translateX(-8px); }
.flow-panel:not([hidden]) .criteria li { animation: slideIn 0.4s var(--ease) forwards; animation-delay: calc(1.6s + var(--i, 0) * 0.25s); }
.criteria li:nth-child(2) { --i: 1; }
.criteria li:nth-child(3) { --i: 2; }
.criteria li:nth-child(4) { --i: 3; }
@keyframes slideIn { to { opacity: 1; transform: none; } }
.c-num { font-family: var(--font-mono); font-size: 12px; color: var(--green); font-weight: 600; }
.c-tag { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; flex: none; }
.t-unit { background: rgba(127, 168, 255, 0.14); color: var(--sonnet); }
.t-e2e { background: rgba(183, 156, 255, 0.14); color: var(--opus); }
.t-perf { background: rgba(255, 200, 87, 0.14); color: var(--amber); }

.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.b-opus { color: var(--opus); background: rgba(183, 156, 255, 0.1); border-color: rgba(183, 156, 255, 0.3); }
.b-sonnet { color: var(--sonnet); background: rgba(127, 168, 255, 0.1); border-color: rgba(127, 168, 255, 0.3); }
.b-open { color: var(--green); background: var(--green-soft); border-color: var(--green-line); }

.plan-list { margin: 0; padding: 0; list-style: none; counter-reset: plan; display: grid; gap: 8px; }
.plan-list li { counter-increment: plan; display: flex; gap: 12px; align-items: baseline; color: var(--text); font-size: 15px; opacity: 0; }
.flow-panel:not([hidden]) .plan-list li { animation: slideIn 0.4s var(--ease) forwards; animation-delay: calc(0.2s + var(--i, 0) * 0.35s); }
.plan-list li:nth-child(2) { --i: 1; } .plan-list li:nth-child(3) { --i: 2; } .plan-list li:nth-child(4) { --i: 3; } .plan-list li:nth-child(5) { --i: 4; }
.plan-list li::before { content: counter(plan); flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(183, 156, 255, 0.12); color: var(--opus); font: 600 12px var(--font-mono); }
.plan-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-2); color: var(--text-3); font-size: 14px; }
.plan-meta b { color: var(--text); }
.mock-actions { display: flex; gap: 10px; margin-top: 18px; }
.mbtn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.mbtn-primary { background: var(--green); color: var(--navy); border-color: var(--green); }

.subtasks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; position: relative; }
.subtasks li {
  display: grid; grid-template-columns: 52px 1fr auto 64px; align-items: center; gap: 12px;
  padding: 12px 6px 12px 22px; position: relative; border-bottom: 1px solid var(--line); font-size: 14.5px; opacity: 0;
}
.subtasks li:last-child { border-bottom: 0; }
.subtasks li::before { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.subtasks li::after { content: ''; position: absolute; left: 4px; top: 50%; width: 12px; height: 1px; background: var(--line-2); }
.flow-panel:not([hidden]) .subtasks li { animation: slideIn 0.4s var(--ease) forwards; animation-delay: calc(0.15s + var(--i, 0) * 0.2s); }
.subtasks li:nth-child(2) { --i: 1; } .subtasks li:nth-child(3) { --i: 2; } .subtasks li:nth-child(4) { --i: 3; } .subtasks li:nth-child(5) { --i: 4; }
.st-id { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.st-agent { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.a-dev { color: var(--sonnet); background: rgba(127, 168, 255, 0.12); }
.a-dev2 { color: #9CC0FF; background: rgba(127, 168, 255, 0.08); border: 1px dashed rgba(127, 168, 255, 0.35); }
.a-test { color: #34D399; background: rgba(52, 211, 153, 0.12); }
.st-c { font-family: var(--font-mono); font-size: 12px; color: var(--green); text-align: right; }

.code { background: #0A1128; }
.code-file { display: flex; justify-content: space-between; padding: 10px 18px; font: 500 12.5px var(--font-mono); color: var(--text-2); border-bottom: 1px solid var(--line); }
.code-file span { color: var(--green); }
.code pre { margin: 0; padding: 14px 0; font: 13.5px/1.75 var(--font-mono); color: #C9D3EA; overflow-x: auto; }
.code pre code { background: none; color: inherit; padding: 0; font-size: inherit; display: block; }
.ln { display: inline-block; width: 46px; padding-right: 14px; text-align: right; color: #3E4B70; user-select: none; }
.ln.add { color: var(--green); background: rgba(57, 255, 136, 0.08); }
.k { color: #FF7AB6; } .f { color: #7FA8FF; } .s { color: #FFD580; } .t { color: #5EE0C8; } .cm { color: #56648A; font-style: italic; }
.code-status { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.code-status .live-dot { margin: 0; }

.term { background: #0A1128; padding: 16px 18px; font: 13.5px/1.9 var(--font-mono); color: #C9D3EA; min-height: 250px; }
.tl { opacity: 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.flow-panel:not([hidden]) .tl { animation: fadeLine 0.25s forwards; animation-delay: calc(0.2s + var(--i, 0) * 0.55s); }
.tl:nth-child(2) { --i: 1; } .tl:nth-child(3) { --i: 2; } .tl:nth-child(4) { --i: 3; } .tl:nth-child(5) { --i: 4; } .tl:nth-child(6) { --i: 5; } .tl:nth-child(7) { --i: 6; } .tl:nth-child(8) { --i: 7; }
@keyframes fadeLine { to { opacity: 1; } }
.tl .p { color: var(--green); }
.tl.ok { color: #BFF5D4; }
.tl.err { color: var(--red); }
.tl.info { color: var(--amber); }
.tl.strong { color: var(--green); font-weight: 600; margin-top: 4px; }
.tl .d { color: #56648A; }
.cref { margin-left: auto; font-size: 11px; padding: 0 7px; border-radius: 5px; background: rgba(57, 255, 136, 0.1); color: var(--green); }
.tl.err .cref { background: rgba(255, 107, 122, 0.12); color: var(--red); }

.pr-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.pr-title span { color: var(--text-3); font-weight: 500; }
.pr-sub { margin-top: 6px; color: var(--text-3); font-size: 13.5px; }
.pr-sub .add { color: var(--green); } .pr-sub .del { color: var(--red); }
.pr-checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pr-checks span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 8px; background: rgba(57, 255, 136, 0.07); border: 1px solid rgba(57, 255, 136, 0.2); font-size: 13px; }
.pr-checks .ic { color: var(--green); stroke-width: 2.6; }
.pr-criteria { margin-top: 14px; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--green-soft); border: 1px solid var(--green-line); font-size: 14.5px; }
.pr-criteria .ic { color: var(--green); }
.pr-criteria b { color: var(--green); }

/* ---------- Product tour ---------- */
.tour-tabs { display: flex; gap: 6px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 28px; }
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tab { flex: none; padding: 9px 14px; border-radius: 9px; border: 0; background: transparent; color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.tour-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.tour-tab.is-active { background: var(--green); color: var(--navy); font-weight: 600; }
.tour-body { display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: center; }
.tour-count { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }
.tour-count b { color: var(--green); font-weight: 600; }
.tour-copy h3 { font-size: 28px; margin: 12px 0 12px; }
.tour-copy p { color: var(--text-2); margin-bottom: 20px; }
.tour-nav { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.tour-nav .btn { margin-left: 4px; }
.tour-copy.is-swapping { animation: panelIn 0.45s var(--ease); }
.shot-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.tour-shot img { transition: opacity 0.35s, transform 0.6s var(--ease); }
.tour-shot img.is-loading { opacity: 0.25; }
.shot-btn:hover img { transform: scale(1.01); }

/* ---------- Agents configurator ---------- */
.team { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; }
.flow > *, .tour-body > *, .team > *, .integ > *, .faq-wrap > *, .arch > *, .split-grid > * { min-width: 0; }
.team-side { display: grid; gap: 8px; align-content: start; }
.team-roster { display: grid; gap: 8px; }
.role {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.role:hover { border-color: var(--line-2); transform: translateX(2px); }
.role[aria-selected='true'] { border-color: var(--green-line); background: var(--green-soft); }
.role .ava { width: 40px; height: 40px; border-radius: 11px; }
.team-tip { margin-top: 6px; padding: 16px 18px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--text-2); font-size: 14px; }
.team-tip b { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14.5px; margin-bottom: 6px; }
.team-tip b .ic { color: var(--green); }
.team-tip p + p { margin-top: 6px; }
.team-tip .mtag { font-size: 12px; }
.role b { display: block; font-size: 15px; }
.role small { color: var(--text-3); font-size: 12.5px; }
.role-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mtag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.m-opus { color: var(--opus); background: rgba(183, 156, 255, 0.12); }
.m-sonnet { color: var(--sonnet); background: rgba(127, 168, 255, 0.12); }
.m-haiku { color: var(--haiku); background: rgba(94, 224, 200, 0.12); }
.ebars { display: inline-flex; gap: 2px; align-items: flex-end; }
.ebars i { width: 4px; height: 10px; border-radius: 1px; background: rgba(255, 255, 255, 0.14); }
.ebars i.on { background: var(--green); }
.ava-orch { background: linear-gradient(135deg, #1C2A52, #3A506B); color: var(--green); border: 1px solid var(--green-line); }
.ava-plan { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
.ava-dev { background: linear-gradient(135deg, #2563EB, #60A5FA); }
.ava-review { background: linear-gradient(135deg, #DB2777, #F472B6); }
.ava-docs { background: linear-gradient(135deg, #D97706, #FBBF24); }

.team-config { border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(180deg, #121E40, #0F1834); padding: 26px; }
.cfg-head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cfg-head .ava { width: 52px; height: 52px; border-radius: 14px; }
.cfg-head .ava .ic { width: 24px; height: 24px; }
.cfg-head h3 { font-size: 22px; }
.cfg-head p { color: var(--text-2); font-size: 14.5px; margin-top: 2px; }
.cfg-group { margin-top: 22px; }
.cfg-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.model-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.model-opt { text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); transition: border-color 0.2s, background 0.2s; }
.model-opt b { display: block; font-family: var(--font-display); font-size: 18px; }
.model-opt small { color: var(--text-3); font-size: 13px; }
.model-opt[data-model='opus'] b { color: var(--opus); }
.model-opt[data-model='sonnet'] b { color: var(--sonnet); }
.model-opt[data-model='haiku'] b { color: var(--haiku); }
.model-opt:hover { border-color: rgba(255, 255, 255, 0.3); }
.model-opt[aria-pressed='true'] { border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.effort-seg { display: inline-grid; grid-template-columns: repeat(4, 1fr); padding: 4px; gap: 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); width: 100%; max-width: 460px; }
.effort-seg button { padding: 9px 10px; border-radius: 9px; border: 0; background: transparent; color: var(--text-2); font-weight: 600; font-size: 14px; transition: background 0.2s, color 0.2s; }
.effort-seg button:hover { color: var(--text); }
.effort-seg button[aria-pressed='true'] { background: var(--green); color: var(--navy); }
.cfg-row { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.stepper button { width: 40px; height: 40px; border: 0; background: rgba(255, 255, 255, 0.03); font-size: 18px; color: var(--text-2); }
.stepper button:hover:not(:disabled) { color: var(--green); background: var(--green-soft); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper output { width: 46px; text-align: center; font: 600 16px var(--font-mono); }
.cfg-meters { display: grid; gap: 10px; }
.meter { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; font-size: 13.5px; color: var(--text-2); }
.meter-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 50%; border-radius: 4px; background: linear-gradient(90deg, #1BC5A4, var(--green)); transition: width 0.6s var(--ease); }
.meter-bar.cost i { background: linear-gradient(90deg, #FFC857, #FF8A5B); }
.cfg-summary { margin-top: 24px; border-radius: 12px; border: 1px solid var(--line); background: #0A1128; overflow: hidden; }
.cfg-summary-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 13px; color: var(--text-3); border-bottom: 1px solid var(--line); }
.cfg-summary pre { margin: 0; padding: 14px; font: 13px/1.75 var(--font-mono); color: #C9D3EA; overflow-x: auto; }
.cfg-summary .y-key { color: var(--text-3); }
.cfg-summary .y-role { color: var(--text); }
.cfg-summary .y-opus { color: var(--opus); }
.cfg-summary .y-sonnet { color: var(--sonnet); }
.cfg-summary .y-haiku { color: var(--haiku); }
.cfg-summary .y-hl { display: inline-block; width: calc(100% + 28px); margin: 0 -14px; padding: 0 14px; background: rgba(57, 255, 136, 0.1); box-shadow: inset 2px 0 0 var(--green); }
.cfg-summary .y-off { color: #4A5678; text-decoration: line-through; }

/* ---------- Integrations ---------- */
.integ { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.integ .section-head { margin-bottom: 32px; }
.provider-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.provider { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: rgba(255, 255, 255, 0.02); }
.provider-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.provider-head .ic { width: 26px; height: 26px; }
.provider-head .gitlab { color: #FC6D26; }
.provider-head h3 { font-size: 20px; }
.provider .ticks li { font-size: 14.5px; }
.guardrails { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.guardrails li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.guardrails .ic { color: var(--green); }

.git-flow { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 20px; flex-wrap: nowrap; }
.gf-node { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font: 500 12.5px var(--font-mono); white-space: nowrap; }
.gf-node .ic { width: 14px; height: 14px; }
.gf-wheel .ic { color: var(--green); stroke-width: 3; }
.gf-done { border-color: var(--green-line); color: var(--green); background: var(--green-soft); }
.gf-line { flex: 1; min-width: 14px; max-width: 46px; height: 2px; background: repeating-linear-gradient(90deg, var(--green) 0 6px, transparent 6px 11px); background-size: 22px 2px; animation: dash 1s linear infinite; opacity: 0.7; }
@keyframes dash { to { background-position: 22px 0; } }

.pr-card { border-radius: var(--radius); border: 1px solid var(--line-2); background: #0F1834; box-shadow: var(--shadow-lg); overflow: hidden; }
.pr-card header { padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.pr-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--green); color: var(--navy); font-size: 13px; font-weight: 700; }
.pr-card h3 { font-size: 22px; margin: 12px 0 6px; }
.pr-card h3 span { color: var(--text-3); font-weight: 500; }
.pr-card header p { color: var(--text-3); font-size: 13.5px; }
.pr-card header p b { color: var(--text-2); }
.pr-card header code { white-space: nowrap; }
.pr-body { padding: 18px 22px 20px; }
.pr-body h4 { font-size: 15px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.pr-body > p { color: var(--text-2); font-size: 14.5px; margin-bottom: 18px; }
.pr-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pr-list li { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px; font-size: 14px; }
.pr-list .ic { color: var(--green); stroke-width: 2.6; }
.pr-list code { font-size: 11.5px; color: var(--text-3); background: rgba(255, 255, 255, 0.05); }
.pr-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.pr-foot > span:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--green); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature, .who-card {
  position: relative; padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
  overflow: hidden;
}
.feature::before, .who-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(57, 255, 136, 0.1), transparent 60%);
}
.feature:hover, .who-card:hover { border-color: var(--green-line); transform: translateY(-3px); }
.feature:hover::before, .who-card:hover::before { opacity: 1; }
.f-ic { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); border: 1px solid var(--green-line); color: var(--green); margin-bottom: 18px; }
.f-ic .ic { width: 21px; height: 21px; }
.feature h3, .who-card h3 { position: relative; font-size: 18.5px; margin-bottom: 8px; }
.feature p, .who-card p { position: relative; color: var(--text-2); font-size: 14.5px; }

/* ---------- AI workflow ---------- */
.arch { display: grid; grid-template-columns: 1fr 44px 1.2fr 44px 1.2fr 44px 1fr; align-items: center; gap: 0; margin-bottom: 22px; }
.arch-col { display: grid; gap: 14px; }
.arch-box { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px; background: var(--surface); text-align: center; display: grid; justify-items: center; gap: 6px; }
.arch-box b { font-family: var(--font-display); font-size: 17px; }
.arch-box small { color: var(--text-3); font-size: 13px; line-height: 1.5; }
.arch-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); color: var(--text); margin-bottom: 4px; }
.arch-ic .ic { width: 22px; height: 22px; }
.arch-box-core { padding: 30px 22px; border-color: var(--green-line); background: radial-gradient(120% 90% at 50% 0%, rgba(57, 255, 136, 0.14), var(--surface) 70%); box-shadow: 0 0 60px -20px rgba(57, 255, 136, 0.45); }
.arch-box-core .arch-ic { background: var(--green); color: var(--navy); }
.arch-box-core .arch-ic .ic { stroke-width: 3; }
.arch-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.arch-chips span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); background: rgba(0, 0, 0, 0.2); }
.arch-link { height: 2px; position: relative; background: repeating-linear-gradient(90deg, var(--green-line) 0 6px, transparent 6px 11px); }
.arch-link span { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: travel 2.4s linear infinite; }
.arch-link:nth-child(4) span { animation-delay: -0.8s; }
.arch-link:nth-child(6) span { animation-delay: -1.6s; }
.arch-step { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.arch-box-core .arch-step { color: var(--green); }
.arch-box .mtag { margin-top: 2px; }
.arch-agents { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; width: 100%; }
.arch-agents li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--line); font-size: 14px; text-align: left; }
.arch-agents .ava { width: 28px; height: 28px; border-radius: 8px; }
.arch-agents .ava .ic { width: 15px; height: 15px; }
.arch-loop { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--amber); }
.arch-out { border-color: var(--green-line); }
.arch-out .arch-ic { background: var(--green-soft); color: var(--green); }
.arch-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto 32px; max-width: 900px; color: var(--text-2); font-size: 15px; text-align: center; }
.arch-note .ic { color: var(--green); }
@keyframes travel { from { left: 0; } to { left: calc(100% - 8px); } }
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stack-item { padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.stack-item { padding: 22px; }
.stack-item .f-ic { width: 40px; height: 40px; margin-bottom: 14px; }
.stack-item b { display: block; font-family: var(--font-display); font-size: 17px; color: var(--text); margin-bottom: 6px; }
.stack-item span { color: var(--text-2); font-size: 14px; }

/* ---------- Who ---------- */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---------- Roadmap ---------- */
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.roadmap::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: linear-gradient(90deg, var(--green) 0%, var(--green) 14%, var(--line-2) 30%); }
.rm { position: relative; padding-top: 34px; }
.rm::before { content: ''; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); border: 2px solid var(--line-2); }
.rm.is-now::before { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 6px rgba(57, 255, 136, 0.15); animation: pulse 2s infinite; }
.rm-phase { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.rm-status { display: inline-block; margin: 8px 0 14px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-3); }
.rm.is-now .rm-status { color: var(--green); border-color: var(--green-line); background: var(--green-soft); }
.rm ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rm ul li { color: var(--text-2); font-size: 14.5px; padding-left: 16px; position: relative; }
.rm ul li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 2px; background: var(--line-2); }
.rm.is-now ul li::before { background: var(--green); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.02); transition: border-color 0.2s, background 0.2s; }
.faq details[open] { border-color: var(--green-line); background: rgba(57, 255, 136, 0.04); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--text-3); transition: transform 0.25s var(--ease), color 0.2s; }
.faq details[open] summary .ic { transform: rotate(180deg); color: var(--green); }
.faq details p { padding: 0 20px 20px; color: var(--text-2); font-size: 15px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand p { color: var(--text-3); margin-top: 12px; max-width: 300px; font-size: 14.5px; }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-links div { display: grid; gap: 10px; align-content: start; }
.footer-links b { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.footer-links a { color: var(--text-3); font-size: 14.5px; transition: color 0.2s; }
.footer-links a:hover { color: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13.5px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 24px; background: rgba(5, 9, 22, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn 0.25s; }
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 14px; min-width: 0; }
.lb-figure img { max-height: 84vh; width: auto; max-width: 100%; border-radius: 12px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line-2); }
.lb-figure figcaption { color: var(--text-2); font-size: 15px; text-align: center; }
.lb-close { position: absolute; top: 18px; right: 18px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav-links a { padding: 8px 9px; font-size: 14px; }
  .split-grid { grid-template-columns: 1fr 1fr; }
  .split-arrow { display: none; }
  .split-card-ai { grid-column: span 2; order: -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 280px 1fr; }
  .tour-body { grid-template-columns: minmax(0, 1fr); }
  .tour-copy { display: grid; grid-template-columns: 1fr auto; column-gap: 32px; align-items: start; }
  .tour-copy > * { grid-column: 1; }
  .tour-copy .tour-nav { grid-column: 2; grid-row: 1 / span 4; margin: 0; align-self: center; }
  .team { grid-template-columns: minmax(0, 1fr); }
  .team-roster { grid-template-columns: repeat(3, 1fr); }
  .integ { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .arch { grid-template-columns: 1fr; gap: 0; }
  .arch-link { width: 2px; height: 36px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--green-line) 0 6px, transparent 6px 11px); }
  .arch-link span { left: -3px; animation-name: travelY; }
  .arch-col { width: min(520px, 100%); margin: 0 auto; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .fc-goal { left: -12px; }
  .fc-pr { left: -12px; }
  .fc-agent { right: -12px; }
}
@keyframes travelY { from { top: 0; } to { top: calc(100% - 8px); } }

@media (max-width: 960px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; background: rgba(11, 19, 43, 0.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav-links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { padding: 12px; font-size: 16px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav.menu-open { background: rgba(11, 19, 43, 0.97); }

  .numbers-grid { grid-template-columns: repeat(3, 1fr); }
  .num:nth-child(4) { border-left: 0; }
  .num:nth-child(n + 4) { border-top: 1px solid var(--line); }

  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-steps { display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; }
  .flow-steps::-webkit-scrollbar { display: none; }
  .flow-steps li { flex: none; scroll-snap-align: start; }
  .flow-step { grid-template-columns: 34px auto; padding: 10px 14px 10px 10px; border-color: var(--line); }
  .flow-num, .flow-txt small { display: none; }
  .flow-ic { width: 34px; height: 34px; }
  .flow-stage { min-height: 0; }

  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .roadmap { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .roadmap::before { display: none; }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .hero { padding-top: calc(var(--nav-h) + 44px); }
  .hero-visual { margin-top: 44px; }
  .hero-browser { transform: none; }
  .pill-long { display: none; }
  .pill-short { display: inline; }
  .float-card { display: none; }
  .fc-pr { display: block; position: relative; left: auto; top: auto; width: auto; margin: -28px 16px 0; animation: none; }
  .browser-bar { height: 30px; }
  .dots i { width: 9px; height: 9px; }
  .tab-title { font-size: 11px; }
  .numbers { padding-top: 40px; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .num { padding: 20px 14px; gap: 12px; }
  .num b { font-size: 40px; }
  .num + .num { border-left: 0; }
  .num:nth-child(even) { border-left: 1px solid var(--line); }
  .num:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .num:last-child { grid-column: span 2; justify-content: center; }
  .split-grid { grid-template-columns: 1fr; }
  .split-card-ai { grid-column: auto; }
  .split-card { padding: 22px; }
  .features, .who, .stack-grid, .provider-cards { grid-template-columns: 1fr; }
  .arch-note { align-items: flex-start; justify-content: flex-start; text-align: left; }
  .arch-note .ic { margin-top: 3px; }
  .guardrails { grid-template-columns: 1fr; }
  .tour-copy { display: block; }
  .tour-copy .tour-nav { margin-top: 20px; }
  .team-roster { grid-template-columns: 1fr; }
  .team-config { padding: 18px; }
  .model-options { grid-template-columns: 1fr; }
  .model-opt { display: flex; align-items: baseline; gap: 10px; }
  .cfg-row { grid-template-columns: 1fr; gap: 20px; }
  .meter { grid-template-columns: 110px 1fr; }
  .subtasks li { grid-template-columns: 44px 1fr; row-gap: 4px; }
  .subtasks .st-agent { grid-column: 2; justify-self: start; }
  .subtasks .st-c { display: none; }
  .criteria li { display: grid; grid-template-columns: 24px 1fr; gap: 4px 10px; }
  .criteria .c-tag { grid-column: 2; justify-self: start; margin-left: 0; }
  .git-flow { flex-wrap: wrap; gap: 6px; }
  .gf-line { display: none; }
  .pr-list li { grid-template-columns: 20px 1fr; }
  .pr-list code { grid-column: 2; justify-self: start; }
  .roadmap { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 1fr; padding: 60px 12px 12px; }
  .lb-prev, .lb-next { display: none; }
  .footer-links { gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
