/* Rabe3 Al-Quloob — Premium landing design system */

:root {
  --bg: #050806;
  --bg-elevated: #0a110e;
  --bg-soft: #0f1a15;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --surface-active: rgba(255, 255, 255, 0.12);
  --ink: #f8faf8;
  --ink-soft: rgba(248, 250, 248, 0.85);
  --muted: #8ea396;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #38a872;
  --accent-bright: #52e19c;
  --accent-glow: rgba(82, 225, 156, 0.35);
  --gold: #e2b761;
  --gold-bright: #ffd478;
  --gold-soft: rgba(226, 183, 97, 0.14);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 16px 44px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 32px 84px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 50px rgba(63, 168, 118, 0.28);
  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --nav-h: 72px;
  --container: min(1160px, calc(100% - 40px));
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-ar: "Noto Naskh Arabic", "Noto Sans Arabic", serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --section-pad: clamp(72px, 10vw, 120px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[dir="rtl"] body { font-family: var(--font-ar), var(--font-sans); }

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus-visible { top: 16px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Typography ── */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 12px;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.85); }
.eyebrow-gold { color: var(--gold); }

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 30%, #dbf8ec 65%, #dfb768 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.35));
}
[dir="rtl"] h1 {
  line-height: 1.28;
  letter-spacing: 0;
}
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.125rem; }

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
}

.section-lead-light {
  color: rgba(255, 255, 255, 0.82);
}

.why .section-intro h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.35;
  max-width: 18ch;
  margin-inline: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { box-shadow: 0 12px 40px var(--accent-glow); }
  .btn-ghost:hover { background: var(--surface-hover); }
  .btn-outline:hover {
    border-color: rgba(95, 217, 154, 0.4);
    background: rgba(63, 168, 118, 0.08);
  }
  .why-card:hover {
    transform: translateY(-4px);
    border-color: rgba(63, 168, 118, 0.25);
    box-shadow: var(--shadow-sm);
  }
  .theme-tile:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-md);
  }
  .theme-tile:hover img { transform: scale(1.06); }
  .footer-social:hover {
    background: rgba(24, 119, 242, 0.15);
    transform: translateY(-2px);
  }
  .nav-links a:hover { color: var(--ink); background: var(--surface); }
  .nav-links .nav-cta:hover { background: rgba(63, 168, 118, 0.25); }
}
.btn-lg { padding: 15px 28px; font-size: 0.95rem; }

