/* ============================================================
   AVAX CAT — $ACat
   Vanilla CSS. No framework, no build step, one file.
   Palette: Avalanche red on glacier black, with a "whiteout"
   light theme that swaps ground and ink.
   ============================================================ */

:root {
  --red:      #e84142;
  --red-hot:  #ff5f5f;
  --red-deep: #8c1d1e;
  --ink:      #ffffff;
  --ink-2:    rgba(255,255,255,.72);
  --ink-3:    rgba(255,255,255,.48);
  --bg:       #07070b;
  --bg-2:     #0c0c13;
  --card:     rgba(255,255,255,.045);
  --card-2:   rgba(255,255,255,.07);
  --line:     rgba(255,255,255,.11);
  --line-2:   rgba(255,255,255,.2);
  --glow:     0 0 0 1px rgba(232,65,66,.4), 0 12px 48px -12px rgba(232,65,66,.55);
  --radius:   18px;
  --wrap:     1180px;
  --font:     'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display:  'Anton', 'Inter', system-ui, sans-serif;
  --mono:     ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
  --ease:     cubic-bezier(.22,.8,.3,1);
}

[data-theme="light"] {
  --ink:      #101018;
  --ink-2:    rgba(16,16,24,.74);
  --ink-3:    rgba(16,16,24,.5);
  --bg:       #f4f5f8;
  --bg-2:     #ffffff;
  --card:     rgba(16,16,24,.035);
  --card-2:   rgba(16,16,24,.06);
  --line:     rgba(16,16,24,.12);
  --line-2:   rgba(16,16,24,.22);
  --red-deep: #b62526;
  --glow:     0 0 0 1px rgba(232,65,66,.32), 0 12px 40px -14px rgba(232,65,66,.45);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}

img { max-width: 100%; display: block; }

a { color: var(--red-hot); text-decoration: none; }
/* :not(.btn) — a bare descendant selector here would out-specify .btn-primary
   and repaint button labels in link colour. */
[data-theme="light"] a:not(.btn) { color: var(--red-deep); }
a:hover { text-decoration: underline; }

::selection { background: var(--red); color: #fff; }

.skip {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--red-hot);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ─────────────── Ambient background ─────────────── */

.aurora {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  overflow: hidden; filter: blur(90px); opacity: .5;
}
[data-theme="light"] .aurora { opacity: .28; }
.aurora span {
  position: absolute; border-radius: 50%; display: block;
  animation: drift 26s var(--ease) infinite alternate;
}
.aurora span:nth-child(1) { width: 52vw; height: 52vw; left: -10vw; top: -14vw; background: radial-gradient(circle, rgba(232,65,66,.55), transparent 68%); }
.aurora span:nth-child(2) { width: 44vw; height: 44vw; right: -12vw; top: 24vh; background: radial-gradient(circle, rgba(120,60,255,.28), transparent 68%); animation-duration: 34s; animation-delay: -8s; }
.aurora span:nth-child(3) { width: 60vw; height: 60vw; left: 18vw; bottom: -26vw; background: radial-gradient(circle, rgba(232,65,66,.3), transparent 70%); animation-duration: 40s; animation-delay: -16s; }

@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(6vw,-5vh,0) scale(1.18); }
}

.snow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  width: 100%; height: 100%;
}

/* ─────────────── Nav ─────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), padding .3s var(--ease), background .3s var(--ease);
}
.nav.stuck { border-bottom-color: var(--line); padding-top: 10px; padding-bottom: 10px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 20px; letter-spacing: .06em;
  color: var(--ink); text-decoration: none; flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.brand em { color: var(--red); font-style: normal; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; color: var(--ink-2); font-size: 14.5px; font-weight: 600;
  padding: 8px 13px; border-radius: 10px; text-decoration: none;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  background: var(--red); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--card); text-decoration: none; }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 11px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  font-size: 15px; line-height: 1; display: grid; place-items: center;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.icon-btn:hover { transform: translateY(-2px) rotate(-12deg); border-color: var(--line-2); background: var(--card-2); }
.icon-btn .ico-light { display: none; }
[data-theme="light"] .icon-btn .ico-dark  { display: none; }
[data-theme="light"] .icon-btn .ico-light { display: block; }

.scrollbar {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-hot));
  box-shadow: 0 0 12px rgba(232,65,66,.8);
}

/* ─────────────── Buttons ─────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 800; font-size: 15px; letter-spacing: .01em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { padding: 10px 19px; font-size: 14px; }

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff; box-shadow: 0 10px 30px -12px rgba(232,65,66,.9);
}
.btn-primary:hover { box-shadow: 0 16px 44px -12px rgba(232,65,66,1); background: linear-gradient(135deg, var(--red-hot), var(--red)); }

.btn-ghost {
  background: var(--card); color: var(--ink); border-color: var(--line-2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--card-2); border-color: var(--red); }

/* ─────────────── Hero ─────────────── */

