/* ===========================================
   FLIPPR — styles
   =========================================== */

:root {
  --bg:        #0a0a0a;
  --bg-soft:   #111111;
  --bg-card:   #131313;
  --line:      rgba(255, 115, 0, 0.12);
  --line-hi:   rgba(255, 115, 0, 0.30);
  --text:      #f5f2ee;
  --text-dim:  #8a8680;
  --orange:    #ff7300;
  --orange-hi: #ff9a3c;
  --orange-soft: rgba(255, 115, 0, 0.08);

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius: 14px;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; font-size: 0.85em; }
.dim  { color: var(--text-dim); }
.hl   { color: var(--orange); font-weight: 700; }

/* ========== BACKGROUND LAYERS ========== */

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(to bottom, var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    radial-gradient(ellipse at 50% 0%, rgba(255, 115, 0, 0.08), transparent 60%),
    var(--bg);
  mask-image: radial-gradient(ellipse at center, black 50%, transparent 95%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ========== NAV ========== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 10, 10, 0.7);
  border-bottom: 1px solid var(--line);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 1.2rem;
  animation: spin 12s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.nav__links a { transition: color 0.2s; }
.nav__links a:hover { color: var(--orange); }

.nav__cta { font-size: 0.9rem; }

/* ========== BUTTONS ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--orange);
  color: #0a0a0a;
  box-shadow: 0 0 0 rgba(255, 115, 0, 0);
}
.btn--primary:hover {
  background: var(--orange-hi);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(255, 115, 0, 0.6);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-hi);
}
.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

.btn--lg { padding: 16px 28px; font-size: 1rem; }

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

.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  padding: 80px 28px 40px;
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero__left { min-width: 0; }
.hero__right {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

/* ========== SLOT MACHINE ========== */

.slot {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, #1a1410 0%, #0f0d0b 100%);
  border: 1px solid var(--line-hi);
  border-radius: 20px;
  padding: 18px;
  box-shadow:
    0 40px 100px -40px rgba(255, 115, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.slot:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.slot__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 6px 0 16px;
}

.slot__title {
  color: var(--orange);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  font-weight: 600;
}

.slot__light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange), 0 0 20px rgba(255, 115, 0, 0.5);
  animation: slotlight 1s ease-in-out infinite alternate;
}
.slot__head .slot__light:last-child { animation-delay: 0.5s; }

@keyframes slotlight {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0.35; transform: scale(0.8); }
}

.slot__screen {
  background: #07060a;
  border: 1px solid rgba(255, 115, 0, 0.25);
  border-radius: 12px;
  padding: 14px 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  position: relative;
  height: 180px;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.slot__reel {
  background: linear-gradient(to bottom, rgba(255, 115, 0, 0.05), transparent 30%, transparent 70%, rgba(255, 115, 0, 0.05));
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  height: 100%;
}

.slot__reel::before,
.slot__reel::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 40px;
  z-index: 2;
  pointer-events: none;
}
.slot__reel::before {
  top: 0;
  background: linear-gradient(to bottom, #07060a, transparent);
}
.slot__reel::after {
  bottom: 0;
  background: linear-gradient(to top, #07060a, transparent);
}

.slot__strip {
  display: flex;
  flex-direction: column;
  animation: reel 6s linear infinite;
  will-change: transform;
}

.slot__strip--b { animation-duration: 8s; animation-delay: -2s; }
.slot__strip--c { animation-duration: 10s; animation-delay: -4s; }

.slot__strip span {
  flex-shrink: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.slot__strip span:nth-child(3n+1) { color: var(--orange); }
.slot__strip span:nth-child(3n+2) { color: var(--text); }
.slot__strip span:nth-child(3n+3) { color: var(--orange-hi); }

@keyframes reel {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -50%, 0); }
}

.slot__payline {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--orange) 20%, var(--orange) 80%, transparent);
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(255, 115, 0, 0.6);
  pointer-events: none;
}

.slot__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px 4px;
  font-size: 0.75rem;
}

.slot__status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  min-width: 0;
  flex: 1;
}

.slot__status .mono {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot__dot {
  width: 7px;
  height: 7px;
  background: #3ddc84;
  border-radius: 50%;
  box-shadow: 0 0 8px #3ddc84;
  animation: pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

.slot__cycle {
  color: var(--text-dim);
  letter-spacing: 0.12em;
  flex-shrink: 0;
  margin-left: 10px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-hi);
  border-radius: 100px;
  background: var(--orange-soft);
  margin-bottom: 28px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--orange);
  animation: pulse 1.8s ease-in-out infinite;
}

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

.hero__title {
  font-size: clamp(3.2rem, 12vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0 0 32px;
}

.hero__line {
  display: block;
}

.hero__line--orange {
  color: var(--orange);
  font-style: italic;
  text-shadow: 0 0 60px rgba(255, 115, 0, 0.4);
}

.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 0 40px;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.stat__num::after { content: ""; }

.stat__small { color: var(--orange); font-size: 0.7em; }

.stat__label {
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ========== TICKER ========== */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text);
  white-space: nowrap;
  width: 100%;
}

.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  animation: ticker 60s linear infinite;
  will-change: transform;
}

.ticker__track > span { color: var(--text); flex-shrink: 0; }
.ticker__track > span.ticker__dot { color: var(--orange); opacity: 0.7; }

.ticker:hover .ticker__track { animation-play-state: paused; }

