/* ══════════════════════════════════════════════
   JONOM Tech+ Training — main.css
   Clean, minimal, professional learning platform
   ══════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────── */
:root {
  --brand:        #F5A623;
  --brand-dark:   #d4891a;
  --brand-pale:   #fff8ec;
  --brand-mid:    #fde9bc;
  --dark:         #111827;
  --text:         #1f2937;
  --muted:        #6b7280;
  --light:        #9ca3af;
  --border:       #e5e7eb;
  --bg:           #ffffff;
  --bg-subtle:    #f9fafb;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.10);
  --radius:       12px;
  --radius-sm:    8px;
  --radius-pill:  999px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --header-h:     72px;
  --container:    1160px;
  --px:           40px;
  --transition:   0.22s ease;
}

/* ── Reset & Base ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Container ─────────────────────────────── */
.container {
  max-width: var(--container);
  padding-left: var(--px);
  padding-right: var(--px);
  margin: 0 auto;
  width: 100%;
}

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border: 2px solid var(--brand);
  box-shadow: 0 2px 12px rgba(245,166,35,.3);
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,166,35,.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn-secondary:hover {
  background: var(--brand-pale);
  transform: translateY(-1px);
}
.btn-secondary:active { transform: translateY(0); }

/* ══════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.logo:hover { opacity: .8; }

.logo-img { height: 36px; width: auto; vertical-align: middle; }

.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -.02em;
}

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--brand); }
.nav-link:hover::after { transform: scaleX(1); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-login {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  transition: all var(--transition);
}
.btn-login:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-pale);
}

.btn-register {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--brand);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  transition: all var(--transition);
}
.btn-register:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-1px);
}

.avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all var(--transition);
}
.avatar-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-pale);
}

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  flex-shrink: 0;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 80px;
  overflow: hidden;
  position: relative;
}

/* Subtle background decor */
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 30%, rgba(245,166,35,.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 520px;
}

/* ── Hero Left ──────────────────────────────── */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--brand-pale);
  border: 1px solid var(--brand-mid);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  width: fit-content;
  animation: fadeInUp .5s ease both;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}

/* Heading */
.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 400;
  line-height: 1.12;
  color: var(--dark);
  letter-spacing: -.025em;
  animation: fadeInUp .5s .1s ease both;
}
.hero-heading em,
.hero-heading .heading-accent {
  font-style: normal;
  font-weight: 300;
  color: #b0b8c4;
}

/* Sub */
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 460px;
  animation: fadeInUp .5s .2s ease both;
}

/* CTA row */
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp .5s .3s ease both;
}

/* Stats strip */
.stats-strip {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 8px;
  animation: fadeInUp .5s .4s ease both;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 20px;
}
.stat:first-child { padding-left: 0; }
.stat strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--dark);
  font-weight: 400;
}
.stat span {
  font-size: 12px;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Hero Right ─────────────────────────────── */
.hero-right {
  position: relative;
  height: 440px;
  animation: fadeIn .7s .2s ease both;
}

.hero-blob {
  position: absolute;
  bottom: -40px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245,166,35,.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.img-grid {
  position: relative;
  height: 100%;
  z-index: 1;
}

.img-card {
  position: absolute;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
}
.img-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}

.img-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}

.card-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}

.card-icon {
  width: 44px;
  height: 44px;
  opacity: .7;
}
.card-icon svg { width: 100%; height: 100%; }

/* Individual card positions and colors */
.img-card--a {
  top: 0;
  left: 0;
  width: 52%;
  height: 54%;
  background: linear-gradient(135deg, #3a2a1a 0%, #d4891a 100%);
  color: rgba(255,255,255,.9);
  stroke: rgba(255,255,255,.9);
}

.img-card--b {
  top: 0;
  right: 0;
  width: 44%;
  height: 42%;
  background: linear-gradient(135deg, #fff8ec 0%, #fde9bc 100%);
  color: var(--brand);
  stroke: var(--brand);
  border: 1px solid var(--brand-mid);
}

.img-card--c {
  bottom: 6%;
  left: 5%;
  width: 42%;
  height: 40%;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  color: var(--dark);
  stroke: var(--dark);
  border: 1px solid var(--border);
}

.img-card--d {
  bottom: 0;
  right: 5%;
  width: 52%;
  height: 54%;
  background: linear-gradient(135deg, #2e1a0f 0%, #5c3d1a 100%);
  color: rgba(255,255,255,.9);
  stroke: rgba(255,255,255,.9);
}

/* ══════════════════════════════════════════════
   SOCIAL PROOF
   ══════════════════════════════════════════════ */
.social-proof {
  padding: 72px 0;
  background: var(--bg-subtle);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-text {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 8px;
}
.proof-number {
  color: #b0b8c4;
  font-style: normal;
  font-weight: 300;
}

.proof-sub {
  font-size: 16px;
  color: var(--muted);
  margin-top: 16px;
}

/* Decorative underline */
.social-proof .container::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  margin: 20px auto 0;
}

/* ══════════════════════════════════════════════
   SUBJECT AREAS
   ══════════════════════════════════════════════ */
.subjects {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 400;
  color: var(--dark);
  letter-spacing: -.02em;
  margin-bottom: 40px;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.subject-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  font-size: 14.5px;
  transition: all var(--transition);
  cursor: pointer;
}
.subject-card:hover {
  border-color: var(--brand);
  background: var(--brand-pale);
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.subject-card:hover .subject-icon { background: var(--brand-mid); }

.subject-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.subject-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--brand);
}

/* ══════════════════════════════════════════════
   POPULAR COURSES
   ══════════════════════════════════════════════ */
.courses {
  padding: 80px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 8px;
}

.view-all-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
  transition: color var(--transition);
}
.view-all-link:hover { color: var(--brand-dark); }

/* Carousel */
.courses-track-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.courses-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  flex: 1;
  overflow: hidden;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all var(--transition);
  flex-shrink: 0;
  z-index: 2;
}
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-pale);
}
.carousel-btn:disabled {
  opacity: .35;
  cursor: default;
}

