/* ==========================================================================
   Shattered-glass launch site
   ========================================================================== */

:root {
  --bg: #050507;
  --bg-2: #09090c;
  --glass: #17171b;
  --rim: rgba(255, 255, 255, .09);
  --rim-2: rgba(255, 255, 255, .17);
  --ink: #fff;
  --ink-86: rgba(255, 255, 255, .86);
  --ink-60: rgba(255, 255, 255, .6);
  --ink-45: rgba(255, 255, 255, .45);
  --ink-30: rgba(255, 255, 255, .3);
  --head-a: #f0f0f3;
  --head-b: #a9a9b3;
  --pill: #e9e9ee;
  --green: #36d67e;
  --red: #ff5d6c;
  --lavender: #b9abff;
  --radius: 16px;
  --gutter: max(5.5vw, 16px);
  --max: 1240px;
  --font: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}

@property --ang {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
p, h1, h2, h3 { margin: 0; }
::selection { background: rgba(185, 171, 255, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 6px; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.no-scroll { overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--max); margin: 0 auto; }
.muted { color: var(--ink-60); }

/* -------------------------------------------------------------- brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; letter-spacing: -.015em; }
.mark { width: 20px; height: 20px; color: var(--pill); flex: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  color: var(--ink-86); transition: background .25s, color .25s, transform .25s var(--ease);
}
.icon-btn svg { width: 15px; height: 15px; fill: currentColor; }
.icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ------------------------------------------------------------ buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 9px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .35s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-primary { background: var(--pill); color: #0b0b0e; box-shadow: 0 8px 30px -10px rgba(233, 233, 238, .45); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .95) 50%, transparent 70%);
  transform: translateX(-110%); transition: transform .8s var(--ease);
}
.btn-primary:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(255, 255, 255, .55); }
.btn-primary:hover::after { transform: translateX(110%); }
.btn-primary svg { transition: transform .35s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--rim); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--rim-2); transform: translateY(-2px); }
.btn-x { background: #fff; color: #000; }
.btn-x svg { width: 14px; height: 14px; fill: currentColor; }
.btn-x:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -14px rgba(255, 255, 255, .6); }

.btn-link {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 2px;
  font-size: 14px; font-weight: 500; color: var(--ink-86); cursor: pointer; transition: color .25s;
}
.btn-link span { transition: transform .35s var(--ease); }
.btn-link:hover { color: var(--lavender); }
.btn-link:hover span { transform: translateX(4px); }

/* Links that have no target yet (e.g. Buy before the CA is live) */
.is-soon { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn.is-soon::before {
  content: 'Soon'; order: 2; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 6px; border-radius: 5px; background: rgba(0, 0, 0, .12);
}
.btn-ghost.is-soon::before, .btn-x.is-soon::before { background: rgba(255, 255, 255, .1); }
.btn-x.is-soon::before { background: rgba(0, 0, 0, .1); }
[data-optional].is-soon { display: none; }

/* --------------------------------------------------------------- kicker */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-45);
}
.live-dot {
  position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none;
  box-shadow: 0 0 10px rgba(54, 214, 126, .8);
}
.live-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--green);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

