/* ============================================================
   CFLABS CLOUD — design system
   ============================================================ */
:root {
  --bg: #06080c;
  --bg-2: #0a0d13;
  --surface: #0d1119;
  --surface-2: #10151f;
  --line: rgba(226, 236, 214, 0.09);
  --line-strong: rgba(226, 236, 214, 0.16);
  --text: #eef2e8;
  --muted: #8f97a5;
  --faint: #5d6470;
  --accent: #c8f04b;
  --accent-dim: rgba(200, 240, 75, 0.12);
  --accent-glow: rgba(200, 240, 75, 0.35);
  --warn: #f0b24b;
  --ok: #7dd97d;
  --font-display: "Space Grotesk", sans-serif;
  --font-serif: "Instrument Serif", serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --radius: 14px;
  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

::selection { background: var(--accent); color: #0a0d05; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #232a36; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #2e3745; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* film grain */
.noise {
  position: fixed; inset: -50%; z-index: 999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.032;
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.5%); }
  50% { transform: translate(1.5%, -2%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(2%, 2%); }
}

.cursor-glow {
  position: fixed; z-index: 1; pointer-events: none;
  width: 640px; height: 640px; left: 0; top: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(200, 240, 75, 0.05) 0%, transparent 62%);
  opacity: 0; transition: opacity 0.6s;
}
body.glow-on .cursor-glow { opacity: 1; }

