/* =============================================
   mathOmeter – Design System
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --teal:       #0d9488;
  --teal-light: #0f9d8e;
  --teal-dark:  #0f766e;
  --orange:     #f97316;
  --orange-dark:#ea6c08;
  --bg:         #f8fafc;
  --bg2:        #f1f5f9;
  --bg3:        #e9eef5;
  --surface:    #ffffff;
  --surface2:   #f0f4f8;
  --border:     rgba(0,0,0,.09);
  --text:       #1e293b;
  --text-muted: #64748b;
  --white:      #ffffff;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; border-radius: 50%; object-fit: cover; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm  { font-size: .82rem; padding: 8px 18px; }
.btn-md  { font-size: .9rem;  padding: 11px 24px; }
.btn-lg  { font-size: 1rem;   padding: 14px 30px; }

.btn-teal        { background: var(--teal); color: #fff !important; }
.btn-teal:hover  { background: var(--teal-light); box-shadow: 0 6px 24px rgba(13,148,136,.4); }

.btn-orange       { background: var(--orange); color: #fff !important; }
.btn-orange:hover { background: var(--orange-dark); box-shadow: 0 6px 24px rgba(249,115,22,.4); }

.btn-white        { background: var(--text); color: #fff; }
.btn-white:hover  { box-shadow: 0 6px 24px rgba(30,41,59,.25); }

.btn-outline      { background: transparent; border-color: rgba(0,0,0,.25); color: var(--text); }
.btn-outline:hover{ border-color: var(--text); background: rgba(0,0,0,.05); }

.btn-outline-teal      { background: transparent; border-color: var(--teal); color: var(--teal-light); }
.btn-outline-teal:hover{ background: rgba(13,148,136,.12); box-shadow: 0 4px 20px rgba(13,148,136,.2); }

.play-icon { font-size: .7em; opacity: .9; }

/* ── Nav ─────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(248,250,252,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { font-size: 1.35rem; font-weight: 800; letter-spacing: -.5px; }
.logo-math    { color: var(--orange); }
.logo-ometer  { color: #64748b; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .18s;
}
.nav-links a:hover { color: var(--text); }
.nav-login { border: 1px solid var(--border); padding: 6px 16px; border-radius: 50px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .2s; }

/* ── Section labels / titles ─────────────────── */
.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--teal-light);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 52px;
}
.accent { color: var(--teal-light); }

