:root {
  --l1-bg: #06080d;
  --l1-surface: #0d1119;
  --l1-surface-2: #121826;
  --l1-surface-3: #18202f;
  --l1-line: #1b2233;
  --l1-line-strong: #2a3346;
  --l1-text: #eaf0f7;
  --l1-text-muted: #8492a6;
  --l1-text-faint: #55617a;
  --l1-power: #ffb020;
  --l1-power-glow: rgba(255, 176, 32, 0.55);
  --l1-net: #35e0ff;
  --l1-net-glow: rgba(53, 224, 255, 0.5);
  --l1-good: #37e07a;
  --l1-accent-ink: #04222b;
  --l1-font: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --l1-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --l1-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--l1-font);
  background: var(--l1-bg);
  color: var(--l1-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.08; font-weight: 600; }
.mono { font-family: var(--l1-mono); }

/* film grain */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  mix-blend-mode: overlay;
}

.eyebrow {
  font-family: var(--l1-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--l1-net); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow .num { color: var(--l1-text-faint); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 7px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.2s var(--l1-ease), box-shadow 0.2s var(--l1-ease), background 0.2s;
}
.btn .arrow { transition: transform 0.2s var(--l1-ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
  background: var(--l1-net); color: var(--l1-accent-ink);
  box-shadow: 0 0 0 1px rgba(53,224,255,0.4), 0 8px 30px -8px var(--l1-net-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(53,224,255,0.6), 0 14px 40px -10px var(--l1-net-glow); }
.btn-ghost { background: transparent; border-color: var(--l1-line-strong); color: var(--l1-text); }
.btn-ghost:hover { border-color: var(--l1-net); color: var(--l1-net); }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px;
  backdrop-filter: blur(10px);
}
.nav::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,8,13,0.85), rgba(6,8,13,0)); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { width: 30px; height: 30px; display: block; flex: none; }
.brand-word { font-size: 18px; letter-spacing: -0.01em; }
.brand-word b { color: var(--l1-net); font-weight: 700; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--l1-text-muted); }
.nav-links a:hover { color: var(--l1-text); }
.nav-cta { margin-left: 4px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 96px 24px 80px; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.55; }
.hero-glow {
  position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(53,224,255,0.16), transparent 70%);
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; text-align: center; }
.hero-title { font-size: clamp(38px, 6.4vw, 76px); font-weight: 600; margin: 18px 0 0; letter-spacing: -0.035em; }
.hero-title .lit { color: var(--l1-net); position: relative; text-shadow: 0 0 30px var(--l1-net-glow); }
.hero-sub { max-width: 640px; margin: 22px auto 0; color: var(--l1-text-muted); font-size: clamp(15px, 1.7vw, 18px); }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 34px;
  padding: 9px 16px; border-radius: 999px; font-size: 12px; color: var(--l1-text-muted);
  background: var(--l1-surface); border: 1px solid var(--l1-line-strong);
}
.hero-chip .chip-val { color: var(--l1-net); font-weight: 700; }
.hero-chip .chip-sep { color: var(--l1-text-faint); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-net { background: var(--l1-net); box-shadow: 0 0 8px var(--l1-net); }
.dot-power { background: var(--l1-power); box-shadow: 0 0 8px var(--l1-power); }
.dot-good { background: var(--l1-good); box-shadow: 0 0 8px var(--l1-good); }

/* stats band */
.stats {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--l1-line); border: 1px solid var(--l1-line); border-radius: 12px; overflow: hidden;
}
.stat { background: var(--l1-surface); padding: 26px 20px; text-align: center; }
.stat-num { font-size: 30px; font-weight: 700; color: var(--l1-text); }
.stat-num span { color: var(--l1-net); }
.stat-label { font-size: 12px; color: var(--l1-text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }

/* sections */
.section { max-width: var(--maxw); margin: 0 auto; padding: 100px 24px 0; }
.section-head { max-width: 680px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin: 14px 0 0; }
.lede { color: var(--l1-text-muted); font-size: 17px; margin-top: 16px; }

/* pipeline flow */
.flow {
  list-style: none; display: flex; gap: 10px; margin-top: 40px; flex-wrap: wrap;
  counter-reset: none;
}
.flow-step {
  position: relative; flex: 1 1 auto; min-width: 118px;
  background: var(--l1-surface); border: 1px solid var(--l1-line); border-radius: 10px;
  padding: 16px 14px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.2s, transform 0.2s var(--l1-ease);
}
.flow-step:hover { transform: translateY(-3px); border-color: var(--l1-line-strong); }
.flow-i { font-size: 12px; color: var(--l1-text-faint); }
.flow-t { font-size: 14px; font-weight: 600; }
.flow-step.accent-net { border-color: rgba(53,224,255,0.5); box-shadow: 0 0 24px -10px var(--l1-net-glow); }
.flow-step.accent-net .flow-i { color: var(--l1-net); }
.flow-step.accent-power { border-color: rgba(255,176,32,0.5); box-shadow: 0 0 24px -10px var(--l1-power-glow); }
.flow-step.accent-power .flow-i { color: var(--l1-power); }

/* features */
.features { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 0; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 60px 0; border-top: 1px solid var(--l1-line);
}
.feature.reverse .feature-copy { order: 2; }
.feature h3 { font-size: clamp(24px, 3vw, 34px); margin: 16px 0 14px; }
.feature p { color: var(--l1-text-muted); font-size: 16px; }
.ticks { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 14px; color: var(--l1-text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 4px;
  background: rgba(53,224,255,0.12); border: 1px solid var(--l1-net);
}
.ticks li::after { content: ""; position: absolute; left: 4px; top: 9px; width: 5px; height: 3px; border-left: 2px solid var(--l1-net); border-bottom: 2px solid var(--l1-net); transform: rotate(-45deg); }
.feature-vis {
  background: linear-gradient(160deg, var(--l1-surface-2), var(--l1-surface));
  border: 1px solid var(--l1-line-strong); border-radius: 16px; padding: 18px;
  box-shadow: 0 24px 60px -30px #000;
}
.vis { width: 100%; height: auto; display: block; }

/* svg visual primitives */
.v-panel { fill: rgba(8,11,18,0.6); stroke: var(--l1-line); stroke-width: 1; }
.v-chip { fill: var(--l1-surface-3); stroke: var(--l1-line-strong); stroke-width: 1; }
.v-chip.v-net { fill: rgba(53,224,255,0.10); stroke: rgba(53,224,255,0.5); }
.v-chip.v-power { fill: rgba(255,176,32,0.10); stroke: rgba(255,176,32,0.5); }
.v-chip.v-good { fill: rgba(55,224,122,0.10); stroke: rgba(55,224,122,0.5); }
.v-bar { fill: var(--l1-surface-3); }
.v-ey { fill: var(--l1-text-faint); font-family: var(--l1-mono); font-size: 8.5px; letter-spacing: 0.1em; }
.v-num { fill: var(--l1-text); font-family: var(--l1-mono); font-size: 13px; font-weight: 700; }
.v-mono { font-family: var(--l1-mono); font-size: 9px; }
.v-dim { fill: var(--l1-text-faint); }
.v-net-t { fill: var(--l1-net); }
.v-power-t { fill: var(--l1-power); }
.v-good-t { fill: var(--l1-good); }
.v-arrow path { stroke: var(--l1-net); stroke-width: 2; fill: none; }
.v-grid-lines path { stroke: var(--l1-line-strong); stroke-width: 1; fill: none; opacity: 0.7; }
.v-nodes circle { fill: var(--l1-net); }
.v-nodes-lg circle { fill: var(--l1-net); }
.v-site-ring { fill: none; stroke: var(--l1-net); stroke-width: 1.5; opacity: 0.8; }
.v-site-dot { fill: var(--l1-power); }
.v-gauge-bg { fill: none; stroke: var(--l1-line-strong); stroke-width: 5; }
.v-gauge-fg { fill: none; stroke: var(--l1-good); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 138; stroke-dashoffset: 24; }
.v-gauge-num { fill: var(--l1-text); font-family: var(--l1-mono); font-size: 15px; font-weight: 700; text-anchor: middle; }
.v-path-a path { stroke: var(--l1-net); stroke-width: 2; fill: none; }
.v-path-b path { stroke: var(--l1-net); stroke-width: 2; fill: none; opacity: 0.4; stroke-dasharray: 5 4; }
.v-card { fill: var(--l1-surface-3); stroke: var(--l1-line); stroke-width: 1; }
.v-card-net { stroke: var(--l1-net); }
.v-card-good { fill: rgba(55,224,122,0.08); stroke: rgba(55,224,122,0.4); }
.v-avatars circle { fill: var(--l1-surface); stroke: var(--l1-net); stroke-width: 1.5; }
.v-rack-u rect { fill: var(--l1-surface-3); }
.v-led circle { fill: var(--l1-good); }
.v-track { fill: var(--l1-surface-3); }
.v-fill.v-good { fill: var(--l1-good); }
.v-fill.v-net { fill: var(--l1-net); }
.v-fill.v-power { fill: var(--l1-power); }
.v-good-fill { fill: rgba(55,224,122,0.15); stroke: var(--l1-good); stroke-width: 1.5; }
.v-check-mark { fill: none; stroke: var(--l1-good); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* why grid */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.why-card { background: var(--l1-surface); border: 1px solid var(--l1-line); border-radius: 12px; padding: 24px; transition: transform 0.2s var(--l1-ease), border-color 0.2s; }
.why-card:hover { transform: translateY(-4px); border-color: var(--l1-line-strong); }
.why-ic { font-size: 22px; color: var(--c, var(--l1-net)); line-height: 1; }
.why-card h4 { font-size: 16px; margin: 16px 0 8px; }
.why-card p { font-size: 13.5px; color: var(--l1-text-muted); }

/* cta */
.cta { position: relative; text-align: center; padding: 120px 24px 100px; margin-top: 100px; overflow: hidden; }
.cta-glow { position: absolute; inset: 0; z-index: 0; background: radial-gradient(closest-side at 50% 40%, rgba(53,224,255,0.12), transparent 65%); }
.cta h2 { position: relative; z-index: 1; font-size: clamp(30px, 5vw, 52px); }
.cta p { position: relative; z-index: 1; color: var(--l1-text-muted); margin: 16px 0 30px; font-size: 17px; }
.cta .btn { position: relative; z-index: 1; }

/* footer */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 60px;
  display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--l1-line);
  color: var(--l1-text-muted); font-size: 13px; flex-wrap: wrap;
}
.foot-tag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--l1-text-faint); }
.foot-copy { margin-left: auto; }
.footer a:hover { color: var(--l1-net); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--l1-ease), transform 0.7s var(--l1-ease); }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse .feature-copy { order: 0; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
