/* =========================================================
   The Mother's Code — luxury pastel + gold landing page
   Pure CSS. Mobile-first. Palette locked to pastel + gold.
   ========================================================= */

:root {
  --ink: #43303A;
  --ink-soft: #6a5560;
  --gold: #C8A24A;
  --gold-deep: #A5822F;
  --rose: #B0606A;
  --rose-deep: #8C5062;
  --purple: #6E4F8A;
  --pink: #F8DEE6;
  --pink-soft: #FCEBF0;
  --lavender: #E7DAF3;
  --peach: #FBE6D6;
  --cream: #FFFBF3;
  --white: #ffffff;
  --radius: 20px;
  --shadow-soft: 0 20px 50px -24px rgba(67,48,58,0.35);
  --maxw: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; line-height: 1.12; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 15px 40px;
  border-radius: 40px;
  cursor: pointer;
  border: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .35s var(--ease);
  will-change: transform;
}
.btn-gold {
  color: #fff;
  background: linear-gradient(135deg, #E3C578 0%, var(--gold) 45%, var(--gold-deep) 100%);
  box-shadow: 0 12px 30px -10px rgba(165,130,47,0.6);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(165,130,47,0.7); filter: brightness(1.04); }
.btn-light {
  color: var(--purple);
  background: #fff;
  box-shadow: 0 14px 34px -12px rgba(67,48,58,0.4);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 22px 48px -14px rgba(67,48,58,0.5); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.scrolled {
  background: rgba(255,251,243,0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(200,162,74,0.18);
  padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.35rem; color: var(--purple); letter-spacing: 0.01em; }
.brand-mark { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 0.92rem; letter-spacing: 0.03em; }
.nav-links a { color: var(--ink); transition: color .3s var(--ease); }
.nav-links a:hover { color: var(--rose); }
.nav-cta {
  padding: 9px 22px;
  border: 1px solid var(--gold);
  border-radius: 30px;
  color: var(--gold-deep) !important;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav-cta:hover { background: var(--gold); color: #fff !important; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 130px 0 90px;
}
.hero-bg {
  position: absolute; inset: -10% 0 0 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 60% 50% at 12% 18%, rgba(231,218,243,0.9) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 88% 22%, rgba(248,222,230,0.95) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 75% 90%, rgba(251,230,214,0.85) 0%, transparent 62%),
    linear-gradient(160deg, #FCEFE9 0%, #F4E8F5 48%, #FBF3EC 100%);
}
.hero-particles, .cta-particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,244,214,0.95), rgba(200,162,74,0.35));
  box-shadow: 0 0 10px rgba(200,162,74,0.4);
  animation: float linear infinite;
  opacity: 0;
}
@keyframes float {
  0%   { transform: translateY(20px) scale(.6); opacity: 0; }
  15%  { opacity: .9; }
  85%  { opacity: .7; }
  100% { transform: translateY(-120px) scale(1); opacity: 0; }
}
.floral { position: absolute; pointer-events: none; opacity: .85; z-index: -2; }
.floral-tr { top: -14px; right: -14px; width: 240px; }
.floral-bl { bottom: -14px; left: -14px; width: 210px; }

.hero-inner { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 0.72rem; font-weight: 500; color: var(--gold-deep); margin-bottom: 22px; }
.hero-title {
  font-size: clamp(2.9rem, 11vw, 5.4rem);
  letter-spacing: 0.04em;
  color: var(--purple);
  margin-bottom: 22px;
  font-weight: 700;
}
.hero-sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(1.15rem, 4vw, 1.5rem); color: var(--rose); max-width: 30ch; margin-bottom: 34px; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero-note { font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.02em; }

/* book mockup */
.hero-book { display: flex; justify-content: center; }
.book-stage { position: relative; width: min(340px, 78vw); }
.book-glow {
  position: absolute; inset: -8% -12%;
  background: radial-gradient(ellipse at center, rgba(255,244,214,0.9) 0%, transparent 68%);
  filter: blur(6px);
  z-index: 0;
}
.book {
  position: relative;
  z-index: 1;
  transform: perspective(1400px) rotateY(-20deg) rotateX(3deg);
  transform-style: preserve-3d;
  transition: transform .7s var(--ease);
  animation: bookFloat 6s ease-in-out infinite;
}
.book:hover { transform: perspective(1400px) rotateY(-8deg) rotateX(1deg) translateY(-6px); }
@keyframes bookFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.book-cover img { border-radius: 3px 8px 8px 3px; box-shadow: 26px 34px 60px -22px rgba(67,48,58,0.55); }
.book-side {
  position: absolute; top: 1.5%; left: 0; height: 97%; width: 18px;
  background: linear-gradient(90deg, rgba(0,0,0,0.32), rgba(0,0,0,0.05));
  transform: translateX(-17px) rotateY(90deg);
  transform-origin: right center;
  border-radius: 3px 0 0 3px;
}
.book-shadow {
  position: absolute; left: 8%; right: 8%; bottom: -6%;
  height: 34px;
  background: radial-gradient(ellipse at center, rgba(67,48,58,0.28) 0%, transparent 70%);
  filter: blur(5px);
  z-index: 0;
  animation: shadowPulse 6s ease-in-out infinite;
}
@keyframes shadowPulse { 0%,100% { transform: scaleX(1); opacity: .8; } 50% { transform: scaleX(.86); opacity: .55; } }

/* ---------- section shared ---------- */
.section-eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 0.72rem; font-weight: 500; color: var(--gold-deep); margin-bottom: 14px; }
.section-eyebrow.center { text-align: center; }
.section-eyebrow.light { color: rgba(255,255,255,0.85); }
.section-title { font-size: clamp(1.9rem, 5vw, 2.9rem); color: var(--ink); margin-bottom: 18px; }
.section-title.center { text-align: center; }

