/* ===================================================================
   Wicked Wonderland: Idle RPG — Main Stylesheet
   File: css/index.css
   To change colours / gradients / layout width, edit :root below.
   =================================================================== */

/* === VARIABLES === */
:root {
  /* --- Accent palette (magic glow) --- */
  --ball-purple: #8B5CF6;
  --ball-pink:   #C94B8A;
  --ball-cyan:   #7C6BA8;
  --ball-yellow: #E8B84A;
  --ball-green:  #5B2D8E;
  --ball-orange: #D45A8A;
  --ball-red:    #9B3D6E;

  /* --- Brand primary --- */
  --primary:        #5B2D8E;
  --primary-dark:   #3B1F6E;
  --primary-light:  #8B5CF6;
  --primary-pale:   #4A3868;

  /* --- Accent (gold / rose) --- */
  --accent:         #E88AAB;
  --accent-light:   #F5D06A;
  --accent-pale:    #4A3258;

  /* --- Neutral backgrounds (elevated surfaces) --- */
  --cream:    #0E081C;
  --soft-bg:  #261C42;
  --white:    #352850;

  /* --- Text (high contrast on dark UI) --- */
  --text-dark:  #FFFFFF;
  --text-mid:   #E2D9F5;
  --text-soft:  #C5B8E0;
  --text-light: #FFFFFF;
  --text-heading: #FFFFFF;
  --link:       #D4BCFF;
  --link-hover: #F5D06A;

  /* --- Light buttons (Google Play etc.) --- */
  --btn-light-bg:   #FFFFFF;
  --btn-light-text: #1A0F2E;

  /* --- Dark surfaces (footer) --- */
  --ink-deep:   #0A0618;
  --ink-mid:    #1E1238;

  /* --- Shadows --- */
  --shadow-purple: rgba(91, 45, 142, 0.35);
  --shadow-soft:   rgba(0, 0, 0, 0.25);
  --shadow-glow:   rgba(201, 75, 138, 0.35);

  /* --- Gradients --- */
  --gradient-hero: linear-gradient(135deg, #1a0a2e 0%, #4a1a6e 45%, #8b2d5c 100%);
  --gradient-cta:  linear-gradient(135deg, #1a0a2e 0%, #3B1F6E 40%, #8b2d5c 100%);
  --gradient-pill: linear-gradient(135deg, #8B5CF6, #E88AAB);
  --gradient-warm: linear-gradient(135deg, #E8B84A, #C94B8A);
  --gradient-brand-text: linear-gradient(135deg, #FFE566 0%, #FFF9E6 38%, #FFD0F0 72%, #F0E6FF 100%);

  /* --- Brand title (logo / hero / section headings) --- */
  --brand-gold:     #FFE566;
  --brand-gold-pale:#FFF3B8;
  --brand-title-shadow:
    0 0 28px rgba(255, 214, 102, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.55);

  /* --- Layout --- */
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* === FLOATING DECORATIONS (magic orbs) === */
.float-deco {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(2px);
  animation: floatDeco 18s infinite ease-in-out;
}
.float-deco::after {
  content: '';
  position: absolute;
  top: 14%;
  left: 18%;
  width: 32%;
  height: 32%;
  border-radius: 50%;
  background: rgba(232, 184, 74, 0.4);
  filter: blur(2px);
}
.float-deco:nth-child(1) { top: 8%;  left: 4%;
  background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.6), #3B1F6E 70%);
  animation-delay: 0s; width: 130px; height: 130px;
}
.float-deco:nth-child(2) { top: 22%; right: 6%;
  background: radial-gradient(circle at 30% 30%, rgba(201, 75, 138, 0.5), #5B2D8E 70%);
  animation-delay: -4s; width: 90px; height: 90px;
}
.float-deco:nth-child(3) { top: 58%; left: 3%;
  background: radial-gradient(circle at 30% 30%, rgba(232, 184, 74, 0.35), #4a1a6e 70%);
  animation-delay: -8s; width: 120px; height: 120px;
}
.float-deco:nth-child(4) { top: 78%; right: 5%;
  background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.4), #2A1848 70%);
  animation-delay: -12s; width: 100px; height: 100px;
}
.float-deco:nth-child(5) { top: 45%; right: 38%;
  background: radial-gradient(circle at 30% 30%, rgba(201, 75, 138, 0.35), #1a0a2e 70%);
  animation-delay: -6s; width: 80px; height: 80px;
}

@keyframes floatDeco {
  0%, 100% { transform: translateY(0)    rotate(0deg);  }
  33%      { transform: translateY(-30px) rotate(8deg);  }
  66%      { transform: translateY(15px)  rotate(-6deg); }
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.9rem 2rem;
  transition: all 0.35s ease;
}
.navbar.scrolled {
  background: rgba(18, 10, 36, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px var(--shadow-soft);
}
.navbar.scrolled .nav-logo-text {
  color: var(--brand-gold);
  background: none;
  -webkit-text-fill-color: var(--brand-gold);
  text-shadow: var(--brand-title-shadow);
}
.navbar.scrolled .nav-links a { color: var(--text-mid); }
.navbar.scrolled .nav-links a:hover { color: var(--accent-light); }
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  width: 44px; height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 16px var(--shadow-purple);
}
.nav-logo-text {
  font-family: 'Pacifico', cursive;
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--brand-gold);
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: var(--brand-title-shadow);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
@supports not (background-clip: text) {
  .nav-logo-text {
    background: none;
    -webkit-text-fill-color: var(--brand-gold);
    color: var(--brand-gold);
  }
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2.5px;
  background: var(--gradient-pill);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--accent-light); }
.nav-links a:hover::after { width: 100%; }

/* Nav on home (dark page bg) */
.page-home .navbar:not(.scrolled) .nav-links a { color: var(--text-mid); }
.page-home .navbar:not(.scrolled) .nav-links a:hover { color: var(--accent-light); }
.page-home .navbar:not(.scrolled) .nav-links a::after { background: var(--accent-light); }
.page-home .navbar:not(.scrolled) .mobile-menu-btn span { background: var(--text-light); }

/* Nav on legal pages (gradient hero) */
.navbar:not(.scrolled) .nav-links a { color: rgba(255, 255, 255, 0.92); }
.navbar:not(.scrolled) .nav-links a:hover { color: var(--ball-yellow); }
.navbar:not(.scrolled) .nav-links a::after { background: var(--ball-yellow); }

/* Recharge pill badge in nav */
.nav-recharge-link {
  background: var(--gradient-warm);
  color: #1a0a2e !important;
  padding: 0.32rem 0.95rem;
  border-radius: 50px;
  font-weight: 800 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 14px rgba(255, 138, 91, 0.35);
}
.nav-recharge-link::after { display: none !important; }
.nav-recharge-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 138, 91, 0.5) !important;
  color: #1a0a2e !important;
}

.nav-download-btn {
  background: var(--gradient-pill);
  color: var(--white);
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px var(--shadow-purple);
}
.nav-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px var(--shadow-purple);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.mobile-menu-btn span {
  display: block;
  width: 26px; height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.navbar.scrolled .mobile-menu-btn span { background: var(--text-light); }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: rgba(18, 10, 36, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px var(--shadow-soft);
  padding: 1.2rem 2rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}
.mobile-menu a:last-child { border-bottom: none; }

/* Coloured links inside mobile menu */
.mobile-menu-recharge  { color: var(--accent-light) !important; }
.mobile-menu-download  { color: var(--link) !important; }

/* ===================================================================
   HOME PAGE LAYOUT v4 (index.html — body.page-home)
   =================================================================== */

.page-home .float-deco { display: none; }

.section-title--serif {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* === HERO: cinematic centered === */
.page-home .hero.hero-cinematic {
  position: relative;
  z-index: 1;
  min-height: min(100vh, 960px);
  padding: 6.5rem 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0618;
}
.hero-cinematic-bg {
  position: absolute;
  inset: 0;
  background: url('../img/index_03.webp') center 30% / cover no-repeat;
  transform: scale(1.05);
  filter: saturate(1.1);
}
.hero-cinematic-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 6, 24, 0.92) 0%,
      rgba(26, 15, 53, 0.75) 45%,
      rgba(10, 6, 24, 0.95) 100%);
}
.hero-cinematic-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
.hero-logo-badge {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  border: 3px solid rgba(255, 214, 102, 0.55);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  margin: 0 auto 1.25rem;
  display: block;
  object-fit: cover;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 0.85rem;
}
.page-home .hero-title {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 0.35rem;
  color: var(--brand-gold);
  text-shadow: var(--brand-title-shadow);
  background: none;
  -webkit-text-fill-color: var(--brand-gold);
  filter: none;
}
.hero-tagline {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.page-home .hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin: 0 auto 1.75rem;
  max-width: 540px;
}
.page-home .hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.hero-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--btn-light-bg);
  color: var(--btn-light-text);
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border-radius: 18px;
  font-weight: 800;
  transition: all 0.3s ease;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}
.hero-store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
}
.hero-store-btn svg { width: 30px; height: 30px; flex-shrink: 0; }
.hero-store-info  { display: flex; flex-direction: column; line-height: 1.2; }
.hero-store-label { font-size: 0.72rem; font-weight: 600; opacity: 0.65; text-transform: uppercase; letter-spacing: 0.05em; }
.hero-store-name  { font-size: 1.1rem; font-weight: 900; }