/* ── HERO ────────────────────────────────────── */
.hero {
  padding: 140px 24px 100px;
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, rgba(13,148,136,.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(249,115,22,.07) 0%, transparent 60%),
    var(--bg);
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13,148,136,.15);
  border: 1px solid rgba(13,148,136,.3);
  color: var(--teal-light);
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--teal-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100%{ box-shadow: 0 0 0 0 rgba(20,184,166,.6); }
  50%     { box-shadow: 0 0 0 6px rgba(20,184,166,0); }
}
.hero-headline {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-social-proof { display: flex; align-items: center; gap: 16px; }
.avatars { display: flex; }
.avatars img {
  width: 36px; height: 36px;
  border: 2px solid var(--bg);
  margin-right: -10px;
  border-radius: 50%;
}
.proof-text { font-size: .8rem; color: var(--text-muted); }
.proof-text strong { display: block; color: var(--text); font-size: .75rem; letter-spacing: .06em; }
.stars { color: #fbbf24; }

/* ── Hero Visual ─────────────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-value {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  animation: floatCard 6s ease-in-out infinite;
}
.card-value:nth-child(2) { animation-delay: 1.5s; }
.card-value:nth-child(3) { animation-delay: 3s; }
.card-value--featured {
  border-color: var(--orange);
  background: linear-gradient(135deg, rgba(249,115,22,.06), var(--surface));
  box-shadow: 0 4px 24px rgba(249,115,22,.12);
}
.value-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.value-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.value-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,.10);
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%,100%{ transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
.card-main {
  width: 300px;
  left: 0; top: 20px;
  animation-delay: 0s;
}
.card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.card-avatar img { width: 40px; height: 40px; border-radius: 50%; }
.card-name  { font-weight: 700; font-size: .9rem; color: var(--text); }
.card-level { font-size: .75rem; color: var(--teal); }
.verified-badge {
  margin-left: auto;
  background: rgba(13,148,136,.2);
  color: var(--teal-light);
  font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 50px;
}
.progress-section { margin-bottom: 14px; }
.progress-label { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-muted); margin-bottom: 6px; }
.progress-pct { color: var(--teal-light); font-weight: 700; }
.progress-bar { height: 6px; background: rgba(0,0,0,.08); border-radius: 6px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-light)); border-radius: 6px; transition: width 1.2s ease; }
.streak-row { display: flex; gap: 6px; margin-bottom: 14px; }
.streak-item {
  flex: 1; text-align: center;
  padding: 5px 2px;
  border-radius: 6px;
  font-size: .68rem; font-weight: 700;
  background: rgba(0,0,0,.06);
  color: var(--text-muted);
}
.streak-item.active { background: var(--teal); color: #fff; }
.achievement-toast {
  background: linear-gradient(135deg, rgba(249,115,22,.12), rgba(249,115,22,.06));
  border: 1px solid rgba(249,115,22,.35);
  color: #c2560a;
  font-size: .78rem; font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}
.card-score {
  width: 160px;
  right: 20px; top: 0;
  text-align: center;
  animation-delay: 1.5s;
}
.score-label { font-size: .72rem; color: var(--text-muted); margin-bottom: 4px; }
.score-big { font-size: 2.8rem; font-weight: 900; color: var(--teal); line-height: 1; }
.score-big span { font-size: 1.4rem; }
.score-sub { font-size: .7rem; color: var(--text-muted); margin: 6px 0; }
.score-bar { height: 4px; background: rgba(0,0,0,.08); border-radius: 4px; overflow: hidden; }
.score-fill { height: 100%; background: var(--teal-light); border-radius: 4px; }
.card-common-core {
  display: flex; align-items: center; gap: 10px;
  width: 160px;
  right: 20px; bottom: 30px;
  animation-delay: 3s;
}
.cc-seal {
  width: 36px; height: 36px;
  background: var(--teal); color: #fff;
  font-size: .9rem; font-weight: 900;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cc-text { font-size: .75rem; color: var(--text-muted); }
.cc-text strong { color: var(--text); }
.floating-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: .75rem; font-weight: 700;
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  animation: floatBadge 4s ease-in-out infinite;
}
@keyframes floatBadge {
  0%,100%{ transform: translateY(0) rotate(-2deg); }
  50%     { transform: translateY(-8px) rotate(1deg); }
}
.badge-students { left: 20px; bottom: 20px; color: var(--teal-light); animation-delay: 1s; }
.badge-rating   { right: 0; bottom: 120px; color: #fbbf24; animation-delay: 2.5s; }

/* ── Paths Section ───────────────────────────── */
.paths-section { padding: 90px 0; background: var(--bg2); border-top: 1px solid var(--border); }
.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.path-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.path-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.13);
  border-color: var(--teal);
}
.path-card--featured {
  border-color: var(--orange);
  background: linear-gradient(160deg, rgba(249,115,22,.06), var(--surface));
  box-shadow: 0 4px 24px rgba(249,115,22,.10);
}
.path-card--featured:hover { border-color: var(--orange); box-shadow: 0 16px 48px rgba(249,115,22,.18); }
.path-badge-top {
  position: absolute;
  top: -12px; left: 24px;
  background: var(--orange);
  color: #fff;
  font-size: .72rem; font-weight: 700;
  padding: 3px 12px;
  border-radius: 50px;
}
.path-icon { font-size: 2rem; margin-bottom: 10px; }
.path-grade { font-size: .78rem; font-weight: 700; color: var(--teal-light); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.path-title { font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.path-desc  { font-size: .87rem; color: var(--text-muted); margin-bottom: 18px; line-height: 1.5; }
.path-topics { margin-bottom: 24px; }
.path-topics li {
  font-size: .82rem;
  color: var(--text-muted);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.path-topics li::before { content: "→"; color: var(--teal-light); }

/* ── Features ────────────────────────────────── */
.features-section { padding: 90px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.12); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.teal-bg   { background: rgba(13,148,136,.12); }
.orange-bg { background: rgba(249,115,22,.12); }
.feature-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.feature-desc  { font-size: .85rem; color: var(--text-muted); line-height: 1.55; }

/* ── Stats ───────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-light));
  padding: 56px 24px;
}
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}
.stat-item { text-align: center; }
.stat-num  { font-size: 2.4rem; font-weight: 900; color: #fff; }
.stat-label{ font-size: .85rem; color: rgba(255,255,255,.75); margin-top: 4px; }
.stat-divider { width: 1px; height: 60px; background: rgba(255,255,255,.2); }

/* ── CTA ─────────────────────────────────────── */
.cta-section {
  padding: 90px 24px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(249,115,22,.08) 0%, transparent 70%),
    var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
}
.cta-headline { font-size: 1.9rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.cta-sub      { font-size: .95rem; color: var(--text-muted); }
.cta-sub strong { color: var(--orange); }

/* ── Resources ───────────────────────────────── */
.resources-section { padding: 90px 0; background: var(--bg2); border-top: 1px solid var(--border); }
.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.resource-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
}
.resource-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.12); }
.resource-type {
  display: inline-block;
  font-size: .68rem; font-weight: 700;
  padding: 3px 10px; border-radius: 50px;
  margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: .08em;
}
.resource-type.pdf         { background: rgba(59,130,246,.12); color: #1d4ed8; }
.resource-type.visual      { background: rgba(124,58,237,.12); color: #6d28d9; }
.resource-type.interactive { background: rgba(249,115,22,.12); color: #c2560a; }
.resource-type.video       { background: rgba(16,185,129,.12); color: #065f46; }
.resource-icon { font-size: 2rem; margin-bottom: 12px; }
.resource-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.resource-desc  { font-size: .83rem; color: var(--text-muted); margin-bottom: 18px; line-height: 1.5; }

/* ── Testimonials ────────────────────────────── */
.testimonials-section { padding: 90px 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.11); }
.testimonial-card--featured {
  border-color: var(--teal);
  box-shadow: 0 4px 32px rgba(13,148,136,.15);
}
.stars-row { color: #fbbf24; font-size: 1rem; margin-bottom: 12px; }
.testimonial-quote { font-size: .9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 40px; height: 40px; }
.testimonial-author strong { display: block; font-size: .88rem; color: var(--text); }
.testimonial-author span { font-size: .78rem; color: var(--text-muted); }

/* ── Contact Us ────────────────────────────── */
.contact-section { padding: 90px 0; background: var(--bg); }
.contact-inner { text-align: left; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  margin-top: 48px;
  text-align: left;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); padding: 20px; border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(13,148,136,.12); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.contact-icon.orange { background: rgba(249,115,22,.12); color: var(--orange); }
.contact-item h4 { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.contact-item p { font-size: .85rem; color: var(--text-muted); margin: 0; }

.contact-form {
  background: var(--surface); padding: 32px;
  border-radius: var(--radius-md); border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.04);
}
.form-group { margin-bottom: 20px; }
.form-control {
  width: 100%; padding: 14px 16px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: .95rem;
  color: var(--text); outline: none; transition: border-color .2s;
}
.form-control::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-control:focus { border-color: var(--teal); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── Footer ──────────────────────────────────── */
.footer { background: var(--bg3); border-top: 1px solid var(--border); padding-top: 72px; color: var(--text); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}
.footer-logo { font-size: 1.5rem; display: inline-block; margin-bottom: 14px; }
.footer-tagline { font-size: .85rem; color: var(--text-muted); margin-bottom: 22px; max-width: 280px; line-height: 1.6; }
.footer-socials { display: flex; gap: 14px; }
.social-link {
  width: 36px; height: 36px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  transition: background .18s, border-color .18s;
}
.social-link:hover { background: var(--teal); border-color: var(--teal); }
.footer-col h4 { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .84rem; color: var(--text-muted); transition: color .18s; }
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--text-muted); transition: color .18s; }
.footer-legal a:hover { color: var(--text); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid   { grid-template-columns: repeat(2, 1fr); }
  .resources-grid  { grid-template-columns: repeat(2, 1fr); }
  .hero-visual     { display: none; }
  .hero-inner      { grid-template-columns: 1fr; }
  .hero-text       { text-align: center; }
  .hero-ctas       { justify-content: center; }
  .hero-social-proof { justify-content: center; }
  .hero-sub        { margin-left: auto; margin-right: auto; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .paths-grid        { grid-template-columns: 1fr; }
  .features-grid     { grid-template-columns: 1fr; }
  .resources-grid    { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid      { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid        { flex-direction: column; }
  .stat-divider      { width: 60px; height: 1px; }
  .cta-inner         { flex-direction: column; text-align: center; }
  .section-title     { font-size: 1.6rem; }
  .nav-links         { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(248,250,252,.97); border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 16px; }
  .nav-links.open    { display: flex; }
  .nav-hamburger     { display: flex; }
  .footer-grid       { grid-template-columns: 1fr; }
}
