/* ==========================================================================
   eXchange1 — Crypto F&O Exchange Landing Page
   Dark futuristic theme · cyan accents · glassmorphism
   ========================================================================== */

/* ---------- Variables & Reset ---------- */
:root {
  --bg: #0d0d0f;
  --bg-deep: #010c0d;
  --cyan: #40e9f5;
  --cyan-soft: rgba(64, 233, 245, 0.35);
  --cyan-glow: rgba(64, 233, 245, 0.22);
  --text: #ffffff;
  --muted: #9ca3af;
  --card: rgba(20, 28, 50, 0.65);
  --border: rgba(255, 255, 255, 0.25);
  --font-head: "Comfortaa", "Space Grotesk", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --font-pixel: "Silkscreen", monospace;
  --maxw: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 34px;
  font-size: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-cyan {
  background: var(--cyan);
  color: #04252a;
  box-shadow: 0 0 18px var(--cyan-glow), 0 0 42px rgba(64, 233, 245, 0.12);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(64, 233, 245, 0.5), 0 0 60px rgba(64, 233, 245, 0.2);
}

.btn-sm {
  padding: 8px 22px;
  font-size: 0.9rem;
}

/* ==========================================================================
   SECTION 1 : HEADER / NAVBAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.navbar {
  width: 100%;
  max-width: 1250px;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 22px;
  border-radius: 40px;
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.logo {
  display: inline-block;
  line-height: 0;
  color: #ffffff;
  flex-shrink: 0;
  max-width: 120px;
}

.logo svg {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--cyan);
}

.chev {
  width: 14px;
  height: 14px;
}

.nav-soon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.soon-tag {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-transform: uppercase;
  white-space: nowrap;
}

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

.signin-link {
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.signin-link:hover {
  color: var(--cyan);
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: var(--text);
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.icon-btn:hover {
  color: var(--cyan);
  background: rgba(64, 233, 245, 0.08);
}

/* Mobile nav toggle (CSS only) */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle-label span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
   SECTION 2 : HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 0;
  overflow: visible;
}

/* Background layer covering the whole hero; children anchor against it */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Perspective grid floor */
/* Curved 3D net floor (SVG with sagging curves + converging verticals),
   anchored to the bottom center of the intro section */
.grid-floor {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 108%;
  max-width: none;
  height: 95%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

/* Soft glowing blobs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero-glow-left {
  width: 420px;
  height: 420px;
  top: 8%;
  left: -12%;
  background: radial-gradient(circle, rgba(64, 233, 245, 0.12), transparent 70%);
}

.hero-glow-right {
  width: 560px;
  height: 560px;
  top: 12%;
  right: -10%;
  background: radial-gradient(circle, rgba(64, 233, 245, 0.16), rgba(90, 80, 220, 0.1) 55%, transparent 75%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
}

.hero-content {
  padding-left: clamp(0px, 4vw, 60px);
  padding-bottom: 12vh;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero-badge svg {
  width: 19px;
  height: 19px;
  color: var(--text);
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2.7rem, 5.2vw, 4.4rem);
  line-height: 1.32;
  color: var(--cyan);
  text-shadow: 0 0 34px rgba(64, 233, 245, 0.3);
}

.hero-subtitle {
  margin-top: 36px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.7vw, 2.2rem);
  color: var(--text);
  letter-spacing: 0.02em;
}

.cta-row {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.store-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.store-btn svg {
  width: 22px;
  height: 22px;
}

.store-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-glow);
  transform: translateY(-2px);
}

/* Hero visual: astronaut + floating coins, pinned to the section bottom */
.hero-spaceman {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: end;
}

.hero-spaceman-astronaut {
  width: min(470px, 96%);
}

.astronaut {
  width: 100%;
  filter: drop-shadow(0 0 60px rgba(64, 233, 245, 0.25));
}

.hero-spaceman-coin {
  position: absolute;
  width: 64px;
  animation: floaty 5s ease-in-out infinite;
  pointer-events: none;
}

.hero-spaceman-coin img {
  width: 100%;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6));
}

