/* =========================================================
   UNI404 - visual design pass
   Original "AMM pool / collectible card" aesthetic.
   Hot pink + deep purple/navy + reserved gold for legendary.
   Type: Space Grotesk display + JetBrains Mono technical.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- TOKENS ---------- */
:root {
  /* brand */
  --pink:        #ff007a;
  --pink-glow:   #ff4ea8;
  --pink-deep:   #b8005a;
  --violet:      #7a4dff;
  --violet-deep: #4a2fb0;
  --gold:        #f5c542;
  --gold-deep:   #b88a18;

  /* ground */
  --ink-0:  #08060f;   /* page background */
  --ink-1:  #110c20;   /* panel / nav */
  --ink-2:  #1a1330;   /* card surface */
  --ink-3:  #251a44;   /* raised */
  --ink-4:  #332258;   /* border accent */

  /* text */
  --fg:        #f3eefe;
  --fg-mute:   #b6acd1;
  --fg-faint:  #6e6489;

  /* radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* shadow */
  --shadow-pink:   0 16px 60px -12px rgba(255,0,122,.45), 0 0 0 1px rgba(255,0,122,.18);
  --shadow-card:   0 18px 40px -16px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.04) inset;
  --shadow-soft:   0 8px 26px -10px rgba(0,0,0,.55);

  /* fonts */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'Menlo', monospace;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--ink-0);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 600px at 12% -5%,  rgba(255,0,122,0.18), transparent 60%),
    radial-gradient(800px 600px at 95% 8%,   rgba(122,77,255,0.18), transparent 65%),
    radial-gradient(1200px 800px at 50% 110%, rgba(74,47,176,0.22), transparent 70%),
    var(--ink-0);
  background-attachment: fixed;
}

/* faint global grid - reads like a chart background */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 40%, transparent 90%);
}
nav, header, section, article, footer, .modal { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

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

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 8vw, 124px); line-height: 0.95; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; }
h3 { font-size: clamp(20px, 2vw, 24px); }
h4 { font-size: 18px; }
p  { margin: 0; text-wrap: pretty; color: var(--fg-mute); }

code, pre, .mono { font-family: var(--font-mono); }

.ink-pink {
  color: var(--pink);
  font-style: italic;
}

/* ---------- EYEBROW CHIP ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
  background: rgba(255, 0, 122, 0.08);
  border: 1px solid rgba(255, 0, 122, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.5; transform: scale(0.7); }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 22px -10px rgba(255,0,122,0.7), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -10px rgba(255,0,122,0.85), inset 0 1px 0 rgba(255,255,255,0.25);
  filter: brightness(1.05);
}
.btn:active { transform: translateY(0); }

.btn.ghost {
  background: transparent;
  color: var(--fg);
  border-color: rgba(255,255,255,0.18);
  box-shadow: none;
}
.btn.ghost:hover {
  border-color: var(--pink);
  color: var(--pink);
  background: rgba(255,0,122,0.06);
  box-shadow: none;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  background: rgba(8, 6, 15, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-logo {
  width: 38px; height: 38px;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(255,0,122,.45));
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), filter .25s ease;
}
.brand:hover .brand-logo {
  transform: rotate(-8deg) scale(1.05);
  filter: drop-shadow(0 8px 26px rgba(255,0,122,.7));
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: baseline;
}
.brand-name .bn-uni {
  background: linear-gradient(180deg, #fff 0%, #b6acd1 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.brand-name .bn-404 {
  background: linear-gradient(135deg, var(--pink) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: center;
  flex-wrap: wrap;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-mute);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.nav-links a.active {
  color: var(--fg);
  background: rgba(255,0,122,0.1);
  box-shadow: inset 0 0 0 1px rgba(255,0,122,0.35);
}
.nav-links a#buy-link {
  color: var(--pink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#connect-btn { padding: 10px 18px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 110px 28px 90px;
  overflow: hidden;
}
.hero-thin { padding: 56px 28px 36px; }

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

/* AMM curve motif - drawn in CSS */
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: 40px;
  width: 720px; height: 720px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,0,122,0.18), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}

