/* ==========================================================================
   Make Cat Great Again · $MCGA
   1. Tokens
   2. Reset & base
   3. Buttons
   4. Header / nav
   5. Hero
   6. Marquee
   7. Movement
   8. Manifesto
   9. Token
   10. Buy / rally
   11. Footer
   12. Scroll animations
   13. Responsive
   14. Reduced motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --navy: #070b16;
  --navy-deep: #04060d;
  --navy-mid: #0d1426;
  --navy-lift: #162038;
  --red: #c8102e;
  --red-bright: #e31c3d;
  --red-deep: #8a1024;
  --gold: #d4af37;
  --gold-bright: #f0d56a;
  --gold-muted: #b8962e;
  --white: #f6efe2;
  --off-white: #e7dcc8;
  --muted: #9a8f7a;
  --line: rgba(212, 175, 55, 0.28);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --header-h: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Oswald", "Impact", "Arial Narrow", sans-serif;
  --font-serif: "Cinzel", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  color-scheme: dark;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

code {
  font-family: "Cascadia Mono", "Consolas", "Courier New", monospace;
}

h1,
h2,
h3,
p,
blockquote,
dl,
dd,
figure,
ol {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.burst-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
}

.burst-star,
.burst-paw {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  pointer-events: none;
  animation: burst-fly 0.85s var(--ease) forwards;
}

.burst-star {
  background: var(--gold-bright);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  box-shadow: 0 0 12px var(--gold);
}

.burst-paw {
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow:
    -8px -6px 0 0 var(--red),
    8px -6px 0 0 var(--red),
    -3px -12px 0 -2px var(--red-bright),
    3px -12px 0 -2px var(--red-bright),
    0 0 16px var(--red);
}

@keyframes burst-fly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.4);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(1);
  }
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-primary {
  background: linear-gradient(180deg, var(--red-bright) 0%, var(--red) 100%);
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(240, 213, 106, 0.18), 0 10px 28px rgba(200, 16, 46, 0.35);
}

.btn-primary::after,
.btn-rally::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.3) 48%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.6s var(--ease);
}

.btn-primary:hover,
.btn-rally:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(240, 213, 106, 0.4), 0 14px 36px rgba(200, 16, 46, 0.5);
}

.btn-primary:hover::after,
.btn-rally:hover::after {
  transform: translateX(130%);
}

.btn-secondary {
  background: rgba(7, 11, 22, 0.45);
  border-color: rgba(246, 239, 226, 0.28);
  color: var(--white);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(22, 32, 56, 0.75);
}

.btn-ghost {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(212, 175, 55, 0.12);
}

.btn-icon {
  width: 52px;
  min-height: 52px;
  padding: 0;
  border: 1px solid rgba(246, 239, 226, 0.28);
  color: var(--white);
  background: rgba(7, 11, 22, 0.4);
}

.btn-icon:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-nav {
  min-height: 44px;
  padding: 0 18px;
  font-size: 13px;
}

.btn-copy {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 12px;
  letter-spacing: 0.16em;
  background: rgba(212, 175, 55, 0.08);
}

.btn-copy:hover,
.btn-copy.is-copied {
  background: var(--gold);
  color: var(--navy);
}

.btn-xl {
  min-height: 58px;
  padding: 0 32px;
  font-size: 16px;
}

.btn-rally {
  min-height: 72px;
  padding: 0 42px;
  font-size: 22px;
  letter-spacing: 0.16em;
  color: var(--navy);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 0 1px rgba(240, 213, 106, 0.4), 0 16px 40px rgba(212, 175, 55, 0.28);
}

.btn-rally.is-pop {
  animation: rally-pop 0.45s var(--ease);
}

@keyframes rally-pop {
  0% { transform: scale(1) rotate(0); }
  30% { transform: scale(1.06) rotate(-1.2deg); }
  60% { transform: scale(0.98) rotate(1deg); }
  100% { transform: scale(1) rotate(0); }
}

.btn:focus-visible,
.nav a:focus-visible,
.brand:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   4. Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 11, 22, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-shell {
  width: min(1240px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: cover;
  object-position: center 38%;
  border-radius: 50%;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.12em;
}

.brand-ticker {
  margin-top: 4px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--off-white);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle {
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--gold-bright);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero,
.movement,
.manifesto,
.token,
.buy {
  scroll-margin-top: calc(var(--header-h) - 8px);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--header-h) 0 0;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 78% 42%, rgba(200, 16, 46, 0.28), transparent 58%),
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(212, 175, 55, 0.1), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 115%, rgba(227, 28, 61, 0.22), transparent 55%),
    linear-gradient(180deg, #070b16 0%, #0b1224 48%, #1a1020 100%);
  animation: sky-shift 18s ease-in-out infinite alternate;
}

@keyframes sky-shift {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero-horizon {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 8%;
  height: 38%;
  background: radial-gradient(ellipse 80% 70% at 50% 100%, rgba(255, 110, 40, 0.32), rgba(200, 16, 46, 0.12) 45%, transparent 72%);
  filter: blur(8px);
  animation: horizon-pulse 8s ease-in-out infinite;
}

@keyframes horizon-pulse {
  0%, 100% { opacity: 0.75; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(1.04); }
}

.hero-pointer-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  left: 72%;
  top: 42%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 213, 106, 0.2), rgba(200, 16, 46, 0.12) 40%, transparent 70%);
  filter: blur(12px);
  will-change: transform;
}

.hero-beams {
  position: absolute;
  inset: 0;
}

.beam {
  position: absolute;
  top: -10%;
  width: 140px;
  height: 130%;
  background: linear-gradient(to bottom, rgba(240, 213, 106, 0.16), rgba(200, 16, 46, 0.05), transparent);
  filter: blur(10px);
  transform-origin: top center;
  opacity: 0.55;
}

.beam-a {
  right: 18%;
  transform: rotate(16deg);
  animation: beam-sway 11s ease-in-out infinite;
}

.beam-b {
  right: 30%;
  width: 90px;
  transform: rotate(8deg);
  animation: beam-sway 14s ease-in-out infinite reverse;
}

.beam-c {
  right: 8%;
  width: 70px;
  transform: rotate(24deg);
  animation: beam-sway 16s ease-in-out infinite;
}

@keyframes beam-sway {
  0%, 100% { transform: rotate(var(--start, 16deg)) translateX(0); opacity: 0.4; }
  50% { transform: rotate(calc(var(--start, 16deg) + 4deg)) translateX(18px); opacity: 0.7; }
}

.hero-stripes {
  position: absolute;
  inset: auto 0 18% 0;
  height: 90px;
  background: repeating-linear-gradient(
    90deg,
    rgba(200, 16, 46, 0.08) 0 18px,
    rgba(246, 239, 226, 0.05) 18px 36px,
    rgba(13, 20, 38, 0.2) 36px 48px
  );
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  transform: skewY(-4deg);
  opacity: 0.55;
  animation: stripe-drift 28s linear infinite;
}

@keyframes stripe-drift {
  from { background-position: 0 0; }
  to { background-position: 240px 0; }
}

.starfield {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: transparent;
  left: 0;
  top: 0;
}

.starfield-a {
  animation: star-drift 48s linear infinite;
}

.starfield-b {
  animation: star-drift 72s linear infinite reverse;
}

@keyframes star-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-40px, 18px, 0); }
}

.hero-flags span {
  position: absolute;
  top: 14%;
  width: 8px;
  height: 160px;
  background: linear-gradient(180deg, var(--gold), transparent);
  opacity: 0.18;
}

.hero-flags span::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 8px;
  width: 70px;
  height: 42px;
  background: repeating-linear-gradient(
    180deg,
    var(--red) 0 6px,
    var(--white) 6px 12px
  );
  clip-path: polygon(0 0, 100% 8%, 100% 92%, 0 100%);
  opacity: 0.45;
  animation: flag-wave 4s ease-in-out infinite;
}

.hero-flags span:nth-child(1) { left: 8%; }
.hero-flags span:nth-child(2) { left: 16%; height: 130px; animation-delay: -1s; }
.hero-flags span:nth-child(3) { left: 24%; height: 150px; animation-delay: -2s; }

@keyframes flag-wave {
  0%, 100% { transform: skewX(0) scaleX(1); }
  50% { transform: skewX(-8deg) scaleX(1.04); }
}

.hero-crowd {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 18vh;
  min-height: 110px;
}

.hero-crowd svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 13, 0.35) 0%, transparent 22%, transparent 70%, rgba(4, 6, 13, 0.78) 100%),
    radial-gradient(ellipse at center, transparent 45%, rgba(4, 6, 13, 0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: end;
  gap: 12px 20px;
}

.hero-copy {
  padding: 48px 0 88px;
  max-width: 640px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 14px;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
}

.badge::before {
  content: "★";
  font-size: 10px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow: hidden;
}

.hero-line {
  display: block;
  font-size: clamp(56px, 9vw, 118px);
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.hero-line-gold {
  color: var(--gold-bright);
  background: linear-gradient(180deg, #fff4c2 0%, var(--gold-bright) 38%, var(--gold) 72%, #8a6a18 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35));
}

.hero-kicker {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: 0.2em;
  color: var(--off-white);
}

.hero-lede {
  margin-top: 18px;
  max-width: 34em;
  color: var(--off-white);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contract {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 32, 56, 0.7), rgba(7, 11, 22, 0.7));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.contract-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 110px;
}

.contract-label,
.contract-network {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contract-label {
  font-size: 11px;
  color: var(--gold);
}

.contract-network {
  font-size: 10px;
  color: var(--muted);
}

.contract-address,
.token-address {
  flex: 1 1 140px;
  min-width: 0;
  color: var(--white);
  font-size: 16px;
  word-break: break-all;
}

.hero-figure {
  position: relative;
  height: min(92vh, 940px);
  margin-right: -4vw;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.hero-backlight {
  position: absolute;
  width: 78%;
  height: 70%;
  left: 12%;
  bottom: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 28, 61, 0.55), rgba(212, 175, 55, 0.22) 42%, transparent 70%);
  filter: blur(36px);
  animation: backlight 6.5s ease-in-out infinite;
}

@keyframes backlight {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero-sweep {
  position: absolute;
  inset: 8% 4% 16%;
  border-radius: 50%;
  background: conic-gradient(from 180deg, transparent 0 68%, rgba(240, 213, 106, 0.2) 78%, transparent 90%);
  filter: blur(18px);
  animation: sweep 10s linear infinite;
  mix-blend-mode: screen;
}

@keyframes sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-cat-float {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: breathe 6s ease-in-out infinite;
}

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

.hero-cat {
  width: min(100%, 680px);
  max-height: 92vh;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: lighten;
  filter: saturate(1.05) contrast(1.04);
}

/* Entrance — only hide while JS is active */
html.js .enter,
html.js .enter-figure,
html.js .hero-atmosphere {
  opacity: 0;
}