.coin-a { width: 90px; top: -16%; left: 8%;   animation-delay: -1s; }
.coin-b { width: 46px; top: -6%;  right: 0;   animation-delay: -2.4s; }
.coin-c { width: 78px; top: 38%;  left: -14%; animation-delay: -3.2s; }

.hero-star {
  position: absolute;
  z-index: 3;
  width: 160px;
  bottom: -80px;
  left: 30%;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
  animation: floaty 7s ease-in-out infinite;
}

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

/* Chat widget */
.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.chat-bubble {
  position: relative;
  background: #f3f4f6;
  color: #111827;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 18px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.chat-close {
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  font-size: 0.6rem;
  display: grid;
  place-items: center;
}

.chat-fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #4f7cff, #3b5bdb);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(59, 91, 219, 0.5);
  transition: transform 0.25s ease;
}

.chat-fab:hover {
  transform: scale(1.08);
}

.chat-fab svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   SECTION 3 : STEPS
   ========================================================================== */
.steps-section {
  position: relative;
  padding: 120px 0 60px;
  text-align: center;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: var(--cyan);
  line-height: 1.35;
  text-shadow: 0 0 26px rgba(64, 233, 245, 0.25);
}

.section-title.left {
  text-align: left;
}

.section-kicker {
  margin-top: 12px;
  color: var(--cyan);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.section-desc {
  margin: 16px auto 0;
  max-width: 640px;
  color: var(--text);
  opacity: 0.85;
  font-size: 0.95rem;
}

.steps-grid {
  margin-top: 84px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  text-align: left;
}

.step-card {
  position: relative;
  min-height: 270px;
  padding: 28px;
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(38, 60, 120, 0.35), rgba(90, 60, 160, 0.18) 70%),
    var(--card);
  border: 1px solid var(--cyan-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(50, 90, 200, 0.12) inset, 0 12px 34px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(64, 233, 245, 0.14) inset, 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 24px var(--cyan-glow);
}

.step-number {
  position: absolute;
  top: -30px;
  left: 30px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: 0 0 20px var(--cyan-glow), 0 0 0 6px rgba(13, 13, 15, 0.9);
}

.step-icon {
  width: 46px;
  height: 46px;
  margin-top: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(64, 233, 245, 0.14);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(64, 233, 245, 0.15);
}

.step-icon svg {
  width: 22px;
  height: 22px;
}

.step-card h3 {
  margin-top: 18px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
}

.step-card p {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}

.step-card-cta .btn {
  margin-top: 16px;
}

/* ==========================================================================
   SECTION 4 : STATS BAR
   ========================================================================== */
.stats-section {
  padding: 60px 0;
}

.stats-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 16px;
  padding: 40px 20px;
  background:
    linear-gradient(120deg, rgba(60, 40, 110, 0.45), rgba(25, 30, 60, 0.6) 55%, rgba(60, 40, 110, 0.35)),
    var(--card);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.panel-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #e5e7eb;
  color: #111827;
  font-size: 0.65rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.stat {
  text-align: center;
  padding: 4px 12px;
}

.stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.stat-value {
  display: block;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  letter-spacing: 0.02em;
  color: var(--text);
}

.stat-label {
  display: block;
  margin-top: 10px;
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================================================================
   SECTION 5 : FEATURES
   ========================================================================== */
.features-section {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
  overflow: hidden;
}

/* Circular line patterns in corners */
.rings {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(64, 233, 245, 0.14);
  pointer-events: none;
}

.rings::before,
.rings::after {
  content: "";
  position: absolute;
  inset: -55px;
  border-radius: 50%;
  border: 1px solid rgba(64, 233, 245, 0.1);
}

.rings::after {
  inset: -115px;
  border-color: rgba(64, 233, 245, 0.07);
}

.rings-left  { left: -240px; bottom: -140px; }
.rings-right { right: -240px; top: -120px; }

.features-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  gap: 30px;
}

.feature-col {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 90px;
}

.feature-visual {
  z-index: 1;
}

.feature-col-left  { text-align: left; }
.feature-col-right { text-align: right; align-items: flex-end; }

.feature {
  max-width: 220px;
}

.feature-col-right .feature {
  margin-left: auto;
}

.feature-icon {
  display: inline-flex;
  color: var(--cyan);
  filter: drop-shadow(0 0 12px rgba(64, 233, 245, 0.35));
}

.feature-col-right .feature {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.feature-icon svg {
  width: 62px;
  height: 62px;
}

.feature h3 {
  margin-top: 18px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
}

.feature p {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #d3d7dd;
  line-height: 1.65;
}

/* Center visual with coin arc */
.feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

/* Rendered banner: phone + arc of glass coins in one image.
   Wider than its grid column so the coins run underneath the
   side feature text, edges feathered into the page background. */
.features-banner {
  width: 152%;
  max-width: none;
  margin: 0 -26%;
  filter: drop-shadow(0 26px 50px rgba(0, 0, 0, 0.55));
}

/* ==========================================================================
   SECTION 6 : AFFILIATE / KOL
   ========================================================================== */
.affiliate-section {
  position: relative;
  padding: 90px 0 130px;
  overflow: hidden;
}

.affiliate-glow {
  position: absolute;
  width: 620px;
  height: 620px;
  right: -12%;
  top: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 233, 245, 0.1), rgba(100, 70, 220, 0.08) 50%, transparent 72%);
  filter: blur(70px);
  pointer-events: none;
}

