:root {
  --ink: #1f2b3a;
  --muted: #607184;
  --blue: #79aeea;
  --blue-dark: #4e8fd5;
  --mint: #daf2e6;
  --peach: #ffe2cb;
  --lavender: #e8e0ff;
  --yellow: #fff0b8;
  --rose: #ffd9e2;
  --surface: #ffffff;
  --bg: #f2f6fb;
  --border: rgba(31, 43, 58, 0.08);
  --shadow: 0 26px 70px rgba(31, 43, 58, 0.12);
  --soft-shadow: 0 16px 38px rgba(31, 43, 58, 0.10);
  color-scheme: light dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 16%, rgba(218, 242, 230, 0.88), transparent 24rem),
    radial-gradient(circle at 90% 12%, rgba(232, 224, 255, 0.88), transparent 28rem),
    radial-gradient(circle at 84% 72%, rgba(255, 226, 203, 0.82), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 48%, #f7f3ff 100%);
  overflow-x: hidden;
}

a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 4rem);
  backdrop-filter: blur(18px);
  background: rgba(242, 246, 251, 0.78);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 950; font-size: 1.25rem; }
.brand img { width: 42px; height: 42px; border-radius: 14px; box-shadow: 0 8px 18px rgba(31,43,58,.12); }
.site-header nav { display: flex; align-items: center; gap: 1.15rem; color: var(--muted); font-weight: 800; }
.site-header nav a { text-decoration: none; }
.nav-cta { color: var(--blue-dark) !important; }

.section-shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(3rem, 7vw, 5.2rem) 0 2.6rem; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; width: fit-content; padding: .48rem 1rem; border-radius: 999px; background: rgba(221, 237, 255, 0.92); color: var(--blue-dark); font-weight: 950; letter-spacing: .01em; margin: 0 0 1rem; }
.trust-badge { display: inline-flex; width: fit-content; margin: 0 0 1rem .55rem; padding: .48rem 1rem; border-radius: 999px; background: rgba(218, 242, 230, 0.94); color: #28724d; border: 1px solid rgba(40, 114, 77, .14); font-weight: 950; letter-spacing: .01em; box-shadow: 0 10px 24px rgba(31, 43, 58, .06); }
h1, h2, h3 { margin: 0; line-height: 1.04; color: var(--ink); }
h1 { font-size: clamp(3rem, 6.3vw, 6rem); letter-spacing: -0.07em; }
h2 { font-size: clamp(2.05rem, 4.6vw, 4rem); letter-spacing: -0.055em; }
h3 { font-size: 1.38rem; letter-spacing: -0.025em; }
p { color: var(--muted); font-size: 1.08rem; line-height: 1.6; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.32rem); max-width: 58ch; }
.mini-note { font-size: .95rem; }

.hero-badges, .feature-list, .privacy-pills, .language-pills { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-badges { margin: 1.3rem 0 0; }
.hero-badges span, .feature-list span, .privacy-pills span, .language-pills span {
  border-radius: 999px;
  padding: .72rem 1rem;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(31,43,58,.06);
}

.cta-row { display: flex; flex-wrap: wrap; gap: .85rem; margin: 2rem 0 1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.15rem; padding: .9rem 1.35rem; border-radius: 18px; text-decoration: none; font-weight: 950; border: 1px solid var(--border); }
.button.primary { background: var(--blue); color: white; box-shadow: 0 12px 26px rgba(121, 174, 234, .3); }
.button.secondary { background: rgba(255,255,255,.75); color: var(--ink); }

.store-links { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.15rem 0 .35rem; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  min-width: 172px;
  padding: .68rem .86rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .78);
  color: var(--ink);
  box-shadow: 0 14px 32px rgba(31, 43, 58, .08);
  text-decoration: none;
  backdrop-filter: blur(12px);
}
.store-badge img { width: 27px; height: 27px; object-fit: contain; }
.store-badge span { display: grid; gap: .06rem; font-weight: 950; line-height: 1.05; }
.store-badge small { color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .01em; }
.store-badge.disabled { cursor: default; opacity: .7; pointer-events: none; }