body.is-ready .enter {
  animation-name: enter-up;
  animation-duration: 0.9s;
  animation-timing-function: var(--ease);
  animation-fill-mode: forwards;
}

body.is-ready .enter-figure {
  animation-name: enter-cat;
  animation-duration: 1.1s;
  animation-timing-function: var(--ease);
  animation-fill-mode: forwards;
}

body.is-ready .enter-delay-2 { animation-delay: 0.18s; }
body.is-ready .enter-delay-3 { animation-delay: 0.28s; }
body.is-ready .enter-delay-4 { animation-delay: 0.38s; }
body.is-ready .enter-delay-5 { animation-delay: 0.5s; }
body.is-ready .enter-delay-6 { animation-delay: 0.6s; }
body.is-ready .enter-delay-7 { animation-delay: 0.78s; }
body.is-ready .enter-delay-8 { animation-delay: 0.92s; }

@keyframes enter-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes enter-cat {
  from { opacity: 0; transform: translate3d(36px, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

body.is-ready .hero-atmosphere {
  animation: fade-in 1.1s ease forwards;
}

@keyframes fade-in {
  to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   6. Marquee
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, #140814, #1c0c14);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold-bright);
}

.marquee-group .dot {
  color: var(--red-bright);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   7. Movement
   -------------------------------------------------------------------------- */
.movement {
  position: relative;
  padding: 120px 0 40px;
  background:
    linear-gradient(180deg, var(--navy-deep), var(--navy) 20%, var(--navy-mid));
  overflow: hidden;
}

.section-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(246, 239, 226, 0.35) 0 1px, transparent 1.6px),
    radial-gradient(circle at 78% 30%, rgba(240, 213, 106, 0.4) 0 1px, transparent 1.8px),
    radial-gradient(circle at 40% 70%, rgba(246, 239, 226, 0.25) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 80%, rgba(200, 16, 46, 0.45) 0 1.2px, transparent 2px);
  animation: twinkle 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

.movement-wrap {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.section-title span,
.title-gold {
  display: block;
}

.title-gold {
  color: var(--gold-bright);
}

.movement-quote {
  margin: 36px 0 22px;
  padding-left: 22px;
  border-left: 3px solid var(--red);
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.3;
  color: var(--white);
}

.movement-body {
  max-width: 38em;
  color: var(--off-white);
}

.movement-body + .movement-body {
  margin-top: 14px;
}

.muted {
  color: var(--muted);
}

.movement-frame {
  position: relative;
  margin: 0;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow), 0 0 0 10px rgba(212, 175, 55, 0.06);
  overflow: hidden;
}

.movement-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 20%;
}

.movement-frame figcaption {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--navy-deep);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.broadcast {
  width: min(720px, calc(100% - 40px));
  margin: 72px auto 0;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: var(--shadow);
}

.broadcast img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* --------------------------------------------------------------------------
   8. Manifesto
   -------------------------------------------------------------------------- */
.manifesto {
  position: relative;
  padding: 120px 0;
  background: var(--navy-deep);
  overflow: hidden;
}

.manifesto-stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(200, 16, 46, 0.08) 0 12px,
    rgba(246, 239, 226, 0.04) 12px 24px,
    transparent 24px 64px
  );
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  opacity: 0.55;
  pointer-events: none;
}

