/* ============================================================
   QAGURU99 — Premium Design System
   Vanilla CSS. Deploys as static files (no build step).
   Rebrand quickly by editing the tokens in :root.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --navy: #0b1224;
  --navy-2: #111a32;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #e6efff;
  --purple: #7c3aed;
  --purple-2: #a855f7;
  --cta: #f97316;
  --cta-dark: #ea580c;

  /* Neutrals */
  --text: #0f172a;
  --muted: #55627a;
  --muted-2: #8a94a8;
  --line: #e8ecf3;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f1f5fb;

  /* Effects */
  --grad-brand: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --grad-purple: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  --grad-hero: radial-gradient(1200px 600px at 80% -10%, rgba(124,58,237,0.25), transparent 60%),
               radial-gradient(900px 500px at 10% 10%, rgba(37,99,235,0.28), transparent 55%),
               linear-gradient(160deg, #0b1224 0%, #111a32 60%, #172246 100%);
  --shadow-sm: 0 1px 2px rgba(16, 24, 45, 0.06);
  --shadow: 0 8px 24px rgba(16, 24, 45, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 45, 0.14);
  --shadow-brand: 0 16px 40px rgba(37, 99, 235, 0.28);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --max: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.12; color: var(--navy); font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
section { padding: clamp(64px, 9vw, 108px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(38px, 5vw, 60px); text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p { font-size: 1.08rem; }
.text-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 10px 26px rgba(249,115,22,0.35); }
.btn-cta:hover { background: var(--cta-dark); box-shadow: 0 14px 32px rgba(249,115,22,0.45); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-grad { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-grad:hover { box-shadow: 0 20px 44px rgba(124,58,237,0.4); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.28); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,0.16); }
.btn-outline { background: var(--surface); color: var(--primary); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-light); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 252, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  transition: height 0.3s var(--ease);
}
.site-header.scrolled .nav { height: 62px; }
.logo { font-weight: 900; font-size: 1.4rem; letter-spacing: -0.03em; color: var(--navy); }
.logo span { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo small { display: block; font-size: 0.58rem; font-weight: 600; letter-spacing: 0.18em; color: var(--muted-2); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text); font-weight: 600; font-size: 0.96rem; position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad-brand); border-radius: 2px; transition: width 0.25s var(--ease);
}
.nav-links a:not(.btn):hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--primary); }
.nav-cta { padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--navy); cursor: pointer; line-height: 1; }