.affiliate-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}

.affiliate-desc {
  margin-top: 22px;
  max-width: 430px;
  color: var(--text);
  opacity: 0.85;
  font-size: 0.95rem;
}

.affiliate-content .btn {
  margin-top: 30px;
}

.affiliate-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 420px;
}

/* Rendered visual: phone + chrome megaphone in one transparent image */
.affiliate-image {
  width: min(440px, 92%);
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 34px rgba(64, 233, 245, 0.08));
  animation: floaty 7s ease-in-out infinite;
}

/* ==========================================================================
   SECTION 7 : FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 260px;
  display: flex;
  align-items: stretch;
}

.footer-grid {
  display: grid;
  grid-template-columns: 300px 1fr auto;
  width: 100%;
  min-height: 260px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 40px 40px 40px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo svg {
  width: 110px;
  height: auto;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-spacer {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 46px 0 0 40px;
}

.social-link {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 14px var(--cyan-glow);
}

/* ==========================================================================
   REGION-RESTRICTION POPUP
   ========================================================================== */
.region-popup {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.region-popup[hidden] {
  display: none;
}

.region-popup-card {
  max-width: 380px;
  margin: 0 20px;
  padding: 34px 38px;
  text-align: center;
  border-radius: 12px;
  background:
    linear-gradient(160deg, rgba(38, 60, 120, 0.5), rgba(90, 60, 160, 0.3) 70%),
    var(--card);
  border: 1px solid var(--cyan-soft);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 30px var(--cyan-glow);
  animation: popup-in 0.22s ease;
}

@keyframes popup-in {
  from { transform: translateY(14px) scale(0.96); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.region-popup-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(64, 233, 245, 0.14);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(64, 233, 245, 0.15);
}

.region-popup-icon svg {
  width: 26px;
  height: 26px;
}

.region-popup-card p {
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 22px;
}

/* ==========================================================================
   LIGHT (BRIGHT) THEME — body.light, toggled from the navbar icon
   ========================================================================== */
.theme-toggle .icon-sun {
  display: none;
}

body.light .theme-toggle .icon-sun {
  display: block;
}

body.light .theme-toggle .icon-moon {
  display: none;
}

body.light {
  --bg: #f4f6fa;
  --bg-deep: #e9edf3;
  --cyan: #0a9fb3;
  --cyan-soft: rgba(10, 159, 179, 0.35);
  --cyan-glow: rgba(10, 159, 179, 0.16);
  --text: #0e1013;
  --muted: #5b6470;
  --card: rgba(255, 255, 255, 0.72);
  --border: rgba(14, 16, 19, 0.16);
}

body.light .navbar {
  background: rgba(255, 255, 255, 0.85);
}

body.light .logo {
  color: #0e1013;
}

body.light .store-btn {
  background: rgba(14, 16, 19, 0.04);
}

body.light .hero-title {
  text-shadow: 0 0 34px rgba(10, 159, 179, 0.16);
}

body.light .hero-glow-left,
body.light .hero-glow-right {
  opacity: 0.55;
}

body.light .step-card {
  background:
    linear-gradient(160deg, rgba(214, 228, 255, 0.65), rgba(233, 221, 255, 0.45) 70%),
    var(--card);
  box-shadow: 0 0 30px rgba(50, 90, 200, 0.08) inset, 0 12px 34px rgba(15, 30, 60, 0.12);
}

body.light .step-number {
  box-shadow: 0 0 20px var(--cyan-glow), 0 0 0 6px rgba(244, 246, 250, 0.95);
}

body.light .stats-panel {
  background:
    linear-gradient(120deg, rgba(213, 202, 246, 0.55), rgba(228, 235, 250, 0.75) 55%, rgba(213, 202, 246, 0.45)),
    var(--card);
  border-color: rgba(14, 16, 19, 0.12);
  box-shadow: 0 18px 50px rgba(15, 30, 60, 0.12);
}

body.light .stat + .stat {
  border-left-color: rgba(14, 16, 19, 0.14);
}

body.light .feature p {
  color: #4a515c;
}

body.light .site-footer {
  border-top-color: rgba(14, 16, 19, 0.08);
}

body.light .footer-brand,
body.light .footer-spacer {
  border-right-color: rgba(14, 16, 19, 0.1);
}

body.light .social-link {
  border-color: rgba(14, 16, 19, 0.18);
}

body.light .region-popup {
  background: rgba(233, 237, 243, 0.55);
}

body.light .region-popup-card {
  background:
    linear-gradient(160deg, rgba(235, 242, 255, 0.92), rgba(240, 235, 255, 0.88) 70%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(15, 30, 60, 0.18), 0 0 30px var(--cyan-glow);
}

@media (max-width: 720px) {
  body.light .nav-links {
    background: rgba(255, 255, 255, 0.96);
  }

  body.light .stat + .stat {
    border-top-color: rgba(14, 16, 19, 0.14);
  }

  body.light .footer-brand {
    border-bottom-color: rgba(14, 16, 19, 0.1);
  }
}

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

/* ---------- Tablet (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  .nav-links {
    gap: 20px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-content {
    padding-left: 0;
    padding-bottom: 0;
  }

  .cta-row,
  .hero-badges {
    justify-content: center;
  }

  .hero-star {
    left: 8%;
    bottom: 2%;
    width: 100px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 26px;
  }

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

  .feature-visual {
    grid-column: 1 / -1;
    order: -1;
  }

  .feature-col {
    gap: 50px;
  }

  .affiliate-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section-title.left {
    text-align: center;
  }

  .affiliate-desc {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- Mobile (≤ 720px) ---------- */
@media (max-width: 720px) {
  .site-header {
    position: fixed;
    top: 10px;
    padding: 0;
    width: 85%;
    margin: 0 10px;
    display: block;
}
.region-popup-card{
  width: 80%;
  margin-left: -5%;
}
  .navbar {
    gap: 14px;
    padding: 0 18px;
  }

  .nav-toggle-label {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 22px;
    border-radius: 20px;
    background: rgba(20, 20, 20, 0.96);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: none;
  }

  .nav-links li {
    width: 100%;
    padding: 8px 0;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-actions {
    gap: 8px;
  }

  .signin-link,
  .icon-btn {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 110px 0 70px;
  }

  .hero-spaceman-coin {
    width: 44px;
  }

  .coin-a { width: 52px; }

  .chat-widget {
    top: auto;
    bottom: 18px;
  }

  .chat-bubble {
    display: none;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .step-card {
    min-height: auto;
  }

  .stats-panel {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 34px 20px;
  }

  .stat + .stat {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 26px;
  }

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

  .feature-col-left,
  .feature-col-right {
    text-align: center;
    align-items: center;
  }

  .feature,
  .feature-col-right .feature {
    margin: 0 auto;
    align-items: center;
  }

  .features-banner {
    width: 118%;
    margin: 0 -9%;
  }

  .affiliate-visual {
    min-height: 340px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 34px 0;
    min-height: auto;
  }

  .footer-brand {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 0 26px;
    align-items: center;
    text-align: center;
  }

  .footer-spacer {
    display: none;
  }

  .footer-social {
    padding: 26px 0 0;
    justify-content: center;
  }
}
