/* =========================================================
   ICECAT ($ICECAT) — HyperEVM ice × hype meme landing
   black / cyan frost / ASCII lo-fi meets premium
   ========================================================= */

:root {
  --bg: #000000;
  --bg-2: #05080c;
  --bg-3: #0a1218;
  --ice: #5ce1ff;
  --ice-dim: #2a9bb8;
  --ice-glow: rgba(92, 225, 255, 0.45);
  --frost: #e8f7ff;
  --muted: #7a92a0;
  --line: rgba(92, 225, 255, 0.18);
  --danger: #ff5c7a;
  --display: "Syne", system-ui, sans-serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1180px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); color: var(--frost); scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--frost);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-gated { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
code, pre { font-family: var(--mono); }

#ice-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 3;
}
.fx-vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 4;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.72) 100%);
}
.fx-frost {
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background:
    radial-gradient(ellipse 80% 50% at 70% 10%, rgba(92,225,255,.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 15% 80%, rgba(92,225,255,.05), transparent 50%);
}

/* ---------- GATE ---------- */
.gate {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: #000;
  transition: opacity .55s ease, visibility .55s ease;
}
.gate.is-out {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.gate__inner {
  text-align: center;
  padding: 2rem;
  animation: gate-in 0.8s ease both;
}
@keyframes gate-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.gate__logo {
  width: 96px; height: 96px; margin: 0 auto 1.25rem;
  filter: drop-shadow(0 0 24px var(--ice-glow));
  animation: float-y 3.2s ease-in-out infinite;
}
.gate__ascii {
  color: var(--ice);
  font-size: .72rem; line-height: 1.25;
  opacity: .7; margin-bottom: 1.25rem;
}
.gate__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.6rem);
  letter-spacing: .08em;
  color: var(--frost);
  text-shadow: 0 0 40px var(--ice-glow);
}
.gate__sub {
  margin-top: .5rem;
  color: var(--muted);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .75rem;
}
.gate__btn {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: .95rem 1.8rem;
  border: 1px solid var(--ice);
  border-radius: 999px;
  background: rgba(92,225,255,.08);
  color: var(--ice);
  font-weight: 700;
  letter-spacing: .14em;
  transition: background .2s, box-shadow .2s, transform .15s;
  box-shadow: 0 0 0 0 var(--ice-glow);
}
.gate__btn:hover {
  background: rgba(92,225,255,.18);
  box-shadow: 0 0 32px var(--ice-glow);
  transform: translateY(-1px);
}
.gate__mute {
  margin-top: 1rem;
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .06em;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem var(--pad);
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 800; letter-spacing: .06em;
}
.nav__brand img {
  width: 36px; height: 36px;
  border-radius: 8px;
  filter: drop-shadow(0 0 10px var(--ice-glow));
}
.nav__links {
  display: none; gap: 1.25rem; margin-left: auto;
  font-size: .9rem; color: var(--muted);
}
.nav__links a:hover { color: var(--ice); }
.nav__cta {
  margin-left: auto;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: var(--ice);
  color: #001018;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 0 24px var(--ice-glow);
}
.nav__cta:hover { filter: brightness(1.08); }
.nav__burger {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.nav__burger span {
  display: block; width: 18px; height: 2px; background: var(--frost);
}
.nav-mobile {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 49;
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1rem var(--pad) 1.25rem;
  background: rgba(0,0,0,.94);
  border-bottom: 1px solid var(--line);
}
.nav-mobile[hidden] { display: none !important; }
.nav-mobile a {
  padding: .75rem 0;
  border-bottom: 1px solid rgba(92,225,255,.08);
  color: var(--frost);
}
@media (min-width: 860px) {
  .nav__links { display: flex; }
  .nav__cta { margin-left: 1rem; }
  .nav__burger { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 920px);
  display: grid;
  align-items: end;
  padding: clamp(2rem, 6vw, 4.5rem) var(--pad) 3.5rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center right;
  opacity: .85;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 42%, rgba(0,0,0,.25) 70%, rgba(0,0,0,.45) 100%),
    linear-gradient(0deg, rgba(0,0,0,.9) 0%, transparent 45%);
}
.hero__content {
  position: relative; z-index: 2;
  max-width: 720px;
}
.eyebrow {
  color: var(--ice);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}
.hero__title {
  display: flex; flex-direction: column; gap: .15rem;
  margin-bottom: 1rem;
}
.hero__word {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 7rem);
  line-height: .9;
  letter-spacing: -.02em;
  text-shadow: 0 0 60px var(--ice-glow);
}
.hero__tick {
  font-family: var(--mono);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--ice);
  letter-spacing: .18em;
}
.hero__tag {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: 1.4rem;
}
.hero__tag em {
  font-style: normal;
  color: var(--frost);
  border-bottom: 1px solid var(--ice-dim);
}

/* CA pill */
.ca-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  max-width: 100%;
  padding: .45rem .45rem .45rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5,12,18,.78);
  backdrop-filter: blur(10px);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 0 1px rgba(92,225,255,.04), 0 10px 40px rgba(0,0,0,.35);
}
.ca-pill__label {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--ice);
  letter-spacing: .16em;
}
.ca-pill__addr {
  font-size: .82rem;
  color: var(--frost);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: min(42vw, 280px);
}
.ca-pill__copy {
  flex-shrink: 0;
  padding: .5rem .95rem;
  border-radius: 999px;
  background: var(--ice);
  color: #001018;
  font-weight: 700;
  font-size: .8rem;
}
.ca-pill__copy:hover { filter: brightness(1.08); }
.ca-pill.is-soon .ca-pill__addr { color: var(--muted); }

