/* ─────────────────────────────────────────────────────────────
   David — From Shepherd to King · promotional site
   Bright, kid-friendly theme mirroring the game's UI
   Sky #53C2F2 · Grass #6FC24C · Sun #FFD83D · deep-navy ink
   ───────────────────────────────────────────────────────────── */

:root {
  --sky:        #53C2F2;
  --sky-deep:   #3AA8E0;
  --sky-soft:   #EAF6FF;
  --grass:      #6FC24C;
  --grass-deep: #57A838;
  --sun:        #FFD83D;
  --coral:      #FF6B6B;
  --earth:      #8A5A38;

  --bg:        #F4FBFF;
  --surface:   #FFFFFF;
  --cream:     #FFF8E8;
  --hairline:  rgba(30, 58, 95, 0.10);
  --hairline2: rgba(30, 58, 95, 0.18);

  --ink:       #16365C;   /* deep navy headings */
  --ink2:      #41607F;   /* muted body */
  --ink3:      #7C93A8;   /* faint labels */

  --accent:    #2F6BE0;   /* the in-game Play button blue */
  --accent-ink:#FFFFFF;
  --ring:      rgba(47, 107, 224, 0.16);

  --maxw: 1120px;
  --radius: 24px;
  --radius-sm: 16px;

  --head: "Baloo 2", "Quicksand", -apple-system, BlinkMacSystemFont, sans-serif;
  --font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--head); line-height: 1.08; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.28rem; font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-deep);
  background: rgba(83, 194, 242, 0.14);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.lead { color: var(--ink2); font-size: 1.18rem; max-width: 56ch; }
.accent { color: var(--accent); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.02rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px var(--ring); }
.btn-primary:hover { box-shadow: 0 14px 30px var(--ring); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--hairline2); }
.btn-ghost:hover { border-color: var(--sky); color: var(--sky-deep); }

/* ── Header / nav ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 12px rgba(30,58,95,0.18); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink2); font-size: 0.98rem; font-weight: 700; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { padding: 10px 20px; font-size: 0.92rem; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 0;
  background:
    radial-gradient(900px 420px at 78% 16%, rgba(255, 216, 61, 0.30), transparent 60%),
    linear-gradient(180deg, #BFE9FF 0%, var(--sky-soft) 55%, var(--bg) 100%);
}
/* sun */
.hero .sun {
  position: absolute;
  top: 64px; right: 9%;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #FFE680, var(--sun) 70%);
  box-shadow: 0 0 0 18px rgba(255, 216, 61, 0.22), 0 0 60px rgba(255, 216, 61, 0.5);
  animation: bob 6s ease-in-out infinite;
}
.hero .cloud {
  position: absolute;
  background: #fff;
  border-radius: 999px;
  opacity: 0.9;
  filter: drop-shadow(0 8px 16px rgba(30,58,95,0.08));
}
.hero .cloud::before, .hero .cloud::after {
  content: ""; position: absolute; background: #fff; border-radius: 50%;
}
.hero .c1 { width: 120px; height: 34px; top: 120px; left: 6%; animation: drift 22s linear infinite; }
.hero .c1::before { width: 56px; height: 56px; top: -22px; left: 18px; }
.hero .c1::after  { width: 42px; height: 42px; top: -14px; left: 60px; }
.hero .c2 { width: 90px; height: 26px; top: 80px; left: 44%; animation: drift 30s linear infinite; }
.hero .c2::before { width: 44px; height: 44px; top: -18px; left: 14px; }
.hero .c2::after  { width: 34px; height: 34px; top: -10px; left: 48px; }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 40px;
}
.hero h1 { text-shadow: 0 2px 0 rgba(255,255,255,0.6); }
.hero h1 .accent { color: var(--sky-deep); }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; color: var(--ink3); font-size: 0.92rem; font-weight: 700; }

/* device / screenshot frame */
.device {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 460px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(30, 58, 95, 0.28);
  transform: rotate(-1.4deg);
  transition: transform 0.3s ease;
}
.device:hover { transform: rotate(0deg) translateY(-4px); }
.device img { width: 100%; border-radius: 18px; display: block; }
.device .tag {
  position: absolute;
  bottom: -16px; left: 50%; transform: translateX(-50%);
  background: var(--sun);
  color: #5b4a13;
  font-family: var(--head);
  font-weight: 800;
  font-size: 0.86rem;
  padding: 7px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(255, 216, 61, 0.5);
}

/* grass bottom edge of hero */
.hero-hills { position: relative; z-index: 1; display: block; width: 100%; margin-top: -10px; }

/* ── Stat strip ─────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -28px;
  position: relative;
  z-index: 3;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(30, 58, 95, 0.10);
}
.stat { text-align: center; }
.stat .num { font-family: var(--head); font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.stat .label { color: var(--ink3); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }

/* ── Sections ───────────────────────────────────────────────── */
section { padding: 92px 0; }
.section-head { max-width: 62ch; margin: 0 auto 56px; text-align: center; }
.section-head .lead { margin: 16px auto 0; }
.section-head .eyebrow { margin-bottom: 16px; }