.hero-recharge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255, 201, 60, 0.28), rgba(255, 138, 91, 0.22));
  backdrop-filter: blur(10px);
  color: var(--white);
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border-radius: 18px;
  font-weight: 800;
  transition: all 0.3s ease;
  border: 1.5px solid rgba(255, 201, 60, 0.65);
  box-shadow: 0 6px 22px rgba(255, 138, 91, 0.32);
}
.hero-recharge-btn:hover {
  background: linear-gradient(135deg, rgba(255, 201, 60, 0.5), rgba(255, 138, 91, 0.45));
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 138, 91, 0.45);
}
.hero-recharge-btn .hero-store-info .hero-store-label { opacity: 0.78; }
.hero-preview-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1rem;
  perspective: 900px;
}
.hero-preview {
  width: 100px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 214, 102, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  background: #000;
  transform: rotate(-6deg) translateY(8px);
  opacity: 0.75;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.hero-preview--main {
  width: 130px;
  border-width: 3px;
  border-color: var(--brand-gold);
  transform: rotate(0) translateY(0);
  opacity: 1;
  z-index: 2;
}
.hero-preview:last-child { transform: rotate(6deg) translateY(8px); }
.hero-preview:hover { opacity: 1; transform: rotate(0) translateY(-4px); }
.hero-preview img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block;
}

