/* ============================================================
   Dino Space — marketing site styles
   Fresh stylesheet (original was lost). Styles all three pages:
   index.html (landing), privacy.html, terms.html.
   Fonts loaded per-page: Baloo 2 (display) + Nunito (body).
   ============================================================ */

:root {
  --ink: #22254b;
  --muted: #565b82;
  --bg: #ffffff;
  --bg-alt: #f2efff;
  --line: #e6e2f5;
  --space-1: #0f1238;
  --space-2: #2a1c63;
  --accent: #ff7a3d;
  --accent-ink: #a83f13;
  --purple: #6c5ce7;
  --radius: 18px;
  --maxw: 1080px;
  --shadow: 0 10px 30px rgba(24, 20, 60, .12);
  --display: "Baloo 2", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 .5em;
}

p { margin: 0 0 1rem; }

a { color: var(--purple); }

img { max-width: 100%; display: block; }

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: .85rem clamp(1rem, 4vw, 2rem);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.3rem;
  margin-right: auto;
}

.navlink {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}
.navlink:hover { color: var(--ink); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  padding: .6rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(255, 122, 61, .35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255, 122, 61, .45); }

/* ---------- Hero ---------- */
.hero {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(15, 18, 56, .82), rgba(42, 28, 99, .9)),
    url("assets/bg.jpg") center/cover no-repeat, var(--space-1);
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem);
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.hero-copy { flex: 1 1 340px; }

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  margin-bottom: .35em;
}

.tagline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: #ffd9c2;
  margin-bottom: .8rem;
}

.sub {
  font-size: 1.05rem;
  color: #dcdaf4;
  max-width: 46ch;
}

.hero-cta {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.store-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 14px;
  padding: .6rem 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
}
.store-chip small { font-weight: 600; color: #c9c6ea; font-size: .72rem; }

.hero-mascot {
  flex: 0 0 auto;
  width: min(300px, 60vw);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35));
  animation: float 4s ease-in-out infinite;
}

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

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section.parents { background: var(--bg-alt); }

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .82rem;
  color: var(--accent-ink);
  margin-bottom: .35rem;
}

.section h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 2rem;
}

/* ---------- Worlds grid ---------- */
.worlds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.world {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .14s ease;
}
.world:hover { transform: translateY(-4px); }
.world img { width: 110px; height: auto; margin: 0 auto .6rem; }
.world h3 { font-size: 1.2rem; }
.world p { color: var(--muted); margin: 0; font-size: .98rem; }

.dino-strip {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  opacity: .95;
}
.dino-strip img { width: clamp(56px, 10vw, 92px); height: auto; }

/* ---------- Trust grid (parents) ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.trust {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.tick { font-size: 2rem; margin-bottom: .4rem; }
.trust h3 { font-size: 1.15rem; }
.trust p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Screenshots ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.shot { margin: 0; }
.shot img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.shot figcaption {
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
  margin-top: .6rem;
}

/* ---------- FAQ ---------- */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .35rem 1.15rem;
  margin-bottom: .8rem;
}
.faq summary {
  font-family: var(--display);
  font-weight: 700;
  cursor: pointer;
  padding: .7rem 0;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 .9rem; }

/* ---------- Blast-off CTA ---------- */
.blastoff {
  text-align: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(15, 18, 56, .88), rgba(42, 28, 99, .94)),
    url("assets/bg.jpg") center/cover no-repeat, var(--space-1);
}
.blastoff img { width: min(180px, 45vw); margin: 0 auto 1rem; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .4)); }
.blastoff h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.blastoff .lede { color: #dcdaf4; }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem);
}
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal .updated {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal p, .legal li { color: #3a3e63; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal strong { color: var(--ink); }

/* ---------- Footer ---------- */
footer {
  background: var(--space-1);
  color: #cdd0ee;
  padding: 2.5rem clamp(1rem, 4vw, 2rem);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  text-align: center;
}
footer .wordmark { color: #fff; }
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a { color: #c9c6ea; text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.fine { color: #8f92bd; font-size: .85rem; max-width: 60ch; margin: 0; }

/* ---------- Motion / responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mascot { animation: none; }
  .btn:hover, .world:hover { transform: none; }
}

@media (max-width: 640px) {
  .nav { gap: .75rem; }
  .nav .navlink { font-size: .95rem; }
  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .hero-cta { justify-content: center; }
  .sub { margin-inline: auto; }
}