.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px clamp(16px, 4vw, 40px) 60px;
  overflow: hidden;

  /* The hero sits on a dark photograph in BOTH themes, so it keeps the dark
     token set locally — whiteout mode would otherwise bleach the scrim and
     drop dark text onto a bright mountain. */
  --bg:     #07070b;
  --bg-2:   #0c0c13;
  --ink:    #ffffff;
  --ink-2:  rgba(255,255,255,.74);
  --ink-3:  rgba(255,255,255,.5);
  --card:   rgba(255,255,255,.05);
  --card-2: rgba(255,255,255,.08);
  --line:   rgba(255,255,255,.12);
  --line-2: rgba(255,255,255,.22);
  --red-deep: #8c1d1e;
  color: var(--ink);
}
.hero a:not(.btn) { color: var(--red-hot); }

.hero-media { position: absolute; inset: -8% 0 -8% 0; z-index: -1; will-change: transform; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  /* Push the cat out from under the headline on wide screens. */
  transform: scale(1.16) translateX(13%);
  transform-origin: 50% 45%;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, color-mix(in srgb, var(--bg) 72%, transparent) 40%, transparent 76%),
    linear-gradient(to right, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 58%, transparent) 38%, transparent 66%);
}

.hero-inner { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--red-hot); padding: 7px 15px; border-radius: 999px;
  background: rgba(232,65,66,.11); border: 1px solid rgba(232,65,66,.32);
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red-hot);
  box-shadow: 0 0 0 0 rgba(232,65,66,.8); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(232,65,66,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,65,66,0); }
}

.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3.1rem, 11vw, 9.5rem);
  line-height: .86; letter-spacing: -.012em; margin: 0 0 24px;
  text-transform: uppercase;
}
.hero h1 .line { display: block; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--red-hot) 0%, var(--red) 42%, #ffb3a0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 26px rgba(232,65,66,.42));
}

.lede { max-width: 58ch; font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--ink-2); margin: 0 0 30px; }
.lede strong { color: var(--ink); }

.cta-row { display: flex; flex-wrap: wrap; gap: 13px; margin: 26px 0 0; }
.cta-row.center { justify-content: center; }