/* === STATS BAR === */
.stats-bar {
  position: relative;
  z-index: 2;
  margin-top: -2rem;
  padding: 0 1.5rem 0;
}
.stats-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  background: rgba(26, 15, 53, 0.95);
  border: 1px solid rgba(255, 214, 102, 0.35);
  border-radius: 20px;
  padding: 1.25rem 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}
.stat-pill {
  text-align: center;
  padding: 0.35rem 0.5rem;
  border-right: 1px solid rgba(255, 214, 102, 0.15);
}
.stat-pill:last-child { border-right: none; }
.stat-pill-num {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-gold);
  line-height: 1.2;
}
.stat-pill-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

/* === SECTION COMMONS === */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-block;
  background: rgba(91, 45, 142, 0.55);
  color: var(--accent-light);
  border: 1px solid rgba(245, 208, 106, 0.4);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}
.section-title {
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  color: var(--brand-gold);
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.9rem;
  line-height: 1.2;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.4));
  text-shadow: var(--brand-title-shadow);
}
@supports not (background-clip: text) {
  .section-title {
    background: none;
    -webkit-text-fill-color: var(--brand-gold);
    color: var(--brand-gold);
  }
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  opacity: 1;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === FEATURES: 2×2 grid === */
.page-home .features {
  padding: 4.5rem 2rem 5rem;
  background: var(--cream);
  position: relative;
  z-index: 1;
}
.features-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.feat-tile {
  background: var(--white);
  border: 1px solid rgba(212, 188, 255, 0.22);
  border-radius: 22px;
  padding: 2rem 1.75rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feat-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px var(--shadow-purple);
}
.feat-tile-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  background: linear-gradient(145deg, rgba(91, 45, 142, 0.2), rgba(201, 75, 138, 0.15));
  border: 2px solid rgba(255, 214, 102, 0.35);
  border-radius: 50%;
}
.page-home .feature-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.55rem;
}
.page-home .feature-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* === GALLERY: staggered wall === */
.page-home .gallery {
  padding: 4rem 2rem 5rem;
  background: var(--soft-bg);
  position: relative;
  z-index: 1;
}
.gallery-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}
.gallery-wall {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: 1rem;
  align-items: stretch;
}
.gallery-cell {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid rgba(212, 188, 255, 0.28);
  background: #000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.gallery-cell:hover {
  transform: scale(1.02);
  border-color: var(--brand-gold);
  z-index: 2;
}
.gallery-cell img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 9/16;
}
.gallery-cell--a { grid-column: 1 / span 4; grid-row: span 2; }
.gallery-cell--b { grid-column: 5 / span 4; grid-row: span 1; }
.gallery-cell--c { grid-column: 9 / span 4; grid-row: span 2; }
.gallery-cell--d { grid-column: 5 / span 4; grid-row: span 1; }
.gallery-cell--e { grid-column: 1 / span 12; grid-row: span 1; max-height: 280px; }
.gallery-cell--e img { aspect-ratio: auto; min-height: 200px; object-position: center 30%; }

