/* style.css — XTAP Game landing: design tokens + components */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  /* Spacing (4px system) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Motion */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- XTAP palette (derived from the official logo) ---- */
  --color-bg: #000000;
  --color-surface: #0a0908;
  --color-surface-2: #131110;
  --color-surface-3: #1c1917;
  --color-border: rgba(254, 199, 45, 0.44);
  --color-border-strong: rgba(254, 199, 45, 0.62);

  --color-text: #f5f2ea;          /* warm white — body copy */
  --color-text-muted: #a7a29a;    /* secondary copy */
  --color-text-faint: #8a857d;    /* tertiary — WCAG AA compliant on dark bg */

  /* Gold — reserved for headings, logo, key CTAs (matches banner gradient) */
  --color-gold-1: #ffe860;
  --color-gold-2: #fec72d;
  --color-gold-3: #f39400;
  --gold-gradient: linear-gradient(180deg, var(--color-gold-1) 0%, var(--color-gold-2) 55%, var(--color-gold-3) 100%);
  --gold-solid: #fec72d;
  --gold-glow: rgba(254, 199, 45, 0.35);

  /* Up / Down accents — echo the game's tap-up / tap-down mechanic. Used sparingly. */
  --color-up: #a6e022;
  --color-up-dim: rgba(166, 224, 34, 0.14);
  --color-down: #ff6b61;
  --color-down-dim: rgba(239, 59, 46, 0.14);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 8px 32px rgba(254, 199, 45, 0.22);

  --content-narrow: 640px;
  --content-default: 780px;
  --content-wide: 1120px;

  --font-display: 'Exo 2', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

@property --gold-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ---------- Global look ---------- */
body {
  background: var(--color-bg);
  overflow-x: hidden;
}

/* Full-page gold ambient — a fixed layer of radial glows spanning the
   entire page (not just the hero), drifting slowly. Sits behind everything. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -8%,  rgba(254, 199, 45, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 32% at 88% 22%,  rgba(254, 199, 45, 0.09), transparent 60%),
    radial-gradient(ellipse 55% 34% at 8% 45%,   rgba(243, 148, 0, 0.08),  transparent 60%),
    radial-gradient(ellipse 60% 38% at 78% 62%,  rgba(254, 199, 45, 0.08), transparent 62%),
    radial-gradient(ellipse 55% 34% at 15% 80%,  rgba(254, 199, 45, 0.07), transparent 62%),
    radial-gradient(ellipse 65% 40% at 55% 100%, rgba(243, 148, 0, 0.09),  transparent 60%);
  background-size: 160% 160%;
  animation: aurora-drift 32s ease-in-out infinite;
}

@keyframes aurora-drift {
  0%, 100% { background-position: 50% 0%; }
  50%      { background-position: 50% 100%; }
}

/* ---------- Status bar ---------- */
.status-bar {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

.status-bar__text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.status-bar.is-ended .pulse-dot {
  animation: none;
  background: var(--color-text-faint);
  box-shadow: none;
}

.pulse-dot {
  position: relative;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-solid);
  box-shadow: 0 0 0 0 rgba(254, 199, 45, 0.6);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(254, 199, 45, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(254, 199, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(254, 199, 45, 0); }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  clip-path: inset(14% 0 0 0);
  transition:
    opacity 700ms var(--ease-out),
    clip-path 700ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

/* ---------- Decorative background layers ---------- */
.particle-field,
.floating-icons {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle-field span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-solid);
  box-shadow: 0 0 8px 1px var(--gold-glow);
  opacity: 0;
  animation: particle-float 7s ease-in-out infinite;
}

@keyframes particle-float {
  0% { opacity: 0; transform: translateY(0); }
  15% { opacity: 0.8; }
  85% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-60px); }
}

