:root {
  --ink: #070319;
  --ink-2: #0e0730;
  --violet: #241062;
  --magenta: #ff2ed8;
  --pink: #ff63e6;
  --cyan: #73f7ff;
  --white: #fff9e8;
  --muted: #aaa2ca;
  --line: rgba(255,255,255,.15);
  --panel: rgba(15, 7, 46, .72);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 74% 14%, rgba(145, 28, 210, .32), transparent 28rem),
    radial-gradient(circle at 15% 45%, rgba(45, 34, 155, .22), transparent 25rem),
    var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, #000, transparent 85%);
  z-index: 0;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { background: var(--magenta); color: #12031b; }

.noise {
  position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .08;
  background-image: url("assets/noise.svg");
}
.scanline {
  position: fixed; z-index: 19; pointer-events: none; inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(255,255,255,.017) 4px);
}
.site-header {
  position: absolute; z-index: 10; top: 0; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 64px), var(--max)); height: 92px;
  display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 900; letter-spacing: .2em; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--pink); border-radius: 50%;
  color: var(--pink); font-size: 22px; text-shadow: 0 0 15px var(--magenta); box-shadow: inset 0 0 14px rgba(255,46,216,.16), 0 0 18px rgba(255,46,216,.15);
}
.desktop-nav { display: flex; gap: 38px; }
.desktop-nav a, .header-link { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; transition: color .2s ease; }
.desktop-nav a:hover, .header-link:hover { color: var(--white); }