.btn-primary {
  background: linear-gradient(135deg, #3fa876 0%, #298256 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 28px rgba(63, 168, 118, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-weight: 600;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #48b883 0%, #309462 100%);
  box-shadow: 0 12px 36px rgba(63, 168, 118, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  color: var(--ink);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-facebook {
  background: #1877f2;
  color: #fff;
  box-shadow: 0 8px 28px rgba(24, 119, 242, 0.25);
}

/* ── Nav ── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(6, 10, 8, 0.72);
  backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(6, 10, 8, 0.92);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

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

.nav-links a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a.active { color: var(--accent-bright); background: rgba(63, 168, 118, 0.12); }

.nav-links .nav-cta {
  margin-inline-start: 6px;
  background: rgba(63, 168, 118, 0.15);
  color: var(--accent-bright);
  border: 1px solid rgba(63, 168, 118, 0.25);
}

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

.lang-picker { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 200px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 200;
}
.lang-menu.open { display: block; }

.lang-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.lang-icon svg { width: 100%; height: 100%; }

.lang-menu button,
.lang-menu .lang-option {
  display: block;
  width: 100%;
  text-align: start;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px 14px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}
.lang-menu button:hover,
.lang-menu button.active,
.lang-menu .lang-option:hover,
.lang-menu .lang-option.active { background: rgba(63, 168, 118, 0.12); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s var(--ease-out), opacity 0.25s;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 52px) 0 88px;
  overflow: hidden;
  background: radial-gradient(circle at 75% 25%, rgba(20, 50, 36, 0.45) 0%, rgba(5, 8, 6, 0.98) 65%, #050806 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  opacity: 0.14;
  filter: contrast(1.2) brightness(0.6) saturate(0.8);
  mix-blend-mode: luminosity;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(63, 168, 118, 0.16) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 35%, rgba(226, 183, 97, 0.12) 0%, transparent 50%),
              linear-gradient(to bottom, transparent 35%, #050806 100%);
  pointer-events: none;
}

.hero-ambient { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
}
.hero-orb-1 {
  width: 50vw;
  height: 50vw;
  max-width: 650px;
  max-height: 650px;
  background: radial-gradient(circle, rgba(63, 168, 118, 0.26) 0%, transparent 70%);
  top: -10%;
  inset-inline-end: -5%;
  animation: drift 16s ease-in-out infinite;
}
.hero-orb-2 {
  width: 45vw;
  height: 45vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, rgba(226, 183, 97, 0.18) 0%, transparent 70%);
  bottom: 5%;
  inset-inline-start: -10%;
  animation: drift 20s ease-in-out infinite reverse;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(25px, -25px); }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}

.hero-eyebrow {
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(226, 183, 97, 0.1);
  border: 1px solid rgba(226, 183, 97, 0.25);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.hero-sub {
  margin: 20px 0 28px;
  font-size: clamp(1.08rem, 1.8vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 48ch;
  line-height: 1.7;
}

.hero-benefits {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.hero-benefits li {
  position: relative;
  padding: 10px 16px;
  padding-inline-start: 44px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.hero-benefits li:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateX(4px);
}
[dir="rtl"] .hero-benefits li:hover {
  transform: translateX(-4px);
}
.hero-benefits li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(82, 225, 156, 0.16);
  border: 1px solid rgba(82, 225, 156, 0.35);
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 0.72rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 0; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 28px;
  max-width: 520px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease-out);
}
.trust-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.trust-pill strong { color: var(--accent-bright); font-size: 0.95rem; }
.trust-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--accent-bright);
  flex-shrink: 0;
}
.trust-icon svg { width: 100%; height: 100%; }

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 350px);
  perspective: 1000px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 125%;
  height: 110%;
  background: radial-gradient(ellipse at center, rgba(63, 168, 118, 0.35) 0%, rgba(226, 183, 97, 0.14) 45%, transparent 70%);
  filter: blur(48px);
  z-index: -1;
  pointer-events: none;
  animation: heroHalo 6s ease-in-out infinite alternate;
}
@keyframes heroHalo {
  0% { opacity: 0.65; transform: translate(-50%, -50%) scale(0.96); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

.device-pedestal {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 32px;
  background: radial-gradient(ellipse at center, rgba(63, 168, 118, 0.45) 0%, rgba(0,0,0,0.85) 60%, transparent 80%);
  filter: blur(14px);
  z-index: 0;
  pointer-events: none;
}

.hero-floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(12, 20, 16, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
  z-index: 5;
  white-space: nowrap;
  animation: floatChip 4s ease-in-out infinite;
}
.hero-floating-chip.chip--1 {
  top: 14%;
  inset-inline-start: -24px;
  animation-delay: 0s;
}
.hero-floating-chip.chip--2 {
  bottom: 16%;
  inset-inline-end: -24px;
  animation-delay: 2s;
}
.chip-star {
  color: #ffca28;
  font-weight: 700;
}
@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@media (max-width: 680px) {
  .hero-floating-chip { display: none; }
}

.device-frame--hero {
  max-width: 325px;
  margin: 0 auto;
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.04) 40%, rgba(63, 168, 118, 0.14) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 35px 85px -15px rgba(0, 0, 0, 0.85),
              0 0 0 1px rgba(255, 255, 255, 0.14),
              0 0 50px rgba(63, 168, 118, 0.3);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.device-frame--hero:hover {
  box-shadow: 0 42px 100px -15px rgba(0, 0, 0, 0.9),
              0 0 0 1px rgba(255, 255, 255, 0.24),
              0 0 65px rgba(63, 168, 118, 0.4);
}

.device-frame--exp {
  width: min(100%, 320px);
  margin: 0 auto;
  border-radius: 38px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.03) 40%, rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.device-frame--exp:hover {
  transform: translateY(-4px);
  box-shadow: 0 38px 95px rgba(0, 0, 0, 0.75), 0 0 35px rgba(63, 168, 118, 0.25);
}

.device-frame--sm {
  position: absolute;
  bottom: -20px;
  inset-inline-end: -24px;
  width: min(56%, 220px);
  padding: 8px;
  border-radius: 28px;
  z-index: 2;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.65);
}

/* Legacy phone mockup — kept for verify compatibility */
.phone-mockup {
  width: min(100%, 300px);
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: var(--bg-soft);
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-mockup--reader img { object-position: center 24%; }
.phone-mockup--studio img { object-position: center 30%; }
.phone-mockup--daily img { object-position: center 26%; }
.phone-mockup--kids img { object-position: center 34%; }
.phone-mockup--premium img { object-position: center 18%; }

.experience-copy {
  max-width: 520px;
}

.experience-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-block { margin-top: 56px; }

.section-intro--compact {
  margin-bottom: 24px;
}

.section-intro--compact h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 600;
  color: var(--ink);
}

.promo-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 8px);
}

.promo-shot--hero-wide {
  filter: drop-shadow(0 28px 56px rgba(0,0,0,0.45));
  border-radius: var(--radius-lg);
}

.visual-card--promo {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-card--promo .promo-shot {
  max-width: min(100%, 300px);
}

.onboarding-strip {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.onboarding-strip img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── App beauty showcase ── */
.showcase-band {
  padding: calc(var(--section-pad) * 0.85) 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(63, 168, 118, 0.08), transparent 70%),
    var(--bg-soft);
  border-block: 1px solid var(--line);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  align-items: stretch;
  max-width: 1040px;
  margin-inline: auto;
}

.showcase-card {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--surface);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 853 / 1844;
}

.showcase-card--wide {
  grid-row: span 1;
}

.showcase-card--wide img {
  aspect-ratio: 853 / 1844;
  object-position: center top;
}

@media (hover: hover) {
  .showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
}

.device-frame {
  position: relative;
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(165deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg), 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  transform-style: preserve-3d;
}

.device-notch {
  display: none;
}

.device-screen {
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 853 / 1844;
  background: var(--bg-soft);
}
.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.float-icon {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(12, 18, 15, 0.9);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  animation: floatY 5s ease-in-out infinite;
}
.float-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
}
.float-1 { top: 6%; inset-inline-start: -8%; }
.float-2 { bottom: 20%; inset-inline-end: -6%; animation-delay: 1s; }
.float-3 { top: 42%; inset-inline-end: -10%; animation-delay: 2s; width: 48px; height: 48px; }
.float-3 img { width: 30px; height: 30px; }

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

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.scroll-hint:hover { opacity: 0.9; }
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--muted));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ── Focus & interaction ── */
:focus:not(:focus-visible) { outline: none; }