.hero__actions {
  display: flex; flex-wrap: wrap; gap: .7rem;
  margin-bottom: .9rem;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--ice);
  color: #001018;
  box-shadow: 0 0 28px var(--ice-glow);
}
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--frost);
  background: rgba(92,225,255,.04);
}
.btn--ghost:hover { border-color: var(--ice); color: var(--ice); }
.hero__pair-note {
  font-size: .78rem;
  color: var(--muted);
}
.hero__pair-note code { color: var(--ice-dim); font-size: .72rem; }
.hero__pair-note[hidden] { display: none; }

.hero__float {
  position: absolute;
  right: clamp(1rem, 6vw, 4rem);
  top: 18%;
  z-index: 2;
  pointer-events: none;
  display: none;
}
.mascot {
  width: clamp(120px, 18vw, 220px);
  height: auto;
  filter: drop-shadow(0 0 30px var(--ice-glow));
  animation: float-y 4s ease-in-out infinite;
}
@media (min-width: 900px) {
  .hero__float { display: block; }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* banner */
.banner-strip {
  border-block: 1px solid var(--line);
  background: #000;
}
.banner-strip img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
}

/* sections */
.section {
  position: relative; z-index: 5;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad);
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
}
.section__head { margin-bottom: 2rem; max-width: 40rem; }
.section__head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.section__lead {
  margin-top: .75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* lore */
.lore__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .lore__grid { grid-template-columns: 1fr 1fr; }
}
.lore-card {
  padding: 1.4rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(92,225,255,.07), transparent 40%),
    var(--bg-2);
  transition: border-color .2s, transform .2s;
}
.lore-card:hover {
  border-color: rgba(92,225,255,.4);
  transform: translateY(-2px);
}
.lore-card__icon {
  font-size: 1.4rem;
  margin-bottom: .7rem;
  filter: drop-shadow(0 0 8px var(--ice-glow));
}
.lore-card h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin-bottom: .45rem;
}
.lore-card p { color: var(--muted); font-size: .95rem; }
.lore-card--ascii .ascii-block {
  color: var(--ice);
  font-size: .7rem;
  line-height: 1.3;
  margin-bottom: .85rem;
  opacity: .85;
}

/* steps */
.steps {
  list-style: none;
  display: grid;
  gap: 1rem;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.step__n {
  font-family: var(--mono);
  color: var(--ice);
  font-size: 1rem;
  letter-spacing: .08em;
  padding-top: .15rem;
}
.step h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: .3rem;
}
.step p { color: var(--muted); font-size: .95rem; }

/* chart */
.chart-empty {
  padding: 1.1rem 1.25rem;
  border: 1px dashed rgba(92,225,255,.28);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: .92rem;
  background: rgba(92,225,255,.03);
}
.chart-empty code { color: var(--ice); }
.chart-live[hidden] { display: none !important; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-bottom: 1rem;
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
}
.stat span {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.stat strong {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--ice);
}
.chart-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b1116;
  aspect-ratio: 16 / 9;
  min-height: 360px;
}
.chart-frame iframe {
  width: 100%; height: 100%; border: 0;
}

/* tweet */
.tweet-wrap {
  max-width: 560px;
  margin: 0 auto;
  min-height: 180px;
}

/* vault */
.vault__grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 860px) {
  .vault__grid { grid-template-columns: repeat(4, 1fr); }
}
.vault__item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 1;
}
.vault__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.vault__item:hover img { transform: scale(1.04); }
.vault__item--logo {
  display: grid; place-items: center;
  background: radial-gradient(circle at center, rgba(92,225,255,.12), #000 70%);
}
.vault__item--logo img {
  width: 55%; height: auto; object-fit: contain;
}

/* faq */
.faq__list {
  display: grid; gap: .65rem;
  max-width: 760px;
}
.faq__list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  padding: .15rem 0;
}
.faq__list summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list details[open] summary { color: var(--ice); }
.faq__list details p {
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
  font-size: .95rem;
}

/* footer */
.footer {
  position: relative; z-index: 5;
  padding: 2.5rem var(--pad) 3rem;
  border-top: 1px solid var(--line);
  display: grid; gap: 1rem;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
}
.footer__brand {
  display: flex; align-items: center; gap: .75rem;
}
.footer__brand img {
  width: 40px; height: 40px;
  filter: drop-shadow(0 0 12px var(--ice-glow));
}
.footer__brand strong {
  display: block;
  font-family: var(--display);
  letter-spacing: .06em;
}
.footer__brand span {
  font-size: .8rem; color: var(--muted);
}
.footer__warn {
  color: var(--muted);
  font-size: .85rem;
  max-width: 42ch;
}
.footer__copy {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
}

/* toast */
.toast {
  position: fixed;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 300;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  background: var(--ice);
  color: #001018;
  font-weight: 700;
  font-size: .85rem;
  box-shadow: 0 0 30px var(--ice-glow);
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .mascot, .gate__logo { animation: none; }
  * { scroll-behavior: auto !important; }
}
