:root {
  --ink: #06060a;
  --ink-2: #0d0d15;
  --paper: #f4f1ff;
  --muted: #9b98ad;
  --line: rgba(255, 255, 255, 0.15);
  --violet: #7357ff;
  --blue: #315bff;
  --pink: #ed45c6;
  --cyan: #73e6ff;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--paper);
  background:
    linear-gradient(rgba(255,255,255,.023) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.023) 1px, transparent 1px),
    var(--ink);
  background-size: 64px 64px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

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

.site-header {
  position: fixed;
  z-index: 15;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  padding: 0 clamp(18px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 6, 10, .78);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 760; letter-spacing: -.03em; }
.brand-mark { position: relative; width: 27px; height: 27px; border: 5px solid var(--violet); border-right-color: var(--pink); border-radius: 50%; transform: rotate(-25deg); }
.brand-mark::after { content: ""; position: absolute; left: 4px; right: 4px; top: 6px; height: 5px; background: var(--paper); transform: rotate(25deg); }
.brand-mark i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); right: -6px; top: -1px; box-shadow: 0 0 16px var(--cyan); }

.header-actions { display: flex; align-items: center; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.site-nav a { position: relative; padding: 12px 0; color: #a9a5b8; font-size: .62rem; font-weight: 800; letter-spacing: .14em; transition: color .2s ease; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 5px; height: 1px; background: linear-gradient(90deg, var(--violet), var(--pink)); transition: right .25s ease; }
.site-nav a:hover { color: var(--paper); }
.site-nav a:hover::after { right: 0; }
.chain-label, .quiet-link { font-size: .74rem; font-weight: 760; letter-spacing: .14em; }
.chain-label { display: flex; align-items: center; gap: 8px; color: #c6c2d7; }
.chain-label i, .status i { width: 7px; height: 7px; background: #56ff9a; border-radius: 50%; box-shadow: 0 0 14px #56ff9a; }
.quiet-link { transition: color .2s ease; }
.quiet-link:hover { color: var(--pink); }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 2px;
  background: transparent;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.6); }
.button-small { min-height: 38px; padding: 0 16px; font-size: .68rem; }
.button-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.button-primary:hover { background: var(--pink); border-color: var(--pink); }
.button-ghost { background: rgba(255,255,255,.04); }

.section-shell { padding-left: clamp(20px, 5vw, 80px); padding-right: clamp(20px, 5vw, 80px); }
.hero {
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 70px);
  padding-bottom: 56px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-copy { position: relative; z-index: 3; max-width: 850px; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; font-size: .72rem; letter-spacing: .16em; }
.eyebrow span { color: var(--pink); font-weight: 850; }
.eyebrow b { color: #aaa6b8; font-weight: 680; }
.hero h1, .signal h2, .finale h2 {
  margin: 0;
  text-transform: uppercase;
  font-weight: 900;
  line-height: .77;
  letter-spacing: -.085em;
}
.hero h1 { font-size: clamp(5.6rem, 11.9vw, 12rem); }
.hero h1 span { display: block; }
.hero h1 span:last-child {
  color: transparent;
  -webkit-text-stroke: 2px rgba(244,241,255,.95);
  filter: drop-shadow(0 0 28px rgba(115,87,255,.2));
}
.hero-statement { margin: 40px 0 18px; color: #e2dfeb; font-size: clamp(1.2rem, 2vw, 1.7rem); line-height: 1.28; letter-spacing: -.025em; }
.hero-intro { max-width: 610px; margin: 0 0 32px; color: #9894a7; font-size: 1rem; line-height: 1.62; }
.hero-intro strong { color: #e3dfea; font-weight: 750; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: #d6d2df; font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.text-link span { color: var(--pink); font-size: 1rem; }
.text-action { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.text-action span { font-size: .61rem; letter-spacing: .16em; color: var(--muted); }
.text-action code { color: #d9d5e3; font-family: "Courier New", monospace; font-size: .78rem; }

.portal-wrap { position: relative; width: min(47vw, 700px); aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
#portal { position: absolute; inset: 0; width: 100%; height: 100%; }
.portal-core { position: relative; z-index: 2; width: 34%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; display: grid; place-content: center; text-align: center; background: rgba(6,6,10,.55); box-shadow: inset 0 0 50px rgba(115,87,255,.2), 0 0 80px rgba(49,91,255,.14); backdrop-filter: blur(10px); }
.portal-core span, .portal-core small { font-size: .56rem; letter-spacing: .25em; color: #a9a5ba; }
.portal-core strong { font-size: clamp(3rem, 6vw, 6rem); line-height: .85; font-weight: 400; background: linear-gradient(145deg, var(--blue), var(--pink)); -webkit-background-clip: text; color: transparent; }
.portal-caption { position: absolute; z-index: 3; padding: 8px 10px; border: 1px solid var(--line); background: var(--ink); font-size: .58rem; font-weight: 750; letter-spacing: .18em; }
.portal-caption-top { top: 14%; right: 1%; }
.portal-caption-bottom { bottom: 14%; left: 0; }
.scroll-mark { position: absolute; right: 34px; bottom: 28px; display: flex; align-items: center; gap: 14px; writing-mode: vertical-rl; font-size: .56rem; letter-spacing: .19em; color: #7f7b8e; }
.scroll-mark i { height: 42px; width: 1px; background: linear-gradient(var(--pink), transparent); animation: scrollPulse 1.7s ease-in-out infinite; }

.origin { padding-top: 150px; padding-bottom: 140px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: 80px 7vw; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 80% 22%, rgba(115,87,255,.12), transparent 30%); }
.origin-lead h2 { margin: 0; font-size: clamp(3.8rem, 7.4vw, 8.6rem); font-weight: 900; line-height: .88; letter-spacing: -.07em; }
.origin-lead h2 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px rgba(237,69,198,.9); }
.origin-story { padding-top: 46px; }
.origin-story > p { margin: 0 0 22px; color: #b8b4c5; font-size: 1.08rem; line-height: 1.72; }
.origin-story strong { color: var(--paper); }
.origin-story blockquote { margin: 44px 0 26px; padding: 22px 0 22px 24px; border-left: 2px solid var(--pink); color: var(--paper); font-size: clamp(1.8rem, 3vw, 3.2rem); font-weight: 830; line-height: 1; letter-spacing: -.045em; }
.source-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(237,69,198,.55); color: #d9d5e3; font-size: .65rem; font-weight: 850; letter-spacing: .14em; }
.source-link span { color: var(--pink); font-size: .9rem; }
.open-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 14px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.open-list article { min-height: 245px; padding: 26px 22px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.012); transition: background .25s ease; }
.open-list article:hover { background: linear-gradient(150deg, rgba(115,87,255,.12), rgba(237,69,198,.04)); }
.open-list article > span { color: var(--pink); font: 800 .62rem/1 "Courier New", monospace; }
.open-list h3 { margin: 80px 0 14px; font-size: clamp(1.15rem, 1.5vw, 1.65rem); line-height: 1; letter-spacing: -.045em; }
.open-list p { margin: 0; color: #928e9f; font-size: .88rem; line-height: 1.55; }

.signal { min-height: 900px; display: grid; grid-template-columns: minmax(330px,.82fr) minmax(480px,1.18fr); align-items: center; gap: 6vw; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(49,91,255,.07), transparent 38%); }
.signal-copy { max-width: 650px; }
.signal h2, .finale h2 { font-size: clamp(4.4rem, 8vw, 9rem); }
.signal-copy > p:not(.eyebrow) { max-width: 520px; color: #aaa6b8; font-size: 1.15rem; line-height: 1.55; }
.signal-copy .source-link { margin-top: 14px; }
.signal-stats { margin-top: 58px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.signal-stats div { padding: 22px 14px 22px 0; display: flex; flex-direction: column; gap: 8px; }
.signal-stats div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.signal-stats strong { font-size: clamp(1.5rem,3vw,2.6rem); }
.signal-stats span { font-size: .58rem; letter-spacing: .15em; color: var(--muted); }

.globe-stage { position: relative; width: min(50vw, 720px); aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
#globe { width: 100%; height: 100%; }
.globe-axis { position: absolute; width: 92%; height: 1px; background: linear-gradient(90deg, transparent, rgba(115,87,255,.7), transparent); transform: rotate(-17deg); box-shadow: 0 0 30px var(--violet); }
.globe-tag { position: absolute; padding: 8px 12px; background: var(--ink); border: 1px solid var(--line); font-size: .56rem; letter-spacing: .16em; }
.tag-a { left: 3%; top: 23%; }
.tag-b { right: 1%; bottom: 24%; }
.tag-c { right: 12%; top: 14%; color: #56ff9a; }

.protocol { min-height: 900px; padding-top: 100px; padding-bottom: 90px; display: flex; flex-direction: column; justify-content: space-between; border-bottom: 1px solid var(--line); overflow: hidden; }
.protocol-head, .protocol-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.status { display: flex; align-items: center; gap: 10px; font-size: .62rem; letter-spacing: .16em; color: #aaa6b8; }
.token-thesis { margin: 52px 0 12px; }
.token-thesis p { margin: 0; font-size: clamp(2rem, 4.8vw, 5.8rem); font-weight: 900; line-height: .96; letter-spacing: -.055em; }
.token-thesis p:first-child { color: #777385; }
.token-thesis strong { color: var(--pink); }
.token-display { position: relative; min-height: 450px; display: grid; place-items: center; }
.token-word { position: relative; z-index: 2; font-size: clamp(4.5rem, 11vw, 12rem); font-weight: 900; line-height: .8; letter-spacing: -.085em; background: linear-gradient(105deg, #fff 15%, #9aaaff 42%, #7557ff 62%, #ef45c7 85%); -webkit-background-clip: text; color: transparent; filter: drop-shadow(0 0 50px rgba(115,87,255,.25)); }
.token-word span { font-size: .42em; vertical-align: top; margin-right: .04em; }
.token-orbit { position: absolute; width: 58%; aspect-ratio: 1; border: 1px solid rgba(115,87,255,.5); border-radius: 50%; animation: orbit 18s linear infinite; }
.token-orbit::before, .token-orbit::after { content: ""; position: absolute; inset: 9%; border: 1px solid rgba(237,69,198,.24); border-radius: 50%; transform: rotate(36deg) scaleY(.38); }
.token-orbit::after { transform: rotate(-36deg) scaleY(.38); }
.token-orbit i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
.token-orbit i:nth-child(1) { top: 14%; left: 12%; }
.token-orbit i:nth-child(2) { right: -5px; top: 50%; background: var(--pink); box-shadow: 0 0 20px var(--pink); }
.token-orbit i:nth-child(3) { bottom: 9%; left: 21%; background: var(--violet); box-shadow: 0 0 20px var(--violet); }
.token-lore { max-width: 650px; }
.token-lore h3 { margin: 0 0 18px; font-size: clamp(1.5rem, 2.4vw, 2.8rem); letter-spacing: -.04em; }
.token-lore p { margin: 0 0 12px; color: #aaa6b8; font-size: 1.04rem; line-height: 1.55; }
.token-lore p:last-child { color: #ddd9e5; font-weight: 700; }
.contract-panel { width: min(520px,100%); display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contract-panel span { grid-column: 1/-1; font-size: .58rem; letter-spacing: .16em; color: var(--muted); }
.contract-panel code { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #d8d4e1; }
.contract-panel button { padding: 0; color: var(--pink); background: 0; border: 0; font-weight: 800; font-size: .72rem; cursor: pointer; }

.finale { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; }
#finalCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.finale::before { content: ""; position: absolute; width: min(72vw,900px); aspect-ratio:1; border:1px solid rgba(255,255,255,.12); border-radius:50%; box-shadow: 0 0 0 8vw rgba(115,87,255,.025), 0 0 0 17vw rgba(237,69,198,.018); }
.finale-content { position: relative; z-index: 2; }
.finale .eyebrow { justify-content: center; }
.finale h2 { font-size: clamp(6rem, 13vw, 14rem); }
.finale-content > p:not(.eyebrow) { margin: 36px 0 0; color: #aaa6b8; font-size: .76rem; font-weight: 800; line-height: 1.7; letter-spacing: .17em; }
.finale-actions { margin-top: 56px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

footer { min-height: 110px; padding: 28px clamp(20px,5vw,80px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; border-top: 1px solid var(--line); }
footer p, footer div { font-size: .58rem; letter-spacing: .16em; color: var(--muted); }
footer p { text-align: center; }
footer div { justify-self: end; display: flex; gap: 24px; }
.toast { position: fixed; z-index: 40; right: 24px; bottom: 24px; padding: 15px 18px; border: 1px solid var(--violet); background: #11101b; font-size: .67rem; font-weight: 800; letter-spacing: .14em; transform: translateY(150%); opacity: 0; transition: .28s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes scrollPulse { 0%,100% { opacity:.25; transform:scaleY(.5); transform-origin:top; } 50% { opacity:1; transform:scaleY(1); } }

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .site-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 120px; overflow: hidden; }
  .hero-copy { text-align: center; margin: 0 auto; }
  .hero-actions, .eyebrow { justify-content: center; }
  .text-action { text-align: center; }
  .portal-wrap { position: absolute; width: 78vw; max-width: 680px; right: -22vw; top: 20%; opacity: .58; }
  .signal { grid-template-columns: 1fr; padding-top: 110px; padding-bottom: 80px; }
  .signal-copy { text-align: center; margin: 0 auto; }
  .signal-copy .eyebrow { justify-content: center; }
  .signal-copy > p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
  .globe-stage { width: min(88vw,680px); }
  .protocol-bottom { flex-direction: column; }
  .protocol-bottom .contract-panel { align-self: flex-end; }
  .origin { grid-template-columns: 1fr; gap: 30px; }
  .origin-story { padding-top: 0; max-width: 720px; }
  .open-list { grid-template-columns: repeat(2, 1fr); }
  .open-list article:last-child { grid-column: 1 / -1; }
}

@media (max-width: 660px) {
  body { background-size: 38px 38px; }
  .site-header { padding: 0 16px; }
  .chain-label, .quiet-link { display: none; }
  .brand { font-size: .85rem; }
  .hero { min-height: 860px; align-items: start; padding-top: 142px; }
  .hero h1 { font-size: clamp(5.2rem, 25vw, 8rem); }
  .hero-statement { margin-top: 34px; }
  .hero-intro { font-size: .94rem; }
  .hero-actions { flex-direction: column; gap: 20px; }
  .portal-wrap { width: 118vw; right: -49vw; top: 29%; opacity: .42; }
  .portal-caption { display: none; }
  .scroll-mark { display: none; }
  .origin { padding-top: 96px; padding-bottom: 96px; }
  .origin-lead h2 { font-size: clamp(3.3rem, 15vw, 5rem); }
  .origin-story > p { font-size: 1rem; }
  .origin-story blockquote { padding-left: 18px; font-size: clamp(1.45rem, 7vw, 2.2rem); line-height: 1.15; }
  .open-list { grid-template-columns: 1fr; }
  .open-list article, .open-list article:last-child { grid-column: auto; min-height: 200px; }
  .open-list h3 { margin-top: 58px; }
  .signal { min-height: 900px; grid-template-columns: 1fr; }
  .signal h2 { font-size: clamp(3.8rem, 17vw, 6rem); }
  .signal-stats { grid-template-columns: 1fr; }
  .signal-stats div { align-items: center; padding: 16px 0; }
  .signal-stats div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .globe-stage { width: 100vw; margin-left: -20px; }
  .protocol { min-height: 760px; padding-top: 80px; }
  .token-thesis { margin-top: 44px; }
  .token-thesis p { font-size: clamp(2.1rem, 10vw, 3.8rem); }
  .token-display { min-height: 340px; }
  .token-word { font-size: 16vw; }
  .token-orbit { width: 90%; }
  .protocol-head { align-items: center; }
  .protocol-head .eyebrow { justify-content: flex-start; margin: 0; }
  .protocol-bottom .contract-panel { align-self: stretch; }
  .finale h2 { font-size: 21vw; }
  .finale-actions { flex-direction: column; align-items: stretch; }
  footer { grid-template-columns: 1fr; text-align: center; padding: 38px 20px; }
  footer .brand, footer div { justify-self: center; }
  footer p { margin: 0; }
}

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