.particle-field span:nth-child(1) { left: 8%; top: 70%; animation-delay: 0s; animation-duration: 7s; }
.particle-field span:nth-child(2) { left: 18%; top: 40%; animation-delay: 1.1s; animation-duration: 7s; }
.particle-field span:nth-child(3) { left: 28%; top: 80%; animation-delay: 2.3s; animation-duration: 7s; }
.particle-field span:nth-child(4) { left: 40%; top: 20%; animation-delay: 0.6s; animation-duration: 7s; }
.particle-field span:nth-child(5) { left: 62%; top: 30%; animation-delay: 3s; animation-duration: 7s; }
.particle-field span:nth-child(6) { left: 72%; top: 68%; animation-delay: 1.8s; animation-duration: 7s; }
.particle-field span:nth-child(7) { left: 84%; top: 42%; animation-delay: 2.8s; animation-duration: 7s; }
.particle-field span:nth-child(8) { left: 92%; top: 76%; animation-delay: 0.3s; animation-duration: 7s; }
.particle-field span:nth-child(9) { left: 52%; top: 85%; animation-delay: 4s; animation-duration: 7s; }
.particle-field span:nth-child(10) { left: 12%; top: 15%; animation-delay: 2.2s; animation-duration: 7s; }

.float-icon {
  position: absolute;
  opacity: 0.09;
}

.float-icon--down {
  left: 4%;
  top: 14%;
  width: clamp(56px, 8vw, 100px);
  color: var(--color-down);
  animation: float-bob 7.5s ease-in-out infinite;
}

.float-icon--up {
  right: 5%;
  top: 58%;
  width: clamp(56px, 8vw, 100px);
  color: var(--color-up);
  animation: float-bob 8.5s ease-in-out infinite reverse;
  animation-delay: 1.4s;
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(-4deg); }
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: inherit;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  padding-block: var(--space-3);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  width: max-content;
  animation: marquee-scroll 24s linear infinite;
}

.marquee__track span {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  white-space: nowrap;
}

.marquee__track span.dot {
  color: var(--gold-solid);
}

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

.wrap {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.topbar__logo {
  height: clamp(22px, 4vw, 28px);
  width: auto;
}

.topbar__ticker {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  border: 1px solid var(--color-border);
  padding: 0.2em 0.55em;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.topbar__socials {
  display: flex;
  gap: var(--space-3);
}

/* ---------- Language switcher ---------- */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.5em 2em 0.5em 0.9em;
  min-height: 44px;
  cursor: pointer;
  transition: var(--transition-interactive);
}

.lang-switch select:hover,
.lang-switch select:focus-visible {
  background: var(--color-surface-3);
  border-color: var(--color-border-strong);
  color: var(--gold-solid);
  outline: none;
}

.lang-switch__chevron {
  position: absolute;
  right: 0.7em;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  pointer-events: none;
  color: var(--color-text-muted);
}

[dir="rtl"] .lang-switch select {
  padding: 0.5em 0.9em 0.5em 2em;
}

[dir="rtl"] .lang-switch__chevron {
  right: auto;
  left: 0.7em;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: var(--transition-interactive);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.social-btn:hover,
.social-btn:focus-visible {
  background: var(--color-surface-3);
  border-color: var(--color-border-strong);
  color: var(--gold-solid);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(var(--space-16), 12vh, var(--space-24)) clamp(var(--space-12), 8vw, var(--space-24));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(var(--space-6), 4vw, var(--space-10));
}

/* Subtle darkening at the hero base for depth (page stays gold-lit below) */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.35));
  pointer-events: none;
  z-index: 2;
}

/* Scroll cue at the bottom of the fullscreen hero */
.hero__scroll-cue {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  translate: -50% 0;
  z-index: 3;
  color: var(--color-text-faint);
  animation: scroll-bob 2.4s ease-in-out infinite;
}
.hero__scroll-cue svg { width: 26px; height: 26px; }

@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(8px); opacity: 1; }
}

.hero__lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.hero__logo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: min(860px, 90vw);
}

.hero__banner-img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 0 60px rgba(254, 199, 45, 0.22));
}

.shine-sweep {
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: shine-sweep 5s ease-in-out infinite;
  animation-delay: 1.2s;
  pointer-events: none;
}

@keyframes shine-sweep {
  0%, 28% { left: -60%; }
  55%, 100% { left: 130%; }
}

.hero__game-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: calc(-1 * var(--space-4));
}

.hero__tagline {
  max-width: 46ch;
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

.hero__tagline strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Promo video — clean rounded card (no fake device chrome) */
.phone-frame {
  position: relative;
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius-xl);
  padding: 6px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(254, 199, 45, 0.12);
}

.phone-frame__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  translate: -50% 0;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.8em;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  border: 1px solid var(--gold-solid);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-solid);
  box-shadow: 0 0 16px rgba(254, 199, 45, 0.25);
}