/* Hero title - layered, gradient, premium */
.hero h1, .hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.ht-line {
  display: inline-block;
  /* Smaller min size + less tight letter-spacing so italic 404 never clips */
  font-size: clamp(56px, 13vw, 220px);
  line-height: 1;
  letter-spacing: -0.04em;
  position: relative;
  /* Reserve a little room on the right for the italic "404" lean */
  padding-right: 0.08em;
  filter: drop-shadow(0 12px 60px rgba(255,0,122,0.18));
  max-width: 100%;
}
.hero-title .ht-404 {
  /* Slight right margin so the italic foot doesn't fight the container edge */
  padding-right: 0.06em;
}
.hero-title .ht-uni {
  background: linear-gradient(180deg, #ffffff 0%, #d6cdef 60%, #9b8fbf 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-weight: 700;
}
.hero-title .ht-404 {
  background:
    linear-gradient(135deg, #FF4EA8 0%, #FF007A 35%, #C13ECF 70%, #7A4DFF 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 700;
  margin-left: 0.02em; /* small breathing space, italic needs a hair more */
  filter: drop-shadow(0 0 38px rgba(255,0,122,0.55));
  display: inline-block;
  padding-right: 0.05em;
}

/* Sub-line - beefier than before. Block layout so it wraps naturally. */
.hero-sub-line {
  display: block;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 30px);
  letter-spacing: -0.01em;
  color: var(--fg);
  text-transform: none;
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
  padding: 0;
  margin: 0;
}
.hero-sub-line::before {
  /* small pink AMM curve glyph before the sub-line text */
  content: "";
  display: inline-block;
  width: 28px; height: 2px;
  vertical-align: middle;
  margin-right: 12px;
  margin-top: -4px;
  background: linear-gradient(90deg, transparent, var(--pink) 40%, var(--violet));
  border-radius: 2px;
}
.hero-sub-line .hsl-pink {
  color: var(--pink);
  background: linear-gradient(135deg, var(--pink), var(--pink-glow));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  display: inline-block;
  padding-right: 0.1em; /* italic foot needs breathing room */
}

.hero-thin h1, .hero-thin .hero-title {
  font-size: clamp(40px, 6vw, 72px);
  margin-top: 14px;
}
.hero-thin .ht-line { font-size: clamp(40px, 6vw, 72px); }

.hero .tag {
  max-width: 720px;
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-mute);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* ---------- STATS STRIP ---------- */
.stats {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat {
  background: linear-gradient(180deg, rgba(26,19,48,0.85), rgba(17,12,32,0.85));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.stat::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--pink), var(--violet));
  opacity: 0.7;
}
.stat:hover { border-color: rgba(255,0,122,0.35); transform: translateY(-2px); }
.stat .l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-faint);
  text-transform: uppercase;
}
.stat .v {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  margin-top: 8px;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* ---------- SECTION ---------- */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 28px;
}
.section-head {
  margin-bottom: 36px;
  max-width: 760px;
}
.section-head h2 {
  margin-bottom: 12px;
}
.section-head p {
  font-size: 16px;
  color: var(--fg-mute);
}

/* ---------- PILLARS (how it works) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pillar {
  background: linear-gradient(180deg, rgba(37,26,68,0.7), rgba(17,12,32,0.7));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, border-color .2s ease;
}
.pillar:hover { transform: translateY(-3px); border-color: rgba(255,0,122,0.3); }
.pillar .ic {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.pillar h4 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.pillar p {
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- TRAIT GRID ---------- */
.trait-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.trait-card {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  padding: 22px 22px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.trait-card:hover {
  border-color: rgba(122,77,255,0.45);
  transform: translateY(-2px);
}
.trait-card::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(122,77,255,0.18), transparent 70%);
  pointer-events: none;
}
.t-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-faint);
  text-transform: uppercase;
}
.t-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-top: 8px;
  margin-bottom: 14px;
}
.t-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-mute);
}

/* ---------- POOL CARDS (collectible card energy) ---------- */
.recent-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.pool-card {
  position: relative;
  display: block;
  background: linear-gradient(180deg, var(--ink-3) 0%, var(--ink-1) 100%);
  border: 2px solid #2a2734;     /* default = common (charcoal) */
  border-radius: var(--r-lg);
  padding: 12px 14px 14px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: var(--shadow-soft);
}
.pool-card:hover {
  transform: translateY(-4px) rotate(-0.2deg);
  box-shadow: 0 24px 40px -16px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06) inset;
}

