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

:root {
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dim: #7a5e28;
  --crimson: #8b1a2a;
  --deep: #06030f;
  --void: #0a0616;
  --purple-deep: #1a0d2e;
  --purple-mid: #2d1554;
  --text: #d4c5a0;
  --text-dim: #7a6e58;
  --line: rgba(201, 168, 76, 0.14);
  --ease-silk: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--deep);
  color: var(--text);
  font-family: 'Crimson Pro', Georgia, serif;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.container {
  width: min(1180px, calc(100vw - 2rem));
  margin-inline: auto;
}

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

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem min(5vw, 3.5rem);
  background: linear-gradient(to bottom, rgba(6, 3, 15, 0.96), rgba(6, 3, 15, 0.08));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.site-nav.is-scrolled {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  background: rgba(6, 3, 15, 0.96);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(201, 168, 76, 0.2);
}

.nav-logo img {
  display: none;
}

.nav-logo {
  font-family: 'Cinzel', serif;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.7rem;
  color: var(--gold);
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 2.1rem);
}

.site-nav nav a {
  font-family: 'Cinzel', serif;
  text-decoration: none;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.66rem;
  transition: color 0.24s ease;
}

.site-nav nav a:hover {
  color: var(--gold-light);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-top: 68px;
  padding-bottom: 18px;
}

.hero-embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 30%, rgba(34, 14, 62, 0.48) 0%, transparent 72%),
    radial-gradient(ellipse 44% 38% at 20% 84%, rgba(90, 12, 30, 0.18) 0%, transparent 62%),
    radial-gradient(ellipse 46% 38% at 80% 66%, rgba(34, 14, 62, 0.2) 0%, transparent 64%),
    var(--void);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -4vh;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: var(--gold);
  opacity: 0;
  animation: float-up var(--dur) var(--delay) infinite ease-in;
}

@keyframes float-up {
  0% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  12% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(-118vh) scale(0.2);
  }
}

.rune-ring {
  position: absolute;
  width: min(76vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -56%);
  border: 1px solid rgba(201, 168, 76, 0.11);
  animation: spin 78s linear infinite;
}

.rune-ring::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.06);
  animation: spin 36s linear infinite reverse;
}

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

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: clamp(2.4rem, 4vw, 3.8rem);
  padding-bottom: 1.4rem;
  animation: intro 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-silk), transform 0.9s var(--ease-silk);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes intro {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo-shell {
  position: relative;
  width: fit-content;
  margin: 0.5rem auto 0.85rem;
}

.hero-logo-shell::before {
  content: '';
  position: absolute;
  inset: -12% -9%;
  border-radius: 40%;
  background:
    radial-gradient(ellipse at center, rgba(8, 5, 18, 0.75) 0%, rgba(8, 5, 18, 0.35) 46%, transparent 75%);
  filter: blur(10px);
  z-index: -1;
}

.hero-logo-shell::after {
  content: '';
  position: absolute;
  inset: -16% -12%;
  border-radius: 46%;
  background:
    radial-gradient(ellipse at center, rgba(232, 201, 106, 0.12) 0%, rgba(232, 201, 106, 0.06) 38%, transparent 78%);
  filter: blur(16px);
  mix-blend-mode: screen;
  z-index: -2;
}

.hero-logo {
  width: clamp(180px, 22vw, 300px);
  height: auto;
  display: block;
  margin: 0;
  filter:
    drop-shadow(0 3px 9px rgba(6, 3, 15, 0.8))
    drop-shadow(0 12px 28px rgba(232, 201, 106, 0.11));
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.64rem;
  letter-spacing: 0.42em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0.88;
}

.hero h1 {
  margin-top: 0;
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.85rem, 6vw, 4.35rem);
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 0 60px rgba(201, 168, 76, 0.3), 0 2px 4px rgba(0, 0, 0, 0.78);
}

.hero-sub {
  margin-top: 0.55rem;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
}

.divider {
  margin: 1.35rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.95rem;
}

.divider span {
  display: block;
  width: 70px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim));
}

.divider span:last-child {
  background: linear-gradient(to left, transparent, var(--gold-dim));
}

.divider i {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero-desc {
  margin: 1rem auto 0;
  max-width: 74ch;
  font-size: clamp(0.96rem, 1.8vw, 1.12rem);
  line-height: 1.72;
  color: var(--text);
  opacity: 0.9;
}

.download-row {
  margin-top: 1.35rem;
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.badge-link {
  min-width: 260px;
  min-height: 88px;
  border-radius: 14px;
  border: 1px solid rgba(196, 146, 42, 0.25);
  background: rgba(255, 255, 255, 0.035);
  padding: 0.78rem 1rem 0.7rem 0.92rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.82rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease-silk), border-color 0.35s, box-shadow 0.35s;
}

.badge-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196, 146, 42, 0.12) 0%, transparent 62%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.badge-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -95%;
  width: 58%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transition: left 0.55s ease;
}

.badge-link:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 42px rgba(196, 146, 42, 0.14), 0 0 0 1px rgba(196, 146, 42, 0.08);
}

.badge-link:hover::before {
  opacity: 1;
}

.badge-link:hover::after {
  left: 122%;
}

.badge-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  fill: #fff;
}

.badge-text {
  text-align: left;
}

.badge-line1 {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.52);
  margin-bottom: 0.12rem;
}

.badge-line2 {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
}

.badge-text small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0.34rem;
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.58rem;
  color: var(--gold);
  opacity: 0.92;
}

.scroll-hint {
  margin: 1.25rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  opacity: 0.45;
}

.scroll-hint span {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--gold);
  font-size: 0.55rem;
}

.mouse {
  width: 20px;
  height: 33px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  position: relative;
}

.mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--gold);
  animation: scroll-dot 2s infinite;
}

@keyframes scroll-dot {
  0%,
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  80% {
    opacity: 0;
    transform: translateX(-50%) translateY(11px);
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  padding: 2.1rem min(5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(201, 168, 76, 0.03);
}

.stats article {
  border: 1px solid rgba(201, 168, 76, 0.14);
  border-radius: 10px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.015);
}

.stats strong {
  display: block;
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.67rem;
  margin-bottom: 0.42rem;
}

.stats p {
  color: var(--text-dim);
  line-height: 1.5;
  font-size: 0.95rem;
}

.features {
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.section-head {
  text-align: center;
  margin-bottom: 2.2rem;
}

.section-head p {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.36em;
  color: var(--gold);
  font-size: 0.58rem;
}

.section-head h2 {
  margin-top: 0.7rem;
  font-family: 'Cinzel Decorative', serif;
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.9rem);
  text-shadow: 0 0 32px rgba(201, 168, 76, 0.2);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.feature-card {
  padding: 1.45rem 1.2rem 1.2rem;
  border: 1px solid rgba(201, 168, 76, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.04), rgba(255, 255, 255, 0.01));
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 168, 76, 0.32);
}

.feature-card h3 {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--gold-light);
  font-size: 0.8rem;
}

.feature-card p {
  margin-top: 0.7rem;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.65;
}

.season {
  padding: clamp(4rem, 8vw, 8rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 58% 72% at 82% 34%, rgba(45, 21, 84, 0.35) 0%, transparent 72%),
    rgba(201, 168, 76, 0.02);
}

.season-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
}

.season-kicker {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--gold);
  font-size: 0.58rem;
}

.season-copy h2 {
  margin-top: 0.6rem;
  font-family: 'Cinzel Decorative', serif;
  color: #fff;
  font-size: clamp(1.6rem, 4.5vw, 3.2rem);
}

.season-copy p {
  margin-top: 1rem;
  color: var(--text);
  opacity: 0.93;
  line-height: 1.8;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.season-visual {
  min-height: 440px;
  display: grid;
  place-items: center;
}

.grimoire-wrap {
  position: relative;
  width: min(78vw, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.grimoire-wrap::before {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(196, 146, 42, 0.06), rgba(45, 21, 84, 0.2), transparent 72%);
  filter: blur(10px);
  z-index: 0;
}

.grimoire-ring {
  position: absolute;
  width: 88%;
  height: 88%;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.12);
  animation: spin 38s linear infinite;
}

.grimoire-ring::before {
  content: '';
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.07);
  animation: spin 22s linear infinite reverse;
}

.grimoire-orbit {
  position: absolute;
  width: 74%;
  height: 74%;
  border-radius: 50%;
  animation: spin 16s linear infinite;
}

.orbit-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-dot-a {
  top: -3px;
  background: rgba(201, 168, 76, 0.88);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.7);
}

.orbit-dot-b {
  bottom: -3px;
  background: rgba(255, 74, 28, 0.76);
  box-shadow: 0 0 12px rgba(255, 74, 28, 0.65);
}

.grimoire-book {
  position: relative;
  z-index: 2;
}

.book-svg {
  width: min(56vw, 208px);
  height: auto;
  filter:
    drop-shadow(0 0 18px rgba(255, 74, 28, 0.22))
    drop-shadow(0 0 38px rgba(196, 146, 42, 0.2));
  animation: book-float 6s ease-in-out infinite;
}

@keyframes book-float {
  0%, 100% {
    transform: translateY(0) rotate(-1.6deg);
  }
  50% {
    transform: translateY(-10px) rotate(1.6deg);
  }
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 8rem) 0;
  text-align: center;
  background:
    radial-gradient(ellipse 64% 58% at 50% 46%, rgba(201, 168, 76, 0.09) 0%, transparent 72%),
    radial-gradient(ellipse 44% 36% at 12% 84%, rgba(139, 26, 42, 0.14) 0%, transparent 62%),
    radial-gradient(ellipse 44% 36% at 88% 20%, rgba(45, 21, 84, 0.2) 0%, transparent 66%);
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 36%, rgba(6, 3, 15, 0.5) 100%);
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.final-kicker {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.36em;
  color: var(--gold);
  font-size: 0.62rem;
  opacity: 0.95;
}

.final-cta h2 {
  margin-top: 0.8rem;
  font-family: 'Cinzel Decorative', serif;
  color: #fff;
  font-size: clamp(1.8rem, 5.2vw, 4.1rem);
  text-shadow: 0 0 60px rgba(201, 168, 76, 0.34), 0 2px 10px rgba(0, 0, 0, 0.7);
}

.final-cta p {
  margin: 1rem auto 0;
  max-width: 62ch;
  color: var(--text);
  line-height: 1.7;
  font-size: 1.03rem;
  opacity: 0.92;
}



.legal-summaries {
  border-top: 1px solid var(--line);
  padding: clamp(2.2rem, 4vw, 3.8rem) 0;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.03), rgba(8, 5, 16, 0));
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.legal-card {
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 12px;
  background: rgba(14, 10, 24, 0.65);
  padding: 1rem;
}

.legal-kicker {
  margin: 0;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 0.62rem;
}

.legal-card h2 {
  margin-top: .45rem;
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.legal-card p {
  margin-top: .7rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-note {
  color: var(--text);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem min(5vw, 3.5rem) 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-size: 0.64rem;
}

.site-footer small {
  color: var(--text-dim);
  font-size: 0.78rem;
}


.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

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

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  background: #05020d;
  transition: opacity 0.8s var(--ease-silk), visibility 0.8s var(--ease-silk);
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-emblem svg {
  width: 72px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.loader-bar {
  width: 208px;
  height: 1px;
  background: rgba(201, 168, 76, 0.2);
  position: relative;
  overflow: hidden;
}

.loader-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.65);
  transition: width 0.38s var(--ease-silk);
}

.loader-label {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold-dim);
  font-size: 0.6rem;
}

.cur-dot,
.cur-ring {
  display: none;
}

body.has-custom-cursor {
  cursor: none;
}

body.has-custom-cursor .cur-dot,
body.has-custom-cursor .cur-ring {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
  z-index: 90;
}

body.has-custom-cursor .cur-dot {
  width: 5px;
  height: 5px;
  background: var(--gold-light);
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

body.has-custom-cursor .cur-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(201, 168, 76, 0.45);
  transition: width 0.35s var(--ease-silk), height 0.35s var(--ease-silk), border-color 0.35s var(--ease-silk);
}

