/* ============ TOKENS ============ */
:root {
  --bg: #05040a;
  --bg-2: #0a0816;
  --ink: #eef2ff;
  --ink-2: #b8bfdc;
  --ink-3: #8a91b4;
  --violet: #a78bfa;
  --violet-2: #7c3aed;
  --cyan: #67e8f9;
  --ice: #bae6fd;
  --line: rgba(167, 139, 250, 0.22);
  --line-2: rgba(103, 232, 249, 0.35);
  --glass: rgba(18, 14, 38, 0.55);
  --glass-2: rgba(24, 20, 52, 0.7);
  --grad: linear-gradient(100deg, #c4b5fd 0%, #67e8f9 55%, #bae6fd 100%);
  --radius: 18px;
  --font: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 70% -10%, rgba(124, 58, 237, .18), transparent 60%),
              radial-gradient(900px 600px at -10% 40%, rgba(103, 232, 249, .08), transparent 60%),
              var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
::selection { background: rgba(103, 232, 249, .35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 10px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--cyan); color: #05040a; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 40px); }

/* ============ BACKGROUND LAYERS ============ */
#quantum-field {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -2; pointer-events: none;
}
.scanlines {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.65) 100%);
}

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(5, 4, 10, .55);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(5, 4, 10, .78); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: radial-gradient(circle at 50% 50%, rgba(103,232,249,.18), rgba(124,58,237,.08) 70%);
  box-shadow: 0 0 18px rgba(103,232,249,.18), inset 0 0 12px rgba(167,139,250,.15);
}
.brand-mark { overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-mark svg { width: 30px; height: 30px; fill: none; stroke: var(--violet); stroke-width: 1.6; animation: spin 18s linear infinite; }
.brand-mark svg circle { fill: var(--cyan); stroke: none; filter: drop-shadow(0 0 4px var(--cyan)); }
.brand-word { display: flex; flex-direction: column; font-weight: 700; font-size: 20px; letter-spacing: .08em; line-height: 1.05; }
.brand-word small { font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .18em; color: var(--ink-3); text-transform: uppercase; margin-top: 3px; }

.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a {
  position: relative; text-decoration: none; color: var(--ink-2);
  font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 10px;
  transition: color .2s, background .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--glass); color: var(--ink-2);
  transition: color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.icon-btn svg { width: 17px; height: 17px; fill: currentColor; }
.icon-btn:hover { color: var(--cyan); border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(103,232,249,.15); }

/* ============ BUTTONS ============ */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 14px;
  font: 600 16px/1 var(--font); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, background .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 12px; }
.btn-lg { --h: 58px; padding: 0 28px; font-size: 17px; border-radius: 16px; }

.btn-primary {
  color: #05040a;
  background: linear-gradient(100deg, #c4b5fd, #67e8f9 60%, #bae6fd);
  box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 8px 30px rgba(103,232,249,.28), 0 0 40px rgba(167,139,250,.25);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 12px 40px rgba(103,232,249,.4), 0 0 60px rgba(167,139,250,.35); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  color: var(--ink); background: var(--glass); border-color: var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--cyan); box-shadow: 0 0 30px rgba(103,232,249,.2); }

.btn.is-success, .ca-copy.is-success { border-color: #6ee7b7 !important; color: #6ee7b7 !important; }
.btn-primary.is-success { color: #05040a !important; }

[aria-disabled="true"].btn-primary { filter: saturate(.75); }
[aria-disabled="true"] { cursor: not-allowed; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: calc(100svh - 72px);
  display: grid; align-items: center; padding: 56px 0 96px;
}
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ice);
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass);
  margin: 0 0 28px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(103,232,249,.7); animation: pulse 2s infinite; }

.hero-title {
  margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.02;
  font-size: clamp(40px, 7.4vw, 96px);
  text-wrap: balance;
}
.hero-title > span { display: block; }
.hero-title-2 { color: var(--ink); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(103,232,249,.25)); }

.hero-copy {
  max-width: 640px; margin: 28px auto 0; color: var(--ink-2);
  font-size: clamp(17px, 1.6vw, 19.5px);
}
.hero-copy strong { color: var(--ink); }

