:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --panel: rgba(12, 20, 38, 0.62);
  --line: rgba(110, 200, 255, 0.18);
  --line-2: rgba(110, 200, 255, 0.35);
  --ink: #e6f1ff;
  --ink-2: #a9bbd6;
  --muted: #6f82a3;
  --cyan: #4de1ff;
  --cyan-2: #1aa7d6;
  --amber: #ffb347;
  --red: #ff5c7a;
  --green: #4dffb0;
  --glow: 0 0 18px rgba(77, 225, 255, 0.45), 0 0 2px rgba(77, 225, 255, 0.9);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: radial-gradient(1200px 700px at 70% -10%, rgba(30, 90, 160, 0.25), transparent 60%),
                    radial-gradient(900px 600px at -10% 40%, rgba(255, 179, 71, 0.06), transparent 60%);
}
a { color: inherit; }
.mono { font-family: var(--mono); letter-spacing: 0.08em; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }

#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.scanlines { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.06;
  background: repeating-linear-gradient(to bottom, #fff 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: rgba(77, 225, 255, 0.08); }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--amber)); box-shadow: var(--glow); }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(5, 7, 13, 0.85), rgba(5, 7, 13, 0.35)); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 14px/1 var(--mono); letter-spacing: 0.22em; }
.logo svg { width: 28px; height: 28px; fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(77,225,255,.6)); }
.logo circle { fill: var(--amber); stroke: none; }
.logo em { font-style: normal; color: var(--cyan); margin-left: 8px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--ink-2); font: 12px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; position: relative; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--cyan); transition: right .25s; box-shadow: var(--glow); }
.nav nav a:hover, .nav nav a.on { color: var(--ink); }
.nav nav a:hover::after, .nav nav a.on::after { right: 0; }

/* buttons */
.btn { --c: var(--cyan); position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; text-decoration: none;
  font: 600 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #031018; background: var(--c);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 0 24px rgba(77, 225, 255, 0.35); transition: transform .2s, box-shadow .2s, filter .2s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 0 40px rgba(77, 225, 255, 0.55); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--cyan), 0 0 24px rgba(77, 225, 255, 0.25); }
.btn.small { padding: 10px 14px; font-size: 11px; }
.btn.big { font-size: clamp(14px, 2.4vw, 18px); padding: 20px 28px; text-transform: none; letter-spacing: 0.04em; }

/* hero */
.hero { position: relative; z-index: 2; min-height: 100svh; display: grid; place-items: center; padding: 120px clamp(16px, 5vw, 64px) 80px; overflow: hidden; }
.hero-inner { max-width: 980px; text-align: center; will-change: transform, opacity; }
.tag { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--cyan); padding: 8px 14px; border: 1px solid var(--line); background: rgba(10, 20, 40, .5); margin: 0 0 28px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
h1 { font-size: clamp(42px, 8.4vw, 104px); line-height: 0.98; letter-spacing: -0.035em; }
h1 .line { display: block; }
h1 .accent { background: linear-gradient(90deg, var(--cyan), #a7f3ff 40%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(77,225,255,.25)); }
.lead { max-width: 640px; margin: 28px auto 0; font-size: clamp(17px, 2.1vw, 20px); color: var(--ink-2); }
.ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.hud-ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); pointer-events: none; left: 50%; top: 50%; will-change: transform; }
.hud-ring.r1 { width: min(78vw, 820px); aspect-ratio: 1; transform: translate(-50%, -50%); border-style: dashed; animation: spin 80s linear infinite; }
.hud-ring.r2 { width: min(56vw, 560px); aspect-ratio: 1; transform: translate(-50%, -50%); border-color: rgba(255, 179, 71, 0.14); border-top-color: rgba(255, 179, 71, 0.55); animation: spin 24s linear infinite reverse; }
@keyframes spin { to { rotate: 360deg; } }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); display: grid; justify-items: center; gap: 10px; }
.scroll-cue span { width: 1px; height: 40px; background: linear-gradient(var(--cyan), transparent); animation: drip 2s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* route line */
.route { position: absolute; left: 0; top: 0; width: 100%; z-index: 1; pointer-events: none; }
.route svg { width: 100%; height: 100%; overflow: visible; }
#route-path { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 7; }
#route-glow { fill: none; stroke: var(--cyan); stroke-width: 2.5; filter: drop-shadow(0 0 6px var(--cyan)) drop-shadow(0 0 16px rgba(77,225,255,.6)); }

/* blocks */
.block { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: clamp(80px, 12vw, 150px) clamp(16px, 5vw, 48px); }
.head { max-width: 760px; margin-bottom: 48px; }
.kicker { color: var(--amber); font-size: 12px; margin: 0 0 16px; }
h2 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.025em; }
.sub { color: var(--ink-2); font-size: 18px; margin: 20px 0 0; }