/* ============ shared ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }

.section { position: relative; padding: 140px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 28px;
}
.eyebrow .tick {
  width: 22px; height: 1.5px; background: var(--accent); display: inline-block;
}
.eyebrow.center { justify-content: center; display: flex; }

.mono-label {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.18em; color: var(--faint);
}
.mono-label.accent { color: var(--accent); }

.section-head { max-width: 720px; margin-bottom: 72px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 62px);
  font-weight: 500; line-height: 1.04; letter-spacing: -0.025em;
}
.section-title em { color: var(--accent); letter-spacing: -0.01em; }
.section-sub { margin-top: 24px; color: var(--muted); font-size: 17px; max-width: 620px; }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  padding: 14px 26px; border-radius: 100px;
  border: 1px solid transparent; position: relative;
  transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s, color 0.35s, box-shadow 0.35s;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--accent); color: #0b0e05;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px -6px var(--accent-glow);
}
.btn-ghost {
  border-color: var(--line-strong); color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: rgba(200,240,75,0.4); background: var(--accent-dim); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-nav { padding: 10px 20px; font-size: 13.5px; background: var(--accent); color: #0b0e05; }
.btn-nav:hover { box-shadow: 0 6px 30px -6px var(--accent-glow); transform: translateY(-1px); }

.play-ring {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: inline-flex;
  align-items: center; justify-content: center; color: var(--accent);
}
.play-ring svg { width: 9px; height: 11px; margin-left: 1px; }

.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); display: inline-block; flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,240,75,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(200,240,75,0); }
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 8, 12, 0.78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 40px;
  height: 72px; display: flex; align-items: center; gap: 40px;
}
.nav-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark { width: 26px; height: 26px; color: var(--accent); }
.brand-word {
  font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
}
.brand-word em { color: var(--muted); font-size: 15px; margin-left: 4px; font-family: var(--font-display); font-style: normal; font-weight: 500; }

.nav-links { display: flex; gap: 32px; margin-left: 12px; }
.nav-links a {
  font-size: 14px; color: var(--muted); font-weight: 500;
  transition: color 0.25s; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--accent); transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em;
}
.nav-burger { display: none; background: none; border: 0; width: 32px; height: 32px; position: relative; }
.nav-burger span { position: absolute; left: 6px; right: 6px; height: 1.6px; background: var(--text); transition: 0.3s var(--ease); }
.nav-burger span:first-child { top: 11px; }
.nav-burger span:last-child { bottom: 11px; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 0; overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-fade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 70% 40%, transparent 30%, var(--bg) 100%),
    linear-gradient(to bottom, rgba(6,8,12,0.3), transparent 30%, transparent 65%, var(--bg) 98%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto; padding: 0 40px; width: 100%;
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: center;
}
.hero-inner > *, .arch-grid > *, .control-grid > *, .agent-row > * { min-width: 0; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 4.4vw, 58px);
  font-weight: 500; line-height: 1.06; letter-spacing: -0.03em;
  margin: 6px 0 28px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); animation: riseUp 1.1s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.24s; }
.hero-title em { color: var(--accent); }
@keyframes riseUp { to { transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(18px); animation: fadeUp 0.9s var(--ease) forwards; }
.hero-copy .reveal:nth-of-type(2) { animation-delay: 0.4s; }
.hero-copy .reveal:nth-of-type(3) { animation-delay: 0.55s; }
.hero-copy .reveal:nth-of-type(4) { animation-delay: 0.7s; }
.hero-copy .eyebrow.reveal { animation-delay: 0s; }
.hero-sub.reveal { animation-delay: 0.4s; }
.hero-ctas.reveal { animation-delay: 0.55s; }
.hero-proof.reveal { animation-delay: 0.7s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-sub { color: var(--muted); font-size: 17.5px; max-width: 540px; margin-bottom: 38px; }

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-proof { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.proof-item { display: flex; flex-direction: column; gap: 2px; }
.proof-item b { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--text); }
.proof-item span { font-size: 12.5px; color: var(--faint); }
.proof-sep { width: 1px; height: 26px; background: var(--line-strong); }

/* console */
.hero-console {
  background: rgba(10, 13, 19, 0.82);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(200,240,75,0.03) inset;
  overflow: hidden;
  animation-delay: 0.5s;
  justify-self: end; width: 100%; max-width: 460px;
}
.console-head {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
}
.console-dots { display: flex; gap: 6px; }
.console-dots i { width: 9px; height: 9px; border-radius: 50%; background: #262d3a; display: block; }
.console-dots i:first-child { background: rgba(240,98,98,0.55); }
.console-dots i:nth-child(2) { background: rgba(240,178,75,0.55); }
.console-dots i:last-child { background: rgba(125,217,125,0.55); }
.console-title { font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: 0.06em; }
.console-badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; color: var(--accent);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.console-body { padding: 16px 18px 8px; min-height: 264px; }
.feed { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.feed li {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.5;
  color: var(--muted); display: flex; gap: 9px; align-items: baseline;
  opacity: 0; transform: translateY(6px);
  animation: feedIn 0.45s var(--ease) forwards;
}
@keyframes feedIn { to { opacity: 1; transform: translateY(0); } }
.feed li .f-time { color: var(--faint); font-size: 10.5px; flex-shrink: 0; }
.feed li .f-tag { color: var(--accent); flex-shrink: 0; }
.feed li.warn .f-tag { color: var(--warn); }
.feed li.human .f-tag { color: #8ab4f8; }
.feed li.done .f-tag { color: var(--ok); }
.feed-cursor-line {
  display: flex; align-items: center; gap: 8px; padding: 10px 0 12px;
  font-family: var(--font-mono); font-size: 12px; color: var(--faint);
}
.feed-prompt { color: var(--accent); }
.feed-caret {
  width: 7px; height: 15px; background: var(--accent); display: inline-block;
  animation: blink 1s steps(1) infinite; opacity: 0.85;
}
@keyframes blink { 50% { opacity: 0; } }
.console-foot {
  display: flex; gap: 24px; padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); letter-spacing: 0.04em;
}
.console-foot b { color: var(--text); font-weight: 500; }

/* marquee */
.hero-marquee {
  position: relative; z-index: 2; margin-top: auto;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 20px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 44px; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.28em; color: var(--faint); white-space: nowrap;
}
.marquee-track i { color: rgba(200,240,75,0.4); font-size: 7px; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SHIFT ============ */
.shift { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shift-grid {
  display: grid; grid-template-columns: 1fr 80px 1fr; gap: 0; align-items: stretch;
}
.shift-col {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 36px; background: var(--surface);
}
.shift-col-head { margin-bottom: 22px; }
.shift-col ul { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.shift-col li {
  font-size: 15.5px; color: var(--muted); padding-left: 24px; position: relative; line-height: 1.5;
}
.shift-old li::before {
  content: "✕"; position: absolute; left: 0; top: 1px; color: var(--faint); font-size: 12px;
}
.shift-new { border-color: rgba(200,240,75,0.25); background: linear-gradient(160deg, rgba(200,240,75,0.05), var(--surface) 45%); }
.shift-new li { color: #c9cfbb; }
.shift-new li::before {
  content: "→"; position: absolute; left: 0; top: 0; color: var(--accent); font-size: 13px;
}
.shift-arrow { display: flex; align-items: center; justify-content: center; color: var(--accent); }
.shift-arrow svg { width: 44px; opacity: 0.8; }
.shift-foot {
  margin-top: 44px; font-size: 19px; color: var(--muted); max-width: 760px; line-height: 1.6;
}
.shift-foot b { color: var(--text); font-weight: 550; }

/* ============ RUNTIME ============ */
.pipeline { position: relative; margin-bottom: 80px; }
.pipeline-wires {
  position: absolute; top: 0; left: 0; width: 100%; height: 44px;
  overflow: visible; z-index: 0;
}
.pipeline-wires .wire {
  stroke: var(--line-strong); stroke-width: 1.5; fill: none;
}
.pipeline-wires .wire-glow {
  stroke: var(--accent); stroke-width: 1.5; fill: none; opacity: 0.9;
  stroke-dasharray: 60 1140;
  animation: wireflow 4s linear infinite;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}
@keyframes wireflow { to { stroke-dashoffset: -1200; } }

.pipeline-stages {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stage { text-align: left; }
.stage-node {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 20px;
  box-shadow: 0 0 0 8px var(--bg);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.stage:hover .stage-node {
  border-color: rgba(200,240,75,0.5);
  box-shadow: 0 0 0 8px var(--bg), 0 0 24px -2px var(--accent-glow);
  transform: scale(1.06);
}
.stage-node svg { width: 20px; height: 20px; }
.stage h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 9px; letter-spacing: -0.01em; }
.stage p { font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.stage-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.stage-tags span {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em;
  padding: 4px 9px; border-radius: 5px; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255,255,255,0.015);
}

.runtime-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.r-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 26px 26px 28px;
  transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s;
}
.r-card:hover { transform: translateY(-4px); border-color: rgba(200,240,75,0.28); background: var(--surface-2); }
.r-card-top { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.r-num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; }
.r-card h4 { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.r-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ============ AGENTS ============ */
.agents { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.agent-rows { display: flex; flex-direction: column; }
.agent-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding: 44px 0; border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease);
}
.agent-row:last-child { border-bottom: 0; }
.agent-row:hover { padding-left: 12px; }
.agent-idx {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.16em; display: block; margin-bottom: 12px;
}
.agent-row h3 {
  font-family: var(--font-display); font-size: 26px; font-weight: 550;
  letter-spacing: -0.02em; margin-bottom: 10px;
}
.agent-row-left p { color: var(--muted); font-size: 15.5px; max-width: 480px; }
.mini-log {
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 14px 40px -18px rgba(0,0,0,0.6);
}
.log-line {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.log-line i { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; font-style: normal; }
.log-line i.ok { background: var(--ok); }
.log-line i.act { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.log-line i.warn { background: var(--warn); }
.log-line:has(i.act) { color: #c9cfbb; }

/* ============ ARCHITECTURE ============ */
.arch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.arch-stack { display: flex; flex-direction: column; }
.arch-layer {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 26px 30px;
}
.layer-top { opacity: 0.75; }
.layer-mid {
  border-color: rgba(200,240,75,0.35);
  background: linear-gradient(150deg, rgba(200,240,75,0.07), var(--surface) 55%);
  box-shadow: 0 24px 60px -30px var(--accent-glow);
}
.layer-bot { opacity: 0.75; }
.layer-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--faint); display: block; margin-bottom: 8px;
}
.layer-tag.accent { color: var(--accent); }
.arch-layer h4 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.arch-layer p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.layer-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.layer-chips span {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 3px 9px;
}
.layer-mid .layer-chips span { border-color: rgba(200,240,75,0.25); color: #c9cfbb; }
.arch-connector { display: flex; justify-content: center; gap: 18px; padding: 10px 0; }
.arch-connector i {
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: 0.7;
  animation: connflow 1.6s ease-in-out infinite;
}
.arch-connector i:nth-child(2) { animation-delay: 0.2s; }
.arch-connector i:nth-child(3) { animation-delay: 0.4s; }
@keyframes connflow { 0%, 100% { opacity: 0.2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(3px); } }

.arch-code {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #090c11; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
}
.code-body {
  padding: 22px 24px 26px; min-height: 380px;
  font-family: var(--font-mono); font-size: 12.8px; line-height: 1.75;
  color: #aeb8c4; white-space: pre-wrap; word-break: break-word;
}
.code-body .k { color: #8ab4f8; }
.code-body .s { color: var(--accent); }
.code-body .c { color: var(--faint); }
.code-body .n { color: var(--warn); }
.code-caret { margin-left: 2px; vertical-align: -2px; }

/* ============ CONTROL ============ */
.control { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.control-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }

.approval-card {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  box-shadow: 0 30px 70px -25px rgba(0,0,0,0.7);
  transition: border-color 0.4s;
}
.approval-card.resolved { border-color: rgba(125,217,125,0.4); }
.approval-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
  background: rgba(240,178,75,0.05);
}
.approval-timer { font-family: var(--font-mono); font-size: 12px; color: var(--warn); }
.approval-body { padding: 22px; }
.approval-agent {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--accent);
  letter-spacing: 0.06em; margin-bottom: 12px;
}
.approval-desc { font-size: 15px; color: #c9cfbb; line-height: 1.55; margin-bottom: 16px; }
.approval-desc b { color: var(--text); }
.approval-meta { display: flex; gap: 24px; }
.approval-meta span { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.approval-meta b { color: var(--muted); font-weight: 500; margin-left: 6px; }
.approval-actions {
  display: flex; gap: 10px; padding: 18px 22px; border-top: 1px solid var(--line);
}
.ap-btn {
  flex: 1; padding: 11px 0; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  font-family: var(--font-display); border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.02); color: var(--muted);
  transition: all 0.25s var(--ease);
}
.ap-approve { background: var(--accent); color: #0b0e05; border-color: var(--accent); }
.ap-approve:hover { box-shadow: 0 6px 28px -6px var(--accent-glow); transform: translateY(-1px); }
.ap-btn:not(.ap-approve):hover { border-color: var(--line-strong); color: var(--text); background: rgba(255,255,255,0.05); }
.approval-done {
  display: none; align-items: center; gap: 10px; padding: 18px 22px;
  border-top: 1px solid var(--line); color: var(--ok);
  font-family: var(--font-mono); font-size: 12.5px;
}
.approval-done svg { width: 17px; height: 17px; }
.approval-done.show { display: flex; animation: feedIn 0.5s var(--ease); }

.control-points { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.c-point h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.c-point h4::before {
  content: ""; display: block; width: 26px; height: 2px; background: var(--accent);
  margin-bottom: 14px; border-radius: 2px;
}
.c-point p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ============ VISION ============ */
.vision { overflow: hidden; text-align: center; padding: 180px 0; }
.vision-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vision-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.vision-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px); font-weight: 500;
  line-height: 1.05; letter-spacing: -0.025em; margin: 10px 0 30px;
}
.vision-title .line { display: block; overflow: hidden; }
.vision-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.vision-title.in .line > span { transform: translateY(0); }
.vision-title.in .line:nth-child(2) > span { transition-delay: 0.12s; }
.vision-title.in .line:nth-child(3) > span { transition-delay: 0.24s; }
.vision-title em { color: var(--accent); }
.vision-sub { color: var(--muted); font-size: 17px; max-width: 620px; margin-bottom: 64px; }
.vision-stats { display: flex; gap: 64px; flex-wrap: wrap; justify-content: center; }
.v-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.v-stat b {
  font-family: var(--font-display); font-size: 44px; font-weight: 550;
  letter-spacing: -0.02em; color: var(--text); line-height: 1;
}
.v-stat b.counter { min-width: 90px; }
.v-stat span { font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: 0.14em; text-transform: uppercase; }

/* ============ CTA ============ */
.cta { padding-top: 40px; }
.cta-box {
  position: relative; text-align: center; overflow: hidden;
  border: 1px solid rgba(200,240,75,0.22); border-radius: 22px;
  background:
    radial-gradient(ellipse 70% 90% at 50% 120%, rgba(200,240,75,0.09), transparent 60%),
    var(--surface);
  padding: 90px 60px;
}
.cta-glow {
  position: absolute; left: 50%; bottom: -160px; transform: translateX(-50%);
  width: 700px; height: 320px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(200,240,75,0.12), transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.cta-title {
  font-family: var(--font-display); font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 22px;
}
.cta-title em { color: var(--accent); }
.cta-sub { color: var(--muted); font-size: 16.5px; max-width: 540px; margin: 0 auto 42px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.cta-note { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: 0.1em; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 64px 0 48px; background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr; gap: 60px; align-items: start; }
.footer-brand p { margin-top: 16px; color: var(--faint); font-size: 13.5px; line-height: 1.6; }
.footer-cols { display: flex; gap: 80px; }
.f-col { display: flex; flex-direction: column; gap: 12px; }
.f-col h5 {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px;
}
.f-col a { font-size: 14px; color: var(--muted); transition: color 0.25s; width: fit-content; }
.f-col a:hover { color: var(--accent); }
.footer-meta { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; text-align: right; }
.footer-meta span:last-child { font-size: 12.5px; color: var(--faint); }

/* ============ scroll reveals ============ */
.will-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.will-reveal.in { opacity: 1; transform: translateY(0); }
.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-console { justify-self: start; max-width: 560px; }
  .pipeline-stages { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .pipeline-wires { display: none; }
  .runtime-cards { grid-template-columns: repeat(2, 1fr); }
  .arch-grid { grid-template-columns: 1fr; gap: 40px; }
  .control-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 48px; }
  .footer-meta { align-items: flex-start; text-align: left; grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .container { padding: 0 22px; }
  .section { padding: 90px 0; }
  .nav-inner { padding: 0 22px; }
  .nav-links, .nav-status { display: none; }
  .nav-burger { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 12px 22px 20px;
    background: rgba(6,8,12,0.97); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }
  .nav-links.open a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .hero { padding-top: 120px; }
  .hero-inner { padding: 0 22px; }
  .hero-title { font-size: clamp(34px, 9.5vw, 44px); animation: fadeUp 0.9s var(--ease) 0.1s both; }
  .hero-title .line { display: inline; overflow: visible; }
  .hero-title .line > span { display: inline; animation: none; transform: none; }
  .hero-ctas { gap: 12px; }
  .hero-proof { gap: 14px; }
  .btn-nav { padding: 9px 15px; font-size: 12.5px; }
  .nav-right { gap: 12px; }
  .shift-grid { grid-template-columns: 1fr; gap: 20px; }
  .shift-arrow { transform: rotate(90deg); padding: 4px 0; }
  .agent-row { grid-template-columns: 1fr; gap: 22px; padding: 36px 0; }
  .agent-row:hover { padding-left: 0; }
  .runtime-cards { grid-template-columns: 1fr; }
  .control-points { grid-template-columns: 1fr; }
  .vision { padding: 110px 0; }
  .vision-stats { gap: 36px; }
  .v-stat b { font-size: 34px; }
  .cta-box { padding: 60px 26px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { gap: 48px; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .hero-title .line > span, .reveal, .will-reveal { opacity: 1 !important; transform: none !important; }
  .vision-title .line > span { transform: none; }
  .marquee-track { animation: none; }
  .noise { animation: none; }
}
