/* ==========================================================================
   SWARM — NFT wing landing. Dark glass UI, lime accent, single WebGL layer.
   ========================================================================== */

:root {
  --bg: #141414; /* matches the tone-mapped clear colour of the 3D canvases */
  --bg-2: #0a0a0b;
  --text: #f3f3f1;
  --muted: #9a9a99;
  --muted-2: #6c6c6b;
  --lime: #d5ff3a;
  --lime-2: #b7e62b;
  --lime-glow: rgba(213, 255, 58, .45);
  --gold: #e2b45f;
  --gold-glow: rgba(255, 190, 90, .35);
  --glass: rgba(255, 255, 255, .035);
  --glass-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .22);
  --radius: 22px;
  --radius-sm: 14px;
  --nav-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
html, body { margin: 0; max-width: 100vw; }
main { overflow-x: clip; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

::selection { background: var(--lime); color: #111; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

/* --------------------------------------------------------------------------
   Layers: canvas (0) → ambient light spots (1) → content (2) → nav (10)
   -------------------------------------------------------------------------- */
canvas.gl {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  z-index: 0; display: block; pointer-events: none;
}
section > *:not(canvas.gl) { position: relative; z-index: 1; }

.ambient {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(38vw 22vh at 6% -4%, rgba(120, 150, 190, .16), transparent 70%),
    radial-gradient(38vw 22vh at 94% -4%, rgba(120, 150, 190, .14), transparent 70%),
    radial-gradient(60vw 18vh at 50% 100%, rgba(255, 210, 140, .06), transparent 70%);
}

main, .footer, .nav { position: relative; z-index: 2; }

/* Section rhythm -------------------------------------------------------- */
section {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 120px clamp(16px, 4vw, 64px) 80px;
}
section > .section-head, section > .carousel, section > .mint-stats, section > .mint-cta, section > .toolbar, section > .featured, section > .explore-head, section > .launches, section > .phases, section > .timeline, section > .hero__title, section > .hero__stage, section > .hero__countdown {
  max-width: 1440px; margin-left: auto; margin-right: auto;
}

.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.section-head p {
  margin-top: 12px;
  font-size: clamp(16px, 1.5vw, 22px);
  color: #cfcfcd;
}

.eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--lime { color: var(--lime); }

/* Glass ---------------------------------------------------------------- */
.glass {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.095), rgba(255,255,255,.03) 45%, rgba(255,255,255,.045));
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 0 0 1px rgba(255,255,255,.04),
    inset 0 -30px 60px rgba(255,255,255,.03),
    inset 0 -1px 0 rgba(0,0,0,.4),
    0 0 50px rgba(255,255,255,.04),
    0 30px 80px rgba(0,0,0,.5);
  transition: border-color .5s, box-shadow .5s;
}
.glass::before {
  /* top sheen + lit side edges */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 32%),
    linear-gradient(90deg, rgba(255,255,255,.07), transparent 12%, transparent 88%, rgba(255,255,255,.07));
  mask: linear-gradient(#000 20%, rgba(0,0,0,.5) 60%, rgba(0,0,0,.25));
  -webkit-mask: linear-gradient(#000 20%, rgba(0,0,0,.5) 60%, rgba(0,0,0,.25));
}
.glass:hover { border-color: rgba(255,255,255,.38); }
/* glow variants */
.glass--lime {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 0 0 1px rgba(255,255,255,.04),
    inset 0 -40px 70px rgba(213,255,58,.07),
    0 0 70px rgba(213,255,58,.10),
    0 30px 80px rgba(0,0,0,.5);
}
.glass--warm {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 0 0 1px rgba(255,255,255,.04),
    inset 0 -40px 70px rgba(255,200,120,.06),
    0 0 70px rgba(255,200,120,.08),
    0 30px 80px rgba(0,0,0,.5);
}

/* Stage & anchor: the 3D object is rendered *behind* the DOM at the anchor's rect.
   Nothing here may have an opaque background. */
.stage { position: relative; }
.anchor { position: relative; width: 100%; height: 100%; }
/* reflection softening is done in the shader; no backdrop-filter strips (they re-blur every frame) */
.anchor .floor-blur { display: none; }
.glow {
  position: absolute; inset: 10% 5%; pointer-events: none; border-radius: 50%;
  filter: blur(40px); opacity: .55;
  transition: opacity .6s var(--ease);
}
.glow--gold   { background: radial-gradient(closest-side, rgba(255,190,100,.32), transparent); }
.glow--amber  { background: radial-gradient(closest-side, rgba(255,170,70,.28), transparent); }
.glow--silver { background: radial-gradient(closest-side, rgba(200,210,230,.18), transparent); }
.glow--lime   { background: radial-gradient(closest-side, rgba(213,255,58,.18), transparent); }

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  color: var(--text);
  transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { height: 38px; padding: 0 18px; font-size: 12px; }
.btn--lime {
  background: var(--lime); color: #0b0d00; border-color: var(--lime);
  box-shadow: 0 0 0 0 var(--lime-glow), 0 8px 30px rgba(213,255,58,.25);
}
.btn--lime:hover { background: #e2ff6a; border-color: #e2ff6a; box-shadow: 0 0 24px 2px var(--lime-glow); }
.btn--mint {
  height: 58px; padding: 0 64px; font-size: 20px; font-weight: 600; letter-spacing: .12em;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  color: #d6d6d4;
}
.btn--mint:not(:disabled) { background: var(--lime); color: #0b0d00; border-color: var(--lime); box-shadow: 0 0 40px var(--lime-glow); }
.btn:disabled { cursor: not-allowed; opacity: .8; transform: none; }
.btn svg { width: 14px; height: 14px; }

/* Tags & pills --------------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid transparent;
}
.tag svg { width: 12px; height: 12px; }
.tag--lime { background: var(--lime); color: #0b0d00; }
.tag--outline-lime { border-color: var(--lime); color: var(--lime); background: rgba(213,255,58,.06); }
.tag--lime-outline { border-color: var(--lime); color: var(--lime); box-shadow: 0 0 20px rgba(213,255,58,.25); }
.tag--outline { border-color: var(--line-2); color: #e5e5e3; background: rgba(255,255,255,.04); }
.tag--dim { color: var(--muted); border-color: var(--line); }

.pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.pill {
  height: 30px; display: inline-flex; align-items: center; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #e5e5e3;
}

.ticker { font-size: 14px; color: var(--muted); letter-spacing: .04em; }

.bar { height: 5px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar span {
  display: block; height: 100%; width: var(--p, 0%); border-radius: inherit;
  background: linear-gradient(90deg, #a9d81b, var(--lime));
  box-shadow: 0 0 12px var(--lime-glow);
  transform-origin: left; animation: barIn 1.2s var(--ease) both;
}
.bar--dim span { background: #5b5b5a; box-shadow: none; }
@keyframes barIn { from { transform: scaleX(0); } }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 10;
  display: flex; align-items: center; gap: 8px;
  height: var(--nav-h); padding: 0 12px 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20,20,22,.72), rgba(8,8,9,.72));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 20px 60px rgba(0,0,0,.5);
  transition: transform .5s var(--ease), opacity .5s;
  max-width: calc(100vw - 32px);
}
.nav { border-color: rgba(255,255,255,.26); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 0 0 1px rgba(255,255,255,.04), 0 0 40px rgba(255,255,255,.05), 0 20px 60px rgba(0,0,0,.5); overflow: hidden; }
.nav.is-open { overflow: visible; }
.nav.is-hidden { transform: translate(-50%, -140%); }
.nav__logo { color: var(--lime); margin-right: 22px; display: block; filter: drop-shadow(0 0 6px rgba(213,255,58,.5)); }
.nav__logo img { width: 30px; height: 30px; display: block; object-fit: contain; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  position: relative;
  padding: 10px 18px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #cfcfcd; transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 2px; height: 2px;
  background: var(--lime); border-radius: 2px; transform: scaleX(0); transform-origin: center;
  transition: transform .35s var(--ease); box-shadow: 0 0 10px var(--lime-glow);
}
.nav__links a:hover { color: #fff; }
.nav__links a.is-active { color: var(--lime); }
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 10px; margin-left: 20px; }
.lang {
  display: inline-flex; align-items: center; gap: 3px; padding: 6px 10px;
  border: 0; background: transparent; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--muted-2);
}
.lang i { font-style: normal; opacity: .5; }
.lang span.is-on { color: var(--lime); }
.lang:hover span:not(.is-on) { color: #ddd; }
.nav__burger { display: none; }

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--bg); transition: opacity .8s var(--ease), visibility .8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; width: 220px; }
.loader__wing { width: 110px; height: 110px; margin: 0 auto 24px; display: block; object-fit: contain; filter: drop-shadow(0 0 16px var(--lime-glow)); animation: loaderWing 1.8s ease-in-out infinite; }
@keyframes loaderWing { 0%,100% { transform: rotate(-4deg) translateY(0);} 50% { transform: rotate(4deg) translateY(-6px);} }
.loader__bar { height: 3px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--lime); box-shadow: 0 0 10px var(--lime-glow); transition: width .3s; }
.loader__text { margin-top: 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 40px;
}
.hero__title {
  font-size: clamp(56px, 8vw, 108px);
  font-weight: 700; letter-spacing: -.04em; line-height: 1;
  text-align: center;
  opacity: 0; transform: translateY(24px);
  animation: fadeUp 1.2s var(--ease) .2s forwards;
}
.hero__stage {
  width: min(960px, 92vw);
  height: clamp(240px, 46vh, 470px);
  margin: 8px 0 0;
}
.hero__countdown { text-align: center; margin-top: 40px; opacity: 0; animation: fadeUp 1.2s var(--ease) .6s forwards; }
.countdown {
  display: inline-flex; align-items: stretch; margin-top: 16px;
  padding: 22px 44px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.035) 55%, rgba(213,255,58,.05));
  border: 1px solid rgba(255,255,255,.32);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 0 0 1px rgba(255,255,255,.06),
    inset 0 -24px 48px rgba(213,255,58,.07),
    0 0 70px rgba(213,255,58,.14),
    0 30px 80px rgba(0,0,0,.6);
  animation: cdBreath 4s ease-in-out infinite;
}
@keyframes cdBreath {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 0 0 1px rgba(255,255,255,.06), inset 0 -24px 48px rgba(213,255,58,.07), 0 0 70px rgba(213,255,58,.14), 0 30px 80px rgba(0,0,0,.6); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 0 1px rgba(255,255,255,.08), inset 0 -24px 48px rgba(213,255,58,.12), 0 0 90px rgba(213,255,58,.24), 0 30px 80px rgba(0,0,0,.6); }
}
.countdown__cell { min-width: 120px; text-align: center; }
.countdown__cell b {
  display: block; font-size: clamp(40px, 5vw, 60px); font-weight: 600; letter-spacing: -.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(255,255,255,.28), 0 0 2px rgba(255,255,255,.4);
}
.countdown__cell span { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: #cfcfcd; }
.countdown__sep { width: 1px; background: linear-gradient(transparent, rgba(255,255,255,.3), transparent); margin: 0 8px; }
.countdown__line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent 5%, var(--lime) 40%, #f2ffb0 50%, var(--lime) 60%, transparent 95%);
  box-shadow: 0 0 18px 2px var(--lime-glow), 0 -6px 30px rgba(213,255,58,.25);
  animation: cdLine 2.6s ease-in-out infinite;
}
@keyframes cdLine { 0%, 100% { opacity: .75; filter: brightness(.9); } 50% { opacity: 1; filter: brightness(1.25); } }
.countdown__sep { background: linear-gradient(transparent, rgba(255,255,255,.45), transparent); }
.anchor--drag { user-select: none; -webkit-user-select: none; }
.hero__date { margin-top: 20px; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: #dcdcda; }

.tick { animation: tick .5s var(--ease); }
@keyframes tick { 0% { opacity: .3; transform: translateY(-6px);} 100% { opacity: 1; transform: none;} }

.scroll-hint {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 48px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #cfcfcd;
  transition: color .25s;
}
.scroll-hint:hover { color: var(--lime); }
.scroll-hint svg { width: 26px; height: 26px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(6px);} }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Collectible carousel
   -------------------------------------------------------------------------- */
.collectible { display: flex; flex-direction: column; align-items: center; padding-top: 100px; }

.carousel {
  position: relative; width: 100%; max-width: 1400px;
  height: 520px; margin-top: 10px;
}
.carousel__track { position: relative; width: 100%; height: 100%; }
.wcard {
  position: absolute; top: 50%; left: 50%;
  width: 640px; max-width: 46vw; height: 460px;
  padding: 26px 40px 30px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 1.15s cubic-bezier(.45, 0, .15, 1), filter 1.15s cubic-bezier(.45, 0, .15, 1), opacity .6s ease, visibility 0s linear .6s;
  visibility: visible;
  will-change: transform;
  backface-visibility: hidden;
  z-index: 2;
}
.wcard__stage { width: 100%; flex: 1; min-height: 0; margin-bottom: 14px; }
.wcard__num { font-size: 11px; letter-spacing: .28em; color: var(--lime); font-weight: 700; margin-bottom: 8px; }
.wcard h3 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; text-shadow: 0 0 20px rgba(255,255,255,.18); }
.wcard p { margin-top: 6px; font-size: 18px; color: #cfcfcd; max-width: 560px; }
.wcard .pills { transition: opacity .6s; }

/* side cards: same layout, just scaled → no text reflow, no jitter */
.wcard[data-pos="left"]  { transform: translate(calc(-50% - min(505px, 35vw)), -50%) scale(.6); filter: brightness(.82); }
.wcard[data-pos="right"] { transform: translate(calc(-50% + min(505px, 35vw)), -50%) scale(.6); filter: brightness(.82); }
.wcard[data-pos="left"] .pills, .wcard[data-pos="right"] .pills { opacity: 0; }
.wcard[data-pos="center"] {
  z-index: 3; border-color: rgba(255,255,255,.36);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 0 0 1px rgba(255,255,255,.05), inset 0 -50px 90px rgba(255,200,120,.06), 0 0 90px rgba(255,200,120,.10), 0 40px 100px rgba(0,0,0,.6);
}
/* the card travelling from one side to the other passes behind the centre card */
.wcard.is-wrap { z-index: 1; filter: brightness(.45); }
.wcard[data-pos="hidden"] { opacity: 0; pointer-events: none; visibility: hidden; transform: translate(-50%, -50%) scale(.4); }

.carousel__arrow {
  position: absolute; top: 50%; z-index: 6; transform: translateY(-50%);
  width: 60px; height: 60px; border-radius: 50%;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(30,30,32,.9), rgba(10,10,11,.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 40px rgba(0,0,0,.6);
  display: grid; place-items: center; color: #fff;
  transition: border-color .25s, transform .25s var(--ease-spring), background .25s;
}
.carousel__arrow svg { width: 20px; height: 20px; }
.carousel__arrow:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-50%) scale(1.06); }
.carousel__arrow--l { left: 0; }
.carousel__arrow--r { right: 0; }
.carousel__dots { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 6; isolation: isolate; }
.carousel__dots button { width: 10px; height: 10px; padding: 0; position: relative; }
.carousel__dots button::before { content: ""; position: absolute; inset: -10px; }
.carousel__dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); padding: 0; transition: background .3s, transform .3s; }
.carousel__dots button.is-on { background: var(--lime); box-shadow: 0 0 10px var(--lime-glow); transform: scale(1.25); }