/* ---------- Hero ---------- */
.hero {
  background: var(--grad-hero);
  color: #fff;
  padding: clamp(70px, 10vw, 120px) 0 clamp(80px, 11vw, 130px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}
.hero .pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 7px 15px; border-radius: 999px;
  font-size: 0.84rem; font-weight: 600; margin-bottom: 22px;
}
.hero .pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #22d3a5; box-shadow: 0 0 0 4px rgba(34,211,165,0.25); }
.hero h1 { color: #fff; margin-bottom: 20px; max-width: 620px; }
.hero h1 .accent { background: var(--grad-purple); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: clamp(1.02rem, 1.8vw, 1.18rem); color: #c3cde3; max-width: 540px; margin-bottom: 26px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.hero-chips span {
  font-size: 0.82rem; font-weight: 600; color: #dfe6f5;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  padding: 6px 13px; border-radius: 999px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: 26px; font-size: 0.88rem; color: #9aa7c4; }

/* Hero illustration (inline SVG card) */
.hero-visual { position: relative; }
.hero-visual .glass {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.hero-visual .float {
  position: absolute; border-radius: 16px; padding: 12px 16px;
  background: rgba(255,255,255,0.92); color: var(--navy);
  box-shadow: var(--shadow-lg); font-weight: 700; font-size: 0.86rem;
  display: flex; align-items: center; gap: 9px;
}
.hero-visual .float .ic { font-size: 1.15rem; }
.hero-visual .float.f1 { top: -18px; left: -22px; animation: floaty 5s ease-in-out infinite; }
.hero-visual .float.f2 { bottom: -16px; right: -14px; animation: floaty 6s ease-in-out infinite 0.6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.stats { background: var(--surface); border-block: 1px solid var(--line); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 10px; }
.stat .num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -0.03em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.stat .label { margin-top: 8px; color: var(--muted); font-weight: 600; font-size: 0.95rem; }

/* ---------- Course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; align-items: stretch; }
.course-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.course-card .cc-top { padding: 26px 26px 22px; background: var(--grad-hero); color: #fff; position: relative; }
.course-card .cc-top .track-tag { background: var(--cta); }
.course-card .cc-top h3 { color: #fff; font-size: 1.4rem; margin-top: 12px; }
.course-card .cc-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.course-card .cc-body > p { margin-bottom: 20px; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-bottom: 20px; }
.spec-list .spec { display: flex; flex-direction: column; }
.spec-list .spec .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); font-weight: 700; }
.spec-list .spec .v { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.cc-tech { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.cc-tech span { font-size: 0.76rem; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: 5px 11px; border-radius: 999px; }
.course-card .cc-actions { margin-top: auto; }
.course-card .cc-actions .btn { width: 100%; }
.track-tag { display: inline-block; background: var(--cta); color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 16px; color: #fff; background: var(--grad-brand);
  box-shadow: var(--shadow-brand);
}
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { font-size: 0.95rem; }

/* ---------- Roadmap ---------- */
.roadmap-wrap { overflow-x: auto; padding-bottom: 8px; }
.roadmap { display: flex; align-items: stretch; gap: 0; min-width: min-content; }
.road-step { position: relative; flex: 1 1 0; min-width: 130px; text-align: center; padding: 0 8px; }
.road-step .node {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; font-weight: 800; color: #fff;
  background: var(--grad-brand); box-shadow: var(--shadow-brand); position: relative; z-index: 2;
}
.road-step:not(:last-child)::after {
  content: ""; position: absolute; top: 27px; left: 50%; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--purple)); opacity: 0.35; z-index: 1;
}
.road-step h4 { font-size: 1rem; margin-bottom: 4px; }
.road-step p { font-size: 0.85rem; }

/* ---------- Instructor ---------- */
.instructor-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow);
}
.instructor-photo {
  aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--grad-hero);
  display: grid; place-items: center; color: #fff; position: relative; overflow: hidden;
}
.instructor-photo .avatar { font-size: 5rem; font-weight: 900; opacity: 0.9; }
.instructor-photo .ph-note { position: absolute; bottom: 12px; font-size: 0.72rem; color: rgba(255,255,255,0.7); }
.instructor-info h3 { font-size: 1.6rem; margin-bottom: 4px; }
.instructor-info .role { color: var(--primary); font-weight: 700; margin-bottom: 14px; }
.instructor-info p { margin-bottom: 16px; }
.instructor-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 18px; }
.instructor-meta .m .k { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); font-weight: 700; }
.instructor-meta .m .v { font-weight: 800; color: var(--navy); }
.stack-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.stack-tags span { font-size: 0.78rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; color: var(--text); }

