:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0b1726;
  --panel: rgba(13, 27, 44, .78);
  --panel-strong: #0d1b2c;
  --line: rgba(148, 163, 184, .16);
  --text: #e7eef7;
  --muted: #8ea1b7;
  --green: #34d399;
  --teal: #5eead4;
  --blue: #60a5fa;
  --shadow: 0 30px 80px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 15%, rgba(52, 211, 153, .07), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(96, 165, 250, .08), transparent 25%),
    linear-gradient(180deg, #06101c 0%, #081321 45%, #07111f 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, .72);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 800; letter-spacing: .08em; }
.brand-muted { color: #7e92a9; font-weight: 600; }
.brand-mark { display: inline-grid; grid-template-columns: repeat(3, 5px); gap: 3px; align-items: end; height: 22px; }
.brand-mark i { width: 5px; display: block; border-radius: 2px; background: linear-gradient(to top, var(--green), var(--teal)); }
.brand-mark i:nth-child(1) { height: 10px; opacity: .55; }
.brand-mark i:nth-child(2) { height: 16px; opacity: .78; }
.brand-mark i:nth-child(3) { height: 22px; }

.nav { display: flex; align-items: center; gap: 24px; color: #9aadc1; font-size: 13px; }
.nav a { transition: color .2s ease; }
.nav a:hover { color: white; }
.nav-status { display: inline-flex; align-items: center; gap: 7px; padding-left: 20px; border-left: 1px solid var(--line); color: #cbd7e5; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52,211,153,.09), 0 0 16px rgba(52,211,153,.7); }

.hero {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 58px;
  align-items: center;
  min-height: 720px;
  padding-top: 72px;
  padding-bottom: 80px;
}
.eyebrow { color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 18px 0 22px; max-width: 760px; font-size: clamp(48px, 6vw, 78px); line-height: .98; letter-spacing: -.055em; }
.lead { max-width: 650px; margin: 0; color: #a8b8ca; font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin: 34px 0 36px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 10px; font-size: 13px; font-weight: 750; transition: .2s ease; }
.button-primary { color: #04110e; background: linear-gradient(135deg, #5eead4, #34d399); box-shadow: 0 10px 40px rgba(52,211,153,.16); }
.button-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 48px rgba(52,211,153,.25); }
.button-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.025); color: #ced9e5; }
.button-ghost:hover { background: rgba(255,255,255,.05); border-color: rgba(148,163,184,.3); }

.facts { display: flex; flex-wrap: wrap; gap: 10px 24px; color: #8fa2b7; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.fact strong { color: #dbe6f1; font-weight: 800; margin-right: 6px; }

.network-card {
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(14,29,47,.92), rgba(10,22,37,.82));
  box-shadow: var(--shadow);
}
.network-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(94,234,212,.04), transparent 40%, rgba(96,165,250,.04));
}
.network-card-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.network-card-head div { display: grid; gap: 4px; }
.label { color: #72879e; font-size: 10px; letter-spacing: .15em; font-weight: 800; }
.network-card-head strong { font-size: 15px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid rgba(52,211,153,.18); border-radius: 999px; color: #bfe9db; background: rgba(52,211,153,.06); font-size: 11px; }
.topology { position: relative; min-height: 330px; }
.topology svg { position: relative; z-index: 2; width: 100%; height: 330px; }
.topology path { fill: none; stroke: url(#lineGradient); stroke-width: 1.35; stroke-dasharray: 4 6; opacity: .82; }
.node circle { fill: #0b1726; stroke: var(--green); stroke-width: 2; filter: url(#glow); }
.node text { fill: #71869d; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.node-d circle { stroke: var(--blue); }
.node-c circle { fill: #34d399; stroke: #d1fae5; }
.pulse-ring { position: absolute; z-index: 1; width: 150px; height: 150px; border: 1px solid rgba(52,211,153,.08); border-radius: 50%; }
.ring-one { left: 41%; top: 27%; }
.ring-two { left: 41%; top: 27%; width: 230px; height: 230px; transform: translate(-40px,-40px); opacity: .6; }
.panel-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.panel-metric { padding: 18px 20px; border-right: 1px solid var(--line); }
.panel-metric:last-child { border-right: 0; }
.panel-metric span { display: block; color: #71869d; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.panel-metric strong { display: block; margin-top: 5px; font-size: 15px; }

.section { padding: 104px 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 720px; }
.section h2 { margin: 12px 0 16px; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -.04em; }
.section-heading p, .split-section > div > p, .ops-copy p { color: #91a4b8; max-width: 620px; font-size: 16px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.capability-card { min-height: 220px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.018); }
.card-index { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 8px; color: var(--teal); background: rgba(94,234,212,.07); font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.capability-card h3 { margin: 34px 0 10px; font-size: 17px; }
.capability-card p { margin: 0; color: #879bb1; font-size: 14px; }

.split-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.detail-table { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.015); }
.detail-row { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 17px 20px; border-bottom: 1px solid var(--line); font-size: 13px; }
.detail-row:last-child { border-bottom: 0; }
.detail-row span:first-child { color: #71869d; text-transform: uppercase; font-size: 10px; letter-spacing: .1em; }
.detail-row strong { font-weight: 600; color: #d5e0eb; }

.operations { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.terminal { overflow: hidden; border: 1px solid rgba(148,163,184,.18); border-radius: 16px; background: #07101b; box-shadow: 0 30px 70px rgba(0,0,0,.28); }
.terminal-head { position: relative; display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 15px; border-bottom: 1px solid var(--line); }
.terminal-head span { width: 8px; height: 8px; border-radius: 50%; background: #34475c; }
.terminal-head b { position: absolute; left: 50%; transform: translateX(-50%); color: #63778d; font: 600 10px ui-monospace, monospace; }
.terminal pre { margin: 0; padding: 24px; overflow: auto; color: #aab9c9; font: 12px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; }
.green { color: var(--green); }
.dim { color: #596d83; }

.footer { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; padding-top: 42px; padding-bottom: 42px; border-top: 1px solid var(--line); color: #71869d; font-size: 12px; }
.footer p { margin: 0; text-align: center; }
.footer-meta { display: flex; justify-content: flex-end; gap: 20px; }
.footer-brand { color: #dbe6f1; }

body[data-mode="node"] .hero { min-height: 650px; }
body[data-mode="node"] .hero h1 { font-size: clamp(50px, 6vw, 72px); }
body[data-mode="gateway"] .topology .node-c circle { fill: var(--blue); stroke: #dbeafe; }
body[data-mode="gateway"] .eyebrow { color: #93c5fd; }

@media (max-width: 920px) {
  .nav a { display: none; }
  .hero, .split-section, .operations { grid-template-columns: 1fr; }
  .hero { gap: 46px; min-height: auto; padding-top: 90px; }
  .card-grid { grid-template-columns: 1fr; }
  .split-section, .operations { gap: 38px; }
  .section { padding: 78px 0; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1180px); }
  .topbar { padding: 0 14px; }
  .nav-status { padding-left: 0; border-left: 0; }
  .hero h1 { font-size: 46px; }
  .lead { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .panel-metrics { grid-template-columns: 1fr; }
  .panel-metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .panel-metric:last-child { border-bottom: 0; }
  .detail-row { grid-template-columns: 1fr; gap: 5px; }
  .footer { grid-template-columns: 1fr; text-align: left; }
  .footer p { text-align: left; }
  .footer-meta { justify-content: flex-start; flex-wrap: wrap; }
}