.manifesto-wrap {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.manifesto-list {
  list-style: none;
  padding: 28px 0 0;
}

.manifesto-line {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(246, 239, 226, 0.08);
}

.manifesto-index {
  flex: 0 0 auto;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.12em;
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 5.4vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.03em;
}

.manifesto-finale .manifesto-text {
  background: linear-gradient(180deg, #fff4c2, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   9. Token
   -------------------------------------------------------------------------- */
.token {
  padding: 120px 0;
  background:
    linear-gradient(180deg, var(--navy-deep), var(--navy-mid) 40%, var(--navy));
}

.token-wrap {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.token-note {
  margin-top: 16px;
  color: var(--muted);
  max-width: 36em;
}

.token-panel {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  margin-top: 48px;
  padding: 36px;
  border: 1px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(22, 32, 56, 0.88), rgba(7, 11, 22, 0.92));
  box-shadow: var(--shadow), inset 0 0 0 8px rgba(212, 175, 55, 0.05);
}

.token-seal {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.08), 0 0 40px rgba(212, 175, 55, 0.15);
}

.token-seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
}

.token-dl {
  display: grid;
  gap: 22px;
}

.token-dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(246, 239, 226, 0.08);
}

.token-dl dt {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 6px;
}

.token-dl dd {
  font-size: 22px;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

.token-contract-row dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   10. Buy / rally
   -------------------------------------------------------------------------- */
.buy {
  position: relative;
  padding: 130px 0 120px;
  overflow: hidden;
  text-align: center;
}

.buy-atmosphere {
  position: absolute;
  inset: 0;
}

.buy-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: blur(6px) saturate(1.15) brightness(0.32);
  transform: scale(1.08);
}