.btn:focus-visible,
.lang-btn:focus-visible,
.faq-trigger:focus-visible,
.lang-pill:focus-visible,
.menu-toggle:focus-visible,
.play-badge:focus-visible,
.scroll-top:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

/* Page load — content always visible */
body { opacity: 1; }

/* Device tilt + scroll parallax */
.hero-visual {
  transform: translateY(var(--hero-scroll-y, 0));
  transition: transform 0.15s var(--ease-out);
}

/* ── Why ── */
.why {
  padding: var(--section-pad) 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}

.why-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  margin-bottom: 16px;
}
.why-card h3 { margin-bottom: 10px; }
.why-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.65; }

/* ── Experience sections ── */
.experience {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

#reader {
  background: radial-gradient(ellipse 60% 50% at 15% 45%, rgba(20, 52, 38, 0.3) 0%, transparent 70%);
}
#studio {
  background: radial-gradient(ellipse 60% 50% at 85% 45%, rgba(14, 45, 60, 0.32) 0%, transparent 70%);
}
#daily {
  background: radial-gradient(ellipse 60% 50% at 15% 50%, rgba(32, 20, 56, 0.28) 0%, transparent 70%);
}

.experience-alt {
  border-block: 1px solid rgba(255, 255, 255, 0.04);
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.experience-grid.reverse .experience-visual { order: 2; }
.experience-grid.reverse .experience-copy { order: 1; }
[dir="rtl"] .experience-grid.reverse { direction: ltr; }
[dir="rtl"] .experience-grid.reverse > * { direction: rtl; }

.visual-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg-soft) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.visual-icon {
  position: absolute;
  top: 20px;
  inset-inline-start: 20px;
  z-index: 2;
  mix-blend-mode: screen;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}

