/* ==========================================================
   EF2W Landing Page
   Brand tokens taken from the EF2W logo:
   blue #1E43A8, magenta #E01B7A, red #C8102E, gold #F5A81C
   ========================================================== */

:root {
  --blue: #1E43A8;
  --blue-deep: #0D1F4E;
  --blue-navy: #122A66;
  --magenta: #E01B7A;
  --red: #C8102E;
  --gold: #F5A81C;
  --gold-dark: #D98E06;
  --ink: #131B2E;
  --muted: #5A6478;
  --line: #E4E8F1;
  --tint: #F3F6FC;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(19, 27, 46, 0.08);
  --shadow-md: 0 8px 28px rgba(19, 27, 46, 0.10);
  --shadow-lg: 0 20px 60px rgba(13, 31, 78, 0.28);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.15; }
h1, h2 { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--gold); }

a { text-decoration: none; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ================= Buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  padding: 11px 22px; border-radius: 10px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 12px; }
.btn-gold { background: var(--gold); color: var(--blue-deep); box-shadow: 0 4px 14px rgba(245, 168, 28, 0.35); }
.btn-gold:hover { background: #FFB931; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--tint); }
.btn-outline { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

/* ================= Nav ================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-logo { height: 44px; width: auto; display: block; }
.footer-logo { height: 40px; width: auto; background: var(--white); padding: 6px 10px; border-radius: 8px; }
.brand-mark {
  font-family: var(--font-body); font-weight: 800; font-style: italic;
  font-size: 26px; color: var(--blue); letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 4px;
}
.brand-mark-light { color: var(--white); }
.brand-tip {
  width: 0; height: 0; display: inline-block;
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  border-left: 12px solid var(--gold);
}
.brand-sub { font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 28px; margin-left: 8px; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--ink); padding: 6px 2px; }
.nav-links a:hover { color: var(--blue); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= Hero ================= */
.hero {
  position: relative; overflow: hidden;
  /* CHANGED: Swapped background radial gradient to solid flat navy setup */
  background: var(--blue-deep);
  color: var(--white);
  padding: 88px 0 110px;
}
/* CHANGED: Background glowing filter effects removed */
.hero-glow { display: none !important; }

.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow-dark { color: var(--magenta); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.hero h1 { font-size: clamp(42px, 5.4vw, 68px); margin-bottom: 20px; }
.hero-sub { font-size: 18px; color: rgba(255, 255, 255, 0.85); max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }

.hero-stats { display: flex; gap: 40px; list-style: none; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--gold); }
.hero-stats span { font-size: 13px; color: rgba(255, 255, 255, 0.7); }

/* ---------- Phone mockup ---------- */
.hero-phone { position: relative; display: flex; justify-content: center; }
.phone {
  width: 320px; background: #0A1636;
  border-radius: 42px; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transform: rotate(2deg);
}
.phone-notch { width: 110px; height: 22px; background: #0A1636; border-radius: 0 0 14px 14px; margin: 0 auto -22px; position: relative; z-index: 2; }
.phone-screen {
  background: #F7F8FC; border-radius: 32px;
  padding: 34px 16px 12px; color: var(--ink);
  font-size: 12px; overflow: hidden;
}
.ps-greeting { display: flex; flex-direction: column; margin-bottom: 12px; }
.ps-hi { font-size: 12px; color: var(--muted); }
.ps-name { font-size: 18px; font-weight: 800; }
.ps-streak {
  display: flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 12px; margin-bottom: 14px;
}
.ps-streak-num { font-weight: 800; font-size: 14px; }
.ps-streak-label { color: var(--muted); margin-right: auto; }
.ps-xpbar { width: 74px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
/* CHANGED: Swapped gradient track fill inside phone screen mockup to a solid brand token fill */
.ps-xpfill { display: block; width: 62%; height: 100%; background: var(--blue); }
.ps-xp { font-weight: 700; font-size: 11px; color: var(--muted); }
.ps-section { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.ps-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px; display: grid;
  grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 8px; row-gap: 6px; align-items: center;
}
/* CHANGED: Reconfigured style structures to neatly align and size the incoming vector icons */
.ps-icon-solid { display: inline-flex; align-items: center; justify-content: center; font-size: 14px; grid-row: 1; color: var(--muted); }
.ps-subj { font-weight: 700; font-size: 11.5px; }
.ps-bar { grid-column: 1 / 3; height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.ps-bar span { display: block; height: 100%; border-radius: 5px; }
.fill-blue { background: var(--blue); }
.fill-green { background: #1B9E5A; }
.fill-red { background: var(--red); }
.fill-gold { background: var(--gold); }
.ps-pct { grid-column: 1 / 3; font-size: 10px; color: var(--muted); text-align: right; margin-top: -4px; }
.ps-due {
  display: flex; align-items: center; gap: 8px;
  background: #EEF0FB; border-radius: 12px; padding: 11px 12px; margin-bottom: 12px;
}
.ps-due-num { font-size: 19px; font-weight: 800; color: var(--blue); }
.ps-due-label { color: var(--ink); margin-right: auto; }
.ps-due-btn { background: var(--white); border: 1px solid var(--line); border-radius: 9px; padding: 5px 12px; font-weight: 700; }
.ps-nav { display: flex; justify-content: space-between; padding: 9px 6px 4px; border-top: 1px solid var(--line); font-size: 9.5px; font-weight: 600; color: var(--muted); }
.ps-nav .active { color: var(--blue); font-weight: 800; }

.phone-badge {
  position: absolute; background: var(--white); color: var(--ink);
  font-size: 13px; font-weight: 700;
  padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; gap: 6px;
}
.phone-badge i { font-size: 13px; }
.phone-badge-streak { top: 40px; left: -6px; animation: float 5s ease-in-out infinite; color: #FF9F43; }
.phone-badge-score { bottom: 64px; right: -10px; animation: float 5s ease-in-out 1.4s infinite; color: #1B9E5A; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ================= Sections ================= */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
.section-head h2 em { color: var(--magenta); }
.section-sub { color: var(--muted); font-size: 17px; }
.section-head-light h2 em { color: var(--gold); }
.section-head-light .section-sub { color: rgba(255, 255, 255, 0.75); }

/* ================= Subject cards ================= */
.subject-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.subject-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.subject-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.subject-top { height: 108px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; }

/* CHANGED: Stripped linear gradients out of card heads to leverage solid brand tokens */
.subject-top-blue { background: var(--blue); }
.subject-top-magenta { background: var(--magenta); }
.subject-top-red { background: var(--red); }
.subject-top-gold { background: var(--gold-dark); }

/* CHANGED: Transformed emoji styles to hold smooth vector graphic layouts */
.subject-icon-solid { font-size: 28px; color: var(--white); display: inline-flex; align-items: center; justify-content: center; }
.subject-chip {
  background: rgba(255, 255, 255, 0.22); color: var(--white);
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.subject-body { padding: 20px 18px 22px; display: flex; flex-direction: column; flex: 1; }
.subject-body h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.subject-body p { font-size: 14px; color: var(--muted); flex: 1; }
.subject-meta { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.subject-meta span { display: inline-flex; align-items: center; gap: 6px; }
.subject-meta i { font-size: 12px; color: #1B9E5A; }
.subject-link { font-weight: 800; font-size: 14px; color: var(--blue); }
.subject-link:hover { color: var(--magenta); }

/* ================= Features ================= */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; font-size: 20px; margin-bottom: 16px;
}
/* CHANGED: Map flat vector glyph text coloring cleanly over minimal, solid backgrounds */
.fi-blue { background: #E7EDFB; color: var(--blue); }
.fi-magenta { background: #FCE7F1; color: var(--magenta); }
.fi-gold { background: #FDF2DC; color: var(--gold-dark); }
.fi-red { background: #FBE7E9; color: var(--red); }
.feature-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--muted); }

/* ================= Steps ================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 24px 26px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  background: var(--blue-deep); color: var(--gold); margin-bottom: 16px;
}
.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ================= Rewards ================= */
/* CHANGED: Removed radial gradient background on navy module wrapper */
.section-navy { background: var(--blue-deep); color: var(--white); }
.badge-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.badge {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px; padding: 18px 20px; min-width: 128px;
  transition: transform 0.18s ease, background 0.18s ease;
}
.badge:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.10); }

/* CHANGED: Scaled down icon sizes inside gamified profile tokens to fit standard layout frames */
.badge-icon-flat { font-size: 22px; margin-bottom: 6px; display: inline-flex; align-items: center; justify-content: center; }
.badge strong { font-size: 13.5px; }
.badge small { font-size: 11.5px; color: rgba(255, 255, 255, 0.65); }
.cert-note {
  display: flex; align-items: center; gap: 14px; justify-content: center;
  background: rgba(245, 168, 28, 0.10); border: 1px solid rgba(245, 168, 28, 0.35);
  border-radius: 14px; padding: 16px 22px; max-width: 620px; margin: 0 auto;
}
.cert-icon-solid { font-size: 22px; color: var(--gold); display: inline-flex; align-items: center; justify-content: center; }
.cert-note p { font-size: 14.5px; color: rgba(255, 255, 255, 0.88); }
.cert-note strong { color: var(--gold); }

/* ================= Colors for Flat UI Elements ================= */
.text-orange { color: #FF9F43; }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-blue { color: #54A0FF; }
.text-green { color: #1DD1A1; }
.text-magenta { color: var(--magenta); }

/* ================= CTA ================= */
/* CHANGED: Dropped the linear gradient here in favor of a solid brand magenta background */
.section-cta {
  background: var(--magenta);
  color: var(--white); text-align: center;
}
.cta-inner h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 14px; }
.cta-inner h2 em { color: var(--gold); }
.cta-inner p { font-size: 17px; color: rgba(255, 255, 255, 0.88); margin-bottom: 28px; }
.cta-fine { display: block; margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.7); }

/* ================= Footer ================= */
.footer { background: var(--blue-deep); color: rgba(255, 255, 255, 0.75); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.footer-brand p { font-size: 13.5px; margin-top: 14px; max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { color: var(--white); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.footer-col a { font-size: 14px; }
.footer-col a:hover { color: var(--gold); }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 20px; padding-bottom: 24px; }
.footer-base p { font-size: 13px; }

/* ================= Reveal on scroll ================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ================= Responsive ================= */
@media (max-width: 1020px) {
  .subject-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
}

@media (max-width: 760px) {
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--tint); }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-actions { margin-left: 0; }
  .nav-actions .btn-ghost { display: none; }
  .nav-inner { gap: 12px; }

  .section { padding: 68px 0; }
  .hero { padding: 64px 0 84px; }
  .steps, .feature-grid, .subject-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 26px; }
  .phone { width: 290px; }
  .phone-badge-score { right: 2px; }
  .phone-badge-streak { left: 2px; }
}

@media (max-width: 420px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
}