.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

.ca-bar {
  display: flex; align-items: center; gap: 12px;
  margin-top: 26px; padding: 8px 8px 8px 10px; max-width: 100%;
  border-radius: 16px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(24,20,52,.75), rgba(10,8,22,.75));
  box-shadow: 0 0 0 1px rgba(167,139,250,.08) inset, 0 0 30px rgba(103,232,249,.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ca-tag {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .14em;
  color: #05040a; background: var(--cyan); padding: 6px 9px; border-radius: 9px; flex: none;
}
.ca-value {
  font-family: var(--mono); font-size: 15px; color: var(--ice);
  overflow-wrap: anywhere; word-break: break-all; text-align: left; padding: 0 4px;
  user-select: all;
}
.ca-value.is-placeholder { color: var(--ink-3); }
.ca-copy {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px; border-radius: 11px;
  border: 1px solid var(--line); background: rgba(167,139,250,.1); color: var(--ink);
  font: 600 14px/1 var(--font); cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.ca-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.ca-copy:hover { border-color: var(--cyan); background: rgba(103,232,249,.12); color: var(--cyan); }

.tagline {
  margin: 34px 0 0; font-family: var(--mono); font-size: 13.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--violet);
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px; border: 1px solid var(--line-2);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--cyan); animation: cue 1.8s var(--ease) infinite;
}

/* ============ GLITCH ============ */
.glitch, .glitch-h { position: relative; display: inline-block; }
.glitch::before, .glitch::after,
.glitch-h::before, .glitch-h::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
  opacity: 0;
}
.glitch::before, .glitch-h::before { color: var(--cyan); transform: translate(-2px, 0); clip-path: inset(0 0 60% 0); mix-blend-mode: screen; }
.glitch::after,  .glitch-h::after  { color: var(--violet); transform: translate(2px, 0); clip-path: inset(55% 0 0 0); mix-blend-mode: screen; }
.glitch.is-glitching::before, .glitch-h.is-glitching::before { animation: g1 .45s steps(2) both; }
.glitch.is-glitching::after,  .glitch-h.is-glitching::after  { animation: g2 .45s steps(2) both; }
.glitch.is-glitching, .glitch-h.is-glitching { animation: jitter .45s steps(3) both; }

/* ============ SECTIONS ============ */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section-head { text-align: center; margin-bottom: 52px; }
.kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); margin: 0 0 14px; }
.section-head h2 { margin: 0; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.03em; line-height: 1.05; }
.section-sub { margin: 14px 0 0; color: var(--ink-3); font-size: 18px; }

.card {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(103,232,249,.6), transparent 35%, transparent 65%, rgba(167,139,250,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(0,0,0,.4), 0 0 40px rgba(124,58,237,.15); }
.card:hover::before { opacity: 1; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 32px 28px 30px; }
.step-num { position: absolute; top: 22px; right: 24px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); letter-spacing: .1em; }
.step-icon {
  width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 22px;
  background: radial-gradient(circle at 30% 30%, rgba(103,232,249,.22), rgba(124,58,237,.12));
  border: 1px solid var(--line-2);
  box-shadow: 0 0 24px rgba(103,232,249,.15);
}
.step-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }

.note {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 32px auto 0; max-width: 780px; padding: 14px 18px;
  border-radius: 14px; border: 1px dashed var(--line);
  color: var(--ink-3); font-size: 14.5px; line-height: 1.55;
}
.note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; }

/* tokenomics */
.tok-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tok { padding: 28px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.tok-label { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.tok-value { font-size: clamp(48px, 6vw, 72px); font-weight: 700; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 6px 0 4px; }
.tok-value em { font-style: normal; font-size: .45em; letter-spacing: 0; margin-left: 4px; }
.tok-value.tok-text { font-size: clamp(28px, 3vw, 36px); letter-spacing: -.02em; color: var(--ink); background: none; }
.tok-desc { color: var(--ink-2); font-size: 15px; }
.tok-big::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(103,232,249,.18), transparent 70%); pointer-events: none;
}

