:root {
  --bg0: #040712;
  --bg1: #0a1630;
  --ink: #e8fbff;
  --ice: #befaff;
  --cyan: #00e5ff;
  --blue: #286eff;
  --mute: #8aa6c0;
  --line: rgba(0, 229, 255, .18);
  --card: rgba(10, 22, 48, .55);
  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono.ttf") format("truetype"); font-display: swap; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(1200px 700px at 75% 20%, var(--bg1), var(--bg0) 70%) fixed, var(--bg0);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
}
a { color: var(--cyan); text-decoration: none; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .nav, .foot { position: relative; z-index: 1; }

/* nav */
.nav {
  position: sticky; top: 0;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(4, 7, 18, .6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.brand img { border-radius: 50%; box-shadow: 0 0 18px rgba(0, 229, 255, .45); }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--mute); font-size: 15px; transition: color .2s; }
.links a:hover { color: var(--cyan); }
.x-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.x-btn:hover { border-color: var(--cyan); box-shadow: 0 0 16px rgba(0, 229, 255, .35); }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px;
  min-height: calc(100vh - 70px);
  padding: 40px clamp(18px, 6vw, 96px);
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan); padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(0, 229, 255, .06);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.title {
  position: relative;
  font-size: clamp(64px, 10vw, 148px); font-weight: 700; line-height: .95; letter-spacing: -.03em;
  margin: 22px 0 14px;
  background: linear-gradient(180deg, #fff 10%, var(--ice) 50%, var(--cyan) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(0, 229, 255, .35));
}
.title::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  background: none; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(0, 229, 255, .5);
  transform: translate(4px, 3px); opacity: .5; pointer-events: none;
  animation: glitch 5s infinite steps(1);
}
@keyframes glitch {
  0%, 92%, 100% { transform: translate(4px, 3px); clip-path: none; }
  93% { transform: translate(-6px, 0); clip-path: inset(20% 0 55% 0); }
  95% { transform: translate(8px, 2px); clip-path: inset(60% 0 10% 0); }
  97% { transform: translate(-3px, -2px); clip-path: inset(5% 0 80% 0); }
}
.tagline { font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; color: var(--cyan); margin-bottom: 18px; }
.tagline span { display: inline-block; opacity: 0; transform: translateY(14px); animation: rise .7s forwards; }
.tagline span:nth-child(2) { animation-delay: .25s; }
.tagline span:nth-child(3) { animation-delay: .5s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.lead { max-width: 540px; color: var(--mute); font-size: 18px; }
.lead b { color: var(--ink); }

.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.btn {
  padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: 16px;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #031018; box-shadow: 0 8px 30px rgba(0, 229, 255, .35); }
.btn.primary:hover { box-shadow: 0 10px 40px rgba(0, 229, 255, .55); }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(10, 22, 48, .5); }
.btn.ghost:hover { border-color: var(--cyan); }

/* CA bar */
.ca-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: 620px; padding: 10px 12px 10px 16px;
  border: 1px solid var(--cyan); border-radius: 14px;
  background: rgba(0, 229, 255, .07); box-shadow: 0 0 24px rgba(0, 229, 255, .2);
  font-family: var(--mono); font-size: 14px;
}
.ca-bar[hidden], .ca-link[hidden], .ca-soon[hidden] { display: none; }
.ca-live { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); font-weight: 700; letter-spacing: .1em; }
.ca-dot { width: 8px; height: 8px; border-radius: 50%; background: #3dff9a; box-shadow: 0 0 8px #3dff9a; animation: pulse 1.2s infinite; }
.ca-ticker { color: var(--ink); font-weight: 700; }
.ca-addr { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ice); }
.ca-copy, .ca-link {
  padding: 7px 14px; border-radius: 9px; font: 600 12px var(--mono); letter-spacing: .1em; cursor: pointer;
  border: 1px solid var(--cyan); background: transparent; color: var(--cyan); transition: background .2s, color .2s;
}
.ca-copy:hover, .ca-link:hover { background: var(--cyan); color: #031018; }
.ca-soon { font-family: var(--mono); font-size: 13px; color: var(--mute); max-width: 540px; }

/* hero art */
.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 560px; width: 100%; margin-inline: auto; }
.hero-art img {
  position: relative; width: 82%; height: auto; border-radius: 28px; z-index: 2;
  box-shadow: 0 0 80px rgba(0, 229, 255, .25);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px); } }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(0, 229, 255, .35); }
