/* ============================================================
   WORLD CUP WIVES — worldcupwives.org
   Cinematic midnight base · silver/champagne primary ·
   purple reserved for the cards and key gradients.
   ============================================================ */

:root {
  /* Base — true black so card halos disappear into the page */
  --bg:        #000000;
  --bg-2:      #07050d;
  --bg-3:      #0e0a18;
  --ink:       #ece6f5;          /* cool off-white, slight lavender */
  --ink-dim:   #a59bb8;
  --ink-mute:  #5e556e;
  --line:      rgba(236, 230, 245, 0.09);
  --line-hi:   rgba(236, 230, 245, 0.20);

  /* Accents */
  --silver:    #d4cee0;          /* lavender-silver bridge with the cards */
  --silver-2:  #ece6f5;
  --violet:    #a855f7;
  --violet-2:  #c084fc;
  --magenta:   #e879f9;
  --pink:      #ec4899;

  /* Gradients — silver-violet only; no warm yellows that fight the cards */
  --grad-silver: linear-gradient(135deg, #ece6f5 0%, #d4cee0 45%, #a39bbf 100%);
  --grad-violet: linear-gradient(135deg, #c084fc 0%, #a855f7 45%, #d946ef 100%);
  --grad-mix:    linear-gradient(135deg, #ece6f5 0%, #c4b9e0 30%, #c084fc 65%, #d946ef 100%);
}

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

html { scroll-behavior: smooth; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   PRELOADER — covers the page until above-the-fold images load.
   Pure black, branded; fades out smoothly with the .done class.
   ============================================================ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Hide overflow on body while preloader is active so any layout shift
   behind it doesn't cause a scrollbar flash. */
body:has(.preloader:not(.done)) { overflow: hidden; }

.preloader-inner {
  width: 340px;
  max-width: 78vw;
  text-align: center;
  padding: 0 8px;
}

.preloader-mark {
  margin-bottom: 36px;
  position: relative;
}
.preloader-title {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 22px);
  letter-spacing: 0.34em;
  background: var(--grad-mix);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: pre-shimmer 2.6s ease-in-out infinite;
}
.preloader-sub {
  display: block;
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.36em;
  color: var(--ink-mute);
}

.preloader-bar {
  position: relative;
  height: 2px;
  background: rgba(236, 230, 245, 0.06);
  overflow: hidden;
  margin-bottom: 14px;
}
.preloader-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--grad-mix);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.55);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.preloader-pct {
  color: var(--silver);
  font-variant-numeric: tabular-nums;
}

@keyframes pre-shimmer {
  0%, 100% { filter: brightness(1);    opacity: 0.92; }
  50%      { filter: brightness(1.15); opacity: 1;    }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-title { animation: none; }
  .preloader { transition: opacity 0.2s, visibility 0.2s; }
}

/* ============================================================
   BACKGROUND LAYERS
   Stacked fixed layers — slow drift, no perf cost.
   ============================================================ */

.bg-stack {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Deep aurora wash */
.bg-aurora {
  position: absolute;
  inset: -10% -10%;
  background:
    radial-gradient(ellipse 60% 40% at 15% 20%, rgba(168, 85, 247, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 10%, rgba(212, 206, 224, 0.10), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(217, 70, 239, 0.14), transparent 60%),
    radial-gradient(ellipse 40% 30% at 85% 75%, rgba(192, 132, 252, 0.10), transparent 70%);
  filter: blur(20px);
  animation: drift 28s ease-in-out infinite alternate;
}

/* Stadium spotlight cones */
.bg-spots {
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 200deg at 20% -10%, transparent 0deg, rgba(212, 206, 224, 0.07) 14deg, transparent 28deg),
    conic-gradient(from 165deg at 80% -10%, transparent 0deg, rgba(192, 132, 252, 0.09) 16deg, transparent 32deg),
    conic-gradient(from 350deg at 50% 110%, transparent 0deg, rgba(217, 70, 239, 0.07) 18deg, transparent 36deg);
  mix-blend-mode: screen;
  opacity: 0.9;
  animation: sway 22s ease-in-out infinite alternate;
}

/* Pitch-line grid (perspective-feel: vertical fade) */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(236, 230, 245, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 230, 245, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 80%);
  opacity: 0.6;
}

/* Tournament center circle */
.bg-circle {
  position: absolute;
  top: -30vh; left: 50%;
  transform: translateX(-50%);
  width: 80vw; max-width: 1100px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid rgba(236, 230, 245, 0.06);
  background:
    radial-gradient(circle at center, rgba(168, 85, 247, 0.06), transparent 60%);
}
.bg-circle::after {
  content: '';
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px dashed rgba(236, 230, 245, 0.05);
}

/* Film grain */
.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Vignette */
.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0)        rotate(0deg);   }
  100% { transform: translate3d(-2%, 3%, 0)     rotate(-2deg);  }
}
@keyframes sway {
  0%   { transform: translate3d(0, 0, 0); opacity: 0.85; }
  50%  { opacity: 1; }
  100% { transform: translate3d(2%, -1%, 0); opacity: 0.7; }
}

