:root {
  color-scheme: dark;
  --bg: #07080f;
  --bg-deep: #04050a;
  --surface: rgba(17, 18, 31, 0.72);
  --surface-strong: #11131f;
  --line: rgba(190, 184, 255, 0.14);
  --line-bright: rgba(190, 184, 255, 0.26);
  --text: #f3f1ff;
  --muted: #a5a3b7;
  --muted-2: #777589;
  --violet: #a77aff;
  --violet-soft: #d4c4ff;
  --blue: #73a7ff;
  --green: #68d9ae;
  --amber: #e1bd76;
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 74% 12%, rgba(77, 48, 145, 0.18), transparent 30rem),
    radial-gradient(circle at 15% 42%, rgba(42, 77, 139, 0.1), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(calc(100% - 40px), var(--max));
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: .9rem;
  font-weight: 650;
  letter-spacing: .01em;
  text-decoration: none;
}

.brand img,
.map-core img,
.footer-brand img {
  border-radius: 50%;
}

.brand img { filter: drop-shadow(0 0 12px rgba(150, 104, 255, .35)); }

nav { display: flex; align-items: center; gap: 28px; }

nav a {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 540;
  text-decoration: none;
  transition: color 160ms ease;
}

nav a:hover, nav a:focus-visible { color: var(--text); }
.nav-external { color: var(--violet-soft); }

.hero {
  position: relative;
  display: grid;
  width: min(calc(100% - 40px), var(--max));
  min-height: 760px;
  margin: 0 auto;
  padding: 150px 0 90px;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .86fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
}

.hero::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 6%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(119, 78, 223, .1);
  filter: blur(90px);
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 2; max-width: 650px; }

.eyebrow, .section-kicker {
  margin: 0 0 20px;
  color: var(--violet-soft);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.eyebrow { display: inline-flex; align-items: center; gap: 9px; }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(104, 217, 174, .8);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3.25rem, 7vw, 6.7rem);
  font-weight: 580;
  letter-spacing: -.062em;
  line-height: .96;
}

.hero-intro {
  max-width: 630px;
  margin-bottom: 34px;
  color: #b9b7c8;
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 19px;
  border: 1px solid var(--line-bright);
  border-radius: 9px;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { border-color: transparent; background: var(--text); color: #0a0a11; }
.button-secondary { background: rgba(255,255,255,.035); color: var(--violet-soft); }
.button-secondary:hover { border-color: rgba(190, 184, 255, .46); background: rgba(255,255,255,.06); }

.hero-note { margin: 22px 0 0; color: var(--muted-2); font-size: .78rem; }

.protocol-map {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.map-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(170, 130, 255, .26);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  box-shadow: inset 0 0 40px rgba(117, 72, 211, .035), 0 0 40px rgba(117, 72, 211, .04);
}

.map-ring::before, .map-ring::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet-soft);
  box-shadow: 0 0 14px rgba(183, 146, 255, .9);
}

.map-ring::before { top: 10%; left: 25%; }
.map-ring::after { right: 7%; bottom: 27%; }
.map-ring-outer { width: 92%; height: 66%; }
.map-ring-inner { width: 68%; height: 43%; opacity: .72; }

.map-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 150px;
  height: 150px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  background: rgba(8, 9, 17, .82);
  box-shadow: 0 0 70px rgba(117, 72, 211, .2), inset 0 0 34px rgba(117, 72, 211, .07);
  transform: translate(-50%, -50%);
}

.map-core img { width: 68px; height: 68px; margin-bottom: -5px; }
.map-core span { font-size: .68rem; font-weight: 760; letter-spacing: .17em; }
.map-core small { margin-top: 2px; color: var(--muted-2); font-size: .5rem; letter-spacing: .13em; }

.map-node {
  position: absolute;
  display: grid;
  min-width: 110px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 11, 20, .88);
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}

.map-node span { color: var(--violet); font: 600 .58rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.map-node strong { margin-top: 4px; font-size: .88rem; }
.map-node small { color: var(--muted-2); font-size: .66rem; }
.node-nbx { top: 5%; left: 8%; }
.node-orbit { top: 11%; right: 0; }
.node-points { bottom: 10%; left: 0; }
.node-claim { right: 6%; bottom: 3%; }

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.section-heading { display: grid; grid-template-columns: .8fr 1.2fr 1fr; gap: 48px; align-items: start; margin-bottom: 56px; }
.section-heading h2, .status-intro h2, .stage-copy h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 540; letter-spacing: -.045em; line-height: 1.08; }
.section-heading > p:last-child, .status-intro > p:last-child { color: var(--muted); font-size: 1rem; }