/* ---------- about ---------- */
.about { padding: 100px 0; background: linear-gradient(180deg, #fff 0%, #FDF6F8 100%); }
.about-inner { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.about-frame {
  width: min(320px, 74vw);
  margin: 0 auto;
  border-radius: 50%;
  padding: 12px;
  background: linear-gradient(150deg, var(--pink), var(--lavender));
  box-shadow: var(--shadow-soft);
}
.about-copy p { color: var(--ink-soft); margin-bottom: 18px; }
.about-highlight { color: var(--purple); font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.2rem; }

/* ---------- inside ---------- */
.inside { padding: 100px 0; background: linear-gradient(180deg, #FDF6F8 0%, #F6EFF7 100%); }
.inside-head { margin-bottom: 54px; }
.cards { display: grid; grid-template-columns: 1fr; gap: 22px; }
.card {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(200,162,74,0.22);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 26px 50px -24px rgba(110,79,138,0.45);
  border-color: var(--gold);
}
.card-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--pink-soft), var(--lavender));
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover .card-icon { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(200,162,74,0.12); }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-deep); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--ink); }
.card p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- quote ---------- */
.quote { padding: 90px 0; text-align: center; background: linear-gradient(180deg, #F6EFF7 0%, #FBF0EA 100%); }
.quote-text { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(1.5rem, 5vw, 2.4rem); color: var(--rose-deep); max-width: 760px; margin: 0 auto 16px; line-height: 1.35; }
.quote-attr { text-transform: uppercase; letter-spacing: 3px; font-size: 0.72rem; color: var(--gold-deep); }

/* ---------- final cta ---------- */
.final-cta {
  position: relative;
  padding: 96px 0;
  text-align: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(125deg, #C9A8E0 0%, #E6A9BE 45%, #F3C9A6 100%);
}
.final-inner { position: relative; z-index: 2; }
.final-title { font-size: clamp(2.2rem, 6vw, 3.4rem); color: #fff; margin-bottom: 14px; }
.final-sub { font-size: 0.98rem; opacity: 0.92; margin-bottom: 20px; }
.final-price { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 3rem; margin-bottom: 26px; }
.final-guarantee { margin-top: 18px; font-size: 0.8rem; opacity: 0.82; letter-spacing: 0.02em; }
.cta-particles .particle { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(255,244,214,0.4)); }

/* ---------- footer ---------- */
.footer { background: var(--cream); padding: 40px 0; border-top: 1px solid rgba(200,162,74,0.2); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--purple); }
.footer-brand .brand-mark { width: 18px; height: 18px; }
.footer-copy { font-size: 0.82rem; color: var(--ink-soft); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.footer-social a:hover { background: var(--gold); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; fill: none; stroke: var(--gold-deep); stroke-width: 1.5; }
.footer-social a:hover svg { stroke: #fff; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay { transition-delay: .15s; }
.cards .card:nth-child(2) { transition-delay: .08s; }
.cards .card:nth-child(3) { transition-delay: .16s; }
.cards .card:nth-child(4) { transition-delay: .24s; }
.cards .card:nth-child(5) { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .book, .book-shadow, .particle { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (min-width: 720px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
  .about-inner { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  /* tablet: 5 cards as a centered 3 + 2 layout (no orphan card) */
  .cards { grid-template-columns: repeat(6, 1fr); }
  .card { grid-column: span 2; }
  .card:nth-child(4) { grid-column: 2 / span 2; }
  .card:nth-child(5) { grid-column: 4 / span 2; }
}
@media (min-width: 720px) and (max-width: 999px) {
  /* keep the huge hero type proportional to the narrower column */
  .hero-title { font-size: clamp(2.9rem, 8.5vw, 5.4rem); }
}
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(5, 1fr); }
  .card, .card:nth-child(4), .card:nth-child(5) { grid-column: auto; }
}

@media (max-width: 719px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { text-align: center; padding-top: 112px; }
  .hero-copy { order: 2; }
  .hero-book { order: 1; }
  .hero-actions { align-items: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .btn { width: 100%; max-width: 340px; }
  .nav-cta { width: auto; }
  .floral { width: 130px !important; }
}