/* ============================================================
   CONTAINER
   ============================================================ */

.container {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 110px 0 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* hero content needs to sit above the floating cards */
.hero > *:not(.float-deck) {
  position: relative;
  z-index: 2;
}

.hero .corner {
  position: absolute;
  top: 32px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.hero .corner.left  { left: 0; }
.hero .corner.right { right: 0; text-align: right; }
.hero .corner .tk {
  color: var(--silver);
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.18em;
}

/* ============================================================
   X (TWITTER) LINK — used in hero corner + footer
   ============================================================ */

.x-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--line-hi);
  color: var(--silver);
  text-decoration: none;
  transition:
    background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
}
.x-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.x-link:hover {
  background: var(--grad-mix);
  color: #1a1226;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(168, 85, 247, 0.32),
    0 0 0 1px rgba(212, 206, 224, 0.22);
}
.x-link:hover svg { transform: scale(1.08); }
.x-link:active { transform: translateY(0); }

/* Floating X button — fixed bottom-right, always visible */
.x-link.x-link-floating {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 54px;
  height: 54px;
  z-index: 100;
  background: rgba(7, 5, 13, 0.78);
  border-color: rgba(212, 206, 224, 0.22);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(168, 85, 247, 0.18),
    0 0 30px rgba(168, 85, 247, 0.22);
  animation: x-float-pulse 3.5s ease-in-out infinite;
}
.x-link.x-link-floating svg {
  width: 19px;
  height: 19px;
}
.x-link.x-link-floating:hover {
  background: var(--grad-mix);
  color: #1a1226;
  border-color: transparent;
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 16px 40px rgba(168, 85, 247, 0.5),
    0 0 0 1px rgba(236, 230, 245, 0.3),
    0 0 55px rgba(217, 70, 239, 0.4);
  animation: none;
}
.x-link.x-link-floating:active {
  transform: translateY(-1px) scale(1.02);
}

@keyframes x-float-pulse {
  0%, 100% {
    box-shadow:
      0 8px 28px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(168, 85, 247, 0.18),
      0 0 30px rgba(168, 85, 247, 0.22);
  }
  50% {
    box-shadow:
      0 8px 28px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(168, 85, 247, 0.32),
      0 0 48px rgba(168, 85, 247, 0.42);
  }
}

@media (max-width: 900px) {
  .x-link.x-link-floating {
    width: 48px;
    height: 48px;
    bottom: 18px;
    right: 18px;
  }
  .x-link.x-link-floating svg { width: 17px; height: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .x-link.x-link-floating { animation: none; }
}

.hero .logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
  position: relative;
}
.hero .logo-wrap::before,
.hero .logo-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 22%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
  opacity: 0.5;
}
.hero .logo-wrap::before { left: 6%; }
.hero .logo-wrap::after  { right: 6%; }

.hero .logo {
  max-width: 700px;
  width: 72%;
  height: auto;
  filter:
    drop-shadow(0 0 30px rgba(212, 206, 224, 0.18))
    drop-shadow(0 0 60px rgba(168, 85, 247, 0.18));
}

.hero .tag-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--ink-dim);
  text-transform: uppercase;
  flex-wrap: wrap;
}
.hero .tag-row .sep {
  color: var(--silver);
  opacity: 0.6;
}
.hero .tag-row .live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--silver);
}
.hero .tag-row .live::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #b6ffb0;
  box-shadow: 0 0 10px #b6ffb0;
  animation: pulse 1.6s infinite ease-in-out;
}