main, footer { position: relative; z-index: 1; }
.hero {
  position: relative; min-height: 100svh; max-width: var(--max); margin: auto; padding: 148px 32px 90px;
  display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 32px;
}
.hero::after {
  content: ""; position: absolute; width: 80vw; height: 1px; left: 50%; bottom: 52px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line) 10%, var(--line) 90%, transparent);
}
.hero-copy { position: relative; z-index: 3; max-width: 670px; }
.eyebrow, .section-kicker { color: var(--cyan); font-size: 11px; letter-spacing: .23em; font-weight: 900; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; }
.eyebrow span { width: 28px; height: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
h1, h2 {
  margin: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-weight: 900; text-transform: uppercase;
  line-height: .82; letter-spacing: -.025em;
}
h1 { font-size: clamp(4.7rem, 8.25vw, 8.9rem); }
h2 { font-size: clamp(4.25rem, 8vw, 8.2rem); }
h1 em, h2 em { color: transparent; font-style: normal; -webkit-text-stroke: 1.5px var(--pink); text-shadow: 0 0 26px rgba(255,46,216,.45); }
.hero-deck { max-width: 580px; margin: 30px 0 26px; color: #d3cce9; font-size: 17px; line-height: 1.65; }
.hero-actions, .signal-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  border: 1px solid var(--line); font-size: 11px; letter-spacing: .15em; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { color: #170421; background: var(--white); border-color: var(--white); box-shadow: 0 0 30px rgba(255,99,230,.24); }
.btn-primary:hover { box-shadow: 0 0 35px rgba(255,99,230,.5); }
.btn-ghost { background: rgba(255,255,255,.035); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.contract {
  margin-top: 28px; padding: 13px 13px 13px 17px; max-width: 570px; border: 1px solid var(--line);
  background: rgba(8,3,27,.63); display: flex; gap: 12px; align-items: center; justify-content: space-between;
}
.contract > div { overflow: hidden; }
.contract-label { display: block; margin-bottom: 5px; color: #847da1; font-size: 9px; letter-spacing: .19em; }
.contract code { display: block; overflow: hidden; text-overflow: ellipsis; color: #ddd8ed; font-size: 12px; white-space: nowrap; }
.contract button { flex: 0 0 auto; padding: 10px 14px; color: var(--pink); background: transparent; border: 1px solid rgba(255,99,230,.4); cursor: pointer; font-size: 10px; letter-spacing: .16em; font-weight: 900; }

.hero-visual { position: relative; display: grid; place-items: center; min-width: 0; }
.orbit-shell { position: relative; width: min(50vw, 760px); aspect-ratio: 1; transform-style: preserve-3d; }
.orbit-shell::before {
  content: ""; position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle, rgba(255,46,216,.22), transparent 65%); filter: blur(18px);
}
.orbit-shell img { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 42px rgba(255,46,216,.5)); }
.hero-halo { position: absolute; z-index: 0; inset: 17%; border-radius: 50%; background: #31106e; filter: blur(1px); box-shadow: 0 0 100px #7d159d, inset 0 0 90px #120528; }
.orbit { position: absolute; z-index: 2; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; pointer-events: none; }
.orbit-a { inset: 5%; transform: rotate(17deg) scaleY(.72); }
.orbit-b { inset: 14%; border-style: dashed; transform: rotate(-28deg) scaleY(.68); animation: orbit-spin 18s linear infinite; }
.satellite { position: absolute; z-index: 4; width: 7px; height: 7px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 16px var(--cyan); }
.sat-1 { top: 19%; right: 12%; animation: satellite 4s ease-in-out infinite; }
.sat-2 { left: 8%; bottom: 28%; background: var(--pink); box-shadow: 0 0 16px var(--pink); animation: satellite 4s ease-in-out -2s infinite; }
.telemetry { position: absolute; z-index: 5; padding: 9px 12px; border-left: 2px solid var(--cyan); background: rgba(6,3,25,.74); backdrop-filter: blur(7px); font-size: 9px; letter-spacing: .17em; }
.telemetry span { display: block; color: #928aad; margin-bottom: 4px; }
.telemetry b { color: var(--cyan); }
.telemetry-top { top: 15%; left: 5%; }
.telemetry-bottom { right: 5%; bottom: 18%; border-color: var(--pink); }
.telemetry-bottom b { color: var(--pink); }
.hero-index { position: absolute; left: 32px; bottom: 24px; color: var(--pink); font-weight: 900; letter-spacing: .14em; }
.hero-index span { color: #575069; margin: 0 4px; }
.scroll-cue { position: absolute; right: 32px; bottom: 24px; color: #89829f; font-size: 9px; letter-spacing: .2em; font-weight: 800; }
.scroll-cue span { margin-left: 12px; color: var(--pink); }

.ticker { position: relative; z-index: 2; overflow: hidden; padding: 16px 0; background: var(--magenta); color: #16051e; transform: rotate(-1deg) scale(1.02); box-shadow: 0 0 38px rgba(255,46,216,.34); }
.ticker-track { display: flex; width: max-content; align-items: center; gap: 28px; animation: ticker 24s linear infinite; font-family: Impact, sans-serif; font-size: 21px; letter-spacing: .08em; }
.ticker-track i { font-style: normal; font-size: 14px; }

.section { max-width: var(--max); margin: auto; padding: 150px 32px; }
.lore { position: relative; }
.lore-grid { margin-top: 46px; display: grid; grid-template-columns: 1.1fr .8fr .65fr; gap: 56px; align-items: center; }
.lore-title-wrap { position: relative; padding-left: 48px; }
.vertical-word { position: absolute; margin: 0; left: 0; top: 7px; writing-mode: vertical-rl; color: #625b77; font-size: 9px; letter-spacing: .32em; }
.lore-copy { color: var(--muted); font-size: 16px; line-height: 1.75; }
.lore-copy .lead { color: var(--white); font-size: 23px; line-height: 1.35; font-weight: 700; }
.lore-note { margin-top: 34px; padding: 19px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lore-note span { display: block; color: var(--pink); font-size: 9px; letter-spacing: .23em; margin-bottom: 8px; }
.lore-note strong { font-size: 13px; letter-spacing: .12em; }
.moon-window { position: relative; min-height: 430px; border: 1px solid var(--line); overflow: hidden; background: linear-gradient(160deg, rgba(255,255,255,.04), transparent); }
.moon-window::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(255,255,255,.025) 9px); }
.moon-disc { position: absolute; width: 330px; height: 330px; top: 44px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 36% 32%, #ff87e9, #b720b6 42%, #371069 76%); box-shadow: 0 0 70px rgba(255,46,216,.52); }
.moon-disc::before, .moon-disc::after, .moon-disc span { content: ""; position: absolute; border-radius: 50%; background: rgba(40,7,71,.18); box-shadow: inset 5px 4px 12px rgba(17,4,46,.16); }
.moon-disc::before { width: 78px; height: 78px; left: 54px; top: 75px; }
.moon-disc::after { width: 42px; height: 42px; right: 54px; top: 130px; }
.moon-disc span { width: 64px; height: 64px; left: 140px; bottom: 52px; }
.coordinates { position: absolute; bottom: 18px; left: 18px; color: #948ca9; font: 9px/1.6 ui-monospace, monospace; letter-spacing: .18em; }

.loop-section { border-top: 1px solid var(--line); }
.loop-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.loop-heading .section-kicker { margin-bottom: 24px; }
.loop-heading > p { max-width: 300px; color: var(--muted); line-height: 1.6; }
.loop-console { margin-top: 70px; min-height: 660px; display: grid; grid-template-columns: 1.35fr .65fr; border: 1px solid var(--line); background: radial-gradient(circle at 30% 50%, rgba(114,22,152,.23), transparent 38%), rgba(10,4,32,.66); overflow: hidden; }
.loop-stage { position: relative; min-height: 660px; display: grid; place-items: center; border-right: 1px solid var(--line); }
.loop-stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 30px 30px; mask-image: radial-gradient(circle, black, transparent 72%); }
.loop-ring { position: absolute; border-radius: 50%; }
.ring-outer { width: 480px; height: 480px; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 0 70px rgba(255,46,216,.1), inset 0 0 50px rgba(255,46,216,.08); }
.ring-inner { width: 330px; height: 330px; border: 1px dashed rgba(115,247,255,.27); animation: orbit-spin 30s linear infinite reverse; }
.loop-core { position: relative; z-index: 2; display: grid; place-items: center; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #5a1678, #13062f 66%); box-shadow: 0 0 70px rgba(255,46,216,.35); }
.loop-core span { color: var(--pink); font-family: Impact, sans-serif; font-size: 64px; line-height: 1; }
.loop-core strong { font-size: 10px; letter-spacing: .28em; }
.phase { --radius: 240px; position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--radius)) rotate(calc(-1 * var(--angle))); padding: 10px 13px; color: #9289a8; border: 1px solid rgba(255,255,255,.16); background: #0d0626; cursor: pointer; font-size: 9px; letter-spacing: .14em; transition: color .25s, border .25s, box-shadow .25s, transform .25s; }
.phase span { color: #5e5770; margin-right: 5px; }
.phase:hover, .phase.active { color: var(--white); border-color: var(--pink); box-shadow: 0 0 25px rgba(255,46,216,.28); }
.phase.active { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--radius)) rotate(calc(-1 * var(--angle))) scale(1.08); }
.loop-runner { position: absolute; z-index: 4; width: 13px; height: 13px; left: calc(50% - 6px); top: calc(50% - 6px); border-radius: 50%; background: var(--white); box-shadow: 0 0 10px var(--white), 0 0 24px var(--magenta); transform: rotate(-90deg) translateX(240px); transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.phase-panel { align-self: center; padding: 50px; }
.panel-id { color: var(--cyan); font: 10px ui-monospace, monospace; letter-spacing: .22em; }
.phase-panel h3 { margin: 28px 0 18px; max-width: 380px; font-family: Impact, sans-serif; font-size: clamp(2.5rem, 4vw, 4.5rem); line-height: .9; letter-spacing: .01em; }
.phase-panel p { min-height: 108px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.signal-meter { height: 4px; margin: 38px 0 16px; background: rgba(255,255,255,.09); overflow: hidden; }
.signal-meter span { display: block; width: 27%; height: 100%; background: linear-gradient(90deg, var(--magenta), var(--cyan)); box-shadow: 0 0 14px var(--magenta); transition: width .6s ease; }
.panel-meta { display: flex; justify-content: space-between; color: #777084; font-size: 9px; letter-spacing: .17em; }
.panel-meta b { color: var(--white); }

.signal { padding-top: 70px; }
.signal-card { position: relative; min-height: 490px; padding: 70px; display: flex; align-items: center; justify-content: space-between; gap: 40px; border: 1px solid rgba(255,99,230,.38); overflow: hidden; background: linear-gradient(115deg, rgba(255,46,216,.17), rgba(33,10,94,.38) 55%, rgba(9,4,29,.86)); box-shadow: inset 0 0 80px rgba(255,46,216,.08), 0 0 80px rgba(87,20,120,.12); }
.signal-card::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 13px, rgba(255,255,255,.018) 14px); }
.signal-copy { position: relative; z-index: 2; }
.signal-copy .section-kicker { margin-bottom: 28px; }
.signal-copy p { color: var(--muted); font-size: 17px; margin: 27px 0; }
.signal-glyph { position: relative; z-index: 2; flex: 0 0 auto; width: 310px; height: 310px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 70px rgba(255,46,216,.22); }
.signal-glyph span { color: var(--pink); font-size: 160px; line-height: 1; text-shadow: 0 0 30px rgba(255,46,216,.5); animation: pulse 3s ease-in-out infinite; }
.signal-glyph small { position: absolute; text-align: center; font-weight: 900; letter-spacing: .22em; font-size: 8px; }
.glyph-ring { position: absolute; inset: 24px; border: 1px dashed rgba(115,247,255,.35); border-radius: 50%; animation: orbit-spin 18s linear infinite; }
.disclaimer { display: grid; grid-template-columns: .4fr 1fr; gap: 40px; padding: 30px 0; border-bottom: 1px solid var(--line); color: #686174; }
.disclaimer span { color: #8f879f; font-size: 9px; letter-spacing: .22em; }
.disclaimer p { margin: 0; max-width: 780px; font-size: 12px; line-height: 1.6; }
footer { max-width: var(--max); min-height: 130px; margin: auto; padding: 30px 32px; display: flex; justify-content: space-between; align-items: center; color: #756e83; font-size: 9px; letter-spacing: .17em; }
footer .brand { color: var(--white); }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 28px; transform: translate(-50%, 30px); padding: 13px 18px; color: #16051e; background: var(--white); font-size: 10px; font-weight: 900; letter-spacing: .13em; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes satellite { 50% { transform: scale(1.8); opacity: .55; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { transform: scale(1.06); text-shadow: 0 0 55px rgba(255,46,216,.82); } }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .orbit-shell { width: 54vw; margin-left: -4vw; }
  .lore-grid { grid-template-columns: 1.1fr .9fr; }
  .moon-window { grid-column: 1 / -1; min-height: 300px; }
  .moon-disc { top: -20px; }
  .loop-console { grid-template-columns: 1fr; }
  .loop-stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .phase-panel { max-width: 680px; }
}

@media (max-width: 760px) {
  .site-header { width: calc(100% - 36px); height: 72px; }
  .desktop-nav { display: none; }
  .header-link { font-size: 9px; }
  .hero { min-height: 100svh; padding: 128px 18px 88px; display: block; overflow: hidden; }
  .hero::before { content: ""; position: absolute; z-index: 2; inset: 70px 0 0; background: linear-gradient(90deg, rgba(7,3,25,.9) 0%, rgba(7,3,25,.55) 56%, rgba(7,3,25,.12) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 45%); pointer-events: none; }
  .hero-copy { z-index: 5; max-width: 92%; }
  h1 { font-size: clamp(4.15rem, 20.5vw, 6.4rem); }
  h2 { font-size: clamp(3.7rem, 18vw, 6rem); }
  .hero-deck { font-size: 15px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .contract { max-width: none; }
  .hero-visual { position: absolute; z-index: 1; top: 78px; right: -42vw; width: 118vw; opacity: .68; }
  .orbit-shell { width: 118vw; margin: 0; }
  .telemetry { display: none; }
  .hero-index, .scroll-cue { bottom: 21px; }
  .hero-index { left: 18px; }
  .scroll-cue { right: 18px; }
  .section { padding: 100px 18px; }
  .lore-grid { grid-template-columns: 1fr; gap: 42px; }
  .lore-title-wrap { padding-left: 30px; }
  .moon-window { grid-column: auto; min-height: 340px; }
  .loop-heading { align-items: start; flex-direction: column; }
  .loop-console { margin-top: 46px; min-height: 0; }
  .loop-stage { min-height: 480px; overflow: hidden; }
  .ring-outer { width: 320px; height: 320px; }
  .ring-inner { width: 230px; height: 230px; }
  .loop-core { width: 138px; height: 138px; }
  .loop-core span { font-size: 48px; }
  .phase { --radius: 160px; padding: 8px; font-size: 7px; }
  .loop-runner { transform: rotate(-90deg) translateX(160px); }
  .phase-panel { padding: 36px 24px 44px; }
  .phase-panel p { min-height: 0; }
  .signal { padding-top: 30px; }
  .signal-card { padding: 45px 24px 370px; min-height: 720px; }
  .signal-glyph { position: absolute; width: 280px; height: 280px; right: -20px; bottom: 34px; }
  .signal-glyph span { font-size: 140px; }
  .signal-actions .btn { flex: 1 1 100%; }
  .disclaimer { grid-template-columns: 1fr; gap: 14px; }
  footer { padding: 32px 18px; flex-direction: column; align-items: flex-start; gap: 18px; }
}

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