/* Course Card */
.course-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  border-color: var(--brand-mid);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.course-thumb {
  height: 160px;
  position: relative;
  overflow: hidden;
}
.course-thumb--cyber  { background: linear-gradient(135deg, #3a2a1a, #d4891a); }
.course-thumb--packet { background: linear-gradient(135deg, #1a2a3a, #1d5283); }
.course-thumb--data   { background: linear-gradient(135deg, #0d0d1a, #3b1d83); }
.course-thumb--python { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.course-thumb--ai     { background: linear-gradient(135deg, #2e1a0f, #5c3d1a); }

/* Subtle geometric overlay on thumbs */
.course-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center/60px;
}

.course-level {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  z-index: 1;
}

.course-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition);
}
.course-card:hover .course-body { border-color: var(--brand); }

.course-meta {
  font-size: 12px;
  color: var(--light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.course-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}

.course-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.course-duration {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.course-duration svg { width: 13px; height: 13px; stroke: var(--muted); }

.course-free {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--brand);
  font-weight: 600;
}

.courses-cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* ══════════════════════════════════════════════
   CTA BANNER
   ══════════════════════════════════════════════ */
.cta-banner {
  padding: 80px 0;
  overflow: hidden;
}

.cta-banner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--dark);
  margin-bottom: 20px;
}
.cta-heading span { color: var(--muted); }

.cta-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* CTA Visual */
.cta-right { position: relative; }

.cta-visual {
  position: relative;
  height: 380px;
}

.cta-img-placeholder {
  position: absolute;
  right: -20px;
  top: 0;
  width: 90%;
  height: 100%;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: linear-gradient(145deg, #fff3d6 0%, #fde9bc 40%, #f5c97a 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-img-decor {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(245,166,35,.15));
}

.cta-people {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  padding: 0 24px 24px;
}

.cta-person {
  border-radius: 50% 50% 0 0;
  background: linear-gradient(to bottom, rgba(245,166,35,.25), rgba(245,166,35,.7));
}
.cta-person--1 { width: 80px; height: 160px; }
.cta-person--2 { width: 80px; height: 140px; }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
  background: #1a1f2e;
  color: rgba(255,255,255,.75);
}

.footer-inner {
  padding-top: 56px;
  padding-bottom: 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Footer brand */
.footer-brand .logo-mark { background: var(--brand); }
.footer-brand .logo-text { color: #fff; }

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,.45);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.social-link svg { width: 15px; height: 15px; }
.social-link:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

/* Footer nav */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,.5);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: rgba(255,255,255,.9); }

/* Footer bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.copyright {
  font-size: 13px;
  color: rgba(255,255,255,.35);
}

.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ══════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 960px)
   ══════════════════════════════════════════════ */
@media (max-width: 960px) {
  :root {
    --px: 28px;
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    min-height: 420px;
  }

  .subjects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .courses-track {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-top {
    grid-template-columns: 220px 1fr;
    gap: 40px;
  }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 680px)
   ══════════════════════════════════════════════ */
@media (max-width: 680px) {
  :root {
    --px: 20px;
    --header-h: 64px;
  }

  /* Header — mobile */
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 24px;
    gap: 2px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    pointer-events: none;
    z-index: 999;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link { font-size: 16px; padding: 10px 8px; width: 100%; }

  .header-actions { display: none; }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  /* Hero — single column */
  .hero {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 56px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: unset;
  }

  .hero-right {
    height: 300px;
    order: -1;
  }

  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn { width: 100%; text-align: center; }

  .stats-strip {
    flex-wrap: wrap;
    gap: 16px;
  }
  .stat-divider { display: none; }
  .stat { padding: 0; }

  /* Subjects */
  .subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Courses */
  .courses-track {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CTA Banner */
  .cta-banner-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cta-right { display: none; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; text-align: center; }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Social proof */
  .proof-text { font-size: 24px; }
}

@media (max-width: 420px) {
  .subjects-grid { grid-template-columns: 1fr; }
  .courses-track { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
}