/* Contract address pill */
.ca {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  padding: 9px 9px 9px 16px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  transition: border-color .25s var(--ease), box-shadow .3s var(--ease);
}
.ca:hover { border-color: var(--red); box-shadow: var(--glow); }
.ca-label {
  font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--ink-3);
  padding-right: 12px; border-right: 1px solid var(--line);
}
.ca code {
  font-family: var(--mono); font-size: 13.5px; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ca.small { padding-left: 14px; margin-top: 12px; }
.ca.copied { border-color: #3ddc84; }

.copy {
  border: 0; cursor: pointer; flex-shrink: 0;
  padding: 9px 16px; border-radius: 10px;
  background: var(--red); color: #fff; font-weight: 800; font-size: 13px;
  font-family: var(--font);
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.copy:hover { background: var(--red-hot); }
.copy:active { transform: scale(.94); }
.copy.done { background: #2fb26a; }

/* Live stats */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px; margin: 40px 0 10px; padding: 0;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; max-width: 760px;
}
.stats > div { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(10px); padding: 16px 18px; }
.stats dt { font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.stats dd { margin: 0; font-family: var(--display); font-size: clamp(1.15rem, 2.4vw, 1.6rem); letter-spacing: .01em; }
.stats dd.up   { color: #3ddc84; }
.stats dd.down { color: var(--red-hot); }
.skel { color: var(--ink-3); animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { 50% { opacity: .35; } }

.stats-note { font-size: 12.5px; color: var(--ink-3); margin: 0; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; border-radius: 2px;
  background: var(--red-hot); transform: translateX(-50%);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity:0; top:8px; } 30% { opacity:1; } 100% { opacity:0; top:24px; } }

/* ─────────────── Marquee ─────────────── */

.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  background: linear-gradient(90deg, var(--red-deep), var(--red) 50%, var(--red-deep));
  padding: 13px 0;
}
.marquee-track {
  display: flex; gap: 34px; white-space: nowrap; width: max-content;
  animation: slide 38s linear infinite;
}
.marquee-track span {
  font-family: var(--display); font-size: 18px; letter-spacing: .1em;
  text-transform: uppercase; color: #fff;
}
.marquee-track b { color: rgba(255,255,255,.5); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ─────────────── Section shell ─────────────── */

.section { padding: clamp(72px, 11vw, 140px) clamp(16px, 4vw, 40px); position: relative; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.wrap.narrow { max-width: 820px; }

h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.1rem, 5.4vw, 4.05rem); line-height: .96;
  letter-spacing: -.01em; margin: 0 0 18px; text-transform: uppercase;
}
h3 { font-size: 1.16rem; font-weight: 800; margin: 0 0 8px; letter-spacing: -.01em; }
p { margin: 0 0 15px; color: var(--ink-2); }
p strong { color: var(--ink); }

.sec-head { max-width: 780px; margin-bottom: 52px; }
.sec-head .sub { font-size: 1.05rem; }

.grid-2 { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 6vw, 76px); align-items: start; }

/* Story pillars */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pillars li {
  display: flex; gap: 17px; padding: 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.pillars li:hover { transform: translateX(6px); border-color: rgba(232,65,66,.45); background: var(--card-2); }
.pi { font-size: 26px; line-height: 1; flex-shrink: 0; }
.pillars p { margin: 0; font-size: 15px; }

/* ─────────────── Reflections flow ─────────────── */

.flow {
  list-style: none; margin: 0 0 54px; padding: 0;
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch;
  counter-reset: flow;
}
.flow > li:not(.arrow) {
  padding: 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.flow > li:not(.arrow):hover { transform: translateY(-6px); border-color: rgba(232,65,66,.5); box-shadow: 0 20px 50px -26px rgba(232,65,66,.7); }
.flow .step {
  display: inline-block; font-family: var(--display); font-size: 13px; letter-spacing: .18em;
  color: var(--red-hot); margin-bottom: 12px;
}
.flow p { margin: 0; font-size: 15px; }
.flow .arrow {
  display: grid; place-items: center; font-size: 24px; color: var(--red);
  animation: nudge 2.4s var(--ease) infinite;
}
@keyframes nudge { 50% { transform: translateX(6px); } }

/* Calculator */
.calc {
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line-2); background: var(--card);
  backdrop-filter: blur(10px);
}
.calc-head {
  padding: 24px 28px; border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(232,65,66,.16), transparent 70%);
}
.calc-head h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: .02em; text-transform: uppercase; margin: 0 0 4px; }
.calc-head p { margin: 0; font-size: 14px; }
.calc-body { padding: 28px; display: grid; gap: 22px; }

.field { display: block; }
.field > span {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px;
}
.field output { font-family: var(--mono); font-size: 15px; color: var(--red-hot); font-weight: 700; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 99px; background: var(--card-2);
  border: 1px solid var(--line); cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red-hot), var(--red-deep));
  border: 2px solid #fff2; box-shadow: 0 4px 14px -2px rgba(232,65,66,.9);
  transition: transform .15s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.18); }
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff2;
  background: linear-gradient(135deg, var(--red-hot), var(--red-deep));
}

