@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #fff9f2;
  --bg-alt: #fff0e3;
  --bg-mint: #ecfbf6;
  --card: #ffffff;
  --ink: #2b2440;
  --muted: #716b85;
  --line: rgba(43, 36, 64, 0.10);
  --primary: #ff7a2f;
  --pink: #ff4f8b;
  --purple: #7b5cff;
  --teal: #11b3a3;
  --yellow: #ffc83d;
  --deep: #271f3d;
  --grad: linear-gradient(135deg, #ff7a2f 0%, #ff4f8b 100%);
  --grad-soft: linear-gradient(135deg, #ffe7d2 0%, #ffdfeb 100%);
  --shadow: 0 22px 46px -20px rgba(43, 36, 64, 0.40);
  --shadow-sm: 0 10px 26px -14px rgba(43, 36, 64, 0.35);
  --radius: 24px;
  --radius-sm: 16px;
  --head: 'Fredoka', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
  --header-h: 78px;
}

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

html { scroll-behavior: smooth; }
html.hide #preloader { display: none; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}
body.fixed { overflow: hidden; }

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

h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.1; color: var(--ink); }

.container { width: min(1180px, 92%); margin: 0 auto; }

.section { padding: 96px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--head); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

h2.title { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 18px; }
.lead { font-size: 1.06rem; color: var(--muted); }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
#preloader img { width: 64px; height: 64px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--head); font-weight: 600; font-size: 1rem;
  padding: 15px 30px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 16px 30px -12px rgba(255, 79, 139, 0.65);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 38px -12px rgba(255, 79, 139, 0.75); }
.btn-ghost {
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--line); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--purple); color: var(--purple); }

@keyframes levitate { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-cta .btn-primary { animation: levitate 3s ease-in-out infinite; }
.hero-cta .btn-primary:hover { animation-play-state: paused; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.header.scrolled {
  background: rgba(255, 249, 242, 0.86);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px -16px rgba(43, 36, 64, 0.5);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-family: var(--head); font-weight: 500; font-size: 0.96rem;
  color: var(--ink); padding: 9px 14px; border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--primary); background: rgba(255, 122, 47, 0.10); }
.header-cta { margin-left: 8px; }
.header-cta .btn { padding: 11px 22px; font-size: 0.92rem; }

.burger-btn {
  display: none; background: transparent; border: 0; cursor: pointer;
  width: 44px; height: 44px; position: relative; border-radius: 12px;
}
.burger-btn span {
  position: absolute; left: 10px; right: 10px; height: 2.5px; border-radius: 4px;
  background: var(--ink); transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.burger-btn span:nth-child(1) { top: 14px; }
.burger-btn span:nth-child(2) { top: 21px; }
.burger-btn span:nth-child(3) { top: 28px; }
.burger-btn.act span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Mobile menu ---------- */
#mobile-menu {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(255, 249, 242, 0.98);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 0 4rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link { font-size: 1.5rem; padding: 12px 20px; }
#mobile-menu .btn { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: calc(var(--header-h) + 70px) 0 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  opacity: 0.5;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255, 249, 242, 0.4) 0%, var(--bg) 88%);
}
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--head); font-weight: 500; font-size: 0.85rem;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  padding: 8px 15px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.pill i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.pill.p1 i { background: var(--primary); }
.pill.p2 i { background: var(--teal); }
.pill.p3 i { background: var(--purple); }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 700; margin-bottom: 22px; }
.hero h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.sub { font-size: 1.12rem; color: var(--muted); max-width: 540px; margin-bottom: 16px; }
.hero p.sub:last-of-type { margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .blob {
  position: absolute; width: 108%; aspect-ratio: 1; border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  background: var(--grad-soft); top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 0; filter: blur(2px);
}
.hero-art img { position: relative; z-index: 1; width: 88%; max-height: 540px; object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(43, 36, 64, 0.25)); }
.spark { position: absolute; z-index: 2; font-size: 0; border-radius: 50%; }
.spark.s1 { width: 18px; height: 18px; background: var(--yellow); top: 12%; right: 14%; box-shadow: 0 0 0 8px rgba(255, 200, 61, 0.18); }
.spark.s2 { width: 14px; height: 14px; background: var(--teal); bottom: 18%; left: 8%; box-shadow: 0 0 0 7px rgba(17, 179, 163, 0.16); }
.spark.s3 { width: 12px; height: 12px; background: var(--purple); top: 30%; left: 2%; box-shadow: 0 0 0 6px rgba(123, 92, 255, 0.16); }