.visual-device {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
}
.visual-device--phone {
  aspect-ratio: 9/16;
  max-width: min(100%, 280px);
  margin: 0 auto;
}
.visual-device.tall { aspect-ratio: 9/16; max-width: 240px; margin: 0 auto; }
.visual-device img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }

.studio-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.bento-stack { display: grid; gap: 10px; }
.bento-item {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 10px;
}
.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
}

.wide-card { padding: 0; overflow: hidden; background: var(--bg-soft); }
.wide-shot { width: 100%; aspect-ratio: 16/9; object-fit: contain; object-position: center center; display: block; }

.highlights {
  list-style: none;
  margin: 28px 0 32px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.highlights li {
  position: relative;
  padding: 12px 18px;
  padding-inline-start: 46px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  transition: transform 0.2s var(--ease-out), background 0.2s, border-color 0.2s;
}
.highlights li:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateX(4px);
}
[dir="rtl"] .highlights li:hover {
  transform: translateX(-4px);
}
.highlights li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(82, 225, 156, 0.16);
  border: 1px solid rgba(82, 225, 156, 0.35);
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 0.74rem;
}
.highlights-light li { color: rgba(255,255,255,0.92); }

/* ── Kids showcase ── */
.kids-showcase {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #0a2840 0%, #0c1a24 45%, #060a08 100%);
  border-block: 1px solid rgba(135, 180, 212, 0.15);
}

.kids-showcase-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(135, 180, 212, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(212, 168, 83, 0.12) 0%, transparent 60%);
}

.kids-showcase > .container {
  position: relative;
  z-index: 1;
}

.kids-showcase .experience-copy h2,
.kids-showcase .experience-copy .section-lead,
.kids-showcase .experience-copy .highlights li {
  color: #fff;
}

.kids-showcase .experience-copy .highlights li::before {
  background: var(--gold);
}

.kids-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 24px;
}

.kids-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

.kids-pill img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.kids-pill--icon svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

.kids-visual-stack {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 12px 20px 28px;
}

.kids-showcase-poster {
  width: min(100%, 280px);
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
  aspect-ratio: 853 / 1844;
  object-fit: cover;
  display: block;
  transform: rotate(-3deg) translateY(10px);
  transition: transform 0.3s var(--ease-out);
}
.kids-visual-stack:hover .kids-showcase-poster {
  transform: rotate(-4deg) translateY(6px);
}
.kids-visual-stack .device-frame--sm {
  position: absolute;
  bottom: 0;
  inset-inline-end: 8px;
  width: min(54%, 220px);
  transform: rotate(4deg) translateY(-10px);
  transition: transform 0.3s var(--ease-out);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.75), 0 0 30px rgba(226, 183, 97, 0.25);
}
.kids-visual-stack:hover .device-frame--sm {
  transform: rotate(6deg) translateY(-16px);
}

.btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

@media (hover: hover) {
  .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
  }
}

/* ── Themes ── */
.themes { padding: var(--section-pad) 0; }

.theme-track-wrap {
  position: relative;
}

.theme-track-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 48px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(to left, var(--bg), transparent);
}
[dir="rtl"] .theme-track-wrap::after {
  background: linear-gradient(to right, var(--bg), transparent);
}

.theme-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.theme-note,
.langs-note {
  margin: 20px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.theme-tile {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 420 / 664;
  cursor: default;
  background: var(--bg-soft);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.theme-tile figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 0.82rem;
  font-weight: 600;
}

.theme-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.theme-tile.premium img { object-position: center 42%; }

.theme-tile.premium::after {
  content: "★";
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1408;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  pointer-events: none;
}

/* ── Privacy ── */
.privacy {
  padding: var(--section-pad) 0;
  background: var(--bg-soft);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.privacy-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.3s;
}
.privacy-card:hover { border-color: rgba(63, 168, 118, 0.3); }

.card-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  color: var(--accent-bright);
}
.card-icon svg { width: 100%; height: 100%; }
.privacy-card h3 { margin-bottom: 8px; }
.privacy-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

.privacy-link { text-align: center; }