.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.calc-out > div {
  padding: 18px; border-radius: 14px;
  background: var(--card-2); border: 1px solid var(--line);
}
.calc-out .hero-out {
  background: linear-gradient(135deg, rgba(232,65,66,.2), rgba(232,65,66,.05));
  border-color: rgba(232,65,66,.5);
}
.calc-out .k { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.calc-out strong { font-family: var(--display); font-size: clamp(1.15rem, 2.4vw, 1.7rem); font-weight: 400; letter-spacing: .01em; }
.calc-fine { font-size: 12.5px; color: var(--ink-3); margin: 0; }

/* ─────────────── Tokenomics ─────────────── */

.tok-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.donut-card, .spec, .safety {
  padding: 30px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
}
.donut-card { display: flex; flex-direction: column; align-items: center; gap: 26px; grid-row: span 2; justify-content: center; }

.donut {
  --a: 245deg;  /* 68% */
  --b: 317deg;  /* +20% */
  position: relative; width: min(260px, 62vw); aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(var(--red) 0 var(--a), #7a3b3f var(--a) var(--b), #4b4b57 var(--b) 360deg);
  display: grid; place-items: center;
  filter: drop-shadow(0 14px 42px rgba(232,65,66,.4));
  animation: spin-in 1.1s var(--ease) both;
}
@keyframes spin-in { from { transform: rotate(-120deg) scale(.82); opacity: 0; } }
.donut-hole {
  width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--bg);
  display: grid; place-items: center; text-align: center; line-height: 1.25;
  border: 1px solid var(--line);
}
.donut-hole strong { font-family: var(--display); font-size: 2rem; font-weight: 400; display: block; }
.donut-hole span { font-size: 11.5px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }

.legend { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 9px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); flex-shrink: 0; }
.legend b { margin-left: auto; font-family: var(--mono); color: var(--ink); font-size: 13px; }

.spec { list-style: none; margin: 0; }
.spec li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.spec li:last-child { border-bottom: 0; padding-bottom: 0; }
.spec span { color: var(--ink-3); font-size: 14px; }
.spec b { font-family: var(--mono); font-size: 14.5px; text-align: right; }

.safety { list-style: none; margin: 0; display: grid; gap: 16px; align-content: start; }
.safety li { display: flex; gap: 14px; }
.safety li > span {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  background: rgba(61,220,132,.16); color: #3ddc84; border: 1px solid rgba(61,220,132,.42);
}
.safety b { display: block; margin-bottom: 3px; }
.safety p { margin: 0; font-size: 14px; }

