/* Drømmeby — cozy dusk storybook landing.
   Dusk-night sky, warm coral/sun accents, chunky rounded shapes. */

:root {
  --night: #2E2350;
  --night-deep: #241A42;
  --dusk: #4A3A78;
  --dusk-soft: #6B579E;
  --cream: #FFF7EC;
  --paper: #FFFDF8;
  --ink: #3B2E4A;
  --plum: #5C4A6E;
  --faded: #9C8FAB;
  --coral: #FF6F61;
  --coral-dark: #E85C4F;
  --sun: #FFC64B;
  --sky: #8EC9E8;
  --leaf: #7BC49A;

  --shadow-toy: 0 6px 0 rgba(20, 12, 30, 0.35);
  --shadow-soft: 0 24px 60px -20px rgba(10, 6, 24, 0.65);
  --radius: 28px;

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--cream);
  line-height: 1.6;
  background: var(--night-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Sky backdrop: layered dusk gradient + warm horizon glow ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(120% 80% at 50% 118%, rgba(255, 111, 97, 0.35), transparent 55%),
    radial-gradient(90% 60% at 82% 8%, rgba(255, 198, 75, 0.18), transparent 60%),
    linear-gradient(180deg, #1C1433 0%, var(--night) 42%, var(--dusk) 100%);
}

/* twinkling starfield via two layered radial-gradient tiles */
.stars {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 60% 15%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 80% 40%, rgba(255,247,236,0.8), transparent),
    radial-gradient(1px 1px at 35% 60%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 12% 75%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 90% 68%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 48% 22%, rgba(255,255,255,0.5), transparent);
  background-repeat: no-repeat;
  animation: twinkle 5s ease-in-out infinite alternate;
}
.stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 28% 45%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 70% 78%, rgba(255,247,236,0.7), transparent),
    radial-gradient(1px 1px at 55% 52%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 8% 20%, rgba(255,255,255,0.5), transparent);
  background-repeat: no-repeat;
  animation: twinkle 7s ease-in-out infinite alternate-reverse;
}
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }

/* soft film grain for warmth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* crescent moon, top-right */
.moon {
  position: fixed;
  top: 48px; right: 7vw;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 60px 12px rgba(255, 198, 75, 0.35), inset -22px -6px 0 -2px #1C1433;
  z-index: -1;
  animation: bob 9s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Layout ---------- */
.wrap { width: min(1120px, 92vw); margin: 0 auto; }

nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand span {
  font-family: var(--font-display); font-weight: 800; font-size: 26px;
  color: #fff; letter-spacing: .3px;
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: rgba(255,247,236,0.82); text-decoration: none; font-weight: 700; font-size: 15px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--sun); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
  padding: 40px 0 90px;
}
.hero-copy { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--sun); margin-bottom: 18px;
}
.eyebrow::before { content: "✦"; }
h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(38px, 6vw, 64px); line-height: 1.02; color: #fff;
  letter-spacing: -.5px; margin-bottom: 20px;
}
h1 .glow { color: var(--sun); text-shadow: 0 0 28px rgba(255,198,75,.45); }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: rgba(255,247,236,0.86); max-width: 34ch; margin-bottom: 30px; }

.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.badge-soon {
  display: inline-flex; flex-direction: column; gap: 2px;
  background: #000; color: #fff; border-radius: 16px; padding: 10px 20px;
  box-shadow: var(--shadow-toy); border: 1px solid rgba(255,255,255,.12);
}
.badge-soon small { font-size: 11px; opacity: .75; font-weight: 600; }
.badge-soon b { font-family: var(--font-display); font-size: 18px; }
.cta-note { color: var(--faded); font-size: 14px; }

/* hero illustration in a rounded porthole */
.hero-art { position: relative; animation: rise 1s .15s cubic-bezier(.2,.7,.2,1) both; }
.hero-frame {
  border-radius: 34px; overflow: hidden;
  border: 5px solid rgba(255,247,236,0.9);
  box-shadow: var(--shadow-soft);
  animation: float 7s ease-in-out infinite;
  aspect-ratio: 3 / 2;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spark { position: absolute; font-size: 30px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.3)); }