/* === CTA: split panel === */
.page-home .download-cta {
  padding: 0 2rem 4rem;
  background: var(--cream);
  position: relative;
  z-index: 1;
}
.cta-split {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 102, 0.3);
  box-shadow: 0 24px 56px var(--shadow-purple);
  background: linear-gradient(135deg, #1a0a2e 0%, #3B1F6E 55%, #5B2D8E 100%);
}
.cta-split-copy {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-home .download-cta-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: var(--brand-gold);
  margin-bottom: 0.75rem;
  text-shadow: var(--brand-title-shadow);
  background: none;
  -webkit-text-fill-color: var(--brand-gold);
  filter: none;
  text-align: left;
}
.page-home .download-cta-desc {
  color: var(--text-mid);
  margin-bottom: 1.75rem;
  text-align: left;
  max-width: 420px;
}
.page-home .download-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.cta-split-phone {
  position: relative;
  background: #0a0618;
  min-height: 280px;
}
.cta-split-phone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.cta-split-phone::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #3B1F6E 0%, transparent 35%);
}
/* Store buttons (shared by hero area & CTA section) */
.store-btn-big {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--btn-light-bg);
  color: var(--btn-light-text);
  text-decoration: none;
  padding: 1.05rem 2.3rem;
  border-radius: 20px;
  font-weight: 800;
  transition: all 0.3s ease;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}
.store-btn-big:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}
.store-btn-big svg { width: 32px; height: 32px; flex-shrink: 0; }
.store-btn-info  { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.store-btn-label { font-size: 0.72rem; font-weight: 600; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.06em; }
.store-btn-name  { font-size: 1.18rem; font-weight: 900; }

/* Recharge variant (inside CTA section) */
.recharge-btn-cta {
  background: var(--gradient-warm) !important;
  color: #1a0a2e !important;
  border: 2px solid rgba(255, 255, 255, 0.45);
}
.recharge-btn-cta:hover {
  filter: brightness(1.05);
}

/* === CONTACT: horizontal bar === */
.page-home .contact {
  padding: 4rem 2rem 5rem;
  background: var(--soft-bg);
  position: relative;
  z-index: 1;
}
.contact-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}
.contact-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2rem;
  background: var(--white);
  border: 1px solid rgba(212, 188, 255, 0.28);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px var(--shadow-soft);
}
.contact-bar-item {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid rgba(212, 188, 255, 0.22);
  text-align: center;
}
.contact-bar-item:last-child { border-right: none; }
.contact-bar-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 0.5rem;
}
.contact-bar-value {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
  word-break: break-word;
  margin: 0;
}
a.contact-bar-value {
  font-weight: 700;
  color: var(--link);
  text-decoration: none;
}
a.contact-bar-value:hover { color: var(--link-hover); text-decoration: underline; }
.page-home .contact-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.contact-company {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.contact-company strong { color: var(--accent-light); display: block; margin-bottom: 0.25rem; }
.contact-company span { display: block; }
.contact-card {
  background: var(--white);
  border-radius: 30px;
  padding: 2.6rem 2rem;
  box-shadow: 0 12px 44px var(--shadow-soft);
  border: 1px solid rgba(212, 188, 255, 0.28);
  margin-top: 1rem;
}
.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #5B2D8E, #8b2d5c);
  color: var(--text-light);
  text-decoration: none;
  padding: 1.15rem 2.1rem;
  border-radius: 18px;
  font-weight: 800;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  border: 2px solid rgba(245, 208, 106, 0.45);
}
.contact-email-link:hover {
  background: linear-gradient(135deg, #6E3FA8, #C94B8A);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px var(--shadow-purple);
}
.contact-email-link svg { width: 22px; height: 22px; flex-shrink: 0; }
.contact-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-mid);
}