.panel, .module, .card, .scan, .cta {
  position: relative; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.panel::before, .module::before, .card::before, .scan::before, .cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--cyan), var(--cyan)) top left / 22px 1px no-repeat, linear-gradient(var(--cyan), var(--cyan)) top left / 1px 22px no-repeat,
              linear-gradient(var(--cyan), var(--cyan)) bottom right / 22px 1px no-repeat, linear-gradient(var(--cyan), var(--cyan)) bottom right / 1px 22px no-repeat;
  opacity: .8;
}
.panel::after, .module::after { content: ""; position: absolute; left: -40%; top: 0; width: 40%; height: 100%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(77, 225, 255, 0.08), transparent); transition: left .8s; }
.panel:hover::after, .module:hover::after { left: 110%; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.panel { padding: 26px 26px 30px; }
.panel-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 22px; }
.status { color: var(--amber); }
.status.bad { color: var(--red); }
.status.ok { color: var(--green); }
.panel h3 { font-size: 30px; margin-bottom: 10px; }
.panel p { color: var(--ink-2); margin: 0; }

/* scan */
.scan-block { padding-top: 0; }
.scan { padding: 0; overflow: hidden; }
.scan-head { display: flex; justify-content: space-between; padding: 14px 22px; font-size: 12px; color: var(--cyan); border-bottom: 1px solid var(--line); background: rgba(77, 225, 255, 0.04); }
.blink { color: var(--red); animation: pulse 1.2s infinite; }
.scan-body { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 32px; padding: 32px; align-items: center; }
.radar { position: relative; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-2); overflow: hidden;
  background: repeating-radial-gradient(circle, transparent 0 18%, var(--line) 18% calc(18% + 1px)), radial-gradient(circle, rgba(77,225,255,.08), transparent 70%); }
.radar::before, .radar::after { content: ""; position: absolute; background: var(--line); }
.radar::before { left: 50%; top: 0; bottom: 0; width: 1px; } .radar::after { top: 50%; left: 0; right: 0; height: 1px; }
.sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(77,225,255,.45), transparent 22%); animation: spin 3.2s linear infinite; }
.radar i { position: absolute; left: var(--x); top: var(--y); width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: pulse 1.8s infinite; }
.radar i:nth-of-type(2) { background: var(--red); box-shadow: 0 0 12px var(--red); animation-delay: .6s; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13px; }
.checks li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; border: 1px solid var(--line); background: rgba(5, 10, 20, .55);
  opacity: 0; transform: translateX(16px); transition: opacity .4s, transform .4s; }
.checks li.in { opacity: 1; transform: none; }
.checks li span { color: var(--ink-2); letter-spacing: 0.04em; }
.checks li b { font-weight: 600; }
.checks li[data-state="ok"] b { color: var(--green); }
.checks li[data-state="warn"] b { color: var(--amber); }
.checks li[data-state="bad"] b { color: var(--red); }
.scan-foot { margin: 0; padding: 12px 22px 16px; font-size: 11px; color: var(--muted); letter-spacing: 0.04em; border-top: 1px solid var(--line); }

