/* ═══════════════════════════════════════════
   Skoolari — home.css
   Marketing homepage styles
═══════════════════════════════════════════ */

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

:root {
  --navy:    #1a2744;
  --navy2:   #243058;
  --navy3:   #0f1a2e;
  --cream:   #f8f4ee;
  --cream2:  #f2ece2;
  --amber:   #d4831a;
  --ambL:    #f5a623;
  --green:   #2d7d5e;
  --greenL:  #3aab7e;
  --white:   #ffffff;
  --txt:     #2c2c2c;
  --muted:   #6b7280;
  --bdr:     #e0d9ce;
  --sh:      0 4px 24px rgba(26,39,68,.08);
  --shM:     0 8px 40px rgba(26,39,68,.14);
  --shL:     0 20px 60px rgba(26,39,68,.18);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--txt);
  line-height: 1.6;
  /* NOTE: overflow-x:hidden on body breaks position:sticky — do NOT add it here */
}

/* Contain horizontal overflow on the page wrapper instead */
body > *:not(#ea-nav) {
  max-width: 100vw;
  overflow-x: clip;
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; color: var(--navy); line-height: 1.2; }
p { color: var(--muted); }
a { text-decoration: none; color: inherit; }

/* ── LAYOUT ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }

/* ════════════════════════════════
   NAV
════════════════════════════════ */
#ea-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bdr);
  transition: box-shadow .3s;
}
#ea-nav.scrolled { box-shadow: 0 2px 20px rgba(26,39,68,.10); }
.nav-inner {
  display: flex; align-items: center; gap: 2rem;
  height: 68px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem; font-weight: 700;
  color: var(--navy); flex-shrink: 0;
}
.nav-logo span { color: var(--amber); }
.nav-links {
  display: flex; gap: 2rem; list-style: none;
  margin-left: .5rem;
}
.nav-links a {
  font-size: .88rem; font-weight: 500;
  color: var(--muted); transition: color .15s;
}
.nav-links a:hover { color: var(--navy); }
.nav-spacer { flex: 1; }
.nav-cta {
  display: flex; gap: .75rem; align-items: center;
}
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: 9px; font-size: .88rem; font-weight: 600; cursor: pointer; border: none; font-family: 'DM Sans', sans-serif; transition: all .18s; text-decoration: none; }
.btn-navy  { background: var(--navy);  color: #fff; }
.btn-navy:hover  { background: var(--navy2); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,39,68,.25); }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: var(--ambL); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(212,131,26,.35); }
.btn-out   { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-out:hover   { background: var(--navy); color: #fff; }
.btn-outline-w { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline-w:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-lg { padding: 14px 30px; font-size: .95rem; border-radius: 11px; }

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ════════════════════════════════
   HERO
════════════════════════════════ */
#hero {
  background: linear-gradient(150deg, #0a1628 0%, #1a2744 55%, #1e3a6e 100%);
  padding: 6rem 0 5rem;
  position: relative; overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M0 0h80v80H0z'/%3E%3C/g%3E%3C/svg%3E");
}
#hero::after {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-title {
  font-size: 3.2rem; font-weight: 700;
  color: #ffffff; line-height: 1.12;
  margin-bottom: 1.4rem;
  letter-spacing: -.5px;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.hero-title span { color: var(--ambL); }
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  line-height: 1.75; margin-bottom: 2.2rem;
  max-width: 460px;
  font-weight: 400;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem; font-weight: 700;
  color: #ffffff; line-height: 1;
}
.hero-stat-lbl {
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
  font-weight: 500;
}
.btn-outline-w {
  background: rgba(255,255,255,.12);
  color: #ffffff;
  border: 2px solid rgba(255,255,255,.75);
  font-weight: 700;
}
.btn-outline-w:hover {
  background: rgba(255,255,255,.22);
  border-color: #ffffff;
  transform: translateY(-1px);
}

/* Hero mockup */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.mockup-shell {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; overflow: hidden;
  width: 100%; max-width: 480px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.mockup-bar {
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-body { padding: 20px; }
.mockup-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 14px 16px;
  margin-bottom: 10px;
}
.mockup-label { font-size: .65rem; font-weight: 700; color: rgba(255,255,255,.4); letter-spacing: .8px; text-transform: uppercase; margin-bottom: 6px; }
.mockup-q { font-size: .82rem; color: rgba(255,255,255,.85); line-height: 1.5; margin-bottom: 8px; }
.mockup-src { display: inline-flex; align-items: center; gap: 4px; background: rgba(245,166,35,.18); border: 1px solid rgba(245,166,35,.3); color: var(--ambL); border-radius: 6px; padding: 2px 8px; font-size: .67rem; font-weight: 600; }
.mockup-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.mockup-opt { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 6px; padding: 6px 10px; font-size: .72rem; color: rgba(255,255,255,.65); }
.mockup-opt.correct { border-color: rgba(45,125,94,.6); background: rgba(45,125,94,.15); color: #86efac; }
.mockup-grade-bar { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.mockup-grade-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--ambL); line-height: 1; }
.mockup-grade-info { flex: 1; }
.mockup-grade-name { font-size: .8rem; color: rgba(255,255,255,.8); font-weight: 600; }
.mockup-grade-sub { font-size: .7rem; color: rgba(255,255,255,.45); }
.mockup-progress { height: 5px; background: rgba(255,255,255,.1); border-radius: 5px; overflow: hidden; margin-top: 6px; }
.mockup-progress-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--ambL)); border-radius: 5px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-title { font-size: 2.4rem; }
}

