/* ============================================================
   EduFreedom — Coming Soon landing page
   Clean & bright edu-tech theme
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* palette */
  --ink:        #0f172a;   /* near-black navy text */
  --ink-soft:   #475569;   /* muted body text */
  --ink-faint:  #64748b;
  --line:       #e2e8f0;   /* borders */
  --bg:         #ffffff;
  --bg-soft:    #f6f9fc;   /* alt sections */
  --bg-tint:    #eef4ff;

  --blue:       #2563eb;
  --blue-dark:  #1d4ed8;
  --teal:       #14b8a6;
  --teal-dark:  #0d9488;

  --grad: linear-gradient(120deg, var(--blue) 0%, var(--teal) 100%);
  --grad-soft: linear-gradient(120deg, #3b82f6 0%, #2dd4bf 100%);

  /* type */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* spacing / shape */
  --radius:      14px;
  --radius-lg:   22px;
  --radius-pill: 999px;
  --shadow-sm:  0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow-md:  0 8px 24px rgba(15,23,42,.08);
  --shadow-lg:  0 20px 50px rgba(15,23,42,.14);
  --shadow-cta: 0 14px 30px rgba(37,99,235,.35);

  --container: 1120px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.container-narrow { max-width: 760px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .85rem; --pad-x: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: var(--pad-y) var(--pad-x);
  border: 1px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn-sm { --pad-y: .55rem; --pad-x: 1.05rem; font-size: .92rem; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-cta); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(37,99,235,.42); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); background: rgba(255,255,255,.9); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.2rem; }
.brand-mark { border-radius: 8px; }
.brand-accent { color: var(--blue); }

.nav { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 1.6rem; padding: 0; }
.nav-menu a { font-weight: 600; color: var(--ink-soft); transition: color .18s; }
.nav-menu a:hover { color: var(--ink); }
.nav-menu .btn { color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  align-items: center; justify-content: center; background: transparent;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.blob-1 { width: 480px; height: 480px; background: #bfdbfe; top: -140px; right: -120px; }
.blob-2 { width: 420px; height: 420px; background: #99f6e4; top: 120px; left: -140px; opacity: .45; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 80%);
  opacity: .5;
}
.hero-inner { text-align: center; max-width: 780px; margin-inline: auto; }

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--ink-soft); font-weight: 600; font-size: .88rem;
  padding: .4rem .9rem; border-radius: var(--radius-pill); margin-bottom: 1.4rem;
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(20,184,166,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(20,184,166,.55);} 70% { box-shadow: 0 0 0 10px rgba(20,184,166,0);} 100% { box-shadow: 0 0 0 0 rgba(20,184,166,0);} }

.hero-title { font-size: clamp(2.3rem, 6vw, 4rem); margin-bottom: 1.1rem; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--ink-soft); max-width: 620px; margin: 0 auto 2.2rem; }

/* Countdown */
.countdown { display: flex; align-items: flex-start; justify-content: center; gap: clamp(.4rem, 2vw, 1rem); margin-bottom: 2.4rem; }
.cd-item {
  display: flex; flex-direction: column; align-items: center;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md);
  border-radius: var(--radius); padding: .9rem clamp(.7rem, 2.5vw, 1.4rem); min-width: clamp(66px, 18vw, 96px);
}
.cd-num { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cd-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); margin-top: .5rem; font-weight: 600; }
.cd-sep { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 700; color: var(--line); align-self: center; padding-bottom: 1.1rem; }

/* Waitlist form */
.waitlist { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; max-width: 500px; margin-inline: auto; position: relative; }
.waitlist-input {
  flex: 1 1 240px; min-width: 0;
  font: inherit; font-size: 1rem; padding: .85rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: #fff; color: var(--ink); transition: border-color .18s, box-shadow .18s;
}
.waitlist-input::placeholder { color: var(--ink-faint); }
.waitlist-input:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.waitlist.invalid .waitlist-input { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.12); }
.form-msg { flex-basis: 100%; font-size: .9rem; font-weight: 600; min-height: 1.2em; margin-top: .2rem; }
.form-msg.error { color: #dc2626; }
.form-msg.success { color: var(--teal-dark); }
.form-msg-light.error { color: #fecaca; }
.form-msg-light.success { color: #ccfbf1; }
.hero-note { font-size: .86rem; color: var(--ink-faint); margin-top: 1rem; }

/* ---------- Trust strip ---------- */
.trust { padding: 2.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.trust-item { text-align: center; }
.trust-item .ico { width: 40px; height: 40px; margin: 0 auto .7rem; stroke: var(--blue); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trust-item h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.trust-item p { color: var(--ink-soft); font-size: .95rem; max-width: 30ch; margin-inline: auto; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.2rem, 5vw, 3.2rem); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; color: var(--blue); margin-bottom: .7rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.section-lead { color: var(--ink-soft); font-size: 1.08rem; margin-top: .9rem; }

/* ---------- Card grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #cbd5e1; }
.card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; font-size: 1.7rem; border-radius: 14px;
  background: var(--bg-tint); margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.card p { color: var(--ink-soft); }

/* ---------- About + stats ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-copy .eyebrow { text-align: left; }
.about-copy h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.about-copy p { color: var(--ink-soft); margin-bottom: 1rem; font-size: 1.05rem; }
.about-copy .btn { margin-top: .6rem; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem 1.2rem; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-num { display: block; font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { display: block; margin-top: .5rem; color: var(--ink-soft); font-weight: 600; font-size: .92rem; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.testi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.testi blockquote { font-size: 1.06rem; color: var(--ink); margin-bottom: 1.3rem; }
.testi blockquote::before { content: "\201C"; color: var(--teal); font-size: 2.4rem; line-height: 0; vertical-align: -.35em; margin-right: .1em; font-family: Georgia, serif; }
.testi figcaption { display: flex; align-items: center; gap: .8rem; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--grad); color: #fff; font-weight: 700; font-size: .95rem;
}
.testi figcaption strong { display: block; font-size: .98rem; }
.testi figcaption small { color: var(--ink-faint); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: .8rem; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 1.3rem; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; font-weight: 700; font-size: 1.05rem;
  padding: 1.15rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--blue); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); padding-bottom: 1.2rem; margin-top: -.3rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; position: relative; overflow: hidden; }
.cta-inner { text-align: center; max-width: 640px; margin-inline: auto; position: relative; }
.cta-title { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: .8rem; }
.cta-sub { font-size: 1.1rem; opacity: .94; margin-bottom: 2rem; }
.waitlist-lg .waitlist-input { padding: 1rem 1.3rem; }
.waitlist-lg { max-width: 540px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: clamp(3rem, 6vw, 4rem) 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand { color: #fff; margin-bottom: .9rem; }
.site-footer .brand-accent { color: #7dd3fc; }
.footer-brand p { max-width: 34ch; color: #94a3b8; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { color: #94a3b8; transition: color .18s; }
.footer-col a:hover { color: #fff; }
.footer-note { color: #94a3b8; font-size: .92rem; margin-bottom: 1rem; }
.social { flex-direction: row !important; gap: .7rem !important; margin-top: 1.3rem; }
.social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid #334155; border-radius: 10px; }
.social a:hover { background: #1e293b; border-color: #475569; }
.social svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #1e293b; color: #64748b; font-size: .88rem; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
/* Only hide-then-reveal when JS is present to bring elements back (see .js on <html>). */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .3rem;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.4rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  .nav-menu li a { padding: .7rem .2rem; display: block; }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu .btn { margin-top: .5rem; text-align: center; }
  .trust-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .cd-sep { display: none; }
  .countdown { gap: .5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}