.buy::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 22, 0.55), rgba(7, 11, 22, 0.72) 40%, rgba(7, 11, 22, 0.88)),
    radial-gradient(ellipse at 50% 30%, rgba(200, 16, 46, 0.18), transparent 50%);
  pointer-events: none;
}

.buy-wrap {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
}

.buy-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.9;
  letter-spacing: 0.04em;
}

.buy-lede {
  margin: 18px auto 36px;
  max-width: 28em;
  color: var(--off-white);
}

.buy-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.rally {
  margin-top: 72px;
  padding: 36px 24px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 22, 0.55);
}

.rally-kicker {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.rally-count {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-display);
  letter-spacing: 0.16em;
}

.rally-count span:first-child {
  font-size: 48px;
  color: var(--gold-bright);
  line-height: 1;
}

.rally-count span:last-child {
  font-size: 12px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 56px 0 32px;
  background: #04060d;
  border-top: 1px solid var(--line);
}

.footer-wrap {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: center 36%;
  border-radius: 50%;
  border: 1px solid var(--gold);
}

.footer-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
}

.footer-ticker {
  color: var(--gold);
  letter-spacing: 0.2em;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 28px;
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-note {
  width: min(1100px, calc(100% - 40px));
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   12. Scroll animations
   -------------------------------------------------------------------------- */
html.js [data-animate].will-animate {
  opacity: 0;
  will-change: transform, opacity;
}

html.js [data-animate].will-animate[data-animate="fade-up"] { transform: translateY(28px); }
html.js [data-animate].will-animate[data-animate="fade-left"] { transform: translateX(-28px); }
html.js [data-animate].will-animate[data-animate="fade-right"] { transform: translateX(28px); }
html.js [data-animate].will-animate[data-animate="scale-in"] { transform: scale(0.96); }
html.js [data-animate].will-animate[data-animate="reveal-text"] {
  transform: translateY(24px);
  clip-path: inset(100% 0 0 0);
}

html.js [data-animate].is-visible {
  opacity: 1;
  transform: none;
  clip-path: inset(0);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), clip-path 0.9s var(--ease);
}

.manifesto-line[data-animate].is-visible {
  transition-delay: 0.05s;
}

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    order: 2;
    padding: 12px 0 56px;
    max-width: none;
    text-align: center;
  }

  .hero-figure {
    order: 1;
    height: min(62vh, 560px);
    margin-right: 0;
  }

  .hero-actions,
  .contract {
    justify-content: center;
  }

  .hero-lede {
    margin-left: auto;
    margin-right: auto;
  }

  .movement-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .movement-frame {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 28px 24px 40px;
    background: rgba(7, 11, 22, 0.96);
    backdrop-filter: blur(18px);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav a {
    font-size: 28px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(246, 239, 226, 0.08);
  }

  .nav-toggle {
    display: flex;
  }

  .brand-copy {
    display: none;
  }

  .btn-nav {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  .token-panel,
  .token-dl div {
    grid-template-columns: 1fr;
  }

  .token-seal {
    margin: 0 auto;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  :root { --header-h: 72px; }

  body { font-size: 16px; }

  .hero-line {
    font-size: clamp(48px, 16vw, 84px);
  }

  .hero-figure {
    height: min(58vh, 480px);
  }

  .hero-cat {
    width: min(92vw, 420px);
    max-height: 58vh;
  }

  .hero-copy {
    padding-bottom: 40px;
  }

  .contract {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  main .btn:not(.btn-icon):not(.btn-copy),
  .btn-xl,
  .btn-rally {
    width: 100%;
  }

  .hero-actions .btn-icon {
    width: 52px;
    flex: 0 0 52px;
  }

  .hero-actions {
    justify-content: stretch;
  }

  .hero-actions .btn:not(.btn-icon) {
    flex: 1 1 140px;
  }

  .movement,
  .manifesto,
  .token,
  .buy {
    padding: 84px 0;
  }

  .manifesto-line {
    flex-direction: column;
    gap: 8px;
  }

  .token-panel {
    padding: 22px;
  }

  .token-dl dd {
    font-size: 20px;
  }

  .btn-rally {
    font-size: 18px;
    padding: 0 18px;
  }
}

@media (max-width: 430px) {
  .nav-shell,
  .hero-inner,
  .movement-wrap,
  .manifesto-wrap,
  .token-wrap,
  .buy-wrap,
  .footer-wrap,
  .footer-note {
    width: calc(100% - 28px);
  }

  .hero-line {
    font-size: clamp(36px, 11.6vw, 52px);
    letter-spacing: 0.01em;
  }

  .hero-kicker {
    letter-spacing: 0.12em;
  }

  .hero-figure {
    height: min(52vh, 400px);
  }

  .badge {
    letter-spacing: 0.14em;
    font-size: 11px;
  }

  .buy-title {
    font-size: clamp(40px, 13vw, 64px);
  }
}

.nav-buy-short { display: none; }

@media (max-width: 480px) {
  .brand-copy { display: none; }
  .nav-buy-long { display: none; }
  .nav-buy-short { display: inline; }
  .btn-nav {
    min-width: 64px;
    padding: 0 12px;
  }
}

@media (max-width: 400px) {
  .hero-line {
    font-size: clamp(40px, 13vw, 56px);
  }

  .hero-lede { font-size: 16px; }
}

@media (min-width: 1440px) {
  .hero-line {
    font-size: 124px;
  }

  .hero-figure {
    margin-right: -6vw;
  }
}

/* --------------------------------------------------------------------------
   14. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .marquee-track {
    animation: none;
    transform: none;
  }

  .enter,
  .enter-figure,
  .hero-atmosphere,
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .hero-cat-float,
  .hero-sweep,
  .hero-backlight,
  .hero-sky,
  .hero-horizon,
  .starfield,
  .hero-stripes {
    animation: none !important;
  }
}

body.is-menu-open {
  overflow: hidden;
}