/* ─────────────── Steps ─────────────── */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li {
  position: relative; padding: 30px 24px 26px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.steps li:hover { transform: translateY(-6px); border-color: rgba(232,65,66,.5); }
.steps .num {
  position: absolute; top: -18px; left: 22px;
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 19px;
  background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff;
  box-shadow: 0 8px 22px -8px rgba(232,65,66,.9);
}
.steps h3 { margin-top: 14px; }
.steps p { font-size: 14.5px; margin-bottom: 0; }
.steps .ca code { font-size: 12px; }

/* ─────────────── Roadmap ─────────────── */

.climb { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 0 26px; }
.climb-bar {
  position: relative; width: 4px; margin-left: 15px; border-radius: 99px;
  background: var(--line); overflow: hidden;
}
.climb-bar i {
  position: absolute; inset: 0 0 auto 0; display: block; height: 0;
  background: linear-gradient(180deg, var(--red-hot), var(--red-deep));
  transition: height 1.2s var(--ease);
  box-shadow: 0 0 16px rgba(232,65,66,.8);
}

.milestones { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.milestones li {
  position: relative; padding: 24px 26px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.milestones li::before {
  content: ''; position: absolute; left: -43px; top: 30px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg-2); border: 3px solid var(--line-2);
}
.milestones li.done::before { background: var(--red); border-color: var(--red); }
.milestones li.now::before  { background: var(--bg-2); border-color: var(--red-hot); animation: pulse 2s infinite; }
.milestones li.now { border-color: rgba(232,65,66,.5); box-shadow: 0 18px 50px -30px rgba(232,65,66,.9); }
.milestones h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; letter-spacing: .02em; text-transform: uppercase; }
.milestones p { margin: 0; font-size: 15px; }
.tag {
  position: absolute; top: 22px; right: 22px;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 99px;
  background: var(--card-2); border: 1px solid var(--line); color: var(--ink-3);
}
.milestones li.done .tag { color: #3ddc84; border-color: rgba(61,220,132,.4); background: rgba(61,220,132,.12); }
.milestones li.now  .tag { color: var(--red-hot); border-color: rgba(232,65,66,.5); background: rgba(232,65,66,.14); }

/* ─────────────── Verify ─────────────── */

.addrs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.addrs li {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 20px 22px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.addrs li:hover { border-color: rgba(232,65,66,.45); background: var(--card-2); }
.addrs li.copied { border-color: #3ddc84; }
.addr-main { min-width: 0; }
.addrs b { display: block; font-size: 13px; color: var(--ink-3); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px; }
.addrs code { font-family: var(--mono); font-size: 14px; word-break: break-all; }
.addr-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.addr-actions a { font-size: 13.5px; font-weight: 700; white-space: nowrap; }

/* ─────────────── FAQ ─────────────── */

.faq { display: grid; gap: 10px; }
details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; transition: border-color .25s var(--ease), background .25s var(--ease);
}
details[open] { border-color: rgba(232,65,66,.45); background: var(--card-2); }
summary {
  cursor: pointer; list-style: none; padding: 19px 54px 19px 22px; position: relative;
  font-weight: 700; font-size: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--red-hot);
  transition: transform .3s var(--ease);
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
summary:hover { color: var(--red-hot); }
details p { margin: 0; padding: 0 22px 21px; font-size: 15px; }

/* ─────────────── Join + footer ─────────────── */

.join {
  text-align: center; padding: clamp(80px, 12vw, 150px) clamp(16px, 4vw, 40px);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(232,65,66,.3), transparent 62%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.join p { max-width: 54ch; margin: 0 auto 30px; font-size: 1.05rem; }

.foot { padding: 46px clamp(16px, 4vw, 40px) 40px; border-top: 1px solid var(--line); background: var(--bg); }
.foot-top {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 24px;
}
.foot-top nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-top nav a { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.foot-top nav a:hover { color: var(--ink); text-decoration: none; }
.disclaimer { font-size: 12.5px; color: var(--ink-3); max-width: 90ch; }
.disclaimer strong { color: var(--ink-2); }
.copy-line { font-size: 12.5px; color: var(--ink-3); margin: 0; }

/* ─────────────── Toast + badge ─────────────── */

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300;
  transform: translate(-50%, 130%); opacity: 0;
  padding: 13px 24px; border-radius: 999px;
  background: #16321f; color: #7cf0ab; border: 1px solid rgba(61,220,132,.45);
  font-weight: 700; font-size: 14.5px; pointer-events: none;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.badge-pop {
  position: fixed; right: 22px; bottom: 22px; z-index: 300;
  transform: translateY(130%); opacity: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: 16px; max-width: 300px;
  background: color-mix(in srgb, var(--bg-2) 90%, transparent);
  border: 1px solid rgba(232,65,66,.5); backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
  font-size: 14px; pointer-events: none;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.badge-pop.show { transform: translateY(0); opacity: 1; }
.badge-pop .bi { font-size: 26px; }
.badge-pop b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-hot); }

/* ─────────────── Scroll reveal ─────────────── */

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

/* ─────────────── Responsive ─────────────── */

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .tok-grid { grid-template-columns: 1fr; }
  .donut-card { grid-row: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); animation: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 76px; }
  .hero { min-height: 92svh; padding-bottom: 46px; }
  /* Portrait crops the 3:2 frame hard on the sides — keep the cat's head in
     the upper third and let the copy sit under it. */
  .hero-media img { object-position: 43% 16%; transform: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .calc-out { grid-template-columns: 1fr; }
  .ca { width: 100%; }
  .ca code { font-size: 11.5px; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .addrs li { flex-direction: column; align-items: flex-start; }
  .tag { position: static; display: inline-block; margin-bottom: 10px; }
  .badge-pop { left: 16px; right: 16px; max-width: none; }
  .scroll-hint { display: none; }
}

/* ─────────────── Motion / print ─────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .snow, .aurora { display: none; }
}

/* ============================================================
   AVAXPAD — launchpad-specific components
   ============================================================ */

/* Hero tagline under the wordmark */
.tagline {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.1rem, 2.6vw, 1.9rem);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); margin: -6px 0 20px;
}

/* The hero wordmark is one word, so it needs less leading than a 3-line hero */
.hero h1 .line { display: block; }

/* Pull-quote style callout */
.callout {
  margin-top: 40px; padding: 28px 30px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(232,65,66,.14), transparent 70%);
  border: 1px solid rgba(232,65,66,.4);
}
.callout h3 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; letter-spacing: .02em; text-transform: uppercase; }
.callout p:last-child { margin-bottom: 0; }