.hero h1 {
  margin-top: 36px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 58px);
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
  color: var(--ink);
}
.hero h1 .grad {
  background: var(--grad-mix);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 600;
}
.hero h1 .italic {
  font-style: italic;
  font-weight: 500;
  color: var(--silver);
}

.hero .subtitle {
  margin-top: 22px;
  font-size: 16px;
  color: var(--ink-dim);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ============================================================
   FLOATING SIDE CARDS (around the hero)
   ============================================================ */

.float-deck {
  position: absolute;
  top: 0;
  bottom: 0;
  /* Constrained width so cards stay close-ish to the hero on ultrawides
     without crowding the centered logo and headline. Centered via calc
     so JS scroll-parallax owns the transform. */
  left: calc(50% - min(900px, 50vw));
  width: min(1800px, 100vw);
  z-index: 0;
  pointer-events: none;
  overflow: visible;
  will-change: transform;
}
.float-card {
  position: absolute;
  width: 170px;
  height: auto;
  display: block;
  /* Card PNGs now have a real alpha channel, so the halo is gone without
     needing blend-mode tricks. Drop-shadows give the violet glow. */
  filter:
    drop-shadow(0 0 24px rgba(168, 85, 247, 0.35))
    drop-shadow(0 12px 36px rgba(0, 0, 0, 0.6))
    saturate(1.05);
  opacity: 0.9;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s;
  will-change: transform;
  pointer-events: auto;
}
.float-card:hover {
  opacity: 1;
  z-index: 2;
}

/* Left column — positioned inboard so they frame the hero, not the viewport */
.float-card.l1 { top:  4%;  left: 2%;   transform: rotate(-9deg); }
.float-card.l2 { top: 30%;  left: 0%;   transform: rotate(6deg) translateX(-6px); }
.float-card.l3 { top: 56%;  left: 3%;   transform: rotate(-5deg); }
.float-card.l4 { top: 80%;  left: 1%;   transform: rotate(8deg); }
/* Right column */
.float-card.r1 { top:  4%;  right: 2%;  transform: rotate(8deg); }
.float-card.r2 { top: 30%;  right: 0%;  transform: rotate(-7deg) translateX(6px); }
.float-card.r3 { top: 56%;  right: 3%;  transform: rotate(5deg); }
.float-card.r4 { top: 80%;  right: 1%;  transform: rotate(-9deg); }

.float-card:hover.l1, .float-card:hover.l3 { transform: rotate(-9deg) scale(1.06) translateY(-4px); }
.float-card:hover.l2, .float-card:hover.l4 { transform: rotate(6deg)  scale(1.06) translateY(-4px); }
.float-card:hover.r1, .float-card:hover.r3 { transform: rotate(8deg)  scale(1.06) translateY(-4px); }
.float-card:hover.r2, .float-card:hover.r4 { transform: rotate(-7deg) scale(1.06) translateY(-4px); }

/* Slow float animation — staggered per card */
@keyframes hover-1 {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}
@keyframes hover-2 {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 8px; }
}
.float-card.l1, .float-card.r2, .float-card.l3, .float-card.r4 {
  animation: hover-1 7s ease-in-out infinite;
}
.float-card.r1, .float-card.l2, .float-card.r3, .float-card.l4 {
  animation: hover-2 8s ease-in-out infinite;
  animation-delay: -2s;
}

/* Hide on small screens — would crowd the hero */
@media (max-width: 1180px) {
  .float-deck { display: none; }
}

/* ============================================================
   COUNTDOWN
   ============================================================ */