.pool-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--ink-2);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.pool-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35));
  pointer-events: none;
}
.pool-id {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-faint);
}
.pool-pair {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
}
.pool-meta {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* rarity variants - 5 tiers */
.rarity-common    { border-color: #3a3447; }
.rarity-uncommon  { border-color: #4ADE80;       box-shadow: 0 16px 30px -16px rgba(74,222,128,0.50), 0 0 0 1px rgba(74,222,128,0.18) inset; }
.rarity-rare      { border-color: #60A5FA;       box-shadow: 0 16px 30px -16px rgba(96,165,250,0.55), 0 0 0 1px rgba(96,165,250,0.18) inset; }
.rarity-epic      { border-color: var(--pink);   box-shadow: 0 18px 34px -16px rgba(255,0,122,0.65),  0 0 0 1px rgba(255,0,122,0.22) inset; }
.rarity-legendary { border-color: var(--gold);   box-shadow: 0 18px 36px -14px rgba(245,197,66,0.55), 0 0 0 1px rgba(245,197,66,0.25) inset; }

.rarity-uncommon::before,
.rarity-rare::before,
.rarity-epic::before,
.rarity-legendary::before {
  content: attr(data-rarity-tag);
  position: absolute;
  top: 18px; right: 18px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
}

/* "holo" sweep on legendary / epic / rare */
.rarity-rare .pool-thumb::before,
.rarity-epic .pool-thumb::before,
.rarity-legendary .pool-thumb::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.18) 50%, transparent 65%);
  background-size: 240% 240%;
  background-position: 100% 0;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: background-position .8s ease;
}
.rarity-rare:hover .pool-thumb::before,
.rarity-legendary:hover .pool-thumb::before {
  background-position: 0 100%;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-faint);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
}

.hide { display: none !important; }

/* ---------- WHY GRID ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.why-card {
  background: rgba(17,12,32,0.7);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color .2s ease;
}
.why-card:hover { border-color: rgba(255,0,122,0.3); }
.why-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--fg);
}
.why-card p { font-size: 14px; line-height: 1.6; }

/* ---------- CTA PANEL ---------- */
.cta-panel {
  position: relative;
  border-radius: var(--r-xl);
  padding: 64px 48px;
  background:
    radial-gradient(80% 100% at 0% 100%, rgba(255,0,122,0.45), transparent 60%),
    radial-gradient(80% 100% at 100% 0%, rgba(122,77,255,0.6), transparent 60%),
    linear-gradient(135deg, var(--pink) 0%, var(--violet) 100%);
  box-shadow: var(--shadow-pink);
  overflow: hidden;
  text-align: center;
}
.cta-panel::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.cta-panel h2 {
  font-size: clamp(32px, 4vw, 56px);
  color: #fff;
  position: relative;
}
.cta-panel h2 .ink-pink {
  color: #fff;
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
  text-underline-offset: 8px;
}
.cta-panel p {
  max-width: 520px;
  margin: 18px auto 0;
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  position: relative;
}
.cta-panel .cta-row { justify-content: center; margin-top: 28px; position: relative; }
.cta-panel .btn {
  background: #fff;
  color: var(--pink);
}
.cta-panel .btn:hover { color: var(--pink-deep); }
.cta-panel .btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.cta-panel .btn.ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- GALLERY TOOLBAR ---------- */
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 22px;
  background: rgba(17,12,32,0.7);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
}
.toolbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.input {
  background: var(--ink-1);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255,0,122,0.18);
}
.input::placeholder { color: var(--fg-faint); }
select.input { padding-right: 28px; cursor: pointer; }

.paginator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

/* ---------- MODAL (holo card pack) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 6, 15, 0.78);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade .2s ease both;
}
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  position: relative;
  width: min(940px, 100%);
  max-height: 90vh;
  overflow: auto;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(255,0,122,0.25), transparent 55%),
    radial-gradient(60% 80% at 0% 100%, rgba(122,77,255,0.3), transparent 55%),
    linear-gradient(180deg, var(--ink-2), var(--ink-1));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,0,122,0.2) inset;
  animation: rise .25s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes rise {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--fg);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background .15s ease, color .15s ease;
}
.modal-close:hover { background: var(--pink); color: #fff; }

.modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
}
.modal-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--ink-1);
  background-size: cover;
  background-position: center;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,0,122,0.25);
  box-shadow: 0 20px 60px -20px rgba(255,0,122,0.5);
}
.modal-side { display: flex; flex-direction: column; gap: 14px; }
.modal-id {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--fg-faint);
  text-transform: uppercase;
}
.modal-pair {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: -4px 0 8px;
}
.modal-tbl {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13px;
}
.modal-tbl tr { border-top: 1px solid rgba(255,255,255,0.06); }
.modal-tbl tr:first-child { border-top: 0; }
.modal-tbl td {
  padding: 10px 0;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}
.modal-tbl td.v {
  text-align: right;
  color: var(--fg);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 700;
}
.modal-owner {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}
.modal-owner span { color: var(--fg); margin-left: 6px; }
.modal-actions { margin-top: auto; padding-top: 16px; }

/* ---------- WALLET ---------- */
.panel-empty {
  background: linear-gradient(180deg, rgba(37,26,68,0.6), rgba(17,12,32,0.6));
  border: 1px dashed rgba(255,0,122,0.3);
  border-radius: var(--r-xl);
  padding: 64px 32px;
  text-align: center;
}
.panel-empty h3 { font-size: 24px; margin-bottom: 10px; }
.panel-empty p { max-width: 520px; margin: 0 auto 24px; }