/* ── Feature grid ───────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 10px 28px rgba(30, 58, 95, 0.06);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { border-color: var(--sky); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(30, 58, 95, 0.12); }
.card .ic {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgba(83, 194, 242, 0.16);
  color: var(--sky-deep);
  margin-bottom: 18px;
}
.card.c-sun .ic   { background: rgba(255, 216, 61, 0.22); color: #C99A00; }
.card.c-grass .ic { background: rgba(111, 194, 76, 0.18); color: var(--grass-deep); }
.card.c-coral .ic { background: rgba(255, 107, 107, 0.16); color: var(--coral); }
.card.c-earth .ic { background: rgba(138, 90, 56, 0.16); color: var(--earth); }
.card .ic svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink2); font-size: 1rem; margin: 0; }

/* ── Journey timeline ───────────────────────────────────────── */
.journey {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(30, 58, 95, 0.06);
}
.step .dot {
  width: 40px; height: 40px; margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--head); font-weight: 800;
  counter-increment: step;
}
.step .dot::before { content: counter(step); }
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--ink2); font-size: 0.9rem; margin: 0; }

/* ── Screenshot showcase ────────────────────────────────────── */
.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.shots .shot {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 14px 36px rgba(30, 58, 95, 0.10);
  transition: transform 0.25s ease;
}
.shots .shot:hover { transform: translateY(-4px); }
.shots .shot img { width: 100%; border-radius: 14px; }
.shots .shot figcaption {
  margin-top: 14px; padding: 0 6px 4px;
  color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 1rem;
}

/* ── Languages ──────────────────────────────────────────────── */
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip {
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline2);
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 6px 16px rgba(30, 58, 95, 0.05);
}

/* ── Privacy / generic band ─────────────────────────────────── */
.band {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(83, 194, 242, 0.18), transparent 60%),
    var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: 60px 32px;
  text-align: center;
}
.band .lead { margin: 16px auto 28px; }

/* ── CTA band ───────────────────────────────────────────────── */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: linear-gradient(160deg, var(--sky) 0%, var(--sky-deep) 100%);
  border-radius: 32px;
  padding: 70px 32px 90px;
}
.cta-band h2 { color: #fff; }
.cta-band .eyebrow { color: #fff; background: rgba(255,255,255,0.22); }
.cta-band .lead { color: rgba(255,255,255,0.92); margin: 14px auto 0; }
.cta-band .btn { margin-top: 30px; background: var(--sun); color: #5b4a13; border: none; }
.cta-band .btn:hover { box-shadow: 0 14px 30px rgba(0,0,0,0.18); }
.cta-band .ctahills { position: absolute; bottom: -2px; left: 0; width: 100%; display: block; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0;
  color: var(--ink3);
  font-size: 0.92rem;
  background: var(--surface);
}
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-grid .brand { font-size: 1.05rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--ink2); font-weight: 700; }
.footer-links a:hover { color: var(--accent); }

/* ── Legal / privacy + support page ─────────────────────────── */
.legal { padding: 56px 0 96px; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.legal .updated { color: var(--ink3); font-size: 0.92rem; margin-top: 12px; font-weight: 700; }
.legal h2 { font-size: 1.45rem; margin-top: 48px; padding-top: 8px; }
.legal h3 { margin-top: 28px; }
.legal p, .legal li { color: var(--ink2); }
.legal a { color: var(--accent); font-weight: 700; }
.legal a:hover { text-decoration: underline; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .toc {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 36px 0;
  box-shadow: 0 10px 26px rgba(30,58,95,0.06);
}
.legal .toc strong { display: block; margin-bottom: 12px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink3); }
.legal .toc ol { margin: 0; padding-left: 20px; columns: 2; gap: 24px; }
.legal .toc a { color: var(--ink2); }
.legal .toc a:hover { color: var(--accent); }
.callout {
  background: rgba(83, 194, 242, 0.12);
  border: 1px solid rgba(83, 194, 242, 0.3);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 28px 0;
  color: var(--ink);
}
.callout strong { color: var(--sky-deep); }

/* support cards */
.faq { display: grid; gap: 14px; margin-top: 8px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  box-shadow: 0 8px 20px rgba(30,58,95,0.05);
}
.faq summary { font-family: var(--head); font-weight: 700; cursor: pointer; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--sky-deep); font-size: 1.2rem; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--ink2); margin: 12px 0 0; }

/* animations */
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(40px); } }
@media (prefers-reduced-motion: reduce) {
  .hero .sun, .hero .cloud { animation: none; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 24px; }
  .hero { padding-top: 48px; }
  .device { max-width: 380px; }
  .hero .sun { width: 78px; height: 78px; top: 36px; right: 7%; }
  .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.nav-cta) { display: none; }
  .legal .toc ol { columns: 1; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .journey { grid-template-columns: 1fr; }
}