.countdown-wrap {
  margin: 60px auto 0;
  max-width: 780px;
}
.countdown-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--silver);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cd-cell {
  position: relative;
  padding: 24px 8px 18px;
  background: linear-gradient(180deg, rgba(236, 230, 245, 0.04), rgba(236, 230, 245, 0.01));
  border: 1px solid var(--line);
  text-align: center;
  clip-path: polygon(
    14px 0, calc(100% - 14px) 0, 100% 14px,
    100% calc(100% - 14px), calc(100% - 14px) 100%,
    14px 100%, 0 calc(100% - 14px), 0 14px
  );
  overflow: hidden;
}
.cd-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(212, 206, 224, 0.10), transparent 70%);
  pointer-events: none;
}
.cd-cell::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
  opacity: 0.5;
}
.cd-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  background: var(--grad-silver);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.cd-lbl {
  margin-top: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* ============================================================
   STATS STRIP
   ============================================================ */

.stats-strip {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: rgba(11, 9, 21, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
}
.stats-strip::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
  opacity: 0.4;
}
.stat-cell {
  padding: 24px 26px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat-cell:last-child { border-right: none; }
.stat-cell .lbl {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.stat-cell .val {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.stat-cell .delta {
  display: inline-block;
  margin-left: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: #8ee87d;
  letter-spacing: 0;
}

/* ============================================================
   SECTION HEAD
   ============================================================ */

.section {
  padding: 110px 0 30px;
  position: relative;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.section-head::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 120px; height: 1px;
  background: var(--grad-mix);
}
.section-head .eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--silver);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
}
.section-head h2 .grad {
  background: var(--grad-mix);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 600;
}
.section-head .meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  text-transform: uppercase;
  text-align: right;
  line-height: 1.8;
}

/* ============================================================
   TOKEN PANEL
   ============================================================ */

.token-panel {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(236, 230, 245, 0.03), rgba(168, 85, 247, 0.04)),
    rgba(11, 9, 21, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  clip-path: polygon(
    24px 0, calc(100% - 24px) 0, 100% 24px,
    100% calc(100% - 24px), calc(100% - 24px) 100%,
    24px 100%, 0 calc(100% - 24px), 0 24px
  );
}
.token-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: var(--grad-mix);
  opacity: 0.7;
}
.token-panel::after {
  content: '';
  position: absolute;
  bottom: 0; left: 24px; right: 24px;
  height: 1px;
  background: var(--grad-mix);
  opacity: 0.4;
}

.token-left {
  padding: 44px;
  border-right: 1px solid var(--line);
  position: relative;
}
.token-left .ticker {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(50px, 6vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  background: var(--grad-mix);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.token-left .full {
  margin-top: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--silver);
  text-transform: uppercase;
}
.token-left .desc {
  margin-top: 24px;
  color: var(--ink-dim);
  line-height: 1.65;
  max-width: 460px;
  font-size: 15px;
}

.contract-row {
  margin-top: 30px;
  display: flex;
  align-items: stretch;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
}
.contract-row .ca-lbl {
  padding: 14px 0 14px 14px;
  color: var(--ink-mute);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 10px;
  align-self: center;
}
.contract-row .ca {
  flex: 1;
  padding: 14px;
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  letter-spacing: 0.04em;
}
.contract-row .copy {
  padding: 0 18px;
  background: var(--grad-mix);
  color: #1a1226;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 11px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: filter 0.2s, transform 0.2s;
  font-family: 'Space Grotesk', sans-serif;
}
.contract-row .copy:hover { filter: brightness(1.08); }
.contract-row .copy:active { transform: scale(0.97); }

.cta-row {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--line-hi);
  background: transparent;
  color: var(--ink);
  transition: all 0.2s;
  position: relative;
}
.btn:hover {
  border-color: var(--silver);
  color: var(--silver);
  background: rgba(212, 206, 224, 0.06);
}
.btn-primary {
  background: var(--grad-mix);
  color: #1a1226;
  border: none;
  padding: 17px 30px;
  box-shadow:
    0 8px 32px rgba(168, 85, 247, 0.3),
    0 4px 12px rgba(212, 206, 224, 0.18);
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow:
    0 12px 40px rgba(168, 85, 247, 0.4),
    0 6px 18px rgba(212, 206, 224, 0.25);
  color: #1a1226;
  background: var(--grad-mix);
}
.btn-primary::after {
  content: '→';
  font-size: 16px;
}

/* Disabled state — used by BUY $WIVES when no contract is set yet */
.btn.is-disabled,
.btn-primary.is-disabled {
  background: rgba(236, 230, 245, 0.05);
  color: var(--ink-mute);
  border: 1px solid var(--line);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
  filter: none;
  transform: none;
  letter-spacing: 0.24em;
}
.btn.is-disabled::after,
.btn-primary.is-disabled::after { content: ''; }