.spark.s1 { top: -18px; left: -14px; animation: bob 6s ease-in-out infinite; }
.spark.s2 { bottom: -20px; right: 24px; animation: bob 5s .5s ease-in-out infinite; }

@keyframes float { 0%,100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-14px) rotate(.4deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Section shell ---------- */
section { padding: 40px 0; }
.section-head { text-align: center; max-width: 40ch; margin: 0 auto 46px; }
h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 4vw, 42px); color: #fff; line-height: 1.08; margin-bottom: 14px;
}
.section-head p { color: rgba(255,247,236,0.8); font-size: 18px; }

/* feature cards */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: rgba(255, 253, 248, 0.06);
  border: 1px solid rgba(255,247,236,0.12);
  border-radius: var(--radius); padding: 28px 24px;
  backdrop-filter: blur(6px);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background .25s;
}
.card:hover { transform: translateY(-6px); background: rgba(255, 253, 248, 0.1); }
.card .ic {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  font-size: 28px; margin-bottom: 18px; box-shadow: var(--shadow-toy);
}
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 8px; }
.card p { color: rgba(255,247,236,0.76); font-size: 15px; }
.ic-coral { background: var(--coral); } .ic-sun { background: var(--sun); }
.ic-sky { background: var(--sky); } .ic-leaf { background: var(--leaf); }

/* parents / trust — cream panel */
.panel {
  background: var(--cream); color: var(--ink);
  border-radius: 40px; padding: 56px clamp(28px, 5vw, 64px);
  box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
}
.panel h2 { color: var(--ink); }
.panel .section-head p { color: var(--plum); }
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; margin-top: 8px; }
.trust li { list-style: none; display: flex; gap: 14px; align-items: flex-start; }
.trust .chk {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px; background: var(--leaf);
  color: #fff; display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow-toy);
}
.trust b { font-family: var(--font-display); color: var(--ink); display: block; font-size: 17px; }
.trust span { color: var(--plum); font-size: 15px; }

/* closing CTA */
.closing { text-align: center; padding: 90px 0 40px; }
.closing .mascot { width: 96px; height: 96px; margin-bottom: 8px; animation: float 6s ease-in-out infinite; }

/* footer */
footer { border-top: 1px solid rgba(255,247,236,0.12); margin-top: 40px; padding: 34px 0 60px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
footer a { color: rgba(255,247,236,0.78); text-decoration: none; font-weight: 700; font-size: 15px; }
footer a:hover { color: var(--sun); }
.foot-copy { color: var(--faded); font-size: 14px; }

/* ---------- Legal / doc pages ---------- */
.doc { background: var(--paper); color: var(--ink); border-radius: 32px; box-shadow: var(--shadow-soft);
  padding: clamp(30px, 5vw, 64px); margin: 30px 0 70px; }
.doc h1 { color: var(--ink); font-size: clamp(30px, 5vw, 46px); margin-bottom: 8px; }
.doc .updated { color: var(--faded); font-weight: 700; font-size: 14px; margin-bottom: 30px; }
.doc h2 { color: var(--ink); font-size: 24px; margin: 34px 0 10px; }
.doc h3 { font-family: var(--font-display); color: var(--coral-dark); font-size: 18px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--plum); font-size: 16px; line-height: 1.7; }
.doc ul, .doc ol { margin: 8px 0 8px 22px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--coral-dark); font-weight: 700; }
.doc strong { color: var(--ink); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--sun); font-weight: 800;
  text-decoration: none; margin: 8px 0 4px; }
.back-link:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-bottom: 60px; }
  .hero-art { order: -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: 1fr; }
  .moon { width: 60px; height: 60px; top: 20px; }
  .nav-links { gap: 16px; }
}
@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}