/* ════════════════════════════════
   TRUSTED BY STRIP
════════════════════════════════ */
#trusted {
  background: var(--cream);
  border-top: 1px solid var(--bdr);
  border-bottom: 1px solid var(--bdr);
  padding: 1.6rem 0;
}
.trusted-inner {
  display: flex; align-items: center; gap: 2.5rem;
  flex-wrap: wrap; justify-content: center;
}
.trusted-label { font-size: .75rem; font-weight: 700; color: var(--muted); letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; }
.trusted-items { display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; }
.trusted-item { font-size: .88rem; font-weight: 600; color: var(--navy); opacity: .55; white-space: nowrap; }

/* ════════════════════════════════
   FEATURES
════════════════════════════════ */
#features { background: var(--white); }
.section-header { text-align: center; max-width: 620px; margin: 0 auto 3.5rem; }
.eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--amber); background: rgba(212,131,26,.1);
  border-radius: 20px; padding: 4px 14px; margin-bottom: .9rem;
}
.section-title { font-size: 2.3rem; margin-bottom: .75rem; }
.section-sub { font-size: 1rem; color: var(--muted); line-height: 1.7; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .features-grid { grid-template-columns: 1fr; } }

.feat-card {
  background: var(--white);
  border: 1.5px solid var(--bdr);
  border-radius: 16px; padding: 2rem 1.75rem;
  transition: all .2s; position: relative;
  overflow: hidden;
}
.feat-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--ambL));
  opacity: 0; transition: opacity .2s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shM); border-color: transparent; }
.feat-card:hover::before { opacity: 1; }
.feat-icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.2rem;
}
.feat-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; font-family: 'DM Sans', sans-serif; }
.feat-desc { font-size: .875rem; color: var(--muted); line-height: 1.65; }

/* ════════════════════════════════
   HOW IT WORKS
════════════════════════════════ */
#how { background: var(--cream); }
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute; top: 34px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bdr), var(--bdr), transparent);
  z-index: 0;
}
@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr 1fr; } .steps-grid::before { display: none; } }
@media (max-width: 480px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--bdr);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700; color: var(--navy);
  margin: 0 auto 1.2rem;
  box-shadow: var(--sh);
  transition: all .2s;
}
.step-card:hover .step-num { background: var(--navy); color: var(--ambL); border-color: var(--navy); transform: scale(1.08); }
.step-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; font-family: 'DM Sans', sans-serif; }
.step-desc { font-size: .83rem; color: var(--muted); line-height: 1.6; }

/* ════════════════════════════════
   CAPABILITY DEEP DIVE
════════════════════════════════ */
#capabilities { background: var(--white); }
.cap-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; margin-bottom: 5rem;
}
.cap-row:last-child { margin-bottom: 0; }
.cap-row.reverse { direction: rtl; }
.cap-row.reverse > * { direction: ltr; }
@media (max-width: 820px) { .cap-row, .cap-row.reverse { grid-template-columns: 1fr; direction: ltr; gap: 2rem; } }

