:root {
  --bg: #060c18;
  --surface: #0d1628;
  --surface2: #111e35;
  --border: #1a2d4a;
  --fg: #e8f0fe;
  --fg-muted: #7a9bbf;
  --accent: #38bdf8;
  --accent-dim: rgba(56, 189, 248, 0.12);
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.12);
  --green: #22c55e;
  --font-head: 'Syne', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  backdrop-filter: blur(12px);
  background: rgba(6,12,24,0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-logo .accent { color: var(--accent); }
.nav-tag {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 140px 40px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.globe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 35%, rgba(56,189,248,0.08) 0%, transparent 55%),
              radial-gradient(ellipse at 60% 60%, rgba(56,189,248,0.04) 0%, transparent 50%),
              radial-gradient(circle, rgba(56,189,248,0.06) 0%, transparent 40%);
  border: 1px solid rgba(56,189,248,0.15);
  box-shadow: 0 0 120px rgba(56,189,248,0.08), inset 0 0 80px rgba(56,189,248,0.04);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 80%);
}

.scan-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan 6s linear infinite;
  opacity: 0.4;
}

@keyframes scan {
  0% { top: 0; }
  100% { top: 100%; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-tag {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
  display: inline-block;
  border: 1px solid rgba(56,189,248,0.3);
  padding: 6px 14px;
  border-radius: 4px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-title br { display: block; }

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 540px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hud-frame {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 28px;
  position: relative;
}

.hud-frame::before {
  content: '';
  position: absolute;
  top: -1px; left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hud-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.hud-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px;
}

.hud-label {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

.hud-val {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg);
}

.hud-val.accent-green { color: var(--green); }

.hud-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* SECTION SHARED */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px;
}

.section-tag {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-title-center { text-align: center; }

.section-body {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* PAX SECTION */
.pax { background: var(--bg); }

.token-viz {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 180px;
  margin-bottom: 20px;
}

.token-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.token-bar {
  width: 100%;
  background: var(--accent-dim);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 4px 4px 0 0;
  height: 100%;
  transition: all 0.3s;
}

.token-bar.highlight {
  background: var(--amber-dim);
  border-color: rgba(245,158,11,0.3);
  box-shadow: 0 0 20px rgba(245,158,11,0.1);
}

.token-label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  color: var(--fg-muted);
  font-weight: 600;
}

.token-label.highlight { color: var(--amber); }

.token-legend {
  display: flex;
  gap: 24px;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.highlight-legend .legend-dot { background: var(--amber); }

/* HARDWARE SECTION */
.hardware {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hw-tag {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  background: var(--surface2);
}

/* CIRCUIT ART */
.circuit-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 40px;
}

.circuit-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 24px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-align: center;
  position: relative;
  z-index: 2;
  width: 220px;
}

.circuit-box.top { border-color: var(--accent); color: var(--accent); }
.circuit-box.bottom { border-color: var(--amber); color: var(--amber); }

.circuit-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--accent), var(--amber));
  opacity: 0.4;
}

.circuit-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.node {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.node.n1 { top: 25%; left: 15%; }
.node.n2 { top: 45%; right: 20%; }
.node.n3 { top: 65%; left: 10%; }
.node.n4 { top: 80%; right: 15%; }

/* METRICS SECTION */
.metrics { background: var(--bg); }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 48px;
}

.metric-card {
  background: var(--surface);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-icon {
  color: var(--accent);
  margin-bottom: 4px;
}

.metric-name {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}

.metric-val {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
}

.metric-delta {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.metric-delta.up { color: var(--green); }

/* CLOSING */
.closing {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 120px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.closing-radar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  pointer-events: none;
  z-index: 0;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(56,189,248,0.06);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.r1 { width: 200px; height: 200px; }
.r2 { width: 340px; height: 340px; }
.r3 { width: 480px; height: 480px; }

.radar-sweep {
  position: absolute;
  top: 50%; left: 50%;
  width: 240px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform-origin: left center;
  animation: sweep 4s linear infinite;
  opacity: 0.5;
}

@keyframes sweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.radar-dot {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent);
}

.closing-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.closing-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

/* FOOTER */
.footer {
  padding: 32px 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--fg);
}

.footer-logo .accent { color: var(--accent); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .hero { padding: 120px 24px 60px; }
  .hud-row { flex-wrap: wrap; gap: 16px; }
  .hud-divider { display: none; }
  .hud-item { padding: 0; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .circuit-art { padding: 20px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .section-inner { padding: 60px 24px; }
  .closing { padding: 80px 24px; }
  .footer { padding: 24px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .metric-grid { grid-template-columns: 1fr; }
  .token-viz { height: 120px; gap: 8px; }
}