/* === FOOTER === */
.footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 2.8rem 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.8rem;
}
.footer-brand img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.footer-brand-name {
  font-family: 'Pacifico', cursive;
  font-size: 1.3rem;
  color: var(--brand-gold);
  text-shadow: 0 0 20px rgba(255, 214, 102, 0.35), 0 1px 4px rgba(0, 0, 0, 0.4);
}
.footer-company-info {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
  margin-top: 0.4rem;
}
.footer-links-group { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links-group a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.footer-links-group a:hover { color: var(--ball-yellow); }

/* Specific footer link colours */
.footer-recharge-link { color: var(--ball-yellow) !important; font-weight: 800 !important; }
.footer-appstore-link { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.footer-appstore-link:hover { color: var(--ball-yellow); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* === LEGAL PAGES (privacy / terms / refund) === */
.legal-hero {
  background: var(--gradient-hero);
  padding: 8.5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.legal-hero::before,
.legal-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.4;
  pointer-events: none;
}
.legal-hero::before {
  width: 200px; height: 200px;
  top: -50px; left: -40px;
  background: radial-gradient(circle at 30% 30%, rgba(232, 184, 74, 0.4), rgba(91, 45, 142, 0.25) 70%);
}
.legal-hero::after {
  width: 260px; height: 260px;
  bottom: -90px; right: -60px;
  background: radial-gradient(circle at 30% 30%, rgba(201, 75, 138, 0.35), rgba(59, 31, 110, 0.25) 70%);
}
.legal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.legal-hero h1 {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--brand-gold);
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
  text-shadow: var(--brand-title-shadow);
  margin-bottom: 0.6rem;
}
.legal-hero .legal-meta {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
}

.legal-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}
.legal-content {
  background: var(--white);
  border-radius: 28px;
  padding: 3rem 2.6rem;
  box-shadow: 0 18px 60px var(--shadow-soft);
  border: 1px solid rgba(212, 188, 255, 0.28);
  font-size: 0.96rem;
  color: var(--text-mid);
  line-height: 1.8;
}
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-light);
  margin: 2rem 0 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid rgba(212, 188, 255, 0.25);
}
.legal-content h2:first-of-type { margin-top: 0.5rem; }
.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 1.4rem 0 0.5rem;
}
.legal-content p { margin-bottom: 0.85rem; color: var(--text-mid); }
.legal-content ul,
.legal-content ol { padding-left: 1.5rem; margin-bottom: 0.85rem; }
.legal-content li { margin-bottom: 0.4rem; color: var(--text-mid); }
.legal-content a { color: var(--link); font-weight: 700; }
.legal-content a:hover { color: var(--link-hover); text-decoration: underline; }
.legal-content strong { color: var(--text-dark); }

/* Back-to-home link inside legal pages */
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  color: var(--link);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
}
.legal-back:hover { color: var(--link-hover); }

/* === RESPONSIVE === */
@media (max-width: 968px) {
  .nav-links, .nav-download-btn { display: none; }
  .mobile-menu-btn { display: flex; }

  .stats-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-pill:nth-child(2) { border-right: none; }
  .stat-pill:nth-child(3),
  .stat-pill:nth-child(4) { border-top: 1px solid rgba(255, 214, 102, 0.15); }

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

  .gallery-wall {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
  .gallery-cell--a,
  .gallery-cell--b,
  .gallery-cell--c,
  .gallery-cell--d,
  .gallery-cell--e {
    grid-column: auto;
    grid-row: auto;
    max-height: none;
  }
  .gallery-cell--e { grid-column: 1 / -1; }

  .cta-split {
    grid-template-columns: 1fr;
  }
  .cta-split-phone {
    min-height: 220px;
    order: -1;
  }
  .cta-split-phone::after {
    background: linear-gradient(180deg, transparent 40%, #3B1F6E 100%);
  }
  .page-home .download-cta-title,
  .page-home .download-cta-desc { text-align: center; }
  .page-home .download-cta-desc { margin-left: auto; margin-right: auto; }
  .page-home .download-btns { justify-content: center; }

  .contact-bar { grid-template-columns: 1fr; }
  .contact-bar-item {
    border-right: none;
    border-bottom: 1px solid rgba(212, 188, 255, 0.22);
  }
  .contact-bar-item:last-child { border-bottom: none; }
}
@media (max-width: 600px) {
  .page-home .hero.hero-cinematic {
    min-height: auto;
    padding: 5.5rem 1rem 2.5rem;
  }
  .hero-preview { width: 80px; }
  .hero-preview--main { width: 105px; }
  .stats-bar { margin-top: -1rem; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-home .download-btns { flex-direction: column; align-items: stretch; }
  .page-home .download-btns .store-btn-big { width: 100%; justify-content: center; }
  .legal-page { padding: 2.5rem 1.2rem 3rem; }
  .legal-content { padding: 2rem 1.4rem; border-radius: 20px; }
}