@keyframes ticker {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ========== SECTIONS ========== */

.section {
  padding: 120px 28px;
  max-width: var(--container);
  margin: 0 auto;
}

.section--alt {
  max-width: none;
  padding-left: 28px;
  padding-right: 28px;
  background:
    linear-gradient(to bottom, transparent, var(--orange-soft), transparent);
  position: relative;
}

.section--alt > * {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.section__head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  color: var(--orange);
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 20px;
}

.section__lead {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ========== THE LOOP ========== */

.loop {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
}

.loop__step {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}

.loop__step:hover {
  border-color: var(--line-hi);
  transform: translateY(-4px);
  background: #171717;
}

.loop__num {
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 600;
}

.loop__step h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.loop__step p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.loop__arrow {
  display: flex;
  align-items: center;
  color: var(--orange);
  font-size: 1.5rem;
  opacity: 0.5;
}

/* ========== MATH GRID ========== */

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

.math-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.3s, transform 0.3s;
}

.math-card:hover {
  border-color: var(--line-hi);
  transform: translateY(-4px);
}

.math-card--accent {
  background: linear-gradient(160deg, rgba(255, 115, 0, 0.08), transparent 60%), var(--bg-card);
  border-color: var(--line-hi);
}

.math-card__num {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  margin-bottom: 8px;
}

.math-card--accent .math-card__num { color: var(--orange); }

.pct {
  color: var(--orange);
  font-size: 0.5em;
  margin-left: 2px;
  vertical-align: super;
}
.math-card--accent .pct { color: var(--orange-hi); }

.math-card__label {
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.math-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ========== VOTE ========== */

.vote {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.vote__text h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 10px 0 20px;
  letter-spacing: -0.03em;
}

.vote__text > p {
  color: var(--text-dim);
  margin: 0 0 28px;
  font-size: 1.05rem;
}

.vote__list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vote__list li { color: var(--text); }

.check {
  color: var(--orange);
  margin-right: 10px;
  font-weight: 700;
}

/* Panel */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--line-hi);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(255, 115, 0, 0.25);
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 115, 0, 0.08);
  border-bottom: 1px solid var(--line);
  color: var(--orange);
  font-size: 0.85rem;
}

.panel__timer { color: var(--text); }

.panel__body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.choice { display: flex; flex-direction: column; gap: 8px; }

.choice__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.choice__tick { font-weight: 700; font-size: 1.05rem; }
.choice__pct  { color: var(--text-dim); font-size: 0.9rem; }

.bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  overflow: hidden;
}

.bar__fill {
  height: 100%;
  background: linear-gradient(to right, var(--orange), var(--orange-hi));
  border-radius: 100px;
  transition: width 0.8s ease;
}

.panel__foot {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.75rem;
  text-align: center;
}

/* ========== HOW TO BUY ========== */

.buy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.buy-card {
  position: relative;
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
  color: var(--text);
  overflow: hidden;
}

.buy-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255, 115, 0, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.buy-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}
.buy-card:hover::after { opacity: 1; }

.buy-card__badge {
  align-self: flex-start;
  color: var(--orange);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  padding: 4px 10px;
  border: 1px solid var(--line-hi);
  border-radius: 100px;
  background: var(--orange-soft);
}

.buy-card__logo {
  color: var(--orange);
  display: flex;
  align-items: center;
  margin: 4px 0;
}

.buy-card h3 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.buy-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.6;
  flex-grow: 1;
}

.buy-card__link {
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 6px;
}

.buy-contract {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 100px;
  max-width: 640px;
  margin: 0 auto;
}

.copy-btn {
  background: var(--orange);
  color: #0a0a0a;
  border: none;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.copy-btn:hover { background: var(--orange-hi); transform: translateY(-1px); }
.copy-btn.is-copied { background: #3ddc84; color: #0a0a0a; }

/* ========== FAQ ========== */

.faq {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq details:hover { border-color: var(--line-hi); }
.faq details[open] { border-color: var(--line-hi); }

.faq summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--orange);
  font-weight: 400;
  transition: transform 0.2s;
  line-height: 1;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  padding: 0 24px 22px;
  margin: 0;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ========== CTA ========== */

.cta {
  padding: 120px 28px;
  text-align: center;
  background:
    radial-gradient(ellipse at center, var(--orange-soft), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta__inner {
  max-width: 720px;
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

.cta p {
  color: var(--text-dim);
  font-size: 1.15rem;
  margin: 0 0 36px;
}

.cta__buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.contract {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.85rem;
}

.contract__addr { color: var(--orange); font-weight: 600; }

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

.footer {
  padding: 40px 28px;
  background: var(--bg-soft);
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.footer__links a:hover { color: var(--orange); }

.footer__note {
  grid-column: 1 / -1;
  color: var(--text-dim);
  font-size: 0.75rem;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ========== REVEAL ANIMATION ========== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 900px) {
  .nav { padding: 14px 20px; }
  .nav__links { display: none; }

  .section { padding: 80px 20px; }
  .section--alt { padding-left: 20px; padding-right: 20px; }
  .hero { padding: 60px 20px 40px; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero__right { order: 2; }

  .slot {
    transform: none;
    max-width: 380px;
  }
  .slot:hover { transform: none; }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .loop {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .loop__arrow {
    transform: rotate(90deg);
    justify-content: center;
    height: 20px;
    opacity: 0.6;
  }

  .math-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .treasury {
    grid-template-columns: 1fr;
  }

  .cta { padding: 80px 20px; }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .footer__links { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .math-grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .section__head { margin-bottom: 40px; }
  .grid-bg { background-size: 40px 40px, 40px 40px, auto, auto; }
  .ticker { font-size: 0.95rem; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .cta__buttons { flex-direction: column; align-items: stretch; }
  .cta__buttons .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