.token-right {
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 40px;
  align-content: center;
}
.token-right .tile .lbl {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.token-right .tile .val {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.token-right .tile .delta {
  margin-left: 6px;
  color: #8ee87d;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================================
   CARDS GRID
   ============================================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover { transform: translateY(-8px); }

.card-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.card-frame img {
  width: 100%;
  display: block;
  height: auto;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover .card-frame img {
  transform: scale(1.025);
}

.card-rank {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 7px 11px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--silver);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 206, 224, 0.18);
  text-transform: uppercase;
}

.card-stats {
  margin-top: 16px;
  padding: 18px 20px;
  background: rgba(7, 5, 13, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  position: relative;
}
.card-stats::before {
  content: '';
  position: absolute;
  top: -1px; left: 14px; right: 14px;
  height: 1px;
  background: var(--grad-mix);
  opacity: 0.6;
}
.card-stats .col .l {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.card-stats .col .v {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.card-stats .col.tick .v {
  background: var(--grad-mix);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 14px;
  letter-spacing: 0.06em;
}

/* CA chip — sits between the photo and the stats */
.card-ca {
  margin-top: 14px;
  display: flex;
  align-items: stretch;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--line);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  position: relative;
}
.card-ca::before {
  content: '';
  position: absolute;
  top: -1px; left: 10px; right: 10px;
  height: 1px;
  background: var(--grad-mix);
  opacity: 0.45;
}
.card-ca .ca-lbl {
  padding: 10px 0 10px 12px;
  color: var(--silver);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 9px;
  align-self: center;
}
.card-ca .ca-val {
  flex: 1;
  padding: 10px 10px 10px 8px;
  color: var(--ink-dim);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  letter-spacing: 0.04em;
}
.card-ca .ca-copy {
  padding: 0 12px;
  background: rgba(168, 85, 247, 0.15);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 10px;
  border: none;
  border-left: 1px solid var(--line);
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  transition: background 0.2s, color 0.2s;
}
.card-ca .ca-copy:hover {
  background: var(--grad-mix);
  color: #1a1226;
}
.card-ca .ca-copy.copied {
  background: rgba(142, 232, 125, 0.18);
  color: #b6ffb0;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  margin-top: 110px;
  padding: 40px 32px 36px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  width: 240px; height: 1px;
  background: var(--grad-mix);
  opacity: 0.7;
}
.footer-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.footer-inner .domain {
  color: var(--silver);
  font-weight: 600;
}
.footer-disclaimer {
  max-width: 1380px;
  margin: 22px auto 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  line-height: 1.7;
  max-width: 800px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes flip {
  0%   { transform: translateY(0);    opacity: 1; }
  45%  { transform: translateY(-8px); opacity: 0; }
  55%  { transform: translateY(8px);  opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}
.cd-num.flip { animation: flip 0.45s ease; }

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(6px);
  will-change: opacity, transform, filter;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Stagger the roster cards as they enter */
.grid .card.fade-in:nth-child(1) { transition-delay: 0.00s; }
.grid .card.fade-in:nth-child(2) { transition-delay: 0.07s; }
.grid .card.fade-in:nth-child(3) { transition-delay: 0.14s; }
.grid .card.fade-in:nth-child(4) { transition-delay: 0.05s; }
.grid .card.fade-in:nth-child(5) { transition-delay: 0.12s; }
.grid .card.fade-in:nth-child(6) { transition-delay: 0.19s; }
.grid .card.fade-in:nth-child(7) { transition-delay: 0.10s; }
.grid .card.fade-in:nth-child(8) { transition-delay: 0.17s; }
.grid .card.fade-in:nth-child(9) { transition-delay: 0.24s; }

/* Respect users who don't want motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; filter: none; transition: none; }
  .float-card { animation: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .hero { padding: 60px 0 30px; }
  .hero .corner { display: none; }
  .hero .logo { width: 92%; }
  .hero .logo-wrap::before, .hero .logo-wrap::after { display: none; }
  .stats-strip { grid-template-columns: 1fr; }
  .stats-strip .stat-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .stats-strip .stat-cell:last-child { border-bottom: none; }
  .token-panel { grid-template-columns: 1fr; }
  .token-left { border-right: none; border-bottom: 1px solid var(--line); padding: 30px; }
  .token-right { padding: 30px; }
  .grid { grid-template-columns: 1fr; gap: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .meta { text-align: left; }
  .section { padding: 80px 0 30px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .token-right { grid-template-columns: 1fr 1fr; gap: 22px 28px; }
}