.h2 {
  font-size: clamp(36px, 5vw, 68px); font-weight: 500; letter-spacing: -.035em; line-height: 1.02;
  margin-top: 16px;
}
.h2 .l { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.h2 .l > span {
  display: block;
  background: linear-gradient(180deg, var(--head-a) 20%, var(--head-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(108%);
  transition: transform 1.15s var(--ease);
}
.h2 .l:nth-child(2) > span { transition-delay: .09s; }
.in .h2 .l > span, .h2.in .l > span { transform: none; }
.h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; margin-top: 10px; }

/* ----------------------------------------------------------- reveal */
[data-reveal] {
  opacity: 0; translate: 0 34px; filter: blur(8px);
  transition: opacity 1s var(--ease), translate 1.1s var(--ease), filter 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
[data-reveal].in { opacity: 1; translate: none; filter: none; }

/* =========================================================== TOPBAR */
.topbar {
  position: fixed; top: 14px; left: 50%; z-index: 60;
  width: min(1120px, calc(100% - 32px)); height: 58px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 10px 0 18px; border-radius: 14px;
  background: rgba(16, 16, 20, .7); border: 1px solid var(--rim);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: translate(-50%, calc(-100% - 24px));
  transition: transform .7s var(--ease);
}
.topbar.is-visible { transform: translate(-50%, 0); }
.topbar-links { display: flex; gap: 4px; }
.topbar-links a { font-size: 13px; color: var(--ink-60); padding: 6px 10px; border-radius: 7px; transition: color .2s, background .2s; }
.topbar-links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.topbar-actions { display: flex; align-items: center; gap: 6px; }

/* ============================================================= HERO */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden;
  background:
    radial-gradient(60% 50% at 70% 40%, rgba(120, 110, 180, .07), transparent 70%),
    var(--bg);
  perspective: var(--persp, 1400px); perspective-origin: 50% 50%;
}
.hero-canvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-canvas canvas { display: block; width: 100%; height: 100%; }
.hero-stage { position: absolute; inset: 0; z-index: 2; transform-origin: 50% 50%; will-change: transform; }
.hero-frame {
  position: absolute; inset: 7vh var(--gutter) 6vh;
  display: flex; flex-direction: column; gap: 14px;
  opacity: var(--frame-o, 1);
  transition: opacity .35s ease;
}

.glass {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(165deg, #2a2a30 0%, #18181c 40%, #101013 100%);
  border: 1px solid var(--rim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 40px 90px -30px rgba(0, 0, 0, .8);
}
.gl-pending .hero .glass { opacity: 0; }
.gl-on .hero .glass { background: transparent; border-color: transparent; box-shadow: none; }
.gl-off .hero-nav { animation: glassIn 1.1s var(--ease) both; }
.gl-off .hero-panel { animation: glassIn 1.2s .12s var(--ease) both; }
@keyframes glassIn {
  from { opacity: 0; transform: translateY(60px) rotateX(16deg) scale(.96); }
  to { opacity: 1; transform: none; }
}

.hero-nav {
  flex: none; height: clamp(58px, 10.5%, 76px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 max(1.6vw, 14px) 0 max(1.6vw, 18px);
}
.hero-links { display: flex; gap: 6px; position: absolute; left: 50%; transform: translateX(-50%); }
.hero-links a { font-size: 13px; color: var(--ink-60); padding: 6px 10px; border-radius: 7px; transition: color .2s; }
.hero-links a:hover { color: #fff; }
.hero-nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-cta {
  font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 8px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--rim); transition: background .25s, border-color .25s;
}
.nav-cta:hover { background: rgba(255, 255, 255, .12); border-color: var(--rim-2); }
.nav-cta.is-soon::after { content: ' · soon'; color: var(--ink-45); }

.hero-panel {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(26px, 5.4vh, 64px) clamp(22px, 4vw, 64px) clamp(16px, 2.2vh, 26px);
}
.hero-content { max-width: 700px; display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-45);
}
.hero-title {
  margin-top: clamp(14px, 2.4vh, 24px);
  font-size: clamp(46px, min(7vw, 11.5vh), 112px); font-weight: 500; letter-spacing: -.045em; line-height: .98;
}
.hero-title .line { display: block; overflow: hidden; padding: 0 .04em .12em 0; margin-bottom: -.1em; }
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .char {
  display: inline-block;
  background: linear-gradient(180deg, var(--head-a) 25%, var(--head-b) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(110%) rotate(8deg); opacity: 0;
}
.hero-sub { margin-top: clamp(14px, 2.6vh, 24px); max-width: 520px; font-size: clamp(14px, 1.15vw, 16px); line-height: 1.65; color: var(--ink-60); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: clamp(18px, 3.4vh, 32px); }
.hero-content .ca-box { margin-top: clamp(16px, 3vh, 28px); }
.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 11.5px; color: var(--ink-45); }

.presence { display: inline-flex; align-items: center; gap: 8px; }
.presence i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 2.4s ease-in-out infinite; }
.presence b { color: var(--ink-86); font-weight: 600; font-variant-numeric: tabular-nums; display: inline-block; }
.presence b.bump { animation: bump .5s var(--ease); }
@keyframes blink { 50% { opacity: .35; } }
@keyframes bump { 0% { transform: translateY(-6px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Hero entrance (runs once the glass has assembled) */
.hero-content > *:not(.hero-title), .hero-foot, .hero-nav > * {
  opacity: 0; translate: 0 18px; filter: blur(6px);
  transition: opacity .9s var(--ease), translate 1s var(--ease), filter .9s var(--ease);
}
.hero.is-ready .hero-nav > * { opacity: 1; translate: none; filter: none; }
.hero.is-ready .hero-nav > :nth-child(2) { transition-delay: .06s; }
.hero.is-ready .hero-nav > :nth-child(3) { transition-delay: .12s; }
.hero.is-ready .hero-content > * { opacity: 1; translate: none; filter: none; }
.hero.is-ready .eyebrow { transition-delay: .05s; }
.hero.is-ready .hero-sub { transition-delay: .45s; }
.hero.is-ready .hero-ctas { transition-delay: .58s; }
.hero.is-ready .hero-content .ca-box { transition-delay: .72s; }
.hero.is-ready .hero-foot { opacity: 1; translate: none; filter: none; transition-delay: .9s; }
.hero.is-ready .hero-title .char {
  animation: charIn 1.05s var(--ease) both;
  animation-delay: calc(var(--i) * 24ms + 120ms);
}
@keyframes charIn {
  from { transform: translateY(110%) rotate(8deg); opacity: 0; }
  60% { opacity: 1; }
  to { transform: none; opacity: 1; }
}

/* Shatter / lore view */
.hero.lore-open .hero-frame, .hero.lore-closing .hero-frame { opacity: 0; pointer-events: none; }
.lore {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 90px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s;
}
.hero.lore-open .lore { opacity: 1; visibility: visible; transition: opacity .8s ease .55s, visibility 0s; }
.lore-col { max-width: 560px; }
.lore-title { margin: 16px 0 26px; font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; }
.lore-terms p { margin: 0 0 16px; font-size: 15px; line-height: 1.7; color: var(--ink-60); }
.lore-terms strong { color: #fff; font-weight: 600; }
.hero.lore-open .lore-terms p { animation: loreIn .9s var(--ease) both; animation-delay: calc(.75s + var(--i) * 90ms); }
@keyframes loreIn { from { opacity: 0; translate: 0 16px; filter: blur(6px); } to { opacity: 1; translate: none; filter: none; } }

.lore-back {
  position: absolute; z-index: 4; top: max(7vh, 40px); left: var(--gutter);
  width: 150px; height: 76px; border: 0; padding: 0; background: none; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(-20px) rotate(-8deg);
  transition: opacity .4s, transform .6s var(--ease), visibility 0s linear .4s;
}
.lore-back::before {
  content: ''; position: absolute; inset: 0;
  clip-path: polygon(0 62%, 84% 0, 100% 100%);
  background: linear-gradient(150deg, #34343b, #141418);
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, .5));
}
.lore-back span { position: absolute; left: 56%; top: 66%; transform: translate(-50%, -50%) rotate(-6deg); font-size: 13px; font-weight: 600; white-space: nowrap; transition: color .2s; }
.lore-back:hover span { color: var(--lavender); }
.hero.lore-open .lore-back { opacity: 1; visibility: visible; transform: none; transition: opacity .5s .7s, transform .9s .7s var(--ease), visibility 0s; }

/* ============================================================= CA BOX */
.ca-box {
  --h: 50px;
  position: relative; isolation: isolate;
  display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: 560px; height: var(--h); padding: 0 5px 0 5px;
  border-radius: 12px; background: rgba(10, 10, 13, .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ca-box::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--ang), rgba(255, 255, 255, .1) 0deg, rgba(185, 171, 255, .95) 70deg, rgba(54, 214, 126, .8) 120deg, rgba(255, 255, 255, .1) 190deg, rgba(255, 255, 255, .1) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 4.5s linear infinite;
}
.ca-box::after {
  content: ''; position: absolute; inset: -1px; z-index: -2; border-radius: inherit;
  background: conic-gradient(from var(--ang), transparent 0deg, rgba(185, 171, 255, .35) 80deg, transparent 160deg);
  filter: blur(14px); opacity: .55; animation: spin 4.5s linear infinite;
}
@keyframes spin { to { --ang: 360deg; } }
.ca-label {
  flex: none; padding: 8px 10px; border-radius: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; line-height: 1;
  background: rgba(255, 255, 255, .08); color: var(--ink-86);
}
.ca-value {
  flex: 1; min-width: 0; display: flex; cursor: copy;
  font-family: var(--mono); font-size: 13.5px; font-weight: 500; letter-spacing: -.01em; color: #fff;
}
.ca-head { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-tail { flex: none; white-space: nowrap; }
.ca-copy {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
  border: 0; border-radius: 8px; background: var(--pill); color: #0b0b0e;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .2s, transform .3s var(--ease);
}
.ca-copy svg { width: 15px; height: 15px; }
.ca-copy:hover { background: #fff; transform: scale(1.03); }
.ca-copy:active { transform: scale(.97); }
.ca-soon {
  display: none; flex: none; margin-right: 6px; padding: 6px 10px; border-radius: 7px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--lavender); background: rgba(185, 171, 255, .1);
  animation: blink 2s ease-in-out infinite;
}
.ca-box.is-empty .ca-value { font-family: var(--font); font-size: 14px; color: var(--ink-60); cursor: default; letter-spacing: 0; }
.ca-box.is-empty .ca-copy { display: none; }
.ca-box.is-empty .ca-soon { display: inline-block; }
.ca-box.is-copied .ca-copy { background: var(--green); color: #04150b; }
.ca-box.is-copied { animation: copied .6s var(--ease); }
.ca-box.is-drop { animation: drop 1.8s var(--ease); }
@keyframes copied { 30% { transform: scale(1.015); } }
@keyframes drop {
  0% { box-shadow: 0 0 0 0 rgba(185, 171, 255, .7); transform: scale(1); }
  20% { transform: scale(1.04); }
  100% { box-shadow: 0 0 0 26px rgba(185, 171, 255, 0); transform: scale(1); }
}
.ca-box-lg { --h: 58px; max-width: none; padding-left: 7px; padding-right: 7px; }
.ca-box-lg .ca-value { font-size: 15px; }
.ca-box-lg .ca-copy { height: 44px; padding: 0 18px; }

/* =========================================================== MARQUEE */
.marquee {
  position: relative; overflow: hidden; padding: 26px 0; display: grid; gap: 10px;
  border-block: 1px solid var(--rim);
  background: linear-gradient(90deg, var(--bg), #0b0b0f 50%, var(--bg));
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-row { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-row.is-rev .marquee-track { animation-direction: reverse; animation-duration: 60s; }
.marquee-group { display: flex; flex: none; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 30px; padding-right: 30px; white-space: nowrap;
  font-size: clamp(30px, 4.4vw, 60px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1;
  color: var(--head-a);
}
.marquee-item.is-outline { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .3); }
.marquee-row.is-rev .marquee-item { font-size: clamp(18px, 2.2vw, 28px); font-weight: 500; letter-spacing: -.02em; color: var(--ink-45); }
.marquee-row.is-rev .marquee-item.is-outline { color: var(--ink-30); -webkit-text-stroke: 0; }
.marquee-star { width: .42em; height: .42em; flex: none; fill: var(--lavender); opacity: .9; }
.marquee-row.is-rev .marquee-star { fill: var(--ink-30); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ========================================================== SECTIONS */
.section { position: relative; padding: clamp(90px, 12vw, 160px) var(--gutter); }
.section-tight { padding-top: 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }

.card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(180deg, #151519, #0e0e11);
  border: 1px solid var(--rim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  padding: clamp(22px, 2.6vw, 34px);
  transition: transform .6s var(--ease), border-color .35s, opacity 1s var(--ease), translate 1.1s var(--ease), filter 1s var(--ease);
  transition-delay: 0s, 0s, calc(var(--d, 0) * 110ms), calc(var(--d, 0) * 110ms), calc(var(--d, 0) * 110ms);
}
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, -20%), rgba(185, 171, 255, .13), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; padding: 1px;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 255, 255, .35), transparent 60%);
  -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 .4s;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card:hover { border-color: var(--rim-2); }
.card > * { position: relative; z-index: 1; }

/* ----------------------------------------------- contract + X boxes */
.cc-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px;
  font-size: 12px; color: var(--ink-86); background: rgba(255, 255, 255, .05); border: 1px solid var(--rim);
}
.chip svg { width: 13px; height: 13px; color: var(--lavender); }
.status {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--lavender);
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.8s ease-in-out infinite; }
.status.is-live { color: var(--green); }
.card-title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.ca-card .muted { margin: 10px 0 26px; max-width: 520px; }
.ca-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.x-card { padding: 0; display: flex; flex-direction: column; }
.x-banner {
  position: relative; height: 128px; overflow: hidden;
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(185, 171, 255, .35), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(54, 214, 126, .14), transparent 60%),
    linear-gradient(135deg, #1f1d2b, #0e0e12);
  border-bottom: 1px solid var(--rim);
}
.x-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .12) 50%, transparent 65%);
  transform: translateX(-100%); animation: sweep 5.5s ease-in-out infinite;
}
@keyframes sweep { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.x-banner-logo { position: absolute; right: -14px; top: -26px; width: 190px; height: 190px; fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: .25; animation: floaty 9s ease-in-out infinite; }
.x-shard { position: absolute; background: linear-gradient(150deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .12); }
.x-shard.s1 { width: 70px; height: 54px; left: 12%; top: 22%; clip-path: polygon(0 40%, 100% 0, 70% 100%); animation: floaty 7s ease-in-out infinite; }
.x-shard.s2 { width: 44px; height: 40px; left: 40%; top: 50%; clip-path: polygon(20% 0, 100% 60%, 0 100%); animation: floaty 8s -2s ease-in-out infinite reverse; }
.x-shard.s3 { width: 30px; height: 36px; left: 58%; top: 14%; clip-path: polygon(50% 0, 100% 100%, 0 80%); animation: floaty 6s -1s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px) rotate(6deg); } }
.x-body { padding: 0 clamp(22px, 2.6vw, 30px) clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; flex: 1; }
.x-avatar {
  width: 74px; height: 74px; margin-top: -37px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(160deg, #26262c, #0f0f12); border: 4px solid #0f0f12;
  box-shadow: 0 0 0 1px var(--rim-2), 0 16px 40px -12px rgba(0, 0, 0, .9);
}
.x-avatar .mark { width: 34px; height: 34px; }
.x-id { margin-top: 14px; display: flex; flex-direction: column; }
.x-id strong { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.x-handle { color: var(--ink-45); font-size: 14px; }
.x-copy { margin: 14px 0 22px; color: var(--ink-60); }
.x-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.x-extra { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.x-extra-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-60); transition: color .2s; }
.x-extra-link svg { width: 14px; height: 14px; }
.x-extra-link:hover { color: var(--lavender); }

/* ------------------------------------------------------------ market */
.market-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; }
.market-note { max-width: 360px; font-size: 13.5px; text-align: right; }
.stats {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px;
  background: var(--rim); border: 1px solid var(--rim); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--bg-2); padding: clamp(18px, 2vw, 26px); position: relative; }
.stat-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-45); }
.stat-value {
  margin-top: 10px; font-size: clamp(20px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; color: var(--ink-86); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stat-value.up { color: var(--green); }
.stat-value.down { color: var(--red); }
.stat-value.flash { animation: flash .9s var(--ease); }
@keyframes flash { 0% { text-shadow: 0 0 18px rgba(185, 171, 255, .9); } 100% { text-shadow: none; } }
[data-market]:not(.is-live) .stat-value { color: var(--ink-30); }
[data-market]:not(.is-live) .stat::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .035) 50%, transparent 70%);
  background-size: 250% 100%; animation: shimmer 2.6s linear infinite;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.chart {
  margin-top: 18px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rim);
  height: clamp(380px, 52vw, 560px); background: var(--bg-2);
}
.chart iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ------------------------------------------------------------- steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--lavender); letter-spacing: .06em; }
.step-title { margin: 44px 0 10px; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.step .muted { font-size: 14.5px; }
.step-bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; overflow: hidden; }
.step-bar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--lavender), transparent);
  transform: translateX(-100%); animation: bar 3.6s ease-in-out infinite; animation-delay: calc(var(--d, 0) * .5s);
}
@keyframes bar { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* -------------------------------------------------------- tokenomics */
.tokenomics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.token-card { min-height: 220px; display: flex; flex-direction: column; }
.token-value {
  margin: auto 0 8px; padding-top: 40px;
  font-size: clamp(28px, 2.8vw, 42px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, var(--head-b)); -webkit-background-clip: text; background-clip: text; color: transparent;
  overflow-wrap: anywhere;
}
.token-card .muted { font-size: 13.5px; }

/* --------------------------------------------------------------- faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
.faq-head { position: sticky; top: 110px; }
.faq-head .h2 { font-size: clamp(32px, 3.8vw, 58px); }
.faq-item { border-top: 1px solid var(--rim); }
.faq-item:last-child { border-bottom: 1px solid var(--rim); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; background: none; border: 0; text-align: left; cursor: pointer;
  font-size: 15.5px; font-weight: 500; color: var(--ink-86); transition: color .2s;
}
.faq-q:hover { color: #fff; }
.faq-icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px;
  background: currentColor; border-radius: 2px; transition: transform .45s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon::after { transform: rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { padding: 0 40px 24px 0; color: var(--ink-60); font-size: 14.5px; line-height: 1.7; opacity: 0; translate: 0 -6px; transition: opacity .4s, translate .5s var(--ease); }
.faq-item.is-open .faq-a p { opacity: 1; translate: none; transition-delay: .1s; }

/* --------------------------------------------------------------- cta */
.cta {
  padding: clamp(36px, 6vw, 80px);
  background:
    radial-gradient(60% 90% at 85% 40%, rgba(150, 140, 230, .16), transparent 70%),
    linear-gradient(180deg, #17171c, #0e0e11);
}
.cta-content { max-width: 560px; }
.cta .muted { margin-top: 18px; max-width: 440px; }
.cta-shards { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cta-shards i {
  position: absolute; display: block;
  background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .01));
  border: 1px solid rgba(255, 255, 255, .1);
  animation: drift 12s ease-in-out infinite;
}
.cta-shards i:nth-child(1) { width: 220px; height: 180px; right: 8%; top: 14%; clip-path: polygon(0 30%, 100% 0, 75% 100%); }
.cta-shards i:nth-child(2) { width: 120px; height: 140px; right: 30%; top: 48%; clip-path: polygon(30% 0, 100% 70%, 0 100%); animation-delay: -3s; animation-duration: 14s; }
.cta-shards i:nth-child(3) { width: 90px; height: 70px; right: 4%; top: 64%; clip-path: polygon(0 0, 100% 40%, 30% 100%); animation-delay: -6s; }
.cta-shards i:nth-child(4) { width: 60px; height: 80px; right: 24%; top: 10%; clip-path: polygon(50% 0, 100% 100%, 0 70%); animation-delay: -2s; animation-duration: 10s; }
.cta-shards i:nth-child(5) { width: 150px; height: 110px; right: 16%; top: 70%; clip-path: polygon(0 50%, 80% 0, 100% 100%); animation-delay: -8s; animation-duration: 16s; }
@keyframes drift { 50% { transform: translate(-14px, -18px) rotate(7deg); } }

/* ------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--rim); padding: 36px var(--gutter) 46px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-row .brand { color: var(--ink-60); }
.footer-links { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--ink-45); }
.footer-links a:not(.icon-btn):hover { color: #fff; }
.footer-note { margin-top: 26px; font-size: 12px; line-height: 1.7; color: var(--ink-30); max-width: var(--max); }

/* ------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 80;
  padding: 12px 18px; border-radius: 12px; font-size: 13.5px; color: #fff; max-width: calc(100% - 32px);
  background: rgba(22, 22, 27, .86); border: 1px solid var(--rim-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .9);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .6s var(--ease), opacity .4s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ======================================================== RESPONSIVE */
@media (max-width: 1080px) {
  .topbar-links { display: none; }
  .tokenomics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:last-child { grid-column: span 2; }
}
@media (max-width: 900px) {
  .hero-links { display: none; }
  .cc-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-head { position: static; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .market-head { flex-direction: column; align-items: flex-start; }
  .market-note { text-align: left; }
}
@media (max-width: 640px) {
  .hero { min-height: 720px; }
  .hero-frame { inset: 14px 12px 14px; gap: 10px; }
  .hero-nav { height: 58px; }
  .hero-panel { padding: 30px 20px 16px; }
  .hero-title { font-size: clamp(42px, 13vw, 62px); }
  .hero-sub { font-size: 14px; }
  .hero-ctas { gap: 10px 18px; }
  .nav-cta { display: none; }
  .ca-box { --h: 48px; gap: 8px; }
  .ca-value { font-size: 12.5px; }
  .ca-copy { padding: 0 11px; }
  .ca-copy-label { display: none; }
  .ca-box-lg .ca-copy-label { display: inline; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:last-child { grid-column: span 2; }
  .tokenomics { grid-template-columns: minmax(0, 1fr); }
  .token-card { min-height: 0; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .lore-back { width: 120px; height: 62px; top: 22px; }
  .topbar { top: 10px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .marquee-track { animation: none !important; }
}