/* modules */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.module { padding: 28px 26px 30px; display: flex; flex-direction: column; }
.mod-id { font-size: 11px; color: var(--cyan); margin-bottom: 28px; display: inline-flex; gap: 8px; align-items: center; }
.mod-id::before { content: ""; width: 26px; height: 1px; background: var(--cyan); box-shadow: var(--glow); }
.module h3 { font-size: 24px; margin-bottom: 12px; }
.module p { color: var(--ink-2); margin: 0 0 18px; }
.module .price, .module .link { margin-top: auto; font-size: 12px; color: var(--amber); margin-bottom: 0; }
.link { text-decoration: none; color: var(--cyan); }
.link:hover { text-shadow: var(--glow); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; display: grid; gap: 34px; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 9px; top: 6px; width: 1px; height: var(--fill, 0%); background: var(--cyan); box-shadow: var(--glow); transition: height .15s linear; }
.step { position: relative; }
.node { position: absolute; left: -34px; top: 4px; width: 19px; height: 19px; border: 1px solid var(--line-2); background: var(--bg); transform: rotate(45deg); transition: background .4s, box-shadow .4s, border-color .4s; z-index: 1; }
.step.lit .node { background: var(--cyan); border-color: var(--cyan); box-shadow: var(--glow); }
.step p.mono { margin: 0 0 4px; font-size: 11px; color: var(--amber); }
.step h3 { font-size: 24px; margin-bottom: 6px; }
.step p:not(.mono) { color: var(--ink-2); margin: 0; }

/* sectors */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips span { padding: 10px 16px; border: 1px solid var(--line); background: rgba(10, 20, 40, .5); font: 13px var(--mono); letter-spacing: 0.06em; color: var(--ink-2); transition: border-color .2s, color .2s, box-shadow .2s; }
.chips span:hover { border-color: var(--cyan); color: var(--ink); box-shadow: 0 0 18px rgba(77,225,255,.2); }
.chips .soon { color: var(--amber); border-style: dashed; border-color: rgba(255,179,71,.4); }

/* cta */
.cta { padding: clamp(36px, 6vw, 64px); text-align: center; background: linear-gradient(160deg, rgba(20, 50, 90, .55), rgba(12, 20, 38, .7)); }
.cta h2 { max-width: 760px; margin: 0 auto; }
.cta p:not(.kicker) { color: var(--ink-2); max-width: 600px; margin: 18px auto 32px; font-size: 18px; }

/* crew */
.crew { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { display: flex; gap: 22px; padding: 28px; align-items: flex-start; }
.avatar { flex: none; width: 74px; height: 74px; display: grid; place-items: center; font-size: 20px; color: var(--cyan); border: 1px solid var(--cyan);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: rgba(77,225,255,.08); box-shadow: inset 0 0 20px rgba(77,225,255,.25); }
.avatar.alt { color: var(--amber); border-color: var(--amber); background: rgba(255,179,71,.08); }
.role { margin: 0 0 6px; font-size: 11px; color: var(--amber); }
.card h3 { font-size: 26px; margin-bottom: 8px; }
.card p:not(.role) { color: var(--ink-2); margin: 0 0 12px; }
.card .link { font-size: 12px; }

.foot { position: relative; z-index: 2; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 28px clamp(16px, 5vw, 48px) 36px;
  border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); max-width: 1180px; margin: 40px auto 0; }
.foot a { text-decoration: none; color: var(--cyan); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px) scale(.98); filter: blur(6px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1), filter .9s; transition-delay: calc(var(--d, 0) * 120ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }

@media (max-width: 900px) {
  .grid3, .modules, .crew { grid-template-columns: 1fr; }
  .scan-body { grid-template-columns: 1fr; }
  .radar { max-width: 240px; margin: 0 auto; width: 100%; }
  .nav nav { display: none; }
  .nav .btn.small { margin-left: auto; }
}
@media (max-width: 520px) {
  .logo span { font-size: 12px; letter-spacing: 0.16em; }
  .logo em { display: none; }
  .card { flex-direction: column; }
  .scan-body { padding: 20px; }
  .checks { font-size: 12px; }
  .btn { width: 100%; justify-content: center; }
  .btn.small { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .checks li { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
}