.mint-stats { display: flex; align-items: center; margin-top: 36px; }
.mint-stats__item { padding: 0 44px; text-align: center; border-left: 1px solid var(--line-2); }
.mint-stats__item:first-child { border-left: 0; }
.mint-stats__item b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.mint-stats__item span { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #cfcfcd; }

.mint-cta { margin-top: 30px; text-align: center; }
.mint-cta__note { margin-top: 14px; font-size: 15px; color: #dcdcda; }

/* --------------------------------------------------------------------------
   Benefits grid
   -------------------------------------------------------------------------- */
.benefits { padding-top: 80px; }
.benefits__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 1200px; margin: 0 auto;
}
.bcard {
  padding: 28px 28px 30px; min-height: 230px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
}
.bcard:hover { transform: translateY(-4px); border-color: rgba(213,255,58,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 30px 80px rgba(0,0,0,.5), 0 0 60px rgba(213,255,58,.08); }
.bcard__num { position: absolute; top: 22px; right: 26px; font-size: 12px; letter-spacing: .2em; color: var(--muted-2); font-weight: 600; }
.bcard__ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  border: 1px solid rgba(213,255,58,.35); color: var(--lime);
  background: radial-gradient(circle at 30% 20%, rgba(213,255,58,.18), rgba(213,255,58,.03));
  box-shadow: 0 0 24px rgba(213,255,58,.12), inset 0 1px 0 rgba(255,255,255,.15);
  margin-bottom: 6px;
}
.bcard__ico svg { width: 28px; height: 28px; }
.bcard__pct { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.bcard h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.bcard p { font-size: 15px; color: #cfcfcd; }
.bcard--wide { grid-column: 2 / 3; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }
.phase.reveal { opacity: 1; transform: none; } /* cards with 3D inside are shown at once, so the model never appears before its card */

/* --------------------------------------------------------------------------
   Platform
   -------------------------------------------------------------------------- */
.platform { padding-top: 110px; display: flex; flex-direction: column; }
.toolbar { display: flex; gap: 14px; align-items: center; max-width: 1180px; width: 100%; margin: 0 auto 26px; }
.search {
  flex: 1; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 20px;
  border-radius: 999px; color: var(--muted);
  transition: border-color .25s, box-shadow .25s;
}
.search:focus-within { border-color: rgba(213,255,58,.5); box-shadow: 0 0 0 3px rgba(213,255,58,.12); }
.search svg { width: 20px; height: 20px; flex: none; }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; min-width: 0; } /* ≥16px: iOS does not zoom on focus */
.search input::placeholder { color: var(--muted); }
.select svg { width: 14px; height: 14px; }

.featured {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px;
  max-width: 1180px; width: 100%; margin: 0 auto; min-height: 320px;
  padding: 30px 38px 30px;
  border-color: rgba(255,255,255,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 0 0 1px rgba(255,255,255,.04), inset 0 -60px 100px rgba(213,255,58,.05), 0 0 80px rgba(213,255,58,.08), 0 30px 80px rgba(0,0,0,.5);
}
.featured__info h3 { text-shadow: 0 0 24px rgba(255,255,255,.2); }
.featured__info { display: flex; flex-direction: column; align-items: flex-start; }
.featured__info h3 { margin-top: 18px; font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.featured__info .ticker { margin-top: 6px; font-size: 16px; }
.featured__info > p { margin-top: 14px; max-width: 400px; color: #dcdcda; }
.kpis { display: flex; margin: 22px 0 26px; }
.kpis > div { padding: 0 28px; border-left: 1px solid var(--line-2); }
.kpis > div:first-child { padding-left: 0; border-left: 0; }
.kpis span { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.kpis b { display: block; margin-top: 4px; font-size: 24px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.featured__visual { display: flex; flex-direction: column; }
.featured__stage { flex: 1; min-height: 240px; }
.progress { margin-top: 10px; }
.progress__row { display: flex; align-items: baseline; gap: 20px; font-size: 14px; margin-bottom: 8px; }
.progress__row i { font-style: normal; color: var(--muted); }
.progress__row span:nth-child(2) { margin-left: auto; font-weight: 600; }
.progress__cap { color: var(--muted); }
.progress__cap b { color: var(--text); }

.explore-head { display: flex; align-items: center; justify-content: space-between; max-width: 1180px; width: 100%; margin: 48px auto 18px; }
.explore-head h3 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.tabs { display: flex; padding: 4px; border-radius: 999px; }

.tabs button {
  height: 36px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; background: none;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #cfcfcd;
  transition: color .25s, border-color .25s, background .25s, box-shadow .25s;
}
.tabs button.is-active { color: var(--lime); border-color: var(--lime); background: rgba(213,255,58,.06); box-shadow: 0 0 20px rgba(213,255,58,.2); }

.launches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1180px; width: 100%; margin: 0 auto; position: relative; }
.lcard { padding: 20px 22px 22px; display: flex; flex-direction: column; min-height: 300px; transition: transform .5s var(--ease), border-color .5s, opacity .5s; }
.lcard { box-shadow: inset 0 1px 0 rgba(255,255,255,.42), inset 0 0 0 1px rgba(255,255,255,.04), inset 0 -40px 70px rgba(213,255,58,.05), 0 0 50px rgba(213,255,58,.05), 0 30px 80px rgba(0,0,0,.5); }
.lcard:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 0 0 1px rgba(255,255,255,.05), inset 0 -40px 70px rgba(213,255,58,.09), 0 0 70px rgba(213,255,58,.12), 0 30px 80px rgba(0,0,0,.5); }
.lcard:nth-child(2) { --i: 1; } .lcard:nth-child(3) { --i: 2; } .lcard:nth-child(4) { --i: 3; } .lcard:nth-child(5) { --i: 4; } .lcard:nth-child(6) { --i: 5; }
.lcard .tag { position: absolute; top: 18px; left: 20px; z-index: 1; }
.lcard__stage { height: 160px; margin: 8px 0 10px; }
.lcard h4 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.lcard__row { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 8px; font-size: 14px; }
.lcard__row i { font-style: normal; color: var(--muted); }
.lcard__row b { font-weight: 600; }
.lcard[hidden] { display: none; }
.lcard.is-leaving { opacity: 0; transform: scale(.96); }
.launches__empty { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--muted); }
.launches__empty[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Roadmap
   -------------------------------------------------------------------------- */
.roadmap { padding-top: 110px; padding-bottom: 60px; }
.phases { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: stretch; max-width: 1560px; margin: 0 auto; padding-top: 30px; }
.phase { padding: 22px 22px 26px; min-height: 420px; display: flex; flex-direction: column; transition: transform .6s var(--ease), border-color .6s, box-shadow .6s, opacity .9s var(--ease); }
.phase__label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #dcdcda; }
.phase__stage { height: 210px; margin: 8px -8px 10px; }
.phase .tag { align-self: flex-start; }
.phase ul { margin-top: 16px; display: grid; gap: 10px; }
.phase li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.3; }
.phase li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime-glow); }
.phase.is-current {
  margin-top: -30px; border-color: rgba(213,255,58,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 40px 100px rgba(0,0,0,.6), 0 0 70px rgba(213,255,58,.18);
  background: linear-gradient(180deg, rgba(213,255,58,.06), rgba(255,255,255,.015));
}
.phase.is-current .phase__stage { height: 230px; }
.phase {
  border-color: rgba(255,255,255,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), inset 0 0 0 1px rgba(255,255,255,.04), inset 0 -50px 80px rgba(255,190,110,.06), 0 0 60px rgba(255,190,110,.06), 0 30px 80px rgba(0,0,0,.5);
}
.phase.is-current {
  border-color: rgba(213,255,58,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 0 0 1px rgba(213,255,58,.12), inset 0 -60px 100px rgba(213,255,58,.08), 0 0 90px rgba(213,255,58,.2), 0 40px 100px rgba(0,0,0,.6);
}
.phase:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.4); }
.phase.is-current:hover { border-color: rgba(213,255,58,.9); }
.bcard { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 0 0 1px rgba(255,255,255,.04), inset 0 -40px 70px rgba(213,255,58,.04), 0 30px 80px rgba(0,0,0,.5); }

.timeline { position: relative; max-width: 1560px; margin: 22px auto 0; height: 120px; }
.timeline__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.timeline__base { fill: none; stroke: url(#tl-base); stroke-width: 2; }
.timeline__glow { fill: none; stroke: url(#tl-glowgrad); stroke-width: 7; filter: url(#tl-glow); stroke-linecap: round; }
.timeline__active { fill: none; stroke: url(#tl-grad); stroke-width: 3; stroke-linecap: round; }
.timeline__glow, .timeline__active {
  stroke-dasharray: var(--len, 1100); stroke-dashoffset: var(--len, 1100);
  transition: stroke-dashoffset 2.2s var(--ease) .3s;
}
.timeline.is-in .timeline__active, .timeline.is-in .timeline__glow { stroke-dashoffset: var(--off, 770); }
.timeline__nodes { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.tnode {
  position: relative; justify-self: center; align-self: center; margin-top: 0;
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: #0b0b0c;
  display: grid; place-items: center; color: var(--lime);
}
.tnode::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 0; height: 60px; border-left: 2px dashed rgba(255,255,255,.35); transform: translateX(-50%); }
.tnode svg { width: 12px; height: 12px; }
.tnode--done { border-color: var(--lime); }
.tnode--here { border-color: var(--lime); box-shadow: 0 0 20px var(--lime-glow); }
.tnode--here i { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.tnode--here::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--lime); animation: pulse 2.2s ease-out infinite; }
.tnode--here em { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--lime); }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }
.tnode { transform: translateY(var(--dy, 0px)); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  max-width: 1440px; margin: 0 auto; padding: 30px clamp(16px, 4vw, 64px) 40px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.footer__powered { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.footer__top { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #cfcfcd; transition: color .25s; }
.footer__top:hover { color: var(--lime); }
.footer__top svg { width: 26px; height: 26px; }
.footer__social { display: flex; gap: 12px; justify-self: end; }
.footer__social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: #fff;
  transition: border-color .25s, color .25s, transform .25s var(--ease-spring);
}
.footer__social a:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Modal, toast
   -------------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn .3s; }
.modal__panel { position: relative; overflow: visible; width: min(420px, calc(100vw - 32px)); padding: 30px 30px 26px; background: linear-gradient(180deg, rgba(28,28,30,.96), rgba(12,12,13,.98)); animation: popIn .4s var(--ease-spring); }
.modal__panel h3 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.modal__sub { margin-top: 6px; color: var(--muted); font-size: 14px; }
.modal__close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--muted); display: grid; place-items: center; padding: 0; }
.modal__close svg { width: 14px; height: 14px; display: block; }
.modal__close:hover { color: #fff; border-color: var(--line-2); }
.wallets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; max-height: min(52vh, 420px); overflow: auto; padding-right: 2px; scrollbar-width: thin; }
.wallet {
  display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 14px; border-radius: 14px; text-align: left;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); font-weight: 600; font-size: 14px; color: var(--text);
  transition: border-color .25s, background .25s;
  min-width: 0;
}
.wallet:hover { border-color: var(--lime); background: rgba(213,255,58,.06); }
.wallet:disabled { opacity: .5; cursor: progress; transform: none; }
.wallet__ico { width: 34px; height: 34px; border-radius: 9px; flex: none; overflow: hidden; background: #1a1a1c; display: grid; place-items: center; }
.wallet__ico img, .wallet__ico svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.wallet__name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wallet__tag { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); border: 1px solid rgba(213,255,58,.5); border-radius: 999px; padding: 3px 7px; flex: none; }
.wallet__tag--soft { color: var(--muted); border-color: var(--line); }
.wallet--wc { grid-column: 1 / -1; margin-top: 10px; width: 100%; }
.modal__foot { margin-top: 12px; font-size: 11px; color: var(--muted-2); line-height: 1.4; }
.modal__panel { width: min(520px, calc(100vw - 32px)); }
@media (max-width: 480px) { .wallets { grid-template-columns: 1fr; } }
.modal__status { margin-top: 16px; min-height: 20px; font-size: 13px; color: var(--muted); }
.modal__status.is-ok { color: var(--lime); }
.modal__status.is-err { color: #ff7a7a; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 20px);
  padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: rgba(20,20,22,.95); border: 1px solid var(--line-2); color: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.6); opacity: 0; pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* No WebGL fallback */
.no-webgl .anchor { background: radial-gradient(closest-side, rgba(255,200,120,.25), transparent); border-radius: 50%; }
.no-webgl .anchor .floor-blur { display: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .roadmap { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 1100px) {
  .launches { grid-template-columns: repeat(2, 1fr); }
  /* vertical roadmap: full-width cards with a rail of nodes on the left */
  .phases { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 10px 0 10px 36px; position: relative; max-width: 560px; }
  .phases::before {
    content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; border-radius: 2px;
    background: linear-gradient(180deg,
      transparent 0, var(--lime) 40px, var(--lime) var(--done, 30%),
      rgba(255,255,255,.25) var(--done, 30%), rgba(255,255,255,.25) calc(100% - 40px), transparent 100%);
  }
  .phases::after {
    content: ""; position: absolute; left: 9px; top: 0; width: 8px; height: var(--done, 30%); border-radius: 4px; pointer-events: none;
    background: var(--lime); filter: blur(6px); opacity: .45;
    mask: linear-gradient(transparent, #000 40px, #000);
    -webkit-mask: linear-gradient(transparent, #000 40px, #000);
  }
  .phase { min-height: 0; margin-top: 0; }
  .phase.is-current { margin-top: 0; }
  .phase__stage { height: 220px; }
  .phase__label { position: relative; }
  .phase__label::before {
    content: ""; position: absolute; left: -56px; top: -3px; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid #fff; background: var(--bg); box-sizing: border-box;
  }
  .phase.is-done .phase__label::before { border-color: var(--lime); background: var(--lime); box-shadow: 0 0 10px var(--lime-glow); }
  .phase.is-current .phase__label::before { border-color: var(--lime); background: var(--bg); box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 8px var(--lime), 0 0 16px var(--lime-glow); }
  .phase.is-current .phase__label::after {
    content: ""; position: absolute; left: -62px; top: -9px; width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid var(--lime); animation: pulse 2.2s ease-out infinite;
  }
  .timeline { display: none; }
  .featured { grid-template-columns: 1fr; }
  .featured__stage { min-height: 260px; }
}

@media (max-width: 900px) {
  .nav { padding: 0 8px 0 16px; gap: 4px; }
  .nav__links { display: none; }
  .nav__logo { margin-right: 8px; }
  .nav__right { margin-left: 4px; }
  .nav__burger { display: grid; gap: 5px; width: 40px; height: 40px; place-content: center; border: 0; background: none; }
  .nav__burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s; }
  .nav.is-open .nav__links { display: flex; position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; padding: 10px; border-radius: 22px; border: 1px solid var(--line); background: rgba(10,10,11,.95); }
  .nav.is-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .benefits__grid { grid-template-columns: 1fr 1fr; }
  .bcard--wide { grid-column: auto; }
  .countdown { padding: 18px 20px; }
  .countdown__cell { min-width: 74px; }
  .countdown__cell span { font-size: 10px; letter-spacing: .18em; }
  .carousel { height: 480px; }
  .wcard { width: 86vw; max-width: 86vw; height: 440px; padding: 22px 22px 26px; }
  .wcard h3 { font-size: 24px; }
  .wcard p { font-size: 15px; }
  .wcard[data-pos="left"], .wcard[data-pos="right"] { opacity: 0; pointer-events: none; visibility: hidden; }
  .wcard[data-pos="center"] { visibility: visible; transition-delay: 0s; }
  .carousel { height: 500px; }
  .carousel__dots { bottom: 6px; }
  .carousel__dots button { width: 9px; height: 9px; }
  .wcard[data-pos="left"] { transform: translate(-125%, -50%) scale(.8); }
  .wcard[data-pos="right"] { transform: translate(25%, -50%) scale(.8); }
  .carousel__arrow { width: 48px; height: 48px; }
  .carousel__arrow--l { left: 14px; } .carousel__arrow--r { right: 14px; }
  .carousel__arrow { width: 44px; height: 44px; }
  .carousel { overflow: visible; }
  /* text under the dots: keep the wrapping side cards from darkening the area */
  .wcard[data-pos="left"], .wcard[data-pos="right"], .wcard.is-wrap { visibility: hidden; opacity: 0; filter: none; }
  .wcard[data-pos="center"] { filter: none; }
  .mint-stats__item { padding: 0 20px; }
  .mint-stats__item b { font-size: 22px; }
  .toolbar { flex-wrap: wrap; }
  .search { flex-basis: 100%; }
  .explore-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer { grid-template-columns: 1fr; text-align: center; }
  .footer__social { justify-self: center; }
}

@media (max-width: 600px) {
  section { padding-top: 90px; padding-bottom: 60px; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero__stage { height: 34vh; }
  .btn--sm span { display: inline; }
  #connect-btn { padding: 0 12px; font-size: 10px; }
  .benefits__grid { grid-template-columns: 1fr; }
  .launches { grid-template-columns: 1fr; }
  .kpis { flex-wrap: wrap; gap: 14px 0; }
  .kpis > div { padding: 0 18px; }
  .kpis > div:first-child { padding-left: 0; }
  .mint-stats { flex-direction: row; gap: 0; width: 100%; justify-content: center; margin-top: 28px; }
  .mint-stats__item { padding: 0 8px; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
  .mint-stats__item b { font-size: 18px; white-space: nowrap; letter-spacing: -.01em; }
  .mint-stats__item span { font-size: 8px; letter-spacing: .08em; white-space: nowrap; margin-top: 4px; }
  .btn--mint { padding: 0 40px; font-size: 16px; }
  .featured { padding: 24px 22px; }
  .featured__info h3 { font-size: 32px; }
  .countdown__cell b { font-size: 34px; }
  .countdown__sep { margin: 0 2px; }
}