/* ── Premium ── */
.premium { padding: var(--section-pad) 0; }

.premium-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr min(40%, 380px);
  gap: 40px;
  align-items: center;
  padding: clamp(36px, 6vw, 56px);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(226, 183, 97, 0.12) 0%, rgba(16, 26, 20, 0.9) 60%, rgba(8, 14, 11, 0.95) 100%);
  border: 1px solid rgba(226, 183, 97, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 50px rgba(226, 183, 97, 0.12);
  overflow: hidden;
}

.premium-glow {
  position: absolute;
  top: -40%;
  inset-inline-end: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(226, 183, 97, 0.25) 0%, transparent 65%);
  pointer-events: none;
}

.premium-content { position: relative; z-index: 1; }
.premium-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.premium-list li {
  padding-inline-start: 22px;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.premium-list li::before {
  content: "✦";
  position: absolute;
  inset-inline-start: 0;
  color: var(--gold);
  font-size: 0.75rem;
}

.premium-content .btn-primary {
  margin-top: 24px;
}

.premium-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

/* ── FAQ ── */
.faq {
  padding: var(--section-pad) 0;
  background: var(--bg-soft);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.faq-list { display: grid; gap: 10px; }

.faq-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--muted);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out);
}
.faq-icon::before { width: 12px; height: 2px; top: 9px; left: 4px; }
.faq-icon::after { width: 2px; height: 12px; top: 4px; left: 9px; }
.faq-item.open .faq-icon::after { transform: rotate(90deg); opacity: 0; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}
.faq-item.open .faq-answer { max-height: none; }

.faq-answer p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── Languages (in FAQ) ── */
.faq-langs {
  margin-top: clamp(40px, 6vw, 56px);
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--line);
  text-align: center;
}

.faq-langs h3 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  letter-spacing: -0.02em;
}

.faq-langs .section-lead {
  margin: 0 auto 20px;
  max-width: 52ch;
}

/* ── Languages ── */
.languages {
  padding: var(--section-pad) 0;
}

.lang-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 880px;
  margin: 0 auto;
}

.lang-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.lang-pill:hover { background: rgba(63, 168, 118, 0.1); border-color: rgba(63, 168, 118, 0.3); }
.lang-pill.active {
  background: rgba(63, 168, 118, 0.18);
  border-color: rgba(63, 168, 118, 0.45);
  color: var(--accent-bright);
}

.lang-pill--partial {
  opacity: 0.72;
  border-style: dashed;
}

.lang-cloud:not(.is-expanded) .lang-pill--more {
  display: none;
}

.lang-expand {
  display: block;
  margin: 16px auto 0;
}

/* ── Download ── */
.download {
  padding: var(--section-pad) 0 80px;
}

.download-panel {
  position: relative;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 68px) clamp(24px, 5vw, 48px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(16, 32, 25, 0.85) 0%, rgba(8, 14, 11, 0.95) 100%);
  border: 1px solid rgba(63, 168, 118, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(63, 168, 118, 0.15);
  overflow: hidden;
}

.download-ambient {
  position: absolute;
  inset: -40% auto auto 50%;
  width: 460px;
  height: 460px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(63, 168, 118, 0.35) 0%, rgba(226, 183, 97, 0.12) 40%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

.download-logo {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  margin: 0 auto 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(63, 168, 118, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
}

.download-panel h2 { margin-bottom: 12px; position: relative; }
.download-panel .section-lead { margin-bottom: 28px; position: relative; }

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.store-badges--hero {
  margin-top: 16px;
}

.store-badge,
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 14px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s;
  min-height: 52px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.store-badge::before,
.play-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.store-badge:hover::before,
.play-badge:hover::before {
  left: 140%;
}

.store-badge:hover,
.play-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 24px rgba(63, 168, 118, 0.25);
  color: #fff;
}

.store-badge:focus-visible,
.play-badge:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.store-badge__icon,
.play-badge__icon {
  flex-shrink: 0;
}

.store-badge--apple .store-badge__icon {
  color: #fff;
}

.store-badge--play .store-badge__icon,
.play-badge__icon {
  color: #34a853;
}

.store-badge__text,
.play-badge__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.14;
}

[dir="rtl"] .store-badge__text,
[dir="rtl"] .play-badge__text {
  align-items: flex-start;
}