.wallet-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.dash-row-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  background: rgba(17,12,32,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
}

/* ---------- WHITEPAPER (.doc) ---------- */
.doc {
  max-width: 760px;
  margin: 64px auto 96px;
  padding: 0 28px;
  font-family: var(--font-display);
}
.doc .eyebrow { margin-bottom: 22px; }
.doc h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #ffffff, #c9bee9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
.doc .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 36px;
}
.doc h2 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 64px;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
}
.doc h2 .ix {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--pink);
  letter-spacing: 0.12em;
  background: rgba(255,0,122,0.08);
  border: 1px solid rgba(255,0,122,0.3);
  padding: 4px 10px;
  border-radius: 6px;
}
.doc h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 10px;
  color: var(--fg);
}
.doc p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-mute);
  margin-bottom: 16px;
}
.doc ul, .doc ol {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--fg-mute);
  padding-left: 24px;
  margin-bottom: 18px;
}
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--pink); }
.doc strong { color: var(--fg); font-weight: 600; }
.doc code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: rgba(255,0,122,0.08);
  color: var(--pink);
  padding: 2px 6px;
  border-radius: 4px;
}
.doc pre {
  background: var(--ink-1);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--pink);
  border-radius: var(--r-md);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #d8d2ee;
  overflow-x: auto;
  margin: 16px 0 24px;
  line-height: 1.6;
}

.toc {
  background: rgba(17,12,32,0.7);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin-bottom: 48px;
}
.toc strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 12px;
}
.toc ol {
  margin: 0;
  padding-left: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
}
.toc li { margin-bottom: 6px; }
.toc a { color: var(--fg); transition: color .15s; }
.toc a:hover { color: var(--pink); }

.warn {
  background:
    linear-gradient(180deg, rgba(255,0,122,0.08), rgba(255,0,122,0.03));
  border: 1px solid rgba(255,0,122,0.35);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin: 24px 0;
}
.warn h3 {
  margin-top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.warn p { color: var(--fg); }
.warn ul { color: var(--fg-mute); font-size: 14.5px; }

/* ---------- FOOTER ---------- */
.footer {
  margin-top: 80px;
  padding: 32px 28px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(8,6,15,0.6);
}
.ftr-row {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ftr-links {
  display: flex;
  gap: 18px;
}
.ftr-links a {
  color: var(--fg-mute);
  transition: color .15s ease;
}
.ftr-links a:hover { color: var(--pink); }

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translate(-50%, 80px);
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--fg);
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .2s ease;
  z-index: 200;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast-err { border-color: var(--pink); color: var(--pink); }
.toast-ok  { border-color: var(--violet); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .pillars, .trait-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .stats, .wallet-stats { grid-template-columns: 1fr 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .nav-inner { grid-template-columns: auto auto; gap: 14px; }
  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    justify-self: stretch;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .hero { padding: 70px 22px 60px; }
  .hero h1 { gap: 8px; }
  .hero-sub-line { margin-left: 0; padding-bottom: 0; }
  .section { padding: 56px 22px; }
  .cta-panel { padding: 44px 24px; }
}
@media (max-width: 560px) {
  .pillars, .trait-grid, .why-grid { grid-template-columns: 1fr; }
  .stats, .wallet-stats { grid-template-columns: 1fr 1fr; }
  .recent-grid, .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .nav-inner { padding: 12px 18px; }
  .brand-name { display: none; }
  .doc { padding: 0 20px; }
  .doc h1 { font-size: 32px; }
  .modal-card { padding: 18px; }
  .modal-pair { font-size: 26px; }
  .ftr-row { flex-direction: column; align-items: flex-start; }
  .toolbar-row { width: 100%; }
  .input { flex: 1; min-width: 0; }
}

/* ============================================================
   IMAGE WIRING (Manus assets)
   ============================================================ */

/* Homepage hero - layered art behind text */
.hero-art {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-art::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: -2;
}
.hero-art::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(8,6,15,0.0), rgba(8,6,15,0.85) 80%);
  z-index: -1;
}
.hero-cards {
  position: absolute;
  top: 50%; right: -160px;
  transform: translateY(-50%);
  width: clamp(420px, 52vw, 880px);
  max-width: 100%;
  height: auto;
  z-index: -1;
  pointer-events: none;
  opacity: 0.95;
  filter: drop-shadow(0 30px 60px rgba(255,0,122,0.25)) drop-shadow(0 12px 30px rgba(0,0,0,0.55));
  animation: hero-cards-drift 14s ease-in-out infinite alternate;
}
@keyframes hero-cards-drift {
  from { transform: translateY(-52%) rotate(-1deg); }
  to   { transform: translateY(-48%) rotate(1.5deg); }
}
@media (max-width: 1100px) {
  .hero-cards { right: -22%; opacity: 0.55; }
}
@media (max-width: 760px) {
  /* On narrow screens the image fights with the text. Hide it. */
  .hero-cards { display: none; }
}

