/* ===================================================================
   3 Tiles Match — Main Stylesheet
   =================================================================== */

:root {
  --tile-deep:    #324682;
  --tile-purple:  #9632FA;
  --tile-violet:  #8232FA;
  --tile-blue:    #5A6EBE;
  --tile-gold:    #FCB40C;
  --tile-lavender:#E6BEFA;

  --primary:        #8232FA;
  --primary-dark:   #324682;
  --primary-light:  #9632FA;
  --primary-pale:   #EDE6FC;

  --accent:         #FCB40C;
  --accent-light:   #FCCC0C;
  --accent-pale:    #FFF8E6;

  --cream:    #FAF8FF;
  --soft-bg:  #F0ECFA;
  --white:    #FFFFFF;

  --text-dark:  #1E1E46;
  --text-mid:   #464682;
  --text-soft:  #5A5AAA;
  --text-light: #FFFFFF;

  --ink-deep:   #1E1E46;
  --ink-mid:    #32325A;

  --shadow-primary: rgba(110, 30, 250, 0.24);
  --shadow-soft:    rgba(30, 30, 70, 0.10);
  --shadow-glow:    rgba(252, 180, 12, 0.30);

  --gradient-hero: linear-gradient(160deg, #1E1E46 0%, #324682 50%, #465A96 100%);
  --gradient-cta:  linear-gradient(135deg, #32325A 0%, #465A96 50%, #8232FA 100%);
  --gradient-pill: linear-gradient(135deg, #6E1EFA, #9632FA);
  --gradient-warm: linear-gradient(135deg, #FCB40C, #FCCC0C);

  --max-width: 1140px;
  --header-offset: 108px;
}

* { 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;
  position: relative;
}

/* ===== PAGE BACKGROUND DECO ===== */
.page-bg-deco {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-shot {
  position: absolute;
  border-radius: 20px;
  object-fit: cover;
  opacity: 0.06;
  filter: blur(28px) saturate(1.2);
  transform: rotate(var(--rot, 0deg));
}
.bg-shot-1 {
  --rot: -12deg;
  width: 280px; height: 420px;
  top: 18%; left: -4%;
}
.bg-shot-2 {
  --rot: 8deg;
  width: 240px; height: 360px;
  top: 42%; right: -3%;
}
.bg-shot-3 {
  --rot: -6deg;
  width: 220px; height: 330px;
  bottom: 12%; left: 6%;
}
.bg-shot-4 {
  --rot: 14deg;
  width: 260px; height: 390px;
  bottom: 28%; right: 8%;
}

.section-bg-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.section-bg-deco img {
  border-radius: 24px;
  object-fit: cover;
  opacity: 0.07;
  filter: blur(20px) saturate(1.15);
}
.section-bg-deco-features {
  top: -40px; right: -60px;
  width: 320px; height: 480px;
}
.section-bg-deco-features img { width: 100%; height: 100%; transform: rotate(8deg); }
.section-bg-deco-how {
  bottom: -80px; left: -80px;
  width: 300px; height: 450px;
}
.section-bg-deco-how img { width: 100%; height: 100%; transform: rotate(-10deg); }
.section-bg-deco-boosters {
  top: 10%; right: -50px;
  width: 280px; height: 420px;
}
.section-bg-deco-boosters img { width: 100%; height: 100%; transform: rotate(6deg); }

.site-header,
.navbar,
.hero,
.features,
.how-to-play,
.boosters-section,
.screenshot-gallery,
.cta-contact,
.footer {
  position: relative;
  z-index: 1;
}
.features-inner, .how-to-play-inner, .boosters-inner, .gallery-inner {
  position: relative;
  z-index: 1;
}

.features, .how-to-play, .boosters-section, .screenshot-gallery {
  overflow: hidden;
}

.section-desc-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 540px;
}

/* ===== SITE HEADER (dual-row: top bar + nav dock) ===== */
.site-header,
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.scrolled,
.navbar.scrolled {
  background: rgba(250, 248, 255, 0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px var(--shadow-soft);
}

.header-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  width: 40px; height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px var(--shadow-primary);
}
.nav-logo-text {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.35s ease;
}
.site-header.scrolled .nav-logo-text,
.navbar.scrolled .nav-logo-text { color: var(--primary-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.header-recharge-btn {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-light);
  padding: 0.45rem 0.9rem;
  border: 1.5px solid rgba(252, 180, 12, 0.5);
  border-radius: 8px;
  transition: all 0.25s ease;
}
.header-recharge-btn:hover {
  background: rgba(252, 180, 12, 0.15);
}
.site-header.scrolled .header-recharge-btn,
.navbar.scrolled .header-recharge-btn {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-pill);
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px var(--shadow-primary);
}
.nav-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--shadow-primary);
}

/* Centered pill nav dock */
.nav-dock {
  display: flex;
  justify-content: center;
  padding: 0 1.5rem 0.65rem;
}
.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  padding: 0.3rem;
  border-radius: 12px;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.site-header.scrolled .nav-links,
.navbar.scrolled .nav-links {
  background: var(--white);
  border-color: var(--primary-pale);
  box-shadow: 0 4px 16px var(--shadow-soft);
}
.nav-links a {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.site-header.scrolled .nav-links a,
.navbar.scrolled .nav-links a { color: var(--text-mid); }
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}
.site-header.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a:hover {
  background: var(--primary-pale);
  color: var(--primary-dark);
}

.nav-recharge-link {
  background: var(--gradient-warm) !important;
  color: #4A2800 !important;
}

.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: 24px; height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: background 0.35s ease;
}
.site-header.scrolled .mobile-menu-btn span,
.navbar.scrolled .mobile-menu-btn span { background: var(--text-dark); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(30, 30, 70, 0.55);
  backdrop-filter: blur(4px);
}
.mobile-menu.open { display: flex; align-items: flex-start; justify-content: flex-end; }
.mobile-menu-panel {
  width: min(300px, 85vw);
  height: 100%;
  background: var(--white);
  padding: 5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: -8px 0 32px var(--shadow-soft);
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.mobile-menu a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--primary-pale);
}
.mobile-menu-recharge { color: var(--accent) !important; margin-top: 0.5rem; }
.mobile-menu-download {
  margin-top: auto;
  background: var(--gradient-pill);
  color: var(--white) !important;
  text-align: center;
  border-radius: 10px;
  border-bottom: none !important;
  padding: 1rem !important;
}