.cap-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--amber); margin-bottom: .75rem; }
.cap-title { font-size: 1.9rem; margin-bottom: 1rem; }
.cap-desc { font-size: .93rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; }
.cap-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.cap-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--txt); }
.cap-list li::before { content: '✓'; background: rgba(45,125,94,.12); color: var(--green); width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; flex-shrink: 0; margin-top: 2px; }

.cap-visual {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  border-radius: 20px; padding: 2rem;
  box-shadow: var(--shL);
  overflow: hidden; position: relative;
}
.cap-visual::after {
  content: ''; position: absolute;
  bottom: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(245,166,35,.08);
}
.cv-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cv-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cv-label { font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.65); flex: 1; }
.cv-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; flex: 2; }
.cv-bar-fill { height: 100%; border-radius: 6px; }
.cv-val { font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.9); min-width: 32px; text-align: right; }
.cv-bignum { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: var(--ambL); line-height: 1; margin-bottom: 4px; }
.cv-bignum-lbl { font-size: .75rem; color: rgba(255,255,255,.5); }
.cv-divider { height: 1px; background: rgba(255,255,255,.08); margin: 14px 0; }
.cv-tag { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 7px; padding: 6px 12px; font-size: .75rem; color: rgba(255,255,255,.75); margin: 4px; }

/* ════════════════════════════════
   TESTIMONIALS
════════════════════════════════ */
#testimonials {
  background: linear-gradient(160deg, var(--navy3) 0%, var(--navy) 100%);
  padding: 5rem 0;
}
#testimonials .section-title { color: #fff; }
#testimonials .section-sub { color: rgba(255,255,255,.6); }
#testimonials .eyebrow { color: var(--ambL); background: rgba(245,166,35,.12); }

.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
@media (max-width: 860px) { .testi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .testi-grid { grid-template-columns: 1fr; } }

.testi-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 1.75rem;
  transition: all .2s;
}
.testi-card:hover { background: rgba(255,255,255,.09); transform: translateY(-3px); }
.testi-stars { color: var(--ambL); font-size: .9rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testi-quote { font-size: .88rem; color: rgba(255,255,255,.8); line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700;
  font-family: 'Playfair Display', serif; flex-shrink: 0;
}
.testi-name { font-size: .85rem; font-weight: 700; color: #fff; }
.testi-role { font-size: .75rem; color: rgba(255,255,255,.45); margin-top: 1px; }

/* ════════════════════════════════
   STATS BAND
════════════════════════════════ */
#stats-band { background: var(--amber); padding: 3rem 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; text-align: center; }
@media (max-width: 640px) { .stats-inner { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: #fff; line-height: 1; }
.stat-lbl { font-size: .8rem; color: rgba(255,255,255,.75); margin-top: 4px; font-weight: 500; }

/* ════════════════════════════════
   PRICING / CTA
════════════════════════════════ */
#cta { background: var(--cream); }
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a6e 100%);
  border-radius: 24px; padding: 4rem 3.5rem;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shL);
}
.cta-box::before {
  content: ''; position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(245,166,35,.08);
}
.cta-box::after {
  content: ''; position: absolute;
  bottom: -80px; left: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.cta-box h2 { color: #fff; font-size: 2.4rem; margin-bottom: .75rem; position: relative; z-index: 1; }
.cta-box p { color: rgba(255,255,255,.68); font-size: 1rem; margin-bottom: 2rem; position: relative; z-index: 1; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-note { font-size: .78rem; color: rgba(255,255,255,.4); margin-top: 1.25rem; position: relative; z-index: 1; }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
#ea-footer {
  background: var(--navy3);
  padding: 3.5rem 0 2rem;
  color: rgba(255,255,255,.55);
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand .nav-logo { font-size: 1.35rem; margin-bottom: .75rem; display: block; color: #fff; }
.footer-brand .nav-logo span { color: var(--ambL); }
.footer-desc { font-size: .83rem; line-height: 1.7; max-width: 260px; }
.footer-col-title { font-size: .75rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { font-size: .83rem; color: rgba(255,255,255,.5); transition: color .15s; }
.footer-links a:hover { color: var(--ambL); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1.75rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: .78rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,.4); transition: color .15s; font-size: .78rem; }
.footer-bottom-links a:hover { color: var(--ambL); }

/* ════════════════════════════════
   SCROLL ANIMATION
════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }
