/* ==========================================================================
   Pokeside Official Pre-Beta Landing Page — Poké-Adventure Sky & Gold
   Mobile-first (390×844 base -> progressive desktop enhancement @901px+)
   Aligned with docs/UI-UX-STYLEGUIDE.md
   ========================================================================== */

:root {
  --ink: #0e1b33;
  --sky-deep: #11203a;
  --sky-panel: #233a60;
  --sky-card: #14233b;
  --sky-card-hi: #254070;
  --sky-royal: #3462ad;
  --sky-royal-dark: #20427a;
  --sky-light: #6bb2ff;
  --gold: #f7c844;
  --gold-bright: #ffe578;
  --gold-deep: #f09e14;
  --emerald: #52d672;
  --emerald-deep: #249e46;
  --discord: #5865f2;
  --discord-deep: #3a45bf;
  --cream: #fff8df;
  --text: #eef5ff;
  --text-muted: #b6cceb;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--text);
  font: 700 15px/1.55 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
  background-color: #162b4d;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(71, 134, 232, 0.34) 0%, rgba(20, 35, 59, 0.72) 55%, rgba(11, 22, 41, 0.94) 100%),
    url('./assets/ui/bg-tile-sky.png');
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 40px 40px;
  background-attachment: fixed;
}

#spark-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

.pixel-ico {
  image-rendering: pixelated;
  display: inline-block;
  flex: none;
  object-fit: contain;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(35, 58, 96, 0.96) 0%, rgba(20, 35, 59, 0.96) 100%);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 6px 24px rgba(6, 15, 34, 0.55);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 0 var(--ink));
}

.site-nav {
  display: none;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font: 800 14px/1 'Nunito', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 0 var(--ink);
  transition: color 0.15s ease;
}

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

/* ==========================================================================
   3D CARTOON BUTTONS (Sky & Gold + Animated Discord CTA)
   ========================================================================== */
.btn-3d {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
  user-select: none;
}

.btn-3d:active {
  transform: translateY(3px);
}

.btn-discord {
  background: linear-gradient(180deg, #6d79ff 0%, var(--discord) 55%, var(--discord-deep) 100%);
  color: #ffffff;
  text-shadow: 0 2px 0 var(--ink);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    0 4px 0 var(--ink),
    0 8px 20px rgba(88, 101, 242, 0.42);
}

.btn-discord:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.btn-nav-cta {
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
}

.discord-ico {
  width: 18px;
  height: 18px;
  flex: none;
}

.discord-ico-lg {
  width: 30px;
  height: 30px;
  flex: none;
  filter: drop-shadow(0 2px 0 var(--ink));
}

/* GIANT ANIMATED HERO DISCORD BUTTON */
.btn-discord-giant {
  width: 100%;
  padding: 16px 22px;
  border: 3px solid var(--ink);
  border-radius: 15px;
  background: linear-gradient(180deg, #7480ff 0%, #5865f2 52%, #3d48c7 100%);
  color: #ffffff;
  text-shadow: 0 2px 0 var(--ink);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.42),
    0 6px 0 var(--ink),
    0 12px 32px rgba(88, 101, 242, 0.58),
    0 0 0 2px rgba(247, 200, 68, 0.65);
  animation: discordPulse 2.8s ease-in-out infinite;
}

.btn-discord-giant:hover {
  filter: brightness(1.08);
  transform: translateY(-3px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    0 9px 0 var(--ink),
    0 16px 38px rgba(88, 101, 242, 0.72),
    0 0 0 2px var(--gold-bright);
}

.btn-discord-giant:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    0 2px 0 var(--ink);
}

.btn-sheen {
  position: absolute;
  top: -20%;
  left: -45%;
  width: 36%;
  height: 140%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.38) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: sheenSweep 3.4s ease-in-out infinite;
  pointer-events: none;
}

.btn-cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
}

.btn-cta-main {
  font-size: 18px;
  letter-spacing: 0.03em;
}

.btn-cta-sub {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-bright);
  text-shadow: 0 1px 0 var(--ink);
}

.btn-gold-secondary {
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  color: #162236;
  font-size: 15px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    0 5px 0 var(--ink),
    0 10px 22px rgba(6, 15, 34, 0.4);
}

.btn-gold-secondary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

@keyframes sheenSweep {
  0%, 60% { left: -50%; opacity: 0; }
  66% { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

@keyframes discordPulse {
  0%, 100% {
    box-shadow:
      inset 0 2px 0 rgba(255, 255, 255, 0.42),
      0 6px 0 var(--ink),
      0 12px 28px rgba(88, 101, 242, 0.52),
      0 0 0 2px rgba(247, 200, 68, 0.55);
  }
  50% {
    box-shadow:
      inset 0 2px 0 rgba(255, 255, 255, 0.5),
      0 6px 0 var(--ink),
      0 14px 40px rgba(88, 101, 242, 0.78),
      0 0 0 3px rgba(255, 229, 120, 0.95);
  }
}

/* ==========================================================================
   SKY & GOLD CARTOON FRAMES & CARDS
   ========================================================================== */
.sky-frame {
  border: 12px solid #2a5aa6;
  border-image: url('./assets/ui/panel-frame-sky.png') 16 / 12px / 0 stretch;
  border-radius: 14px;
  background: var(--sky-panel);
  box-shadow: 0 16px 40px rgba(6, 15, 34, 0.75);
}

.sky-card {
  background: linear-gradient(180deg, #1b2f52 0%, var(--sky-card) 100%);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(107, 178, 255, 0.25),
    0 5px 0 var(--ink),
    0 12px 24px rgba(6, 15, 34, 0.42);
}

/* ==========================================================================
   HERO SECTION (Mobile-First)
   ========================================================================== */
.hero-section {
  padding: 22px 0 36px;
}

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

.beta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: #162236;
  font: 900 12px/1 'Nunito', sans-serif;
  letter-spacing: 0.05em;
  box-shadow: 0 3px 0 var(--ink);
  margin-bottom: 14px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  border: 1.5px solid var(--ink);
  box-shadow: 0 0 0 0 rgba(82, 214, 114, 0.8);
  animation: dotPulse 1.8s infinite;
  flex: none;
}

@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(82, 214, 114, 0.85); }
  70% { box-shadow: 0 0 0 8px rgba(82, 214, 114, 0); }
  100% { box-shadow: 0 0 0 0 rgba(82, 214, 114, 0); }
}

.hero-title {
  margin: 0 0 14px;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 8.6vw, 54px);
  line-height: 1.03;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-shadow: 0 4px 0 var(--ink), 0 8px 20px rgba(6, 15, 34, 0.55);
}

.text-gold {
  display: block;
  color: var(--gold-bright);
}

.hero-lead {
  margin: 0 0 18px;
  font-size: 15.5px;
  color: #ddeaff;
  max-width: 58ch;
  text-shadow: 0 1px 0 rgba(14, 27, 51, 0.8);
}

.hero-lead strong {
  color: var(--gold-bright);
}

/* Live Countdown */
.countdown-panel {
  background: linear-gradient(180deg, #1d345c 0%, #13223b 100%);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 12px 14px 14px;
  box-shadow: inset 0 1px 0 rgba(107, 178, 255, 0.3), 0 4px 0 var(--ink);
  margin-bottom: 16px;
}

.countdown-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 6px;
}

.cd-box {
  background: linear-gradient(180deg, #27457a 0%, #172b4d 100%);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 8px 4px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(153, 212, 255, 0.3), 0 3px 0 var(--ink);
}

.cd-box-sec {
  border-color: var(--gold);
}

.cd-box strong {
  display: block;
  font-family: 'Fredoka', monospace;
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1;
  color: var(--cream);
  text-shadow: 0 2px 0 var(--ink);
  font-variant-numeric: tabular-nums;
}

.cd-box-sec strong {
  color: var(--gold-bright);
}

.cd-box span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--sky-light);
}

.cd-sep {
  font-family: 'Fredoka', sans-serif;
  font-size: 22px;
  color: var(--gold);
  text-shadow: 0 2px 0 var(--ink);
}

/* Pioneer Callout */
.pioneer-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2.5px solid var(--gold);
  background: linear-gradient(180deg, rgba(41, 70, 115, 0.92) 0%, rgba(20, 35, 59, 0.95) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 242, 178, 0.32),
    0 4px 0 var(--ink);
  margin-bottom: 14px;
}

.pioneer-badge {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 2px 0 var(--ink));
}

.pioneer-text > strong {
  display: block;
  color: var(--gold-bright);
  font-size: 14px;
  text-shadow: 0 1px 0 var(--ink);
}

.pioneer-text p {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.38;
  color: #e2eeff;
}

.pioneer-text p strong {
  color: var(--gold-bright);
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-footnote {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.hero-footnote strong {
  color: var(--cream);
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-pills span {
  padding: 5px 10px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 0 var(--ink);
}

.pill-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #162236;
}

.pill-sky {
  background: linear-gradient(180deg, #27457a, #172b4d);
  color: var(--cream);
}

.pill-emerald {
  background: linear-gradient(180deg, #52d672, #249e46);
  color: #ffffff;
  text-shadow: 0 1px 0 var(--ink);
}

/* ==========================================================================
   HERO OFFICIAL ARTWORK SHOWCASE
   ========================================================================== */
.art-showcase {
  overflow: hidden;
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, var(--sky-royal) 0%, var(--sky-royal-dark) 100%);
  border-bottom: 3px solid var(--ink);
}

.showcase-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.showcase-title-group strong {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-shadow: 0 2px 0 var(--ink);
}

.showcase-title-group span {
  display: block;
  font-size: 11px;
  color: #c7e0ff;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: linear-gradient(180deg, var(--emerald), var(--emerald-deep));
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 0 var(--ink);
  white-space: nowrap;
}

.art-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #14233b;
}

.art-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.28s ease, transform 0.6s ease;
}

.art-showcase:hover .art-hero-img {
  transform: scale(1.025);
}

.art-caption-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: linear-gradient(180deg, rgba(27, 47, 82, 0.92), rgba(14, 27, 51, 0.95));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-size: 12px;
  font-weight: 800;
  color: var(--cream);
}

.art-badge-pill {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #162236;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex: none;
}

.sprite-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 4px rgba(6, 15, 34, 0.7));
}

/* Gallery Switcher Tabs */
.arena-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
  background: #14233b;
  border-top: 3px solid var(--ink);
}

.arena-tab {
  min-height: 40px;
  padding: 6px 8px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: linear-gradient(180deg, #1b2f52, #14223a);
  color: var(--text-muted);
  font: 800 12px/1.15 'Nunito', sans-serif;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(107, 178, 255, 0.2), 0 2px 0 var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.arena-tab:hover {
  border-color: var(--sky-light);
  color: var(--cream);
}

.arena-tab[aria-selected="true"] {
  border-color: var(--gold);
  background: linear-gradient(180deg, #2b4a7a, #1d3357);
  color: var(--gold-bright);
  box-shadow: 0 0 0 1px var(--gold), inset 0 2px 0 rgba(255, 242, 178, 0.3), 0 2px 0 var(--ink);
}

/* ==========================================================================
   SECTIONS SHARED
   ========================================================================== */
.section-block {
  padding: 44px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 26px;
}

.section-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #1b2f52;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.section-title {
  margin: 0 0 10px;
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(24px, 6vw, 38px);
  line-height: 1.1;
  color: var(--cream);
  text-shadow: 0 3px 0 var(--ink);
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-card {
  padding: 20px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--sky-light);
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 2.5px solid var(--ink);
  background: linear-gradient(180deg, var(--sky-royal) 0%, var(--sky-royal-dark) 100%);
  display: grid;
  place-items: center;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), 0 3px 0 var(--ink);
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-family: 'Fredoka', sans-serif;
  font-size: 19px;
  color: var(--gold-bright);
  text-shadow: 0 2px 0 var(--ink);
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: #d6e6ff;
}

/* ==========================================================================
   8 CLANS INTERACTIVE SHOWCASE
   ========================================================================== */
.clans-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.clan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.clan-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 12px;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: linear-gradient(180deg, #1b2f52 0%, #14223a 100%);
  color: var(--cream);
  font-family: 'Nunito', sans-serif;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(107, 178, 255, 0.22), 0 3px 0 var(--ink);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.clan-btn:hover {
  border-color: var(--sky-light);
  transform: translateY(-2px);
}

.clan-btn[aria-selected="true"] {
  border-color: var(--clan-color, var(--gold));
  background: linear-gradient(180deg, #294673 0%, #1c3154 100%);
  box-shadow:
    0 0 0 1.5px var(--clan-color, var(--gold)),
    inset 0 2px 0 rgba(255, 242, 178, 0.25),
    0 4px 0 var(--ink);
}

.clan-btn img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  image-rendering: pixelated;
  flex: none;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55));
}

.clan-btn strong {
  display: block;
  font-size: 14px;
  line-height: 1.15;
}

.clan-btn span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.clan-spotlight {
  overflow: hidden;
}

.clan-banner-wrap {
  position: relative;
  height: 185px;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
}

.clan-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clan-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 27, 51, 0.18) 0%, rgba(14, 27, 51, 0.9) 100%);
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 14px 16px;
}

.clan-crest-lg {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
}

.clan-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  background: var(--gold);
  color: #162236;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.clan-banner-overlay h3 {
  margin: 0;
  font-family: 'Fredoka', sans-serif;
  font-size: 26px;
  line-height: 1.05;
  color: var(--cream);
  text-shadow: 0 2px 0 var(--ink);
}

.clan-spotlight-body {
  padding: 16px;
}

.clan-spotlight-body > p {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: #dfecff;
}

.clan-perks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.clan-perk-item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: #14233b;
}

.clan-perk-item span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--sky-light);
  text-transform: uppercase;
}

.clan-perk-item strong {
  display: block;
  font-size: 13.5px;
  color: var(--gold-bright);
}

.clan-cta-btn {
  width: 100%;
  font-size: 14px;
}

/* ==========================================================================
   STEPS / ROADMAP
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.step-card {
  padding: 20px;
}

.step-highlight {
  border-color: var(--gold);
  background: linear-gradient(180deg, #27457a 0%, #16294a 100%);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2.5px solid var(--ink);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  color: #162236;
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  box-shadow: 0 3px 0 var(--ink);
  margin-bottom: 12px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-family: 'Fredoka', sans-serif;
  font-size: 19px;
  color: var(--cream);
}

.step-card p {
  margin: 0;
  font-size: 14px;
  color: #d6e6ff;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-wrap {
  max-width: 780px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: linear-gradient(180deg, #1b2f52 0%, #14233b 100%);
  box-shadow: 0 4px 0 var(--ink);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  color: var(--cream);
  font: 800 15px/1.3 'Nunito', sans-serif;
  text-align: left;
  cursor: pointer;
}

.faq-q:hover {
  color: var(--gold-bright);
}

.faq-plus {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  background: var(--sky-royal);
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  color: var(--gold-bright);
  flex: none;
  transition: transform 0.2s ease;
}

.faq-q[aria-expanded="true"] .faq-plus {
  transform: rotate(45deg);
  background: var(--gold);
  color: #162236;
}

.faq-a {
  padding: 0 16px 16px;
  font-size: 14px;
  color: #d6e6ff;
  border-top: 1px solid rgba(107, 178, 255, 0.16);
}

.faq-a p {
  margin: 12px 0 0;
}

.faq-a a {
  color: var(--gold-bright);
  font-weight: 800;
}

/* ==========================================================================
   FINAL CTA BANNER
   ========================================================================== */
.final-cta-section {
  padding-bottom: 90px;
}

.final-cta-card {
  padding: 28px 20px;
  text-align: center;
  background: linear-gradient(180deg, #28467a 0%, #182d52 100%);
}

.final-cta-sprites {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.final-avatar {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  border: 3px solid var(--gold);
  box-shadow: 0 6px 0 var(--ink), 0 12px 26px rgba(0, 0, 0, 0.5);
}

.sprite-walk-deco {
  width: 62px;
  height: 62px;
}

.final-cta-card h2 {
  margin: 0 0 10px;
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(24px, 6.5vw, 38px);
  color: var(--gold-bright);
  text-shadow: 0 3px 0 var(--ink);
}

.final-cta-card p {
  margin: 0 auto 20px;
  max-width: 54ch;
  color: #e2eeff;
}

.btn-final-giant {
  max-width: 440px;
  margin: 0 auto;
}

/* ==========================================================================
   FOOTER & MOBILE STICKY BAR
   ========================================================================== */
.site-footer {
  border-top: 3px solid var(--ink);
  background: #101e36;
  padding: 26px 0 92px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-brand p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

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

.mobile-sticky-bar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border-radius: 14px;
  border: 2.5px solid var(--gold);
  background: linear-gradient(180deg, rgba(29, 52, 92, 0.97), rgba(16, 30, 54, 0.98));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
  transform: translateY(130%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-sticky-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.mobile-sticky-info strong {
  display: block;
  font-size: 13px;
  color: var(--gold-bright);
  line-height: 1.1;
}

.mobile-sticky-info span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.mobile-sticky-btn {
  padding: 8px 14px;
  font-size: 12.5px;
  white-space: nowrap;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ==========================================================================
   DESKTOP ENHANCEMENT (@media min-width: 901px)
   ========================================================================== */
@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .clan-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .clan-perks {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-ctas {
    flex-direction: row;
    align-items: stretch;
  }
  .btn-discord-giant {
    flex: 1.5;
  }
  .btn-gold-secondary {
    flex: 0.9;
  }
}

@media (min-width: 901px) {
  .site-nav {
    display: flex;
  }

  .brand-logo {
    height: 44px;
  }

  .hero-section {
    padding: 22px 0 42px;
  }

  .hero-grid {
    grid-template-columns: 1.08fr 0.96fr;
    gap: 32px;
  }

  .beta-pill {
    margin-bottom: 10px;
  }

  .hero-title {
    font-size: clamp(34px, 3.6vw, 46px);
    line-height: 1.04;
    margin-bottom: 10px;
  }

  .hero-lead {
    font-size: 14.5px;
    line-height: 1.48;
    margin-bottom: 14px;
  }

  .countdown-panel {
    padding: 10px 12px 12px;
    margin-bottom: 12px;
  }

  .cd-box strong {
    font-size: 26px;
  }

  .hero-footnote {
    margin-bottom: 10px;
  }

  .sprite-img {
    width: 112px;
    height: 112px;
  }

  .sprite-sm {
    width: 76px;
    height: 76px;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .clans-layout {
    grid-template-columns: 1fr 1.05fr;
    gap: 24px;
  }

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

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .final-cta-section {
    padding-bottom: 64px;
  }

  .site-footer {
    padding: 30px 0;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .mobile-sticky-bar {
    display: none;
  }
}