/* Legal pages: classic single-row navbar fallback */
.navbar .nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar:not(.site-header) .nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}
.navbar:not(.site-header) .nav-links a {
  padding: 0;
  border-radius: 0;
  position: relative;
}
.navbar:not(.site-header) .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.navbar:not(.site-header) .nav-links a:hover::after { width: 100%; }
.navbar:not(.site-header) .nav-links a:hover {
  background: none;
  color: var(--accent-light);
}
.navbar.scrolled:not(.site-header) .nav-links a:hover {
  color: var(--primary);
}
.navbar:not(.site-header) .mobile-menu {
  position: absolute;
  top: 100%; left: 0; right: 0;
  inset: auto;
  background: rgba(250, 248, 255, 0.98);
  backdrop-filter: blur(16px);
  display: none;
  flex-direction: column;
  align-items: stretch;
  box-shadow: 0 8px 24px var(--shadow-soft);
  padding: 1rem 1.5rem;
}
.navbar:not(.site-header) .mobile-menu.open { display: block; }
.navbar:not(.site-header) .mobile-menu-panel { display: contents; }
.navbar:not(.site-header) .mobile-menu a {
  border-bottom: 1px solid var(--primary-pale);
  padding: 0.75rem 0;
  background: none;
  border-radius: 0;
  text-align: left;
}
.navbar:not(.site-header) .mobile-menu-download {
  margin-top: 0.5rem;
  background: none;
  color: var(--primary) !important;
  padding: 0.75rem 0 !important;
  text-align: left;
}
.navbar.scrolled { background: rgba(250, 248, 255, 0.97); backdrop-filter: blur(16px); box-shadow: 0 2px 20px var(--shadow-soft); }
.navbar.scrolled .nav-logo-text { color: var(--primary-dark); }
.navbar.scrolled .nav-links a { color: var(--text-mid); }
.navbar:not(.scrolled) .nav-links a { color: rgba(255, 255, 255, 0.92); }
.navbar:not(.scrolled) .nav-logo-text { color: var(--white); }
.navbar:not(.scrolled) .mobile-menu-btn span { background: var(--white); }

/* ===== HERO (centered split) ===== */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-offset) + 2rem) 1.5rem 3rem;
  display: flex;
  align-items: center;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
}
.hero-bg-shots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg-shot {
  position: absolute;
  border-radius: 28px;
  object-fit: cover;
  opacity: 0.14;
  filter: blur(6px) saturate(1.1);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.hero-bg-shot-left {
  width: 160px;
  height: 280px;
  left: 4%;
  top: 50%;
  transform: translateY(-50%) rotate(-14deg);
  animation: heroBgDriftLeft 8s ease-in-out infinite;
}
.hero-bg-shot-right {
  width: 140px;
  height: 250px;
  right: 6%;
  top: 22%;
  transform: rotate(12deg);
  animation: heroBgDriftRight 8s ease-in-out infinite;
  animation-delay: -3s;
}
@keyframes heroBgDriftLeft {
  0%, 100% { transform: translateY(-50%) rotate(-14deg); }
  50%      { transform: translateY(calc(-50% - 16px)) rotate(-10deg); }
}
@keyframes heroBgDriftRight {
  0%, 100% { transform: rotate(12deg) translateY(0); }
  50%      { transform: rotate(8deg) translateY(-14px); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-copy { max-width: 520px; }
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}
.hero-stars { color: var(--accent-light); letter-spacing: 1px; }
.hero-title {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.45);
  transition: all 0.25s ease;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.hero-stats li {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero-stats strong {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 2px;
}

/* Hero device showcase */
.hero-device {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}
.device-frame {
  width: min(280px, 42vw);
  border-radius: 32px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(-2deg);
  position: relative;
  z-index: 2;
}
.device-frame img { width: 100%; display: block; }
.device-float {
  position: absolute;
  width: 100px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 1;
}
.device-float img { width: 100%; display: block; }
.device-float-a {
  top: 8%; left: 0;
  transform: rotate(-12deg);
  animation: floatA 5s ease-in-out infinite;
}
.device-float-b {
  bottom: 10%; right: 0;
  transform: rotate(10deg);
  animation: floatB 5s ease-in-out infinite;
}
@keyframes floatA {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50%      { transform: rotate(-12deg) translateY(-12px); }
}
@keyframes floatB {
  0%, 100% { transform: rotate(10deg) translateY(0); }
  50%      { transform: rotate(10deg) translateY(-10px); }
}

/* Legacy hero button classes (legal pages) */
.hero-store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--white); color: var(--text-dark);
  text-decoration: none; padding: 0.95rem 1.9rem; border-radius: 16px;
  font-weight: 800; box-shadow: 0 10px 32px rgba(0,0,0,0.2);
}
.hero-recharge-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(252,180,12,0.22); color: var(--white);
  text-decoration: none; padding: 0.95rem 1.6rem; border-radius: 16px;
  font-weight: 800; border: 1.5px solid rgba(252,180,12,0.55);
}
.store-btn-big {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--white); color: var(--text-dark);
  text-decoration: none; padding: 1.05rem 2.3rem; border-radius: 18px;
  font-weight: 800; box-shadow: 0 10px 32px rgba(0,0,0,0.22);
}
.recharge-btn-cta {
  background: var(--gradient-warm) !important;
  color: #4A2800 !important;
}

/* ===== SECTION COMMONS ===== */
.section-head { margin-bottom: 2.5rem; }
.section-head-left { text-align: left; }
.section-tag {
  display: inline-block;
  background: var(--primary-pale);
  color: var(--primary-dark);
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-title {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.15;
}
.section-title-left { text-align: left; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 620px;
  margin: 0.75rem auto 0;
  line-height: 1.7;
}

/* ===== FEATURES BENTO ===== */
.features {
  padding: 5rem 1.5rem;
  background: var(--white);
}
.features-inner { max-width: var(--max-width); margin: 0 auto; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 1rem;
}
.bento-item {
  background: var(--soft-bg);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--primary-pale);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow-primary);
}
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }
.bento-accent {
  background: var(--gradient-cta);
  border-color: transparent;
  color: var(--white);
}
.bento-accent h3, .bento-accent p { color: var(--white); }
.bento-accent p { opacity: 0.88; }
.bento-icon { font-size: 1.8rem; display: block; margin-bottom: 0.6rem; }
.bento-item h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}
.bento-item p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ===== HOW TO PLAY (split + timeline) ===== */
.how-to-play {
  padding: 5rem 1.5rem;
  background: var(--cream);
}
.how-to-play-inner { max-width: var(--max-width); margin: 0 auto; }
.how-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.how-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px var(--shadow-primary);
}
.how-visual img { width: 100%; display: block; }
.how-visual-badge {
  position: absolute;
  bottom: 1rem; left: 1rem;
  background: var(--gradient-warm);
  color: #4A2800;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
}
.steps-timeline {
  list-style: none;
  margin-top: 1.5rem;
  position: relative;
}
.steps-timeline::before {
  content: '';
  position: absolute;
  left: 15px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--primary-pale);
}
.timeline-step {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 1.75rem;
  position: relative;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--gradient-pill);
  color: var(--white);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.timeline-step h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
}
.timeline-step p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ===== BOOSTERS SHOWCASE ===== */
.boosters-section {
  padding: 5rem 1.5rem;
  background: var(--white);
}
.boosters-inner { max-width: var(--max-width); margin: 0 auto; }
.showcase-list { display: flex; flex-direction: column; gap: 3rem; }
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.showcase-row-reverse .showcase-media { order: 2; }
.showcase-row-reverse .showcase-text { order: 1; }
.showcase-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px var(--shadow-soft);
  max-width: 280px;
  margin: 0 auto;
}
.showcase-media img { width: 100%; display: block; }
.showcase-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.4rem;
  display: block;
}
.showcase-text h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}
.showcase-text p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 400px;
}

/* ===== SCREENSHOT GALLERY (uniform grid) ===== */
.screenshot-gallery,
.iphone-screenshots {
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, var(--soft-bg) 0%, var(--cream) 100%);
}
.gallery-bg-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.gallery-bg-deco img {
  position: absolute;
  border-radius: 24px;
  object-fit: cover;
  opacity: 0.05;
  filter: blur(24px);
}
.gallery-bg-deco img:first-child {
  width: 360px; height: 540px;
  top: -80px; left: -100px;
  transform: rotate(-8deg);
}
.gallery-bg-deco img:last-child {
  width: 340px; height: 510px;
  bottom: -60px; right: -80px;
  transform: rotate(10deg);
}
.gallery-inner { max-width: var(--max-width); margin: 0 auto; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.gallery-phone {
  margin: 0;
  aspect-ratio: 9 / 16;
  max-height: 340px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--ink-deep);
  border: 3px solid var(--white);
  box-shadow:
    0 12px 32px var(--shadow-soft),
    0 0 0 1px var(--primary-pale);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-phone:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 48px var(--shadow-primary),
    0 0 0 2px var(--primary-light);
}
.gallery-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Legacy masonry (hidden) */
.masonry-grid { display: none; }

/* Legacy carousel (legal / recharge compat) */
.screenshots-track-wrap { overflow: hidden; padding: 1rem 0; }
.screenshots-track {
  display: flex; gap: 1rem;
  animation: scrollTrack 28s linear infinite;
  width: max-content;
}
@keyframes scrollTrack {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.screenshot-phone {
  flex-shrink: 0; width: 175px;
  border-radius: 24px; overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 14px 40px var(--shadow-primary);
}
.screenshot-phone img { width: 100%; display: block; }

/* ===== CTA + CONTACT SPLIT ===== */
.cta-contact {
  padding: 0;
  background: var(--ink-deep);
}
.cta-contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 360px;
}
.cta-panel {
  padding: 3.5rem 2.5rem;
  background: var(--gradient-cta);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-panel-title {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.cta-panel p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 400px;
}
.cta-panel-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.contact-panel {
  padding: 3.5rem 2.5rem;
  background: var(--ink-mid);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-panel-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.contact-panel-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  text-decoration: none;
  padding: 0.9rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
  width: fit-content;
}
.contact-email-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}
.contact-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  text-decoration: none;
  padding: 0.9rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
  width: fit-content;
  margin-top: 0.65rem;
}
.contact-phone-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}
.contact-phone-link svg { width: 20px; height: 20px; flex-shrink: 0; }

.site-header.scrolled,
.site-header.legal-header {
  background: rgba(250, 248, 255, 0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px var(--shadow-soft);
}
.site-header.legal-header .nav-logo-text { color: var(--primary-dark); }
.site-header.legal-header .nav-links a { color: var(--text-mid); }
.site-header.legal-header .nav-links {
  background: var(--white);
  border-color: var(--primary-pale);
  box-shadow: 0 4px 16px var(--shadow-soft);
}
.site-header.legal-header .header-recharge-btn {
  color: var(--accent);
  border-color: var(--accent);
}
.site-header.legal-header .mobile-menu-btn span { background: var(--text-dark); }
.contact-email-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.contact-note {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.contact { padding: 5rem 1.5rem; background: var(--cream); }
.contact-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.contact-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 12px 44px var(--shadow-soft);
  border: 1px solid var(--primary-pale);
}

/* ===== FOOTER (4-column grid) ===== */
.footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}
.footer-brand img { width: 36px; height: 36px; border-radius: 8px; }
.footer-brand-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
}
.footer-company-info {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.75;
}
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.85rem;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent-light); }
.footer-recharge-link { color: var(--accent-light) !important; }
.footer-appstore-link { color: rgba(255, 255, 255, 0.7); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-links-group a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
  display: block;
  padding: 0.3rem 0;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 1.25rem auto 0;
  text-align: center;
}
.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* Legacy sections */
.stats-bar, .download-cta { display: none; }
.boosters-grid, .features-grid, .steps-grid { display: none; }
.feature-card, .step-card, .booster-card { display: none; }

/* ===== LEGAL PAGES ===== */
.legal-hero {
  background: var(--gradient-hero);
  padding: calc(var(--header-offset) + 3rem) 1.5rem 3rem;
  text-align: center;
}
.legal-hero h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.legal-hero .legal-meta {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 600;
}
.legal-page { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.legal-content {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 12px 48px var(--shadow-soft);
  border: 1px solid var(--primary-pale);
  font-size: 0.96rem;
  line-height: 1.8;
}
.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 1.75rem 0 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--primary-pale);
}
.legal-content h2:first-of-type { margin-top: 0.4rem; }
.legal-content h3 { font-size: 1.02rem; font-weight: 800; color: var(--accent); margin: 1.2rem 0 0.4rem; }
.legal-content p { margin-bottom: 0.8rem; }
.legal-content ul, .legal-content ol { padding-left: 1.4rem; margin-bottom: 0.8rem; }
.legal-content li { margin-bottom: 0.35rem; }
.legal-content a { color: var(--primary); font-weight: 700; }
.legal-content strong { color: var(--primary-dark); }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.25rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  :root { --header-offset: 72px; }
  .nav-dock { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: none; margin: 0 auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-device { min-height: 320px; margin-top: 1rem; }
  .device-float { width: 72px; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-column: span 2; }
  .bento-tall { grid-row: span 1; }
  .how-split { grid-template-columns: 1fr; }
  .showcase-row, .showcase-row-reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .showcase-row-reverse .showcase-media,
  .showcase-row-reverse .showcase-text { order: unset; }
  .showcase-text p { margin: 0 auto; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .gallery-phone { max-height: 300px; }
  .cta-contact-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .header-recharge-btn { display: none; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
  .device-float-a, .device-float-b { display: none; }
  .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.85rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-phone {
    flex: 0 0 42vw;
    max-height: none;
    scroll-snap-align: center;
  }
  .bg-shot { opacity: 0.04; }
  .hero-bg-shot { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-panel, .contact-panel { padding: 2.5rem 1.5rem; }
}