/* ---------- Two-column block ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media .frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 6px solid #fff; background: var(--grad-soft);
}
.split-media .frame img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.split-media .badge {
  position: absolute; bottom: -18px; right: -10px;
  background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow);
  font-family: var(--head); font-weight: 600; display: flex; align-items: center; gap: 10px;
}
.split-media .badge .dot { width: 34px; height: 34px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 1.1rem; }
.split-text p { color: var(--muted); margin-bottom: 16px; font-size: 1.05rem; }
.split-text p:last-child { margin-bottom: 0; }
.split-text p strong { color: var(--ink); }

/* section backgrounds rhythm */
.bg-alt { background: var(--bg-alt); }
.bg-mint { background: var(--bg-mint); }

/* ---------- First steps / stages ---------- */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 46px; }
.stage {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative; text-align: center;
}
.stage .num {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto 16px;
  font-family: var(--head); font-weight: 700; font-size: 1.2rem; color: #fff;
}
.stage:nth-child(1) .num { background: linear-gradient(135deg, #ff7a2f, #ffb03d); }
.stage:nth-child(2) .num { background: linear-gradient(135deg, #7b5cff, #b06cff); }
.stage:nth-child(3) .num { background: linear-gradient(135deg, #11b3a3, #3ad6a0); }
.stage h3 { font-size: 1.25rem; }
.steps-copy { max-width: 820px; }
.steps-copy p { color: var(--muted); margin-bottom: 14px; font-size: 1.05rem; }
.steps-copy p:last-child { margin-bottom: 0; }

/* ---------- Moments highlight ---------- */
.moment-card {
  background: var(--deep); color: #fff; border-radius: 32px;
  padding: clamp(40px, 6vw, 78px); position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.moment-card::before { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 47, 0.45), transparent 70%); top: -120px; right: -80px; }
.moment-card::after { content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(123, 92, 255, 0.4), transparent 70%); bottom: -120px; left: -60px; }
.moment-card .inner { position: relative; z-index: 1; max-width: 760px; }
.moment-card .eyebrow { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: #ffcf9e; }
.moment-card h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 20px; }
.moment-card p { color: rgba(255, 255, 255, 0.78); font-size: 1.08rem; margin-bottom: 16px; }
.moment-card p:last-child { margin-bottom: 0; }
.moment-card p strong { color: #fff; }

/* ---------- Final CTA ---------- */
.final { text-align: center; }
.final-card {
  background: var(--grad); border-radius: 36px; color: #fff;
  padding: clamp(44px, 7vw, 84px) clamp(24px, 5vw, 70px); position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(255, 79, 139, 0.7);
}
.final-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% -10%, rgba(255, 255, 255, 0.3), transparent 45%); }
.final-card .inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.final-card .eyebrow { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.25); color: #fff; box-shadow: none; }
.final-card .eyebrow::before { background: #fff; }
.final-card h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 18px; }
.final-card p { color: rgba(255, 255, 255, 0.92); font-size: 1.1rem; margin-bottom: 32px; }
.final-card .btn-primary { background: #fff; color: var(--pink); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.4); }
.final-card .btn-primary:hover { color: var(--primary); }

/* ---------- Footer ---------- */
.footer { background: var(--deep); color: #fff; padding: 56px 0 30px; }
.footer .top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer .f-logo { font-family: var(--head); font-weight: 600; font-size: 1.35rem; display: flex; align-items: center; gap: 10px; }
.footer .f-logo .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; font-size: 1rem; }
.footer .f-links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer .f-links a { font-family: var(--head); font-weight: 500; color: rgba(255, 255, 255, 0.78); transition: color 0.2s ease; }
.footer .f-links a:hover { color: #fff; }
.footer .bottom { padding-top: 24px; text-align: center; color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .section { padding: 78px 0; }
  .hero .container { gap: 28px; }
  .split { gap: 38px; }
}

@media (max-width: 768px) {
  .nav, .header-cta { display: none; }
  .burger-btn { display: block; }
  .hero { padding-top: calc(var(--header-h) + 36px); }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .pills { justify-content: center; }
  .hero p.sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { order: -1; max-width: 380px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-media { order: 0; }
  .stages { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .footer .top { flex-direction: column; text-align: center; }
  .btn { width: 100%; }
  .hero-cta, .final-card .inner .btn { width: auto; }
  .hero-cta .btn { width: 100%; }
}

/* ---------- Legal pages ---------- */
.legal-page { padding: calc(var(--header-h) + 70px) 0 90px; background: var(--bg); }
.legal-page .container { width: min(860px, 92%); }
.legal-page h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 10px; }
.legal-page .updated { color: var(--muted); margin-bottom: 36px; font-weight: 600; }
.legal-content h2 { font-size: 1.4rem; margin: 34px 0 12px; }
.legal-content p { color: var(--muted); margin-bottom: 14px; }
.legal-content ul { margin: 0 0 14px 0; }
.legal-content ul li { color: var(--muted); padding-left: 26px; position: relative; margin-bottom: 8px; }
.legal-content ul li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.legal-content a { color: var(--purple); font-weight: 600; }