body.cursor-hover .cur-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
}

body.cursor-hover .cur-ring {
  width: 48px;
  height: 48px;
  border-color: rgba(201, 168, 76, 0.9);
}

body.cursor-down .cur-ring {
  width: 24px;
  height: 24px;
  border-color: rgba(255, 74, 28, 0.72);
}

@media (max-width: 1000px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .season-inner {
    grid-template-columns: 1fr;
  }

  .season-visual {
    min-height: 260px;
  }
}

@media (max-width: 760px) {
  .site-nav {
    padding: 0.75rem 1rem;
  }

  .site-nav nav {
    gap: 0.65rem;
  }

  .site-nav nav a {
    font-size: 0.55rem;
  }

  .download-row {
    gap: 0.55rem;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .badge-link {
    min-width: 0;
    flex: 1 1 0;
    padding: 0.72rem 0.72rem 0.65rem;
  }

  .badge-icon {
    width: 30px;
    height: 30px;
  }

  .badge-line1 {
    font-size: 0.5rem;
  }

  .badge-line2 {
    font-size: 0.8rem;
  }

  .badge-text small {
    font-size: 0.49rem;
    letter-spacing: 0.13em;
  }

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

  .hero {
    padding-top: 74px;
  }

  .hero-content {
    padding-top: 1.8rem;
    padding-bottom: 1.1rem;
  }

  .loader {
    gap: 1rem;
  }

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

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

  .footer-links {
    width: 100%;
  }
}

/* ── Pre-Alpha Banner ─────────────────────────────── */

.prealpha-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, rgba(139, 26, 42, 0.9), rgba(139, 26, 42, 0.7), rgba(139, 26, 42, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  font-family: 'Crimson Pro', serif;
}

.prealpha-badge {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.prealpha-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

.site-nav {
  top: 32px !important;
}

@media (max-width: 600px) {
  .prealpha-text { font-size: 0.72rem; }
  .prealpha-badge { font-size: 0.55rem; }
}

/* ── APK Download Modal ───────────────────────────── */

.apk-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 3, 15, 0.85);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.apk-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.apk-modal {
  position: relative;
  width: min(520px, calc(100vw - 2rem));
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  background: linear-gradient(170deg, #12081e 0%, #0a0616 100%);
  border: 1px solid rgba(196, 146, 42, 0.25);
  padding: 2.5rem 2rem 2rem;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease-silk);
}

.apk-modal-overlay.active .apk-modal {
  transform: translateY(0);
}

.apk-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(232, 220, 200, 0.4);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s;
}

.apk-modal-close:hover {
  color: var(--gold);
}

.apk-modal-badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
  background: var(--crimson);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}

.apk-modal h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}

.apk-modal-body p {
  font-size: 0.95rem;
  color: rgba(212, 197, 160, 0.8);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.apk-modal-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
}

.apk-modal-body li {
  position: relative;
  font-size: 0.88rem;
  color: rgba(212, 197, 160, 0.65);
  line-height: 1.55;
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-bottom: 1px solid rgba(196, 146, 42, 0.08);
}

.apk-modal-body li:last-child {
  border-bottom: none;
}

.apk-modal-body li::before {
  content: '\2726';
  position: absolute;
  left: 0;
  color: var(--gold-dim);
  font-size: 0.7rem;
  top: 0.6rem;
}

.apk-modal-body strong {
  color: rgba(232, 220, 200, 0.9);
  font-weight: 600;
}

.apk-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

.apk-modal-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.7rem 1.5rem;
  border: 1px solid rgba(196, 146, 42, 0.3);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.apk-modal-btn--cancel:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(196, 146, 42, 0.4);
}

.apk-modal-btn--accept {
  background: rgba(196, 146, 42, 0.12);
  border-color: var(--gold);
  color: var(--gold);
}

.apk-modal-btn--accept:hover {
  background: rgba(196, 146, 42, 0.25);
}

@media (max-width: 480px) {
  .apk-modal { padding: 2rem 1.25rem 1.5rem; }
  .apk-modal-actions { flex-direction: column; }
  .apk-modal-btn { width: 100%; }
}