.phone-frame-wrap {
  position: relative;
  transition: transform 300ms var(--ease-out);
  transform-style: preserve-3d;
}

.phone-frame__screen {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: calc(var(--radius-xl) - 4px);
  overflow: hidden;
  background: #050403;
}

.phone-frame__screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050403;
  /* Promo plays itself: no native controls, no tap-to-pause. */
  pointer-events: none;
}

/* Hide every native control chrome, including the iOS overlay play button. */
.phone-frame__screen video::-webkit-media-controls,
.phone-frame__screen video::-webkit-media-controls-enclosure,
.phone-frame__screen video::-webkit-media-controls-panel,
.phone-frame__screen video::-webkit-media-controls-panel-container,
.phone-frame__screen video::-webkit-media-controls-start-playback-button,
.phone-frame__screen video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  opacity: 0 !important;
  -webkit-appearance: none;
  appearance: none;
}

.sound-toggle {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.sound-toggle svg {
  width: 18px;
  height: 18px;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  border-color: var(--gold-solid);
  color: var(--gold-solid);
}

.hero__cta-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  padding: 0.95em 1.8em;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--gold {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--gold-gradient);
  color: #1a1200;
  box-shadow: var(--shadow-gold);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}

.btn--gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 550ms var(--ease-out);
  border-radius: inherit;
}

.btn--gold:hover::before,
.btn--gold:focus-visible::before {
  left: 125%;
}

.btn--gold:hover,
.btn--gold:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(254, 199, 45, 0.35);
}

.btn--ghost {
  position: relative;
  overflow: hidden;
  background: transparent;
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--gold-solid);
  color: var(--gold-solid);
}

.btn[aria-disabled='true'] {
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Section shell ---------- */
.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  border-top: 1px solid var(--color-border);
}

.section__inner {
  max-width: var(--content-default);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-solid);
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--gold-solid);
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- About / description ---------- */
.about__body {
  color: var(--color-text);
  font-size: var(--text-base);
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mechanic-chips {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5em 1em;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid;
}

.chip--up {
  color: var(--color-up);
  background: var(--color-up-dim);
  border-color: rgba(166, 224, 34, 0.35);
}

.chip--down {
  color: var(--color-down);
  background: var(--color-down-dim);
  border-color: rgba(239, 59, 46, 0.35);
}

.chip svg {
  width: 12px;
  height: 12px;
}

/* ---------- How it works ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.how-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.how-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.how-card__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--gold-solid);
}

.how-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--gold-solid);
}

.how-card__icon svg {
  width: 20px;
  height: 20px;
}

.how-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
}

.how-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ---------- About lead paragraph ---------- */
.about__lead {
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.65;
  max-width: 68ch;
}

/* ---------- Community CTA band ---------- */
.community-band {
  background:
    radial-gradient(ellipse 60% 100% at 20% 50%, rgba(254, 199, 45, 0.08), transparent 70%),
    var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.community-band__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  max-width: var(--content-wide);
}

.community-band__inner h2 {
  margin-top: var(--space-2);
}

.community-band__text {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  max-width: 56ch;
  line-height: 1.6;
}

.community-band__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* ---------- Roadmap ---------- */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.roadmap-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: transform var(--transition-interactive), border-color var(--transition-interactive);
}

.roadmap-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
}

.roadmap-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-gradient);
  box-shadow: 0 0 12px var(--gold-glow);
  margin-bottom: var(--space-2);
}

.roadmap-card__date {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-solid);
}

.roadmap-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
}

.roadmap-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ---------- Sale section ---------- */
.sale-card-glow {
  position: relative;
  border-radius: calc(var(--radius-xl) + 2px);
  padding: 2px;
  background: conic-gradient(from var(--gold-angle), rgba(254, 199, 45, 0) 0%, var(--gold-solid) 12%, rgba(254, 199, 45, 0) 30%);
  animation: rotate-gold-border 5s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .sale-card-glow {
    animation: none;
    background: var(--color-border-strong);
  }
}

@keyframes rotate-gold-border {
  to { --gold-angle: 360deg; }
}

.sale-card {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 5vw, var(--space-10));
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.sale-card__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sale-card__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.wallet-box {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}

