:root {
  color-scheme: dark;
  --bg: #04090f;
  --bg-elevated: #07111a;
  --surface: rgba(9, 22, 32, .82);
  --surface-strong: #091722;
  --surface-soft: rgba(255,255,255,.025);
  --border: rgba(144, 181, 204, .14);
  --border-strong: rgba(144, 181, 204, .25);
  --text: #f4f9fc;
  --muted: #8198a9;
  --muted-strong: #a3b4c1;
  --accent: #55f2c2;
  --accent-2: #58b8ff;
  --accent-3: #8e7dff;
  --amber: #f4c166;
  --danger: #ff8f8f;
  --shadow: 0 32px 100px rgba(0,0,0,.38);
  --shadow-soft: 0 18px 60px rgba(0,0,0,.24);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 4%, rgba(88,184,255,.11), transparent 28%),
    radial-gradient(circle at 86% 11%, rgba(85,242,194,.08), transparent 27%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.shell { width: min(1180px, calc(100% - 42px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-140%);
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--text);
  color: #061019;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  opacity: .22;
  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: 46px 46px;
  mask-image: linear-gradient(to bottom, black 0, rgba(0,0,0,.7) 65%, transparent 100%);
}

.page-glow {
  position: fixed;
  z-index: -3;
  width: 48vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .08;
  pointer-events: none;
}
.glow-one { top: -22vw; left: -15vw; background: var(--accent-2); }
.glow-two { top: -18vw; right: -18vw; background: var(--accent); }

.announcement {
  border-bottom: 1px solid rgba(144,181,204,.09);
  background: rgba(4,9,15,.74);
}
.announcement-inner {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.announcement-inner strong { color: #bdd0dd; }
.announcement-inner a { color: var(--accent); }
.announcement-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 14px rgba(244,193,102,.6);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(4,9,15,.55);
  backdrop-filter: blur(18px);
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-color: var(--border); background: rgba(4,9,15,.88); }
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand-logo-link { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo { width: 210px; height: auto; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}
.nav a { position: relative; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: right .2s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.text-link { color: var(--muted); font-size: 13px; font-weight: 650; }
.text-link:hover { color: var(--text); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  cursor: pointer;
}
.menu-toggle > span:not(.sr-only) { width: 17px; height: 1px; background: var(--text); display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.button-primary {
  color: #04120e;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #8af5d6);
  box-shadow: 0 13px 42px rgba(85,242,194,.13);
}
.button-primary:hover { box-shadow: 0 16px 48px rgba(85,242,194,.18); }
.button-secondary { background: rgba(255,255,255,.035); }
.button-small { min-height: 40px; padding-inline: 14px; font-size: 12px; }

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: 52px;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 92px;
}
.hero-copy-wrap { position: relative; z-index: 2; }
.eyebrow, .section-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow-line { width: 34px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.hero h1 {
  margin: 18px 0 22px;
  max-width: 760px;
  font-size: clamp(58px, 7.1vw, 92px);
  line-height: .94;
  letter-spacing: -.066em;
}
.hero h1 span {
  color: transparent;
  background: linear-gradient(92deg, #96aabd 8%, #edf7fb 46%, #66c8ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-copy { max-width: 710px; margin: 0; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  margin-top: 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-strip div { padding: 17px 16px 17px 0; display: grid; gap: 3px; }
.trust-strip div + div { padding-left: 18px; border-left: 1px solid var(--border); }
.trust-strip span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.trust-strip strong { font-size: 14px; }

.hero-visual {
  position: relative;
  min-height: 540px;
  border: 1px solid var(--border);
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(85,242,194,.1), transparent 34%),
    linear-gradient(155deg, rgba(11,28,40,.95), rgba(5,13,20,.9));
  box-shadow: var(--shadow);
}
.visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle, black 20%, transparent 72%);
}
.protocol-mark {
  position: absolute;
  left: 50%; top: 50%;
  width: 180px; height: 180px;
  transform: translate(-50%,-50%);
  border-radius: 34px;
  display: grid;
  place-items: center;
  background: rgba(4,12,19,.78);
  border: 1px solid rgba(85,242,194,.25);
  box-shadow: 0 0 70px rgba(85,242,194,.1);
}
.protocol-mark img { width: 128px; height: 128px; object-fit: contain; object-position: left; clip-path: inset(0 80px 0 0); transform: translateX(39px); }
.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(88,184,255,.16); border-radius: 50%; transform: translate(-50%,-50%); }
.orbit-a { width: 300px; height: 300px; }
.orbit-b { width: 420px; height: 420px; border-style: dashed; }
.validator-node {
  position: absolute;
  width: 78px;
  height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: rgba(5,14,21,.92);
  box-shadow: var(--shadow-soft);
}
.validator-node strong { color: #dce9f1; font-size: 12px; }
.validator-node small { color: var(--accent); font-size: 9px; text-transform: uppercase; }
.node-a { left: 12%; top: 22%; }
.node-b { right: 11%; top: 25%; }
.node-c { left: 15%; bottom: 18%; }
.node-d { right: 14%; bottom: 19%; }
.finality-chip {
  position: absolute;
  left: 50%; bottom: 29px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(85,242,194,.18);
  background: rgba(5,15,22,.9);
  color: #bcd4c9;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 13px rgba(85,242,194,.8); }

.metrics {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.018);
}
.metrics article { padding: 22px; display: grid; gap: 2px; }
.metrics article + article { border-left: 1px solid var(--border); }
.metric-number { font-size: 25px; font-weight: 780; letter-spacing: -.04em; }
.metric-label { color: var(--muted); font-size: 11px; }

.section { padding: 110px 0; }
.split-heading {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 54px;
  align-items: end;
  margin-top: 10px;
  margin-bottom: 40px;
}
.split-heading h2, .validator-promo h2, .launch-copy h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(39px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.split-heading p { margin: 0; color: var(--muted); font-size: 16px; }

.protocol-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 13px; }
.protocol-card {
  min-height: 290px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11,26,37,.78), rgba(6,17,25,.66));
  box-shadow: var(--shadow-soft);
}
.protocol-card.large { grid-row: span 2; min-height: 593px; }
.card-index { color: var(--accent-2); font: 700 10px/1 ui-monospace, monospace; letter-spacing: .14em; }
.protocol-card h3 { margin: auto 0 8px; font-size: 22px; letter-spacing: -.025em; }
.protocol-card p { margin: 0; color: var(--muted); font-size: 13px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.card-tags span { padding: 5px 8px; border: 1px solid var(--border); border-radius: 999px; color: #9db1bf; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.consensus-panel { margin-top: 42px; display: grid; gap: 12px; }
.quorum-row { display: grid; grid-template-columns: 52px 1fr 68px; gap: 10px; align-items: center; }
.quorum-row b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(85,242,194,.07); border: 1px solid rgba(85,242,194,.15); color: var(--accent); font-size: 11px; }
.quorum-bar { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.05); }
.quorum-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.quorum-row.off .quorum-bar i { width: 24%; opacity: .35; }
.quorum-row small { color: var(--muted); font-size: 10px; }

.security-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(7,17,26,.55); }
.security-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 68px; align-items: start; }
.security-copy h2 { margin: 9px 0 14px; font-size: clamp(40px, 5vw, 62px); letter-spacing: -.05em; }
.security-copy p { color: var(--muted); }
.inline-cta { display: inline-flex; margin-top: 14px; color: var(--accent); font-size: 13px; font-weight: 720; }
.security-stack { display: grid; gap: 10px; }
.security-stack article {
  min-height: 94px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.018);
}
.security-index { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(88,184,255,.06); color: var(--accent-2); font-size: 10px; }
.security-stack strong { font-size: 14px; }
.security-stack p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.check { color: var(--accent); font-weight: 800; }
.pending { color: var(--amber); font-size: 9px; letter-spacing: .1em; }

