/* ═══════════════════════════════════════════════════════════
   Vidhya Montessori — landing page
   Palette reused from the existing product tokens plus the five
   playful accent hues. Composition is original: arch motifs,
   colour-blocked bento, editorial type.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* warm base */
  --cream:      #FBF7F0;
  --sand:       #F5EFE4;
  --surface:    #FFFFFF;
  --ink:        #2F332E;
  --muted:      #70766D;
  --border:     #E7DED2;

  --terracotta: #C96F4A;
  --terracotta-dk: #A85A3A;
  --terracotta-sf: #F1DCCF;
  --sage:       #7D9B76;
  --sage-sf:    #E1EADE;
  --gold:       #D8A84E;
  --gold-sf:    #F5E6C4;

  /* playful accents, each with a pastel pair */
  --blue:   #4C82C4;  --blue-sf:   #D9EAFA;
  --green:  #4E9E76;  --green-sf:  #DCF1E4;
  --pink:   #D6437D;  --pink-sf:   #F5B9CE;
  --purple: #8562B8;  --purple-sf: #E7DCF6;
  --amber:  #E3A93B;  --amber-sf:  #FDF0D6;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-full: 999px;

  --sh-sm: 0 1px 2px rgb(47 51 46 / 0.05);
  --sh-md: 0 6px 20px rgb(47 51 46 / 0.07);
  --sh-lg: 0 18px 44px rgb(47 51 46 / 0.11);

  --dur: 220ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --shell: 1180px;
  --nav-h: 70px;
}

/* ── reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", "Nirmala UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
svg { display: block; }

.skip {
  position: absolute; left: 50%; top: -70px; transform: translateX(-50%);
  z-index: 200; padding: 12px 22px; border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--ink); color: var(--cream); font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip:focus { top: 0; }

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

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

/* ── type scale ───────────────────────────────────────────── */
.display {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.h2 {
  font-size: clamp(1.6rem, 3.3vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.lede {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: var(--muted);
  max-width: 34rem;
  margin-top: 20px;
}

/* A hand-drawn highlight rather than a flat colour block. */
.mark { position: relative; white-space: nowrap; }
.mark::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%; bottom: 0.06em;
  height: 0.34em;
  border-radius: var(--r-full);
  z-index: -1;
}
.mark-terracotta::after { background: var(--terracotta-sf); }

.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.83rem; font-weight: 600;
  box-shadow: var(--sh-sm);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-sf);
}

/* ── buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: var(--r-full);
  font-weight: 650;
  font-size: 0.95rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-lg { min-height: 54px; padding: 15px 28px; font-size: 1rem; }
.btn:hover { transform: translateY(-2px); }

.btn-terracotta { background: var(--terracotta); color: #fff; box-shadow: 0 8px 20px rgb(201 111 74 / 0.30); }
.btn-terracotta:hover { background: var(--terracotta-dk); box-shadow: 0 12px 26px rgb(201 111 74 / 0.36); }
.btn-ink { background: var(--ink); color: var(--cream); min-height: 42px; padding: 10px 20px; }
.btn-ink:hover { background: #1f231e; }
.btn-cream { background: var(--cream); color: var(--ink); box-shadow: var(--sh-md); }
.btn-ghost { border: 1.5px solid var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }

/* ── nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgb(251 247 240 / 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav[data-stuck="true"] { border-bottom-color: var(--border); box-shadow: var(--sh-sm); }
.nav-in { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-arch {
  width: 22px; height: 26px;
  background: var(--terracotta);
  border-radius: 11px 11px 4px 4px;
  position: relative;
}
.brand-arch::after {
  content: ""; position: absolute; inset: 7px 6px 0;
  background: var(--gold); border-radius: 6px 6px 2px 2px;
}
.brand-name { font-weight: 750; font-size: 1.22rem; letter-spacing: -0.02em; }

.nav-links { display: flex; gap: 26px; margin-left: 14px; }
.nav-links a {
  font-size: 0.92rem; font-weight: 550; color: var(--muted);
  position: relative; padding: 4px 0;
  transition: color var(--dur) var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--terracotta); border-radius: 2px;
  transition: right var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.nav-side { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: var(--r-full);
  background: var(--surface); overflow: hidden;
  font-size: 0.78rem; font-weight: 700;
}
.lang span { padding: 7px 12px; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.lang-on { background: var(--ink); color: var(--cream); }
.lang-off { color: var(--muted); }
.lang[data-ta="true"] .lang-on { background: none; color: var(--muted); }
.lang[data-ta="true"] .lang-off { background: var(--ink); color: var(--cream); }

.burger { display: none; width: 42px; height: 42px; border-radius: var(--r-sm); }
.burger span {
  display: block; width: 20px; height: 2px; margin: 4px auto;
  background: var(--ink); border-radius: 2px;
  transition: transform var(--dur) var(--ease);
}

/* ── hero ─────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 72px); }
.hero-in {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: -2; }
.blob-a { width: 460px; height: 460px; top: -170px; left: -160px; background: var(--gold-sf); opacity: .7; }
.blob-b { width: 330px; height: 330px; right: -110px; top: 160px; background: var(--purple-sf); opacity: .55; }
.blob-c { width: 400px; height: 400px; right: -130px; bottom: -180px; background: rgb(255 255 255 / 0.10); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 26px;
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.86rem; color: var(--muted);
}
.hero-trust strong {
  display: block; font-size: 1.5rem; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1.1;
}

/* Arch composition */
.hero-art { display: flex; justify-content: center; }
.arch { position: relative; width: min(100%, 340px); }
.arch-svg {
  width: 100%; height: auto; aspect-ratio: 320 / 400;
  border-radius: 170px 170px var(--r-lg) var(--r-lg);
  box-shadow: var(--sh-lg);
}

.chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  box-shadow: var(--sh-md);
  font-size: 0.78rem; font-weight: 600;
  white-space: nowrap;
}
.chip em { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.chip-1 { left: -46px; top: 16%; animation: float 6s ease-in-out infinite; }
.chip-2 { right: -54px; top: 46%; animation: float 6s ease-in-out infinite 1.6s; }
.chip-3 { left: -30px; bottom: 12%; animation: float 6s ease-in-out infinite 3.2s; }

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

/* ── marquee ──────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  padding: 16px 0;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-lg);
  margin: 0 auto;
  max-width: calc(var(--shell) - 48px);
}
.marquee-track {
  display: flex; align-items: center; gap: 34px;
  width: max-content;
  animation: slide 26s linear infinite;
  font-size: clamp(1rem, 1.7vw, 1.4rem);
  font-weight: 650; letter-spacing: -0.01em;
}
.marquee-track i { color: var(--gold); font-style: normal; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── sections ─────────────────────────────────────────────── */
.section { padding: clamp(56px, 8vw, 108px) 0; }
.section-sand { background: var(--sand); }
.head { max-width: 40rem; margin-bottom: clamp(30px, 4vw, 54px); }

/* ── bento ────────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.tile {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  overflow: hidden;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
/* Composition fills a 3x3 without holes:
   row 1  [ tall ][ purple ][ amber ]
   row 2  [ tall ][ wide, 2 cols     ]
   row 3  [ full, 3 cols             ]  */
.tile-lg   { grid-row: span 2; }
.tile-wide { grid-column: span 2; }
.tile-full { grid-column: 1 / -1; }

.tile h3 { font-size: 1.16rem; letter-spacing: -0.015em; margin: 16px 0 8px; }
.tile p { color: var(--muted); font-size: 0.94rem; }

.tile-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--soft); color: var(--hue);
}
.tile-ico svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.tile-stat {
  display: block; margin-top: 18px;
  font-size: 1.7rem; font-weight: 750; letter-spacing: -0.03em;
  color: var(--hue);
}
.tile-stat em { font-size: 0.82rem; font-weight: 550; font-style: normal; color: var(--muted); margin-left: 6px; letter-spacing: 0; }

/* A soft wash of the tile's own hue, bottom-right. */
.tile::after {
  content: ""; position: absolute; right: -60px; bottom: -70px;
  width: 190px; height: 190px; border-radius: 50%;
  background: var(--soft); opacity: .5; z-index: -1;
}
.t-blue   { --hue: var(--blue);   --soft: var(--blue-sf); }
.t-green  { --hue: var(--green);  --soft: var(--green-sf); }
.t-pink   { --hue: var(--pink);   --soft: var(--pink-sf); }
.t-purple { --hue: var(--purple); --soft: var(--purple-sf); }
.t-amber  { --hue: var(--amber);  --soft: var(--amber-sf); }

/* ── portals ──────────────────────────────────────────────── */
.portals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.portal {
  position: relative;
  display: flex; flex-direction: column;
  padding: 0 22px 24px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.portal:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }

/* Arch cap in the portal's hue — the motif that ties the page together. */
.portal-cap {
  height: 92px; margin: 0 -22px 20px;
  background: var(--soft);
  border-radius: 0 0 90px 90px / 0 0 44px 44px;
  display: flex; align-items: center; justify-content: center;
}
.portal-cap span {
  width: 48px; height: 48px; border-radius: 16px;
  background: var(--hue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.18rem; font-weight: 750;
}
.portal h3 { font-size: 1.1rem; letter-spacing: -0.015em; }
.portal p { color: var(--muted); font-size: 0.9rem; margin-top: 7px; flex: 1 1 auto; }
.portal-go {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px; font-size: 0.88rem; font-weight: 700; color: var(--hue);
}
.portal-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur) var(--ease); }
.portal:hover .portal-go svg { transform: translateX(4px); }
.portal-n { position: absolute; top: 14px; right: 18px; font-size: 0.72rem; font-weight: 700; color: var(--hue); opacity: .65; }

/* ── stats band ───────────────────────────────────────────── */
.band { background: var(--terracotta); color: #fff; padding: clamp(40px, 5vw, 66px) 0; }
.band-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.stat b {
  display: block;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  font-weight: 750; letter-spacing: -0.035em; line-height: 1;
}
.stat span { display: block; margin-top: 8px; font-size: 0.9rem; opacity: .88; }

/* ── rail (a day) ─────────────────────────────────────────── */
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step { position: relative; padding-top: 30px; }
.step::before {
  content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px;
  background: var(--border);
}
.step:first-child::before { left: 11px; border-radius: 2px 0 0 2px; }
.step:last-child::before { right: 50%; }
.step-node {
  position: absolute; top: 0; left: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--hue);
}
.step-time { font-size: 0.78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hue); }
.step h3 { font-size: 1.04rem; margin: 6px 0 6px; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ── voices ───────────────────────────────────────────────── */
.voices { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
.quote {
  padding: clamp(28px, 4vw, 46px);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
}
.quote p { font-size: clamp(1.12rem, 1.9vw, 1.5rem); line-height: 1.42; letter-spacing: -0.015em; }
.quote footer { display: flex; flex-direction: column; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.quote strong { font-size: 0.98rem; }
.quote span { font-size: 0.86rem; color: var(--muted); }

.voice-cards { display: grid; gap: 16px; }
.vcard {
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.vc-ico { color: var(--c); font-size: 1.1rem; }
.vcard p { margin: 8px 0 10px; font-size: 0.97rem; }
.vcard small { color: var(--muted); font-size: 0.83rem; }

/* ── final CTA ────────────────────────────────────────────── */
.cta {
  position: relative; overflow: hidden;
  margin: clamp(24px, 4vw, 46px) auto;
  max-width: calc(var(--shell) - 48px);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--sage) 0%, #6a8865 100%);
  color: #fff;
  padding: clamp(44px, 6vw, 82px) 0;
  text-align: center;
}
.cta-in p { margin: 14px auto 0; max-width: 34rem; opacity: .92; }
.cta .hero-cta { justify-content: center; }

/* ── footer ───────────────────────────────────────────────── */
.foot { padding: 44px 0; border-top: 1px solid var(--border); }
.foot-in { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.foot-note { margin-top: 10px; font-size: 0.85rem; color: var(--muted); max-width: 26rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.9rem; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

/* ── scroll reveal ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 620ms var(--ease), transform 620ms var(--ease); }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }
.reveal.in { opacity: 1; transform: none; }

/* ── motion preference ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .tile:hover, .portal:hover { transform: none; }
}

/* ── responsive ───────────────────────────────────────────── */
@media (max-width: 1040px) {
  .portals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::before { display: none; }
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 8px 24px 18px;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-md);
    display: none;
  }
  .nav-links[data-open="true"] { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .nav-links a::after { display: none; }
  .burger { display: block; }

  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; }
  .arch { width: min(100%, 280px); }
  .chip-1 { left: -14px; }
  .chip-2 { right: -14px; }
  .chip-3 { left: 0; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-lg { grid-row: span 1; }
  .tile-wide { grid-column: span 2; }

  .voices { grid-template-columns: minmax(0, 1fr); }
  .band-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .bento, .portals, .rail, .band-in { grid-template-columns: minmax(0, 1fr); }
  .tile-wide { grid-column: span 1; }
  .hero-trust { gap: 18px; }
  .hero-trust li { min-width: 42%; }
  .marquee, .cta { border-radius: var(--r-lg); }
  .btn { width: 100%; justify-content: center; }
  .nav-side .btn-ink { display: none; }
}