/* Banner-style heroes for gallery + wallet */
.hero-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-size: cover;
  background-position: center;
}
.hero-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,6,15,0.45) 0%, rgba(8,6,15,0.92) 100%);
  z-index: -1;
}

/* CTA panel with full-bleed art background */
.cta-panel.cta-art {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.cta-panel.cta-art::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,0,122,0.6) 0%, rgba(74,47,176,0.55) 100%);
}
.cta-panel.cta-art .cta-overlay {
  position: relative;
  z-index: 1;
}

/* Whitepaper - 3 mechanic icon row */
.pillar-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0 8px;
}
.pillar-icons figure { margin: 0; text-align: center; }
.pillar-icons img {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 12px 30px rgba(255,0,122,0.25));
}
.pillar-icons figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
  margin-top: 8px;
}
@media (max-width: 700px) {
  .pillar-icons { grid-template-columns: 1fr; }
  .pillar-icons img { max-width: 180px; }
}

/* Inline figure in the doc body */
.doc-figure {
  width: 100%;
  border-radius: 14px;
  margin: 18px 0;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.6);
}

/* ============================================================
   YIELD PANEL (wallet page)
   ============================================================ */
.yield-panel {
  margin-top: 22px;
  background: linear-gradient(135deg, rgba(255,0,122,0.08), rgba(122,77,255,0.08));
  border: 1px solid rgba(255,0,122,0.24);
  border-radius: var(--r-lg);
  padding: 22px 24px;
}
.yp-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: end;
  gap: 22px;
}
.yp-col { display: flex; flex-direction: column; gap: 4px; }
.yp-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.yp-value { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--fg); letter-spacing: -0.02em; }
.yp-value.pink {
  background: linear-gradient(135deg, var(--pink), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.yp-sub { font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); }
.yp-actions { display: flex; align-items: flex-end; }
.yp-actions .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.yp-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.yp-breakdown .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.ryt-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mute);
}
.ryt-pill span:not(.ryt-dot) { color: var(--fg); font-weight: 700; }

@media (max-width: 760px) {
  .yp-row { grid-template-columns: 1fr 1fr; }
  .yp-actions { grid-column: 1 / -1; }
  .yp-actions .btn { width: 100%; }
}

/* ============================================================
   RARITY YIELD TABLE (homepage explainer)
   ============================================================ */
.rarity-yield-table {
  display: grid;
  gap: 0;
  background: var(--ink-1);
  border: 1px solid var(--ink-3);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 24px;
}
.ryt-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 80px;
  align-items: center;
  padding: 14px 22px;
  gap: 14px;
  border-bottom: 1px solid var(--ink-3);
  transition: background 0.2s ease;
}
.ryt-row:last-child { border-bottom: 0; }
.ryt-row:not(.ryt-head):hover { background: var(--ink-2); }
.ryt-row.ryt-head {
  background: var(--ink-0);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.ryt-row > div:first-child { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.ryt-row > div:nth-child(3) { color: var(--pink); font-family: var(--font-mono); font-weight: 700; font-size: 18px; }
.ryt-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 12px currentColor;
}
.ryt-frame {
  width: 56px; height: 28px;
  border: 3px solid var(--c, var(--fg-mute));
  border-radius: 6px;
  background: linear-gradient(180deg, var(--ink-2), var(--ink-1));
  box-shadow: 0 0 14px -2px var(--c);
}
.ryt-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mute);
  text-align: center;
  letter-spacing: 0.04em;
}
@media (max-width: 700px) {
  .ryt-row { grid-template-columns: 1.4fr 0.8fr 0.8fr; padding: 12px 14px; }
  .ryt-frame { display: none; }
}