.store-badge__small,
.play-badge__small {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.88;
}

.store-badge__large,
.play-badge__large {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.play-badge--hero {
  margin-top: 0;
}

[dir="rtl"] .play-badge--hero {
  margin-inline-start: 0;
}

.download-note {
  display: block;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 12px;
  position: relative;
  font-weight: 500;
}

.package-id {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  position: relative;
}

.package-id code {
  display: inline-block;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: ui-monospace, monospace;
  direction: ltr;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  background: rgba(0,0,0,0.25);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}
.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 280px;
}

.footer-social {
  display: inline-flex;
  margin-top: 14px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.2s, transform 0.2s;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.footer-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--ink); }

/* ── Sticky mobile CTA ── */
.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 95;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(6, 10, 8, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  display: none;
}
.sticky-cta.is-visible { display: block; }
.sticky-cta .btn {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
}

/* ── Scroll top ── */
.scroll-top {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(12, 18, 15, 0.92);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 90;
  backdrop-filter: blur(8px);
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ── Reveal animations — never hide content (opacity stays 1) ── */
.reveal {
  opacity: 1;
  transform: translateY(20px);
  transition: transform 0.7s var(--ease-out);
}

.reveal.visible {
  transform: none;
}

/* Stagger children in grids */
.why-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.why-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-visual { transform: none !important; --hero-scroll-y: 0; }
  .device-frame { transform: none !important; }
}

/* ── Responsive ── */
@media (max-width: 1280px) {
  .theme-track { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .hero-grid,
  .experience-grid,
  .faq-layout { grid-template-columns: 1fr; }

  .hero-visual { order: -1; max-width: 300px; }
  .device-frame--exp { width: min(100%, 290px); }
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 320px;
    margin: 28px auto 0;
  }
  .showcase-card--wide img { aspect-ratio: 853 / 1844; }
  .kids-visual-stack { min-height: 460px; }
  .kids-showcase-poster { width: min(100%, 280px); }
  .device-frame--sm { width: min(55%, 190px); inset-inline-end: -10px; bottom: -12px; }
  .experience-grid.reverse .experience-visual,
  .experience-grid.reverse .experience-copy { order: unset; }

  .why-grid,
  .privacy-grid { grid-template-columns: 1fr; }

  .premium-panel { grid-template-columns: 1fr; }
  .premium-visual { max-width: 320px; margin: 0 auto; }

  .theme-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .theme-track::-webkit-scrollbar { display: none; }
  .theme-tile { flex: 0 0 min(72vw, 260px); scroll-snap-align: start; }
  .studio-card { grid-template-columns: 1fr; justify-items: center; }
  .bento-stack { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    background: rgba(6, 10, 8, 0.98);
    border-bottom: 1px solid var(--line);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links .nav-cta { margin-inline-start: 0; text-align: center; }

  .menu-toggle { display: flex; }

  .hero { min-height: auto; padding-bottom: 64px; }
  .scroll-hint { display: none; }
  .float-icon { display: none; }

  .kids-pills { justify-content: center; }

  .faq-layout { gap: 32px; }
  .faq-intro { text-align: center; }

  .footer-grid { flex-direction: column; }
  .footer-nav { gap: 12px 20px; }
}

@media (max-width: 480px) {
  :root { --container: min(1160px, calc(100% - 24px)); }

  .hero-cta .btn { width: 100%; }
  .download-actions .btn { width: 100%; }
  .hero-trust { gap: 6px 8px; margin-top: 24px; }
  .trust-pill { font-size: 0.76rem; padding: 7px 11px; }

  .theme-track .theme-tile { flex: 0 0 min(80vw, 280px); }
  .theme-track-wrap::after { display: none; }

  .sticky-cta.is-visible { display: block; }
  body.has-sticky-cta { padding-bottom: 0; }
  body.has-sticky-cta .scroll-top.visible { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body.has-sticky-cta .download { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }

  .theme-tile figcaption { font-size: 0.75rem; padding: 10px; }
}

@media (max-width: 320px) {
  .brand span { font-size: 0.85rem; }
  h1 { font-size: 1.85rem; }
  .btn-lg { padding: 13px 20px; font-size: 0.88rem; }
}