/* statement */
.statement-panel {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px);
  border-radius: 28px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(36,22,80,.55), rgba(8,10,28,.7));
}
.statement-title { margin: 0; font-size: clamp(34px, 5.6vw, 68px); letter-spacing: -.035em; line-height: 1.05; }
.statement-title > span { display: block; }
.statement-copy { max-width: 680px; margin: 26px auto 0; color: var(--ink-2); font-size: clamp(17px, 1.6vw, 19px); }
.wave {
  position: absolute; inset: -50%; pointer-events: none; opacity: .5;
  background:
    repeating-radial-gradient(circle at 30% 50%, rgba(103,232,249,.10) 0 2px, transparent 2px 28px),
    repeating-radial-gradient(circle at 70% 50%, rgba(167,139,250,.10) 0 2px, transparent 2px 28px);
  animation: drift 24s linear infinite;
}
.statement-panel > *:not(.wave) { position: relative; }

/* faq */
.faq { display: grid; gap: 12px; }
.faq-item { padding: 0; }
.faq-item:hover { transform: none; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; position: relative;
  font-size: 18px; font-weight: 600; border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq-item[open] { border-color: var(--line-2); }
.faq-item p { margin: 0; padding: 0 24px 22px; color: var(--ink-2); font-size: 16px; }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: rgba(5,4,10,.6); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; width: 100%; }
.footer-social { display: flex; gap: 8px; align-items: center; }
.ca-bar-footer { margin-top: 0; width: 100%; justify-content: space-between; }
.risk { max-width: 760px; margin: 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.6; }
.copyright { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .08em; }

/* ============ TOAST ============ */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 12px; max-width: calc(100% - 32px);
  background: rgba(16, 12, 36, .95); border: 1px solid var(--line-2); color: var(--ink);
  font-size: 15px; box-shadow: 0 10px 40px rgba(0,0,0,.5), 0 0 30px rgba(103,232,249,.15);
  transition: opacity .25s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: #6ee7b7; }

/* ============ REVEAL ============ */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ============ KEYFRAMES ============ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(103,232,249,.6); } 70% { box-shadow: 0 0 0 10px rgba(103,232,249,0); } 100% { box-shadow: 0 0 0 0 rgba(103,232,249,0); } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes drift { to { transform: translate(8%, 4%) rotate(8deg); } }
@keyframes g1 {
  0% { opacity: .9; clip-path: inset(10% 0 70% 0); transform: translate(-4px, -1px); }
  50% { opacity: .9; clip-path: inset(50% 0 20% 0); transform: translate(3px, 1px); }
  100% { opacity: 0; clip-path: inset(0 0 60% 0); transform: translate(0); }
}
@keyframes g2 {
  0% { opacity: .9; clip-path: inset(60% 0 10% 0); transform: translate(4px, 1px); }
  50% { opacity: .9; clip-path: inset(20% 0 55% 0); transform: translate(-3px, 0); }
  100% { opacity: 0; clip-path: inset(55% 0 0 0); transform: translate(0); }
}
@keyframes jitter { 0%, 100% { transform: none; } 33% { transform: translateX(1px) skewX(-2deg); } 66% { transform: translateX(-1px) skewX(1deg); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .steps, .tok-grid { grid-template-columns: 1fr 1fr; }
  .steps .step:last-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .header-inner { height: 64px; gap: 12px; }
  html { scroll-padding-top: 72px; }
  .brand-word small { display: none; }
  .header-actions .icon-btn { width: 36px; height: 36px; }
  .header-actions .btn-sm { padding: 0 12px; font-size: 13.5px; }
  .hero { padding: 36px 0 88px; min-height: auto; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .ca-bar { width: 100%; flex-wrap: wrap; }
  .ca-value { flex: 1 1 0; min-width: 0; font-size: 13.5px; }
  .tagline { letter-spacing: .16em; font-size: 12px; }
  .steps, .tok-grid { grid-template-columns: 1fr; }
  .footer-brand { flex-direction: column; }
  .scroll-cue { display: none; }
}
@media (max-width: 340px) {
  .header-actions .icon-btn { display: none; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .glitch::before, .glitch::after, .glitch-h::before, .glitch-h::after { display: none; }
}