/* ============================================================
   SOCIAL ICONS (X + Telegram)
   ============================================================ */
.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--fg-mute);
  transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.social-icon svg {
  width: 16px; height: 16px;
  fill: currentColor;
  display: block;
}
.social-icon:hover {
  color: #fff;
  background: rgba(255,0,122,0.12);
  border-color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(255,0,122,0.65);
}
.social-icon.lg {
  width: auto;
  height: 40px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.social-icon.lg svg { width: 18px; height: 18px; }

/* footer-row layout extras */
.ftr-socials { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.ftr-row { gap: 16px; align-items: center; }

/* ============================================================
   "ALIVE" ANIMATIONS
   ============================================================ */

/* Hero-cards already drifts. Add gentle breathing scale to the title. */
@keyframes breathe {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-2px) scale(1.005); }
}
.hero h1 { animation: breathe 8s ease-in-out infinite; }

/* Pulse the brand-mark in the nav so the corner is always alive. */
@keyframes mark-pulse {
  0%,100% { box-shadow: 0 6px 18px -4px rgba(255,0,122,.6), inset 0 1px 0 rgba(255,255,255,0.25); }
  50%     { box-shadow: 0 8px 26px -2px rgba(255,0,122,.85), inset 0 1px 0 rgba(255,255,255,0.30); }
}
.brand-mark { animation: mark-pulse 3.6s ease-in-out infinite; }

/* Page-load fade-up for sections */
@keyframes section-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero, .stats, .section { animation: section-rise .8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.stats        { animation-delay: .08s; }
.section:nth-of-type(2) { animation-delay: .16s; }
.section:nth-of-type(3) { animation-delay: .24s; }
.section:nth-of-type(4) { animation-delay: .32s; }
.section:nth-of-type(5) { animation-delay: .40s; }

/* Stagger the stat cards on first paint */
@keyframes pop-in {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.stats .stat { animation: pop-in .6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.stats .stat:nth-child(1) { animation-delay: .15s; }
.stats .stat:nth-child(2) { animation-delay: .25s; }
.stats .stat:nth-child(3) { animation-delay: .35s; }
.stats .stat:nth-child(4) { animation-delay: .45s; }

/* Stagger pool cards as they enter */
.pool-card { animation: pop-in .5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.pool-card:nth-child(1) { animation-delay: 0s; }
.pool-card:nth-child(2) { animation-delay: .05s; }
.pool-card:nth-child(3) { animation-delay: .10s; }
.pool-card:nth-child(4) { animation-delay: .15s; }
.pool-card:nth-child(5) { animation-delay: .20s; }
.pool-card:nth-child(6) { animation-delay: .25s; }
.pool-card:nth-child(n+7) { animation-delay: .30s; }

/* Pool card hover - lift + slight tilt */
.pool-card { transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), border-color .2s ease, box-shadow .25s ease; }
.pool-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 22px 50px -20px rgba(0,0,0,0.7), 0 0 0 1px var(--pink) inset;
}

/* Stat card hover */
.stat { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px rgba(255,0,122,0.4);
}

/* Trait card hover */
.trait-card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.trait-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,0,122,0.5);
  box-shadow: 0 16px 36px -18px rgba(255,0,122,0.45);
}

/* CTA panel - slow gradient wash */
@keyframes gradient-wash {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.cta-panel.cta-art::before {
  background-size: 220% 220%;
  animation: gradient-wash 14s ease infinite;
}

/* Eyebrow chip dot already pulses. Make the whole chip subtly float. */
@keyframes chip-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-3px); }
}
.eyebrow { animation: chip-float 4.5s ease-in-out infinite; }

/* Connect button - gentle hover-ready glow */
#connect-btn { transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; }
#connect-btn:hover { transform: translateY(-2px); }

/* Page-load fade-up for the doc body */
.doc { animation: section-rise .8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.doc h2  { animation: section-rise .6s cubic-bezier(0.16, 1, 0.3, 1) both .15s; }

/* Reduced motion - kill anything decorative */
@media (prefers-reduced-motion: reduce) {
  .hero-cards, .hero h1, .brand-mark, .eyebrow, .cta-panel.cta-art::before { animation: none !important; }
  .hero, .stats, .section, .stats .stat, .pool-card, .doc, .doc h2 {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