.r1 { animation: spin 40s linear infinite; }
.r2 { inset: 8%; border-style: solid; border-color: rgba(40, 110, 255, .25); animation: spin 26s linear infinite reverse; }
.r2::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
@keyframes spin { to { transform: rotate(360deg); } }
.slash {
  position: absolute; z-index: 3; height: 3px; width: 70%; left: 15%;
  background: linear-gradient(90deg, transparent, var(--ice), var(--cyan), transparent);
  box-shadow: 0 0 18px var(--cyan); border-radius: 3px;
  transform: rotate(-35deg) scaleX(0); transform-origin: left center; opacity: 0;
  animation: slash 4.5s infinite;
}
.s1 { top: 38%; }
.s2 { top: 50%; animation-delay: .08s; }
.s3 { top: 62%; animation-delay: .16s; }
@keyframes slash {
  0%, 70% { transform: rotate(-35deg) scaleX(0); opacity: 0; }
  74% { opacity: 1; }
  80% { transform: rotate(-35deg) scaleX(1); opacity: 1; }
  90%, 100% { transform: rotate(-35deg) scaleX(1); opacity: 0; }
}

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(0, 229, 255, .04); padding: 18px 0; }
.track { display: flex; gap: 28px; width: max-content; animation: marq 30s linear infinite; font-weight: 700; font-size: 22px; letter-spacing: .14em; }
.track span { color: var(--ice); }
.track i { color: var(--cyan); font-style: normal; }
@keyframes marq { to { transform: translateX(-50%); } }

/* sections */
section.lore, section.token, section.buy { padding: 100px clamp(18px, 6vw, 96px); max-width: 1200px; margin: 0 auto; }
.h2 { font-size: clamp(34px, 4.5vw, 54px); letter-spacing: -.02em; margin-bottom: 40px; }
.h2::before { content: "// "; color: var(--cyan); font-family: var(--mono); font-size: .55em; vertical-align: middle; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 30px; border-radius: 18px; border: 1px solid var(--line); background: var(--card);
  overflow: hidden; transition: transform .25s, border-color .25s;
}
.card::after {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(0, 229, 255, .18), transparent 70%);
}
.card:hover { transform: translateY(-6px); border-color: var(--cyan); }
.num { font-family: var(--mono); color: var(--cyan); font-size: 14px; margin-bottom: 16px; }
.card h3 { font-size: 26px; margin-bottom: 10px; }
.card p { color: var(--mute); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.fact { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.fact .k { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.fact .v { font-size: 22px; font-weight: 700; }
.disclaimer { margin-top: 26px; font-size: 13px; color: var(--mute); max-width: 720px; }

.steps { list-style: none; counter-reset: s; display: grid; gap: 14px; max-width: 820px; }
.steps li {
  counter-increment: s; position: relative; padding: 20px 22px 20px 74px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--mute);
}
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 22px; top: 18px;
  font-family: var(--mono); font-weight: 700; color: var(--cyan); font-size: 20px;
}
.steps b { color: var(--ink); }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
  padding: 40px 20px 50px; border-top: 1px solid var(--line); color: var(--mute); text-align: center;
}
.foot img { border-radius: 50%; }
.foot small { flex-basis: 100%; font-size: 12px; opacity: .7; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 30px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-art { order: -1; max-width: 340px; }
  .cards { grid-template-columns: 1fr; }
  .links { display: none; }
  .x-btn { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tagline span, .reveal { opacity: 1; transform: none; }
}