/* ---------- Testimonials ---------- */
.tst { position: relative; }
.tst-viewport { overflow: hidden; }
.tst-track { display: flex; transition: transform 0.5s var(--ease); }
.tst-card { flex: 0 0 100%; padding: 4px; }
.tst-inner {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px; max-width: 780px; margin: 0 auto; box-shadow: var(--shadow); text-align: center;
}
.tst-stars { color: var(--cta); font-size: 1.15rem; margin-bottom: 14px; letter-spacing: 2px; }
.tst-quote { font-size: 1.2rem; color: var(--text); font-weight: 500; line-height: 1.6; margin-bottom: 22px; }
.tst-person { display: flex; align-items: center; justify-content: center; gap: 12px; }
.tst-person .ava { width: 48px; height: 48px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.tst-person .who { text-align: left; }
.tst-person .who strong { display: block; color: var(--navy); }
.tst-person .who span { font-size: 0.85rem; color: var(--muted); }
.tst-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; }
.tst-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font-size: 1.2rem; color: var(--navy); box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), background 0.2s ease;
}
.tst-btn:hover { transform: translateY(-2px); background: var(--primary-light); }
.tst-dots { display: flex; gap: 8px; }
.tst-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: background 0.2s, width 0.2s; }
.tst-dot.active { background: var(--primary); width: 24px; border-radius: 999px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 22px; font-size: 1.05rem; font-weight: 700; color: var(--navy);
  font-family: inherit; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q .chev { transition: transform 0.3s var(--ease); color: var(--primary); font-size: 1.3rem; flex-shrink: 0; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a p { padding: 0 22px 20px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-hero); color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 68px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #c3cde3; font-size: 1.1rem; max-width: 560px; margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aeb9d4; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 36px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.site-footer a { color: #aeb9d4; transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.site-footer li { padding: 5px 0; font-size: 0.94rem; }
.footer-brand p { color: #8895b5; max-width: 320px; margin-top: 12px; font-size: 0.94rem; }
.social-row { display: flex; gap: 10px; margin-top: 8px; }
.social-row a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,0.08); display: grid; place-items: center; font-size: 1.05rem; transition: background 0.2s, transform 0.2s; }
.social-row a:hover { background: var(--primary); transform: translateY(-2px); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; font-size: 0.86rem; text-align: center; color: #7a87a8; }

/* ============================================================
   Course detail pages (kept + refreshed)
   ============================================================ */
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 8px; }
.section-lead { color: var(--muted); max-width: 640px; margin-bottom: 34px; font-size: 1.05rem; }
section.alt { background: var(--surface); }
.page-hero { background: var(--grad-hero); color: #fff; padding: 66px 0; }
.page-hero .track-tag { margin-bottom: 14px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 820px; margin-bottom: 12px; }
.page-hero .tagline { color: var(--purple-2); font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
.page-hero p { color: #c3cde3; max-width: 720px; }
.breadcrumb { font-size: 0.85rem; margin-bottom: 18px; color: #9aa7c4; }
.breadcrumb a { color: #dbe4f3; }
.quick-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 30px; }
.quick-facts .fact { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius-sm); padding: 16px; }
.quick-facts .fact span { display: block; font-size: 0.74rem; color: #9aa7c4; text-transform: uppercase; letter-spacing: 0.07em; }
.quick-facts .fact strong { color: #fff; font-size: 1.05rem; }
.detail-block { margin-bottom: 40px; }
.detail-block h2 { font-size: 1.5rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 3px solid var(--primary-light); }
.detail-block h3 { font-size: 1.15rem; margin: 20px 0 10px; color: var(--primary-dark); }
.detail-block p { color: var(--muted); margin-bottom: 12px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; }
.tag-list li { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 0.88rem; color: var(--text); font-weight: 600; }
.check-list li { position: relative; padding: 7px 0 7px 30px; color: var(--text); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #059669; font-weight: 800; }
.module { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.module .mod-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.module h3 { margin: 0; color: var(--navy); font-size: 1.1rem; }
.module .sessions { font-size: 0.78rem; font-weight: 700; color: var(--primary); background: var(--primary-light); padding: 3px 10px; border-radius: 999px; }
.module p { margin: 0; font-size: 0.94rem; }
.module .mini-project { margin-top: 10px; font-size: 0.9rem; color: var(--cta-dark); font-weight: 700; }
.disclaimer { background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius-sm); padding: 16px 20px; color: #9a3412; font-size: 0.92rem; }
.enroll-band { background: var(--grad-hero); color: #fff; border-radius: var(--radius-lg); padding: 44px; text-align: center; }
.enroll-band h2 { color: #fff; border: 0; margin-bottom: 10px; }
.enroll-band p { color: #c3cde3; margin-bottom: 22px; }
.enroll-band .hero-actions { justify-content: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* ============================================================
   Scroll-reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---------- Focus / accessibility ---------- */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 460px; }
  .instructor-card { grid-template-columns: 1fr; text-align: center; }
  .instructor-photo { max-width: 260px; margin: 0 auto; }
  .instructor-meta, .stack-tags, .hero-chips { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 22px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 4px 0; border-bottom: 1px solid var(--surface-2); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta { text-align: center; margin-top: 10px; }
  .two-col { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr 1fr; }
  .instructor-card { padding: 26px; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: 1fr 1fr; }
  .tst-inner, .cta-band { padding: 28px 20px; }
  .hero-actions .btn, .cta-band .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Lead / Apply form (added — does not affect existing pages)
   ============================================================ */
.lead-wrap { max-width: 760px; margin: 0 auto; }
.lead-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow); position: relative;
}
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.field label .req { color: var(--cta-dark); }
.field input, .field select {
  font-family: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #dc2626; }
.field .err { color: #b91c1c; font-size: 0.82rem; min-height: 1em; }
.hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; margin-top: 6px; }
.form-actions .btn { width: 100%; }
.form-note { grid-column: 1 / -1; font-size: 0.85rem; color: var(--muted); text-align: center; }
.form-msg {
  grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--radius-sm);
  font-weight: 600; display: none;
}
.form-msg.show { display: block; }
.form-msg.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.form-msg.bad { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
@media (max-width: 600px) { .lead-form { grid-template-columns: 1fr; } }