.validator-promo {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 50px;
  align-items: center;
  border: 1px solid rgba(85,242,194,.17);
  border-radius: 30px;
  padding: 48px;
  background:
    radial-gradient(circle at 85% 50%, rgba(85,242,194,.11), transparent 34%),
    linear-gradient(145deg, rgba(8,26,35,.94), rgba(5,14,21,.92));
  box-shadow: var(--shadow);
}
.validator-promo p { max-width: 650px; color: var(--muted); }
.validator-promo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.validator-terminal {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #02070b;
}
.terminal-head { min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.terminal-dots { display: flex; gap: 5px; }
.terminal-dots i { width: 7px; height: 7px; border-radius: 50%; background: #315064; }
.validator-terminal pre { margin: 0; padding: 20px; color: #bddfd2; font-size: 11px; line-height: 1.75; overflow: auto; }
.terminal-green { color: var(--accent); }
.terminal-blue { color: var(--accent-2); }

.developer-section .resource-grid { margin-top: 25px; }
.terminal-wrap { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: #02070b; }
.terminal-toolbar { min-height: 50px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.copy-button { border: 1px solid var(--border); border-radius: 9px; padding: 6px 9px; background: rgba(255,255,255,.025); color: var(--text); cursor: pointer; }
.terminal-wrap pre { margin: 0; padding: 22px; overflow: auto; color: #c9e4d9; font-size: 12px; line-height: 1.7; }
.code-muted { color: #657e8e; }
.resource-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.resource-grid a { min-height: 125px; padding: 18px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 4px 10px; border: 1px solid var(--border); border-radius: 15px; background: rgba(255,255,255,.018); }
.resource-grid span { font-weight: 720; font-size: 13px; }
.resource-grid small { color: var(--muted); font-size: 11px; }
.resource-grid b { grid-row: 1 / -1; grid-column: 2; color: var(--accent); }

.explorer-section { background: rgba(7,17,26,.5); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.explorer-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 62px; align-items: center; }
.explorer-copy h2 { margin: 10px 0 14px; font-size: clamp(38px, 5vw, 60px); letter-spacing: -.05em; }
.explorer-copy p { color: var(--muted); }
.explorer-window { border: 1px solid var(--border); border-radius: 22px; overflow: hidden; background: #050d13; box-shadow: var(--shadow); }
.explorer-toolbar { min-height: 44px; display: flex; justify-content: space-between; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.explorer-screen { padding: 20px; }
.explorer-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-bottom: 16px; }
.explorer-stats div { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.018); display: grid; gap: 3px; }
.explorer-stats small { color: var(--muted); font-size: 8px; letter-spacing: .1em; }
.explorer-stats strong { font-size: 18px; }
.block-row { display: grid; grid-template-columns: 80px 1fr 100px; gap: 12px; align-items: center; padding: 11px 4px; border-top: 1px solid var(--border); font-size: 11px; }
.block-row code { color: #9eb3c1; }
.finalized { color: var(--accent); text-align: right; }

.launch-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 62px; }
.launch-copy p { color: var(--muted); }
.launch-list { display: grid; gap: 9px; }
.launch-item { display: grid; grid-template-columns: 50px 1fr auto; gap: 14px; align-items: center; min-height: 84px; padding: 15px; border: 1px solid var(--border); border-radius: 15px; background: rgba(255,255,255,.018); }
.launch-item b { color: var(--accent-2); font: 700 10px/1 ui-monospace, monospace; }
.launch-item strong { display: block; font-size: 13px; }
.launch-item small { color: var(--muted); }
.launch-item em { color: var(--amber); font-style: normal; font-size: 9px; letter-spacing: .1em; }

.reveal-ready { opacity: 0; transform: translateY(14px); }
.revealed { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease; }

.site-footer { min-height: 190px; padding: 48px 0; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; border-top: 1px solid var(--border); margin-top: 80px; }
.footer-brand img { width: 210px; display: block; }
.footer-brand p { margin: 10px 0 0; max-width: 430px; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; color: var(--muted); font-size: 12px; }
.footer-links a:hover { color: var(--text); }
.footer-meta { grid-column: 1 / -1; padding-top: 18px; display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--border); color: #607887; font-size: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal-ready, .revealed { opacity: 1; transform: none; }
}

@media (max-width: 1040px) {
  .nav { display: none; }
  .menu-toggle { display: grid; order: 3; }
  .nav.open {
    position: fixed;
    inset: 78px 0 auto;
    display: grid;
    gap: 0;
    padding: 18px 22px 28px;
    background: rgba(4,9,15,.98);
    border-bottom: 1px solid var(--border);
  }
  .nav.open a { padding: 15px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
  .header-actions .text-link { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 500px; }
  .protocol-grid { grid-template-columns: 1fr 1fr; }
  .protocol-card.large { grid-row: auto; min-height: 340px; grid-column: 1 / -1; }
  .security-layout, .explorer-layout, .launch-layout, .validator-promo { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1180px); }
  .announcement-inner { justify-content: flex-start; overflow: auto; white-space: nowrap; }
  .announcement-inner a { display: none; }
  .brand-logo { width: 180px; }
  .header-actions .button { display: none; }
  .hero { padding-top: 64px; padding-bottom: 70px; gap: 36px; }
  .hero h1 { font-size: clamp(51px, 15vw, 76px); }
  .hero-copy { font-size: 16px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div + div { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; }
  .hero-visual { min-height: 420px; border-radius: 24px; }
  .protocol-mark { width: 142px; height: 142px; }
  .orbit-a { width: 230px; height: 230px; }
  .orbit-b { width: 320px; height: 320px; }
  .validator-node { width: 65px; height: 49px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics article:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .metrics article:nth-child(4) { border-top: 1px solid var(--border); }
  .section { padding: 82px 0; }
  .split-heading { grid-template-columns: 1fr; gap: 16px; }
  .protocol-grid { grid-template-columns: 1fr; }
  .protocol-card.large { grid-column: auto; }
  .security-stack article { grid-template-columns: 36px 1fr; }
  .security-stack .check, .security-stack .pending { grid-column: 2; }
  .validator-promo { padding: 30px 20px; }
  .resource-grid { grid-template-columns: 1fr; }
  .explorer-stats { grid-template-columns: 1fr; }
  .block-row { grid-template-columns: 58px 1fr; }
  .block-row .finalized { display: none; }
  .launch-item { grid-template-columns: 40px 1fr; }
  .launch-item em { grid-column: 2; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .footer-meta { grid-column: auto; flex-direction: column; }
}

@media (max-width: 440px) {
  .metrics { grid-template-columns: 1fr; }
  .metrics article + article { border-left: 0; border-top: 1px solid var(--border); }
  .node-a { left: 5%; }.node-b { right: 5%; }.node-c { left: 7%; }.node-d { right: 7%; }
}
