:root {
  --ink: #030908;
  --night: #07110f;
  --panel: #0b1714;
  --paper: #d99d58;
  --acid: #b9ff31;
  --acid-soft: #deff89;
  --white: #f4f5ea;
  --muted: #9daaa4;
  --line: rgba(185, 255, 49, 0.18);
  --page: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
body::selection { background: var(--acid); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: .035;
  pointer-events: none;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 15;
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1380px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(3, 9, 8, .72);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: .76rem; font-weight: 900; letter-spacing: .13em; width: max-content; }
.brand img { border-radius: 9px; box-shadow: 0 0 20px rgba(185,255,49,.16); }
.brand b { color: var(--acid); font-weight: 800; }
.site-header nav { display: flex; gap: 34px; color: #bec9c3; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.site-header nav a { transition: color .2s ease; }
.site-header nav a:hover { color: var(--acid); }
.mini-buy { justify-self: end; display: inline-flex; gap: 10px; align-items: center; padding: 11px 16px; border: 1px solid var(--acid); color: var(--acid); border-radius: 3px; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }

.hero {
  position: relative;
  min-height: 760px;
  height: min(890px, 100svh);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #06100f;
  border-bottom: 1px solid var(--line);
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; z-index: -4; filter: saturate(.92) contrast(1.04); }
.hero-shade { position: absolute; inset: 0; z-index: -3; background: linear-gradient(90deg, rgba(3,9,8,.98) 0%, rgba(3,9,8,.9) 32%, rgba(3,9,8,.16) 70%, rgba(3,9,8,.02) 100%), linear-gradient(0deg, rgba(3,9,8,.8), transparent 30%); }
.signal-map { position: absolute; inset: 0; z-index: -2; opacity: .5; background: radial-gradient(520px circle at var(--x, 72%) var(--y, 42%), rgba(185,255,49,.23), transparent 45%); transition: opacity .25s ease; }
.hero-content { width: var(--page); margin: 52px auto 0; position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--acid); font-size: .73rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { width: 34px; height: 1px; display: inline-block; background: var(--acid); box-shadow: 0 0 8px var(--acid); }
h1, h2 { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-weight: 900; letter-spacing: -.025em; line-height: .86; text-transform: uppercase; margin: 0; }
h1 { font-size: clamp(5rem, 9.7vw, 9.3rem); max-width: 850px; }
h1 em { color: var(--acid); font-style: normal; text-shadow: 0 0 36px rgba(185,255,49,.28); }
.hero-copy { max-width: 610px; color: #c9d2cd; font-size: 1.1rem; line-height: 1.65; margin: 30px 0 32px; }
.hero-actions, .access-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 22px; border-radius: 3px; font-size: .82rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--acid); box-shadow: 0 14px 38px rgba(185,255,49,.13); }
.button-primary:hover { box-shadow: 0 18px 45px rgba(185,255,49,.25); }
.button-ghost { border: 1px solid rgba(255,255,255,.25); background: rgba(4,11,9,.44); backdrop-filter: blur(8px); }
.button-ghost:hover { border-color: var(--acid); color: var(--acid); }
.contract { width: min(720px, 100%); min-height: 53px; margin-top: 20px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; border: 1px solid rgba(255,255,255,.15); background: rgba(2,8,7,.76); }
.contract-label { color: var(--acid); font-size: .7rem; font-weight: 900; letter-spacing: .13em; padding: 0 16px; }
.contract code { padding: 0 14px; overflow: hidden; text-overflow: ellipsis; color: #bdc9c2; font-size: .75rem; white-space: nowrap; }
.contract button { align-self: stretch; border: 0; border-left: 1px solid rgba(255,255,255,.15); padding: 0 18px; background: transparent; color: var(--white); cursor: pointer; font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.contract button:hover { background: var(--acid); color: var(--ink); }
.copy-success { display: none; }
.contract.copied .copy-default { display: none; }
.contract.copied .copy-success { display: inline; }
.hero-status { position: absolute; right: max(24px, calc((100vw - 1380px) / 2)); bottom: 34px; display: flex; gap: 9px; }
.hero-status div { min-width: 96px; padding: 11px 13px; border-top: 1px solid rgba(255,255,255,.23); background: rgba(3,9,8,.56); backdrop-filter: blur(8px); }
.hero-status span, .hero-status b { display: block; font-size: .62rem; letter-spacing: .12em; }
.hero-status span { color: var(--muted); margin-bottom: 5px; }
.hero-status b { color: var(--white); }
.hero-status .live { color: var(--acid); }
.signal-lens { position: absolute; width: 170px; height: 170px; border: 1px solid rgba(185,255,49,.6); border-radius: 50%; z-index: 1; pointer-events: none; transform: translate(-50%, -50%); left: var(--x, 72%); top: var(--y, 42%); opacity: 0; transition: opacity .25s ease; box-shadow: inset 0 0 35px rgba(185,255,49,.07), 0 0 30px rgba(185,255,49,.08); }
.hero:hover .signal-lens { opacity: 1; }
.signal-lens::before, .signal-lens::after { content: ""; position: absolute; background: rgba(185,255,49,.45); }
.signal-lens::before { width: 220px; height: 1px; top: 50%; left: -25px; }
.signal-lens::after { height: 220px; width: 1px; left: 50%; top: -25px; }
.signal-lens i { position: absolute; inset: 20px; border: 1px dashed rgba(185,255,49,.38); border-radius: 50%; animation: spin 12s linear infinite; }
.signal-lens span { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); color: var(--acid); font-size: .56rem; letter-spacing: .15em; white-space: nowrap; }
.lens-hint { position: absolute; left: max(24px, calc((100vw - 1380px) / 2)); bottom: 36px; color: #89968f; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }

.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--acid); color: var(--ink); }
.ticker div { display: flex; width: max-content; align-items: center; gap: 28px; padding: 14px 0; animation: ticker 26s linear infinite; font-size: .72rem; font-weight: 950; letter-spacing: .12em; }
.ticker i { font-style: normal; }

.section { width: var(--page); margin: 0 auto; padding: 130px 0; position: relative; }
.section-index { position: absolute; top: 38px; left: 0; color: #66736c; font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.story { display: grid; grid-template-columns: .88fr 1.12fr; gap: 90px; }
.story-intro { position: sticky; top: 130px; align-self: start; }
h2 { font-size: clamp(3.8rem, 7vw, 7.1rem); }
.story-intro > p:last-child, .relay-copy > p { max-width: 510px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; margin-top: 26px; }
.story-track { border-top: 1px solid var(--line); }
.story-card { min-height: 220px; display: grid; grid-template-columns: 64px 1fr; gap: 30px; padding: 42px 16px 42px 0; border-bottom: 1px solid var(--line); color: #7f8d86; transition: color .35s ease, transform .35s ease; }
.story-card.active { color: var(--white); transform: translateX(10px); }
.story-card > span { font-family: monospace; color: var(--acid); font-size: .75rem; }
.story-card div > p:first-child, .code-grid article > p:first-of-type { color: var(--acid); font-size: .68rem; font-weight: 900; letter-spacing: .15em; }
.story-card h3, .code-grid h3 { margin: 14px 0; font-size: 1.75rem; line-height: 1.1; }
.story-card div > p:last-child, .code-grid article > p:last-child { margin: 0; max-width: 480px; line-height: 1.65; }

.code-section { width: 100%; padding-left: max(24px, calc((100vw - 1180px) / 2)); padding-right: max(24px, calc((100vw - 1180px) / 2)); background: var(--acid); color: var(--ink); }
.code-section .section-index { left: max(24px, calc((100vw - 1180px) / 2)); color: rgba(3,9,8,.55); }
.code-section .eyebrow { color: var(--ink); }
.code-section .eyebrow span { background: var(--ink); box-shadow: none; }
.code-head { display: grid; grid-template-columns: 1fr 1.4fr; align-items: end; }
.code-head h2 { grid-column: 2; }
.code-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 70px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.code-grid article { position: relative; min-height: 330px; padding: 40px 28px 34px 0; }
.code-grid article + article { border-left: 1px solid rgba(3,9,8,.45); padding-left: 28px; }
.glyph { display: block; font-size: 3rem; margin-bottom: 48px; }
.code-grid article > p:first-of-type { color: var(--ink); }

.relay { width: 100%; min-height: 680px; padding-left: max(24px, calc((100vw - 1180px) / 2)); padding-right: max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; overflow: hidden; background: #06100f; }
.relay-lines { position: absolute; inset: 0; pointer-events: none; opacity: .45; }
.relay-lines i { --d: 0s; --rot: -5deg; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(185,255,49,.8), transparent); transform: rotate(var(--rot)); animation: pulse 3s var(--d) ease-in-out infinite; }
.relay-lines i:nth-child(1) { top: 16%; --rot: -5deg; --d: -.2s; }.relay-lines i:nth-child(2) { top: 26%; --rot: -3.8deg; --d: -.7s; }.relay-lines i:nth-child(3) { top: 36%; --rot: -2.6deg; --d: -1.3s; }.relay-lines i:nth-child(4) { top: 46%; --rot: -1.4deg; --d: -1.9s; }.relay-lines i:nth-child(5) { top: 56%; --rot: -.2deg; --d: -2.4s; }.relay-lines i:nth-child(6) { top: 66%; --rot: 1deg; --d: -2.8s; }.relay-lines i:nth-child(7) { top: 76%; --rot: 2.2deg; --d: -3.2s; }
.relay-copy, .relay-console { position: relative; z-index: 2; }
.relay-button { min-height: 56px; margin-top: 20px; padding: 0 24px; border: 1px solid var(--acid); border-radius: 3px; background: transparent; color: var(--acid); cursor: pointer; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; transition: .25s ease; }
.relay-button:hover, .relay.synced .relay-button { background: var(--acid); color: var(--ink); box-shadow: 0 0 40px rgba(185,255,49,.2); }
.relay-done { display: none; }
.relay.synced .relay-idle { display: none; }.relay.synced .relay-done { display: inline; }
.relay-console { width: min(440px, 100%); aspect-ratio: 1; justify-self: center; border: 1px solid rgba(185,255,49,.25); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(185,255,49,.09), transparent 62%); box-shadow: inset 0 0 90px rgba(185,255,49,.05); }
.relay-console::before, .relay-console::after { content: ""; position: absolute; border: 1px dashed rgba(185,255,49,.22); border-radius: 50%; }
.relay-console::before { inset: 28px; animation: spin 30s linear infinite; }.relay-console::after { inset: 76px; animation: spin 20s linear infinite reverse; }
.scanner { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--acid); margin-bottom: 30px; }
.scanner div { width: 12px; height: 12px; border-radius: 50%; background: #405348; transition: .3s ease; }
.relay.synced .scanner div { background: var(--acid); box-shadow: 0 0 28px 12px rgba(185,255,49,.36); animation: ping 1.2s ease-in-out infinite; }
.relay-console p, .relay-console span { margin: 0; color: var(--muted); font-size: .65rem; letter-spacing: .16em; }
.relay-console strong { margin: 12px 0; color: var(--white); font: 700 1.1rem monospace; letter-spacing: .08em; }

.access { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.access-panel { padding: 28px; border: 1px solid var(--line); background: var(--panel); }
.contract-large { width: 100%; margin: 0 0 14px; }
.access-actions .button { flex: 1; }
.verify-note { margin: 20px 0 0; color: #78867f; font-size: .75rem; }

footer { min-height: 130px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: #85928c; font-size: .68rem; letter-spacing: .11em; }
footer div { display: flex; gap: 22px; }
footer a:hover { color: var(--acid); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 50% { transform: scale(.68); opacity: .65; } }
@keyframes pulse { 50% { opacity: .22; transform: translateX(2%) rotate(var(--rot)); } }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  :root { --page: min(100% - 32px, 680px); }
  .site-header { height: 66px; padding: 0 16px; grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .brand { font-size: .65rem; }.brand b { display: none; }
  .mini-buy { padding: 9px 12px; }
  .hero { height: auto; min-height: 780px; align-items: flex-end; padding-bottom: 130px; }
  .hero-art { object-position: 72% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(3,9,8,.98) 0%, rgba(3,9,8,.72) 58%, rgba(3,9,8,.08) 100%); }
  .hero-content { margin-top: 200px; }
  h1 { font-size: clamp(4rem, 17vw, 6.2rem); }
  .hero-copy { font-size: 1rem; }
  .hero-status { right: 16px; bottom: 24px; }.lens-hint { display: none; }.signal-lens { display: none; }
  .story, .access { grid-template-columns: 1fr; gap: 56px; }
  .story-intro { position: static; }
  .section { padding: 100px 0; }
  .code-head { display: block; }.code-head h2 { margin-top: 24px; }
  .code-grid { grid-template-columns: 1fr; }
  .code-grid article { min-height: auto; padding: 34px 0; }
  .code-grid article + article { border-left: 0; border-top: 1px solid rgba(3,9,8,.45); padding-left: 0; }
  .glyph { margin-bottom: 25px; }
  .relay { grid-template-columns: 1fr; gap: 60px; padding-top: 110px; padding-bottom: 110px; }
  .relay-console { width: min(380px, 90vw); }
  footer { padding: 34px 16px; flex-wrap: wrap; gap: 22px; }
}

@media (max-width: 560px) {
  .hero { min-height: 850px; }
  .hero-art { height: 58%; object-position: 76% top; }
  .hero-shade { background: linear-gradient(0deg, rgba(3,9,8,1) 0%, rgba(3,9,8,.96) 48%, rgba(3,9,8,.1) 76%); }
  .hero-content { margin-top: 270px; }
  .hero-actions { flex-direction: column; }.button { width: 100%; }
  .contract code { font-size: .64rem; }.contract-label { padding: 0 10px; }.contract button { padding: 0 10px; }
  .hero-status { left: 16px; right: 16px; justify-content: stretch; }.hero-status div { flex: 1; min-width: 0; }
  h2 { font-size: clamp(3.4rem, 16vw, 5rem); }
  .story-card { grid-template-columns: 38px 1fr; gap: 12px; }
  .access-panel { padding: 18px; }
  footer > p { order: 3; width: 100%; }
}

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