.wallet-box__value {
  flex: 1;
  font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  overflow-wrap: break-word;
}

.wallet-box__value.is-set {
  color: var(--color-text);
}

.copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.5em 0.9em;
  min-height: 44px;
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

.copy-btn:not([disabled]):hover,
.copy-btn:not([disabled]):focus-visible {
  color: var(--gold-solid);
  border-color: var(--gold-solid);
}

.copy-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.sale-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.sale-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-10);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
}

.footer__logo {
  width: clamp(150px, 18vw, 220px);
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 0 20px rgba(254, 199, 45, 0.18));
}

.footer__socials {
  display: flex;
  gap: var(--space-3);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
}

.footer__legal a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.footer__legal a:hover,
.footer__legal a:focus-visible {
  color: var(--gold-solid);
}

.footer__legal-note {
  max-width: 54ch;
  margin: calc(var(--space-2) * -1) 0 0;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.footer__badges {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-down);
  color: var(--color-down);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
}

.footer__disclaimer {
  max-width: 60ch;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .hero__logo-wrap {
    max-width: min(860px, 90vw);
  }
}

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

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

@media (max-width: 720px) {
  .how-grid {
    grid-template-columns: 1fr;
  }

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

  .community-band__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
  }

  .community-band__actions {
    width: 100%;
    min-width: 0;
    flex-direction: column;
  }

  .community-band__actions .btn {
    width: 100%;
    min-width: 0;
    text-align: center;
    white-space: normal;
  }

  .float-icon {
    opacity: 0.05;
  }
}

@media (max-width: 480px) {
  .hero__game-word {
    letter-spacing: 0.1em;
  }

  .wallet-box {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-btn {
    justify-content: center;
  }

  .status-bar__text {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .phone-frame-wrap {
    transform: none !important;
  }
}

/* ---------- Non-Latin script font fallbacks ---------- */
:lang(zh) {
  --font-body: 'Noto Sans SC', 'Inter', system-ui, sans-serif;
  --font-display: 'Noto Sans SC', var(--font-body);
}

:lang(ko) {
  --font-body: 'Noto Sans KR', 'Inter', system-ui, sans-serif;
  --font-display: 'Noto Sans KR', var(--font-body);
}

:lang(ja) {
  --font-body: 'Noto Sans JP', 'Inter', system-ui, sans-serif;
  --font-display: 'Noto Sans JP', var(--font-body);
}

:lang(ar) {
  --font-body: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif;
  --font-display: 'Noto Sans Arabic', var(--font-body);
}

/* Uppercase tracking looks broken on CJK/Arabic scripts — normalize it */
:lang(ar) .eyebrow, :lang(zh) .eyebrow, :lang(ja) .eyebrow, :lang(ko) .eyebrow,
:lang(ar) .topbar__ticker, :lang(zh) .topbar__ticker, :lang(ja) .topbar__ticker, :lang(ko) .topbar__ticker,
:lang(ar) .sale-card__label, :lang(zh) .sale-card__label, :lang(ja) .sale-card__label, :lang(ko) .sale-card__label,
:lang(ar) .roadmap-card__date, :lang(zh) .roadmap-card__date, :lang(ja) .roadmap-card__date, :lang(ko) .roadmap-card__date,
:lang(ar) .marquee__track span, :lang(zh) .marquee__track span, :lang(ja) .marquee__track span, :lang(ko) .marquee__track span {
  letter-spacing: normal;
  text-transform: none;
}

/* ---------- Mobile topbar tightening for language switcher ---------- */
@media (max-width: 480px) {
  .topbar {
    padding-inline: var(--space-4);
  }

  .topbar__right {
    gap: var(--space-2);
  }

  .lang-switch select {
    font-size: 11px;
    padding: 0.5em 1.8em 0.5em 0.75em;
  }

  [dir="rtl"] .lang-switch select {
    padding: 0.5em 0.75em 0.5em 1.8em;
  }

  .lang-switch__chevron {
    width: 10px;
    height: 10px;
    right: 0.55em;
  }

  [dir="rtl"] .lang-switch__chevron {
    left: 0.55em;
  }

  .social-btn {
    width: 44px;
    height: 44px;
  }

  .social-btn svg {
    width: 18px;
    height: 18px;
  }
}
