:root {
  --ink: #0d0d12;
  --ink-soft: #4b4b57;
  --line: #e7e7ec;
  --paper: #ffffff;
  --paper-soft: #f7f7f9;
  --holo: linear-gradient(115deg, #ff71ce 0%, #01cdfe 28%, #05ffa1 55%, #b967ff 80%, #ff71ce 100%);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --r: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; }
.mono { font-family: var(--font-mono); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* background canvas + glow */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
.glow {
  position: fixed; top: -240px; right: -240px; width: 720px; height: 720px;
  background: conic-gradient(from 180deg, #ff71ce, #01cdfe, #05ffa1, #b967ff, #ff71ce);
  filter: blur(140px); opacity: 0.10; border-radius: 50%; z-index: -1;
  pointer-events: none;
}

/* holo helpers */
.holo-text {
  background: var(--holo);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: holoShift 6s ease-in-out infinite;
}
.holo-bg { background: var(--holo); background-size: 220% 220%; animation: holoShift 7s ease-in-out infinite; }
@keyframes holoShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* nav */
#nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
#nav.scrolled { border-bottom-color: var(--line); }
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: 0.04em; color: var(--ink); text-decoration: none;
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  border: 1.5px solid var(--ink); cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13, 13, 18, 0.22); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-soft); transform: translateY(-2px); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
  padding-top: 84px; padding-bottom: 96px; min-height: calc(92vh - 60px);
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-soft);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #05c98a; box-shadow: 0 0 0 4px rgba(5, 201, 138, 0.15); }
.hero h1 { font-size: clamp(44px, 6.4vw, 78px); font-weight: 700; margin: 22px 0 20px; }
.sub { font-size: 18px; color: var(--ink-soft); max-width: 560px; }
.cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.stat-row { display: flex; gap: 44px; margin-top: 46px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }
.stat-arrow { font-size: 20px; color: var(--ink-soft); padding: 0 2px; }
.stat-label { font-size: 13px; color: var(--ink-soft); font-weight: 500; margin-top: 2px; }

/* hero slab */
.hero-slab { display: flex; justify-content: center; perspective: 1100px; }
.slab {
  width: min(310px, 76vw); aspect-ratio: 3 / 4.1;
  background: #fff; border: 1.5px solid var(--line); border-radius: 22px;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 24px 70px rgba(13, 13, 18, 0.13);
  transform-style: preserve-3d; will-change: transform;
  position: relative; overflow: hidden;
}
.slab-shine {
  position: absolute; inset: -40%;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 30%), rgba(255, 255, 255, 0.85), transparent 42%);
  pointer-events: none; z-index: 3; mix-blend-mode: soft-light;
}
.slab-label {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--ink); color: #fff; border-radius: 10px; padding: 10px 14px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.06em; font-size: 15px;
}
.slab-grade { font-size: 12px; background: #fff; color: var(--ink); border-radius: 6px; padding: 2px 8px; }
.slab-art {
  flex: 1; border-radius: 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; color: rgba(10, 10, 15, 0.82);
}
.slab-q { font-family: var(--font-display); font-size: 92px; font-weight: 700; }
.slab-cap { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.slab-id { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-soft); text-align: center; }

/* marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: rgba(255,255,255,0.6); }
.marquee-track {
  display: flex; white-space: nowrap; width: max-content;
  animation: marquee 26s linear infinite;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: 0.14em;
  padding: 13px 0; color: var(--ink-soft);
}
.marquee-track span { padding-right: 12px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* sections */
.section { padding: 104px 24px; }
.kicker {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px;
}
.section h2 { font-size: clamp(32px, 4.2vw, 48px); margin-bottom: 16px; }
.section-sub { color: var(--ink-soft); font-size: 17px; max-width: 640px; margin-bottom: 48px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step {
  border: 1px solid var(--line); border-radius: var(--r); padding: 22px 18px;
  background: rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(13, 13, 18, 0.09); border-color: #d9d9e1; }
.step-num {
  width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 13.8px; color: var(--ink-soft); line-height: 1.55; }

/* reroll demo */
.demo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  border: 1px solid var(--line); border-radius: 24px; padding: 40px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 60px rgba(13, 13, 18, 0.07);
}
.demo-left { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.demo-slot { position: relative; width: 190px; aspect-ratio: 3 / 4; }
.mini-slab {
  position: absolute; inset: 0;
  background: #fff; border: 1.5px solid var(--line); border-radius: 16px;
  padding: 10px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 14px 36px rgba(13, 13, 18, 0.12);
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}
.mini-slab.gone { transform: scale(0.82) rotate(-4deg); opacity: 0; filter: blur(5px); pointer-events: none; }
.mini-slab.pop { animation: popIn 0.38s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes popIn { 0% { transform: scale(0.7) rotate(5deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.mini-label {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--ink); color: #fff; border-radius: 8px; padding: 6px 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.05em;
}
.mini-label span:last-child { font-family: var(--font-mono); font-weight: 400; }
.mini-art {
  flex: 1; border-radius: 10px; background: var(--paper-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: #c9c9d4; transition: background 0.3s ease;
}
.mini-art.hit { background: var(--holo); background-size: 220% 220%; animation: holoShift 5s ease-in-out infinite; color: rgba(10, 10, 15, 0.85); }
.burned {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed #d3d3dc; border-radius: 16px;
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft);
  opacity: 0; transition: opacity 0.3s ease 0.1s; pointer-events: none;
}
.demo-slot.empty .burned { opacity: 1; }
.demo-msg { font-size: 14.5px; color: var(--ink-soft); text-align: center; min-height: 44px; max-width: 300px; }
.demo-right { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.demo-bal { display: flex; flex-direction: column; gap: 2px; }
.demo-bal-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); font-weight: 600; }
.demo-bal-num { font-family: var(--font-display); font-size: 52px; font-weight: 700; letter-spacing: -0.02em; }
.demo-bal-num::after { content: " SLABS"; font-size: 16px; color: var(--ink-soft); font-weight: 500; letter-spacing: 0; }
.demo-btns { display: flex; gap: 12px; }
.demo-stats {
  display: flex; gap: 26px; font-size: 13.5px; color: var(--ink-soft); font-weight: 500;
  border-top: 1px solid var(--line); padding-top: 18px;
}
.demo-stats span { font-family: var(--font-mono); color: var(--ink); font-weight: 600; }
.demo-note { font-size: 13.5px; color: var(--ink-soft); }

/* vault */
.vault-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.vault-chip {
  border: 1px solid var(--line); border-radius: 18px; padding: 8px 16px;
  font-size: 12.5px; color: var(--ink-soft); background: rgba(255, 255, 255, 0.7);
  max-width: 100%; word-break: break-all;
}
.vault-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.vault-slot {
  aspect-ratio: 3 / 4; border: 1.5px dashed #d8d8e0; border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: #b9b9c6; background: rgba(255, 255, 255, 0.5);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.vault-slot:hover { border-color: #b967ff; transform: translateY(-3px); }
.vault-slot span { font-family: var(--font-display); font-size: 44px; font-weight: 700; }
.vault-slot em { font-style: normal; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; }
.vault-cap { margin-top: 24px; font-size: 14px; color: var(--ink-soft); }

/* tokenomics */
.tok-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.tok {
  border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px;
  background: rgba(255, 255, 255, 0.8);
}
.tok-num { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.01em; }
.tok-label { display: block; margin-top: 8px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

/* roadmap */
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.road-step { border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; background: rgba(255, 255, 255, 0.8); }
.road-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft); margin-bottom: 16px;
}
.road-step h3 { font-size: 20px; margin-bottom: 8px; }
.road-step p { font-size: 14px; color: var(--ink-soft); }

/* faq */
.faq-list { max-width: 760px; margin-top: 40px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 22px 0;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 24px; font-weight: 500; color: var(--ink-soft);
  transition: transform 0.25s ease; flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 32px 22px 0; color: var(--ink-soft); font-size: 15px; }

/* footer */
footer { border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.75); }
.foot-inner { padding: 44px 24px 52px; display: flex; flex-direction: column; gap: 16px; }
.foot-note { font-size: 13px; color: var(--ink-soft); max-width: 720px; }
.foot-copy { font-family: var(--font-mono); font-size: 12px; color: #a2a2af; }

/* toast */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 18px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease; z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .holo-text, .holo-bg, .mini-art.hit { animation: none; }
  html { scroll-behavior: auto; }
}

/* responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 56px; text-align: left; }
  .hero-slab { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .demo { grid-template-columns: 1fr; padding: 28px; }
  .tok-grid, .road { grid-template-columns: repeat(2, 1fr); }
  .vault-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .steps, .tok-grid, .road { grid-template-columns: 1fr; }
  .stat-row { gap: 28px; }
  .section { padding: 72px 24px; }
  .hero h1 { font-size: 42px; }
}