/* Four-slice donut: burn 23.53%, holders 48%, deployer 8.47%, protocol 20% */
.donut-pad {
  --a: 84.7deg;   /* 23.53% burn */
  --b: 257.5deg;  /* +48%   holders */
  --c2: 288deg;   /* +8.47% deployer */
  background: conic-gradient(
    var(--red) 0 var(--a),
    #e8a0a0 var(--a) var(--b),
    #7a3b3f var(--b) var(--c2),
    #4b4b57 var(--c2) 360deg
  );
}

/* ---------------- Launcher ---------------- */

.launcher {
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line-2); background: var(--card);
  backdrop-filter: blur(10px);
}
.launcher-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 26px; border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(232,65,66,.16), transparent 70%);
}
.launcher-head h3 {
  font-family: var(--display); font-weight: 400; font-size: 1.5rem;
  letter-spacing: .02em; text-transform: uppercase; margin: 0;
}
.launcher-head .connected {
  font-family: var(--mono); font-size: 13px; color: #3ddc84;
}
.launcher-body { padding: 26px; display: grid; gap: 18px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.lfield { display: block; }
.lfield > span {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px;
}
.lfield input, .lfield textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  background: var(--card-2); border: 1px solid var(--line);
  color: var(--ink); font-family: var(--font); font-size: 15px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.lfield textarea { resize: vertical; min-height: 60px; }
.lfield input:focus, .lfield textarea:focus {
  outline: none; border-color: var(--red); background: var(--card);
}
.lfield input::placeholder, .lfield textarea::placeholder { color: var(--ink-3); }
.lfield small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }

.adv { background: transparent; border: 1px dashed var(--line-2); }
.adv summary { padding: 13px 18px; font-size: 14px; font-weight: 600; }
.adv summary::after { right: 18px; font-size: 18px; }
.adv .lfield { padding: 0 18px 18px; }

.launch-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  padding: 16px; border-radius: 14px;
  background: var(--card-2); border: 1px solid var(--line);
}
.launch-summary > div { text-align: center; }
.launch-summary .k {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px;
}
.launch-summary strong {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: 1.3rem; letter-spacing: .01em;
}
.launch-summary small { font-size: 11.5px; color: var(--ink-3); }

.btn-launch { width: 100%; justify-content: center; padding: 17px; font-size: 16px; }
.btn-launch:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.launch-status { margin: 0; font-size: 14px; min-height: 20px; text-align: center; }
.launch-status.err { color: var(--red-hot); }
.launch-status.ok { color: #3ddc84; }
.launch-status a { font-family: var(--mono); font-size: 13px; }

.fineprint { margin-top: 20px; font-size: 12.5px; color: var(--ink-3); }

/* ---------------- Token directory ---------------- */

.directory { display: grid; gap: 12px; }
.dir-empty {
  padding: 40px; text-align: center; color: var(--ink-3);
  border: 1px dashed var(--line-2); border-radius: var(--radius); margin: 0;
}
.dir-row {
  display: grid; grid-template-columns: auto 1fr repeat(3, minmax(90px, auto));
  align-items: center; gap: 18px;
  padding: 18px 22px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.dir-row:hover { transform: translateX(5px); border-color: rgba(232,65,66,.45); }
.dir-tick {
  font-family: var(--display); font-size: 1.15rem; letter-spacing: .04em;
  min-width: 78px;
}
.dir-name { color: var(--ink-2); font-size: 14.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-stat { text-align: right; }
.dir-stat span {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}
.dir-stat b { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.dir-badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 99px; border: 1px solid var(--line);
  color: var(--ink-3); background: var(--card-2);
}
.dir-badge.migrated { color: #3ddc84; border-color: rgba(61,220,132,.4); background: rgba(61,220,132,.12); }

/* ---------------- $ACat strip ---------------- */

.acat-strip .grid-2 { align-items: center; }
.acat-strip .ca { justify-self: start; }

@media (max-width: 860px) {
  .field-row { grid-template-columns: 1fr; }
  .launch-summary { grid-template-columns: 1fr; }
  .dir-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dir-name { grid-column: 1 / -1; }
}