.component-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.component-card { display: flex; min-height: 330px; padding: 25px 24px 22px; flex-direction: column; border-right: 1px solid var(--line); }
.component-card:last-child { border-right: 0; }
.component-card:hover { background: rgba(255,255,255,.018); }
.card-muted { background: rgba(255,255,255,.012); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 66px; color: var(--muted-2); font: 600 .7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.card-status { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; font-family: inherit; font-size: .6rem; letter-spacing: .05em; text-transform: uppercase; }
.card-status.live { color: var(--green); }
.card-status.testing { color: var(--amber); }
.component-card h3 { margin-bottom: 12px; font-size: 1.25rem; font-weight: 620; }
.component-card p { color: var(--muted); font-size: .91rem; line-height: 1.65; }
.component-card a, .non-link { margin-top: auto; color: var(--violet-soft); font-size: .8rem; font-weight: 600; text-underline-offset: 4px; }
.component-card a:hover { color: white; }
.non-link { color: var(--muted-2); }
code { font: .86em ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.status-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(60px, 10vw, 140px); }
.status-intro > p:last-child { margin-top: 25px; }
.status-board { border-top: 1px solid var(--line-bright); }
.status-row { display: grid; grid-template-columns: 1.15fr auto; padding: 24px 0; align-items: center; gap: 14px 20px; border-bottom: 1px solid var(--line); }
.status-row > div { display: flex; align-items: center; gap: 12px; }
.status-row p { grid-column: 1 / -1; margin: 0 0 0 42px; color: var(--muted-2); font-size: .82rem; }
.chain-mark { display: inline-grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line-bright); border-radius: 50%; color: var(--muted); font: 650 .7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.chain-base { border-color: rgba(115, 167, 255, .5); color: #b9d2ff; background: rgba(27, 79, 173, .2); }
.status-pill { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.status-pill.active { color: var(--green); }
.status-pill.dormant { color: var(--muted-2); }

.deployment-heading { margin-bottom: 42px; }
.deployment-table { border-top: 1px solid var(--line-bright); }
.deployment-row { display: grid; grid-template-columns: 1.1fr 1fr .7fr 30px; min-height: 70px; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.deployment-row code { color: #c8c5d4; font-size: .78rem; }
.deployment-row > a { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: var(--violet-soft); text-decoration: none; }
.deployment-row > a:hover { background: rgba(255,255,255,.07); }
.deployment-header { min-height: 44px; color: var(--muted-2); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.verification { width: max-content; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: .64rem; font-weight: 650; }
.verified { color: var(--green); }
.pending { color: var(--amber); }

.stage-section { position: relative; display: grid; grid-template-columns: .65fr 1.35fr; gap: 70px; overflow: hidden; }
.stage-number { color: rgba(167, 122, 255, .09); font-size: clamp(13rem, 27vw, 24rem); font-weight: 660; letter-spacing: -.1em; line-height: .68; user-select: none; }
.stage-copy { position: relative; z-index: 1; max-width: 660px; }
.stage-copy > p:not(.section-kicker) { margin: 28px 0; color: var(--muted); font-size: 1rem; }
.stage-facts { display: grid; margin: 30px 0; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.stage-facts span { padding: 15px 0; border-bottom: 1px solid var(--line); color: #c3c0ce; font-size: .83rem; }
.stage-copy > a { color: var(--violet-soft); font-size: .86rem; font-weight: 650; text-underline-offset: 4px; }

.site-footer {
  display: grid;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 46px 0 55px;
  grid-template-columns: 1fr auto;
  gap: 38px 60px;
  border-top: 1px solid var(--line);
}

.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { font-size: .85rem; }
.footer-brand span { color: var(--muted-2); font-size: .72rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer-links a { color: var(--muted); font-size: .78rem; text-underline-offset: 4px; }
.footer-links a:hover { color: white; }
.disclaimer { grid-column: 1 / -1; max-width: 800px; margin: 0; color: #676576; font-size: .7rem; line-height: 1.6; }

a:focus-visible, .button:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 155px; }
  .hero-copy { max-width: 760px; }
  .protocol-map { width: min(100%, 540px); margin-top: 10px; }
  .component-grid { grid-template-columns: 1fr 1fr; }
  .component-card:nth-child(2) { border-right: 0; }
  .component-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading { grid-template-columns: .6fr 1.4fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .status-section { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { width: min(calc(100% - 28px), var(--max)); min-height: 74px; }
  .brand span { display: none; }
  nav { gap: 18px; }
  nav a { font-size: .76rem; }
  nav a:first-child { display: none; }
  .hero, .section, .site-footer { width: min(calc(100% - 28px), var(--max)); }
  .hero { min-height: auto; padding: 125px 0 80px; gap: 66px; }
  h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero-intro { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .protocol-map { display: grid; aspect-ratio: auto; grid-template-columns: 1fr 1fr; gap: 10px; }
  .map-ring { display: none; }
  .map-core { position: relative; top: auto; left: auto; width: auto; height: auto; min-height: 160px; grid-column: 1 / -1; border-radius: 16px; transform: none; }
  .map-node { position: static; min-width: 0; }
  .section { padding: 84px 0; }
  .section-heading { display: block; margin-bottom: 38px; }
  .section-heading h2 { margin-bottom: 20px; }
  .component-grid { grid-template-columns: 1fr; }
  .component-card { min-height: 285px; border-right: 0; border-bottom: 1px solid var(--line); }
  .component-card:last-child { border-bottom: 0; }
  .card-top { margin-bottom: 45px; }
  .status-row { grid-template-columns: 1fr auto; }
  .deployment-row { grid-template-columns: 1fr auto 26px; padding: 16px 0; gap: 10px; }
  .deployment-row code { grid-column: 1 / -1; grid-row: 2; }
  .deployment-row .verification { grid-column: 2; grid-row: 1; }
  .deployment-row > a { grid-column: 3; grid-row: 1; }
  .deployment-header { display: none; }
  .stage-section { grid-template-columns: 1fr; gap: 25px; }
  .stage-number { position: absolute; top: 105px; right: 0; font-size: 14rem; }
  .stage-facts { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { gap: 15px 20px; }
  .disclaimer { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