.hero-stage {
  position: relative;
  min-height: 610px;
  display: grid;
  place-items: center;
}
.hero-stage::before {
  content: "";
  position: absolute;
  width: min(560px, 92%);
  aspect-ratio: 1;
  border-radius: 36% 64% 44% 56%;
  background: linear-gradient(135deg, var(--lavender), var(--mint) 58%, var(--peach));
  filter: drop-shadow(0 28px 60px rgba(31,43,58,.12));
}
.hero-puzz { position: relative; width: min(420px, 84%); filter: drop-shadow(0 28px 48px rgba(31,43,58,.18)); transform: translateY(22px); }
.map-card {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 8px;
  width: 132px;
  height: 132px;
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--soft-shadow);
  transform: rotate(-8deg);
}
.map-card span { border-radius: 16px; background: var(--blue); opacity: .8; }
.map-card span:nth-child(2) { background: var(--mint); }
.map-card span:nth-child(3) { background: var(--peach); }
.map-card span:nth-child(4) { background: var(--lavender); }
.map-card-one { left: 3%; top: 15%; }
.map-card-two { right: 4%; bottom: 16%; transform: rotate(10deg); }
.level-token {
  position: absolute;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 950;
  font-size: 1.35rem;
  box-shadow: var(--soft-shadow);
  border: 1px solid var(--border);
}
.token-one { left: 13%; bottom: 29%; }
.token-two { right: 14%; top: 20%; }
.token-three { right: 34%; bottom: 9%; }

.intro-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.5rem 0 3.2rem; }
.intro-strip article, .game-grid article, .puzz-card, .challenge-section, .kids-section, .privacy-section, .language-section, .video-card, .policy-card, .simple-card, .support-card, .open-steps article, .open-info-card, .open-help-card {
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid var(--border);
  border-radius: 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.intro-strip article { padding: 1.25rem; display: grid; gap: .35rem; }
.intro-strip strong { font-size: 1.2rem; }
.intro-strip span { color: var(--muted); font-weight: 700; line-height: 1.45; }

.split-section { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 2rem; padding: 3.5rem 0; }
.puzz-card { display: grid; grid-template-columns: minmax(170px, 250px) 1fr; align-items: center; gap: 1rem; padding: 1.3rem 1.6rem; overflow: hidden; }
.puzz-card img { width: 100%; filter: drop-shadow(0 20px 34px rgba(31,43,58,.16)); }
.puzz-card strong { font-size: 1.4rem; }

.games-section, .gallery-section { padding: 3.5rem 0; }
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.game-grid article { padding: 1.25rem; min-height: 250px; }
.game-art { width: 128px; height: 108px; display: grid; place-items: center; margin-bottom: 1rem; }
.game-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(31,43,58,.16)); }

.challenge-section { display: grid; grid-template-columns: 1fr 360px; align-items: center; gap: 2rem; padding: clamp(1.3rem, 3.2vw, 2.4rem); margin: 3rem auto; overflow: hidden; }
.challenge-card-stack { position: relative; min-height: 280px; }
.challenge-card-stack > img { position: absolute; width: 142px; right: 115px; top: 50px; z-index: 5; filter: drop-shadow(0 16px 30px rgba(31,43,58,.18)); }
.challenge-card { position: absolute; width: 220px; height: 128px; border-radius: 30px; display: grid; place-items: center; font-weight: 950; color: var(--ink); background: rgba(255,255,255,.88); border: 1px solid var(--border); box-shadow: var(--soft-shadow); }
.top-card { right: 20px; top: 28px; transform: rotate(8deg); background: var(--lavender); }
.mid-card { right: 95px; top: 92px; transform: rotate(-6deg); background: var(--mint); }
.low-card { right: 34px; top: 156px; transform: rotate(4deg); background: var(--peach); }

.kids-section { display: grid; grid-template-columns: 1fr 430px; gap: 1.5rem; align-items: center; padding: clamp(1.25rem, 3vw, 2.2rem); margin-top: 3.5rem; overflow: hidden; }
.kids-copy ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; padding: 0; list-style: none; }
.kids-copy li { background: rgba(218,242,230,.68); border-radius: 999px; padding: .72rem 1rem; color: var(--ink); font-weight: 850; }
.kids-art { position: relative; min-height: 520px; }
.kids-shot { position: absolute; right: 0; top: 0; width: 245px; border-radius: 34px; box-shadow: var(--shadow); }
.kids-puzz { position: absolute; left: -10px; bottom: -8px; width: 260px; z-index: 3; filter: drop-shadow(0 22px 36px rgba(31,43,58,.16)); }

.gallery-lead { max-width: 68ch; }
.screenshot-strip { display: flex; gap: 1rem; overflow-x: auto; padding: 1.25rem .2rem 2rem; scroll-snap-type: x mandatory; }
.screenshot-strip img { display: block; scroll-snap-align: start; border-radius: 28px; box-shadow: var(--shadow); background: white; }
.iphone-strip img { width: min(240px, 68vw); }

.privacy-section, .language-section { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 2.2rem; margin: 3rem auto; }
.language-section { margin-top: -1.4rem; }
.privacy-pills, .language-pills { align-content: center; }
.privacy-pills span { background: rgba(221, 237, 255, .8); color: var(--blue-dark); }
.language-pills span { background: rgba(218, 242, 230, .78); color: var(--ink); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 3rem 0 4rem; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.site-footer a, .text-link { color: var(--blue-dark); font-weight: 850; text-decoration: none; }
.footer-brand-block strong { color: var(--ink); }
.footer-icon-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 4px; border-radius: 12px; background: #ffffff; border: 1px solid var(--border); box-shadow: 0 10px 24px rgba(31, 43, 58, .08); overflow: hidden; }
.footer-icon-link img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
.footer-app-icons { display: flex; align-items: center; gap: .65rem; margin-top: 1rem; }

.simple-page, .policy-page { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.simple-card, .policy-card { width: min(760px, 100%); padding: clamp(1.5rem, 5vw, 3rem); }
.simple-card { text-align: center; }
.simple-card img { width: 110px; border-radius: 28px; }
.policy-card h1, .simple-card h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.policy-card h2 { font-size: 1.6rem; margin-top: 2rem; }
.support-main { padding: 3rem 0 4rem; }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.support-card { padding: 1.35rem; }

.open-main { padding: 1.25rem 0 0; }
.open-hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(1.5rem, 4vw, 3rem); padding: 2.25rem 0 1.5rem; }
.open-hero-art { position: relative; min-height: 380px; display: grid; place-items: center; }
.open-hero-art::before { content: ""; position: absolute; width: min(400px, 86%); aspect-ratio: 1; border-radius: 42% 58% 48% 52%; background: linear-gradient(135deg, var(--lavender), var(--mint)); }
.open-hero-art img { position: relative; width: min(280px, 72%); filter: drop-shadow(0 24px 46px rgba(31, 43, 58, .18)); }
.open-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1rem 0 2.25rem; }
.open-steps article, .open-info-card, .open-help-card { padding: 1.35rem; }
.step-number { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 999px; background: rgba(121, 174, 234, 0.16); color: var(--blue-dark); font-weight: 950; margin-bottom: .85rem; }
.open-card-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1rem; padding: 0 0 2rem; }
.open-note-list { padding-left: 1.2rem; margin: 1rem 0 0; color: var(--muted); }
.open-note-list li + li { margin-top: .7rem; }
.open-help-card { margin-bottom: 3.2rem; }

@media (max-width: 920px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .hero, .split-section, .challenge-section, .kids-section, .privacy-section, .language-section, .open-hero, .open-card-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
  .hero-stage { min-height: 460px; }
  .intro-strip, .game-grid, .support-grid, .open-steps { grid-template-columns: 1fr; }
  .puzz-card { grid-template-columns: 150px 1fr; }
  .challenge-card-stack { min-height: 250px; }
  .kids-art { min-height: 480px; }
  .kids-section { margin-top: 2rem; }
  .kids-copy ul { grid-template-columns: 1fr; }
  .store-links { flex-direction: column; align-items: stretch; }
  .store-badge { width: 100%; justify-content: flex-start; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .trust-badge { margin-left: 0; }
  .section-shell { width: min(100% - 1rem, 1120px); }
  .site-header { padding-inline: 1rem; }
  h1 { font-size: clamp(2.7rem, 16vw, 4rem); }
  .hero-stage { min-height: 380px; }
  .hero-puzz { width: min(310px, 84%); }
  .map-card { width: 96px; height: 96px; border-radius: 22px; }
  .level-token { width: 46px; height: 46px; }
  .puzz-card { grid-template-columns: 1fr; text-align: center; }
  .puzz-card img { width: 210px; margin: 0 auto; }
  .challenge-card-stack { transform: scale(.84); transform-origin: center; }
  .kids-art { min-height: 390px; }
  .kids-shot { width: 210px; }
  .kids-puzz { width: 210px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #edf4ff;
    --muted: #b8c6d8;
    --bg: #111927;
    --border: rgba(255,255,255,.09);
    --shadow: 0 26px 70px rgba(0,0,0,.34);
    --soft-shadow: 0 16px 38px rgba(0,0,0,.28);
  }
  body { background: radial-gradient(circle at 8% 18%, rgba(70, 112, 94, 0.30), transparent 24rem), radial-gradient(circle at 92% 16%, rgba(110, 94, 160, 0.34), transparent 28rem), radial-gradient(circle at 88% 76%, rgba(141, 94, 62, 0.20), transparent 28rem), var(--bg); }
  .site-header { background: rgba(17, 25, 39, .76); }
  .intro-strip article, .game-grid article, .puzz-card, .challenge-section, .kids-section, .privacy-section, .language-section, .video-card, .policy-card, .simple-card, .support-card, .open-steps article, .open-info-card, .open-help-card, .store-badge, .hero-badges span, .feature-list span, .button.secondary { background: rgba(26, 38, 56, .78); }
  .hero-stage::before, .open-hero-art::before { opacity: .82; }
  .challenge-card, .footer-icon-link { background: #ffffff; color: #1f2b3a; }
  .kids-copy li { color: #1f2b3a; }
}
