/* ============================================================
   MAC JASON ACADEMY — Shared Design System
   Loaded by every page after Tailwind config.
   Phase 2: compile Tailwind statically and merge this in.
   ============================================================ */

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.25); border-radius: 999px; transition: background .2s; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.55); }
.dark ::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.25); }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Selection ───────────────────────────────────────────── */
::selection { background: rgba(99,102,241,0.25); color: #1e1b4b; }
.dark ::selection { background: rgba(129,140,248,0.4); color: #fff; }

/* ── Focus ───────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Glass nav (Apple-grade saturation) ──────────────────── */
.glass {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border-bottom: 1px solid rgba(226,232,240,0.6);
}
.dark .glass {
  background: rgba(2,6,23,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

/* ── Card system ─────────────────────────────────────────── */
/* Refined: layered shadows, soft inner highlight, premium feel */
.elite-card {
  background: linear-gradient(145deg, #ffffff 0%, rgba(248,250,252,0.85) 100%);
  box-shadow:
    0 1px 1px rgba(15,23,42,0.03),
    0 2px 4px rgba(15,23,42,0.025),
    0 4px 12px rgba(15,23,42,0.04),
    0 12px 32px -10px rgba(15,23,42,0.06),
    inset 0 1px 0 rgba(255,255,255,0.7);
  border: 1px solid rgba(226,232,240,0.7);
  transition: transform .55s cubic-bezier(0.16,1,0.3,1),
              box-shadow .55s cubic-bezier(0.16,1,0.3,1),
              border-color .35s ease;
  position: relative;
  isolation: isolate;
}
.elite-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent 40%);
  pointer-events: none; opacity: 0.5;
}
.dark .elite-card {
  background: linear-gradient(180deg, rgba(30,41,59,0.55) 0%, rgba(15,23,42,0.75) 100%);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 1px 2px rgba(0,0,0,0.4),
    0 6px 16px -4px rgba(0,0,0,0.5),
    0 24px 56px -16px rgba(0,0,0,0.6);
}
.dark .elite-card::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 40%);
}
.elite-card:hover {
  transform: translateY(-5px);
  border-color: rgba(67,56,202,0.18);
  box-shadow:
    0 1px 1px rgba(15,23,42,0.04),
    0 4px 12px rgba(15,23,42,0.05),
    0 16px 40px -8px rgba(67,56,202,0.12),
    0 28px 68px -16px rgba(21,94,117,0.10),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
.dark .elite-card:hover {
  border-color: rgba(99,102,241,0.25);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 4px 12px rgba(0,0,0,0.5),
    0 32px 72px -16px rgba(67,56,202,0.35);
}

/* ── Subtle noise (filmic depth) ─────────────────────────── */
.bg-noise { position: relative; overflow: hidden; }
.bg-noise::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  border-radius: inherit; z-index: 0; mix-blend-mode: overlay;
}
.dark .bg-noise::before { opacity: 1.4; }

/* ── Mesh ambient backgrounds ────────────────────────────── */
/* Refined: lower saturation, more neutral tone, less candy pastel */
.mesh-light {
  background-color: #ffffff;
  background-image:
    radial-gradient(at 78% -10%, hsla(232,50%,96%,1) 0px, transparent 50%),
    radial-gradient(at 0% 30%, hsla(200,40%,96%,1) 0px, transparent 50%),
    radial-gradient(at 50% 100%, hsla(220,30%,97%,0.7) 0px, transparent 50%);
}
.dark .mesh-light {
  background-color: #020617;
  background-image:
    radial-gradient(at 78% -10%, hsla(232,60%,12%,0.45) 0px, transparent 55%),
    radial-gradient(at 0% 30%, hsla(200,50%,13%,0.35) 0px, transparent 55%),
    radial-gradient(at 50% 100%, hsla(220,40%,15%,0.25) 0px, transparent 55%);
}

/* ── Cursor spotlight ────────────────────────────────────── */
/* Refined: gentler, brand-aligned only */
.spotlight {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px at var(--mx,50%) var(--my,50%),
              rgba(67,56,202,0.06), transparent 65%);
  transition: background-position .25s ease;
}
.dark .spotlight {
  background: radial-gradient(700px at var(--mx,50%) var(--my,50%),
              rgba(99,102,241,0.12), transparent 65%);
  mix-blend-mode: plus-lighter;
}

/* ── Typography ──────────────────────────────────────────── */
/* Refined: two muted hues, slower shimmer, less candy-store */
.text-gradient {
  background: linear-gradient(120deg, #4338ca 0%, #155e75 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 180% 180%;
  animation: shimmer 12s ease-in-out infinite;
}
.dark .text-gradient {
  background: linear-gradient(120deg, #a5b4fc 0%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 180% 180%;
  animation: shimmer 12s ease-in-out infinite;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4f46e5;
}
.dark .eyebrow { color: #a5b4fc; }

.hang { hanging-punctuation: first allow-end last; text-wrap: balance; }

/* Drop cap (long-form sections) */
.drop-cap::first-letter {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 4.5em;
  float: left;
  line-height: 0.85;
  margin: 0.08em 0.12em 0 -0.04em;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Reveal-on-scroll ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .animate-blob, .text-gradient { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ── Buttons ─────────────────────────────────────────────── */
/* Refined: editorial "ink" button (slate-950 → deep indigo) with copper accent on hover.
   Less SaaS-blue, more professional / fountain-pen feel. */
.btn-primary {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-weight: 700; font-size: 0.9375rem;
  color: #fafaf7;
  background: linear-gradient(135deg, #020617 0%, #1e1b4b 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  box-shadow:
    0 1px 1px rgba(2,6,23,0.08),
    0 4px 12px -2px rgba(2,6,23,0.25),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform .35s cubic-bezier(0.16,1,0.3,1), box-shadow .35s, background .4s;
  isolation: isolate;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  box-shadow:
    0 1px 1px rgba(2,6,23,0.1),
    0 8px 20px -4px rgba(67,56,202,0.35),
    0 18px 36px -10px rgba(21,94,117,0.18),
    inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary::after {
  content: ''; position: absolute; inset: -1px;
  background: linear-gradient(135deg, #4338ca, #155e75);
  border-radius: inherit; filter: blur(14px); opacity: 0; z-index: -1;
  transition: opacity .35s;
}
.btn-primary:hover::after { opacity: 0.4; }
/* Subtle copper accent line on hover — references the brand orange logo */
.btn-primary > i:last-child {
  transition: transform .3s cubic-bezier(0.16,1,0.3,1), color .3s;
}
.btn-primary:hover > i:last-child {
  transform: translateX(3px);
  color: #fdba74;
}

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-weight: 600; font-size: 0.9375rem;
  color: #0f172a;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  transition: transform .35s, background .25s, border-color .25s;
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,0.95); border-color: rgba(15,23,42,0.16); }
.dark .btn-ghost { color: #f1f5f9; background: rgba(30,41,59,0.6); border-color: rgba(255,255,255,0.06); }
.dark .btn-ghost:hover { background: rgba(30,41,59,0.95); border-color: rgba(255,255,255,0.16); }

/* ── Course category gradients ───────────────────────────── */
/* Refined: sophisticated, deeper hues — Linear/Stripe-grade, not candy-store */
.cat-cyber  { background: linear-gradient(135deg, #991b1b 0%, #9a3412 100%); }  /* burgundy → copper */
.cat-cloud  { background: linear-gradient(135deg, #3730a3 0%, #155e75 100%); }  /* deep indigo → deep cyan */
.cat-pm     { background: linear-gradient(135deg, #065f46 0%, #3f6212 100%); }  /* forest → moss */
.cat-data   { background: linear-gradient(135deg, #5b21b6 0%, #831843 100%); }  /* aubergine → wine */

/* ── Marquee mask ────────────────────────────────────────── */
.marquee-mask {
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
          mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

/* ── Link underline motion ───────────────────────────────── */
.link-anim { position: relative; }
.link-anim::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform-origin: right; transform: scaleX(0);
  transition: transform .4s cubic-bezier(0.16,1,0.3,1);
}
.link-anim:hover::after { transform-origin: left; transform: scaleX(1); }

/* ── Accordion (FAQ) ─────────────────────────────────────── */
details.faq {
  border-top: 1px solid rgba(15,23,42,0.08);
  padding: 1.5rem 0;
}
.dark details.faq { border-color: rgba(255,255,255,0.06); }
details.faq:last-child { border-bottom: 1px solid rgba(15,23,42,0.08); }
.dark details.faq:last-child { border-color: rgba(255,255,255,0.06); }
details.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600; font-size: 1.125rem;
  color: #0f172a;
}
.dark details.faq summary { color: #f1f5f9; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .icon { transition: transform .4s cubic-bezier(0.16,1,0.3,1); flex-shrink: 0; }
details.faq[open] summary .icon { transform: rotate(45deg); }
details.faq .answer {
  margin-top: 1rem; color: #475569; line-height: 1.7;
  max-width: 65ch;
}
.dark details.faq .answer { color: #94a3b8; }

/* ── Form fields ─────────────────────────────────────────── */
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 1rem 1.125rem;
  font-size: 0.9375rem; line-height: 1.4;
  color: #0f172a;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 12px;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.dark .field input, .dark .field select, .dark .field textarea {
  color: #f1f5f9; background: rgba(15,23,42,0.5); border-color: rgba(255,255,255,0.06);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.15);
  background: #fff;
}
.dark .field input:focus, .dark .field select:focus, .dark .field textarea:focus {
  background: rgba(15,23,42,0.9);
}
.field label {
  display: block;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: #64748b; margin-bottom: 0.5rem;
}
.dark .field label { color: #94a3b8; }

/* ── Editorial Ledger (stat grid from CAPM page) ─────────── */
.ledger {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 2px solid #0f172a;
  border-bottom: 2px solid #0f172a;
}
.dark .ledger { border-color: #f1f5f9; }
.ledger-cell {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(15,23,42,0.08);
  border-right: 1px solid rgba(15,23,42,0.08);
}
.dark .ledger-cell { border-color: rgba(255,255,255,0.06); }
.ledger-cell:nth-child(2n) { border-right: none; }
.ledger-cell:nth-last-child(-n+2) { border-bottom: none; }

/* Full-width horizontal variant — 4 cells in a row on md+, 2x2 on mobile */
.ledger--row { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) {
  .ledger--row { grid-template-columns: repeat(4, 1fr); }
  .ledger--row .ledger-cell { border-bottom: none !important; }
  .ledger--row .ledger-cell { border-right: 1px solid rgba(15,23,42,0.08); }
  .ledger--row .ledger-cell:last-child { border-right: none; }
  .dark .ledger--row .ledger-cell { border-right-color: rgba(255,255,255,0.06); }
}
.ledger--row .ledger-cell { padding: 1.75rem 1.25rem; }

.ledger-cell .figure {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1;
  color: #0f172a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.dark .ledger-cell .figure { color: #fff; }
.ledger-cell .label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
}
.dark .ledger-cell .label { color: #94a3b8; }

/* ── Skip link (a11y) ────────────────────────────────────── */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: #4f46e5; color: #fff; padding: 0.75rem 1.25rem;
  font-weight: 700; z-index: 100;
  transition: top .25s;
}
.skip-link:focus { top: 0; }

/* ── Section divider ─────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(15,23,42,0.08), transparent);
}
.dark .section-divider { background: linear-gradient(to right, transparent, rgba(255,255,255,0.06), transparent); }

/* ── Subtle texture overlay (refined premium feel) ───────── */
/* Adds a barely-visible dot grid to deep backgrounds for editorial depth */
.texture-dots {
  position: relative;
}
.texture-dots::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(15,23,42,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}
.dark .texture-dots::before {
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
}

/* Faint vertical column rules (editorial grid hint) */
.texture-rules {
  background-image:
    linear-gradient(to right, rgba(15,23,42,0.025) 1px, transparent 1px);
  background-size: 16.6667% 100%;
}
.dark .texture-rules {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px);
}

/* ── 3D tilt-on-hover for premium feature cards ──────────── */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(0.16,1,0.3,1);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tilt-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateZ(0);
  }
}

/* ── Refined section dividers (editorial hairlines) ──────── */
.hairline {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(15,23,42,0.12) 20%, rgba(15,23,42,0.12) 80%, transparent);
}
.dark .hairline {
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.08) 20%, rgba(255,255,255,0.08) 80%, transparent);
}

/* ── Refined ring focus (accessibility + polish) ─────────── */
.btn-primary:focus-visible,
.btn-ghost:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.95),
    0 0 0 5px rgba(67,56,202,0.65),
    0 10px 30px -8px rgba(79,70,229,0.5);
}
.dark .btn-primary:focus-visible,
.dark .btn-ghost:focus-visible {
  box-shadow:
    0 0 0 3px rgba(15,23,42,0.95),
    0 0 0 5px rgba(165,180,252,0.65);
}

/* ════════════════════════════════════════════════════════════
   EDITORIAL COMPONENTS (porting Claude's flow into new design)
   ════════════════════════════════════════════════════════════ */

/* Display sizes — editorial scale */
.display-1 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(2.75rem, 7vw, 6.5rem); line-height: 0.96; letter-spacing: -0.035em; color: #0f172a; }
.dark .display-1 { color: #f8fafc; }
.display-2 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -0.025em; color: #0f172a; }
.dark .display-2 { color: #f8fafc; }
.display-3 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.2; letter-spacing: -0.015em; color: #0f172a; }
.dark .display-3 { color: #f8fafc; }
.display-1 em, .display-2 em, .display-3 em { font-style: italic; font-weight: 700; background: linear-gradient(120deg, #4338ca 0%, #155e75 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dark .display-1 em, .dark .display-2 em, .dark .display-3 em { background: linear-gradient(120deg, #a5b4fc 0%, #67e8f9 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ── Italic clipping fix (site-wide) ─────────────────────────
   Italic glyphs (y, g, j, f, k) have right-leaning swashes that
   extend past the geometric character box. Combined with
   -webkit-background-clip: text and/or body { overflow-x: hidden },
   the swash gets clipped. Solution: turn the em into an
   inline-block with padding so the box itself includes the swash.
   Applies to every display heading variant on the site.
   ============================================================ */
.display-1 em, .display-1 i,
.display-2 em, .display-2 i,
.display-3 em, .display-3 i,
.display-mega em, .display-mega i {
  display: inline-block;
  padding-right: 0.14em;
  padding-bottom: 0.04em;
  line-height: inherit;
  /* Counter-margin keeps the natural word-spacing intact */
  margin-right: -0.04em;
}

/* Defensive: don't let a parent's overflow:hidden eat the descender. */
h1, h2, h3 { overflow-wrap: anywhere; word-break: normal; }
.display-1, .display-2, .display-3, .display-mega { overflow: visible; padding-right: 0.04em; }

.lede { font-family: 'Inter', sans-serif; font-weight: 300; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.55; color: #475569; max-width: 60ch; }
.dark .lede { color: #cbd5e1; }

.serial {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #4338ca;
}
.dark .serial { color: #a5b4fc; }

.section-head { max-width: 65ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .label { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.section-head .label .serial:after { content: ""; }

/* Hero meta strip */
.hero-meta { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3rem); }
.hero-meta .rule { flex: 1; min-width: 50px; height: 1px; background: linear-gradient(to right, rgba(15,23,42,0.18), transparent); }
.dark .hero-meta .rule { background: linear-gradient(to right, rgba(255,255,255,0.18), transparent); }

/* ── Tracks (3-card discipline section) ─────────────────── */
.tracks { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 880px) { .tracks { grid-template-columns: repeat(3, 1fr); } }
.track {
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,0.85));
  border: 1px solid rgba(226,232,240,0.7);
  border-radius: 24px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative; isolation: isolate;
  transition: transform .55s cubic-bezier(0.16,1,0.3,1), box-shadow .55s, border-color .35s;
  box-shadow: 0 1px 2px rgba(15,23,42,0.03), 0 6px 20px -6px rgba(15,23,42,0.05);
}
.dark .track {
  background: linear-gradient(180deg, rgba(30,41,59,0.55), rgba(15,23,42,0.75));
  border-color: rgba(255,255,255,0.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 16px 36px -12px rgba(0,0,0,0.55);
}
.track:hover {
  transform: translateY(-4px);
  border-color: rgba(67,56,202,0.22);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 16px 44px -8px rgba(67,56,202,0.14), 0 24px 68px -16px rgba(21,94,117,0.10);
}
.dark .track:hover {
  border-color: rgba(99,102,241,0.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 24px 60px -12px rgba(67,56,202,0.4);
}
.track .icon { width: 56px; height: 56px; display: grid; place-items: center; background: linear-gradient(135deg, #f1f5f9, #e2e8f0); border-radius: 14px; color: #4338ca; margin-bottom: 1.5rem; }
.dark .track .icon { background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(21,94,117,0.15)); color: #a5b4fc; }
.track h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.015em; color: #0f172a; margin-bottom: 0.75rem; }
.dark .track h3 { color: #f8fafc; }
.track p { color: #475569; line-height: 1.6; font-size: 0.9375rem; margin-bottom: 1.5rem; }
.dark .track p { color: #94a3b8; }
.track-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 1.25rem; border-top: 1px solid rgba(15,23,42,0.08); }
.dark .track-foot { border-top-color: rgba(255,255,255,0.06); }
.track-foot .count { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #64748b; }
.dark .track-foot .count { color: #94a3b8; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px;
  color: #4338ca;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap .3s, color .25s;
}
.dark .link-arrow { color: #a5b4fc; }
.link-arrow:hover { gap: 0.7rem; }

/* ── Catalog (14 numbered course rows — flagship pattern) ─ */
.catalog { border-top: 2px solid #0f172a; }
.dark .catalog { border-top-color: #f8fafc; }
.catalog-row {
  display: grid;
  grid-template-columns: 56px 1.5fr 2fr 1fr 40px;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 0.5rem;
  border-bottom: 1px solid rgba(15,23,42,0.08);
  color: inherit;
  transition: background .35s, padding .35s, color .35s;
  position: relative;
}
.dark .catalog-row { border-bottom-color: rgba(255,255,255,0.06); }
.catalog-row .num { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: #94a3b8; }
.catalog-row .title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: #0f172a; line-height: 1.25; letter-spacing: -0.01em; }
.dark .catalog-row .title { color: #f8fafc; }
.catalog-row .title em { font-style: italic; font-weight: 700; background: linear-gradient(120deg, #4338ca 0%, #155e75 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dark .catalog-row .title em { background: linear-gradient(120deg, #a5b4fc 0%, #67e8f9 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.catalog-row .desc { color: #475569; font-size: 0.9375rem; line-height: 1.55; }
.dark .catalog-row .desc { color: #94a3b8; }
.catalog-row .meta { display: flex; flex-direction: column; gap: 0.25rem; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #4338ca; }
.dark .catalog-row .meta { color: #a5b4fc; }
.catalog-row .meta .duration { color: #64748b; font-weight: 500; }
.dark .catalog-row .meta .duration { color: #94a3b8; }
.catalog-row .arrow-cell { font-family: 'JetBrains Mono', monospace; font-size: 1.5rem; color: #94a3b8; text-align: right; transition: transform .35s, color .25s; }
.catalog-row:hover {
  background: linear-gradient(90deg, rgba(99,102,241,0.04), transparent);
  padding-left: 1.5rem; padding-right: 1.5rem;
}
.dark .catalog-row:hover { background: linear-gradient(90deg, rgba(99,102,241,0.10), transparent); }
.catalog-row:hover .arrow-cell { transform: translateX(6px); color: #4338ca; }
.dark .catalog-row:hover .arrow-cell { color: #a5b4fc; }
.catalog-row.featured { background: linear-gradient(90deg, rgba(67,56,202,0.05), transparent 60%); }
.dark .catalog-row.featured { background: linear-gradient(90deg, rgba(99,102,241,0.10), transparent 60%); }
.catalog-row.featured::before { content: 'Featured'; position: absolute; top: 0.5rem; left: 0.5rem; font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #4338ca; padding: 2px 6px; background: rgba(67,56,202,0.1); border-radius: 3px; }
.dark .catalog-row.featured::before { color: #a5b4fc; background: rgba(99,102,241,0.18); }
@media (max-width: 900px) {
  .catalog-row { grid-template-columns: 48px 1fr 32px; grid-template-rows: auto auto auto; gap: 0.5rem 1rem; }
  .catalog-row .num { grid-row: 1 / span 3; }
  .catalog-row .title { grid-column: 2; }
  .catalog-row .desc { grid-column: 2; }
  .catalog-row .meta { grid-column: 2; flex-direction: row; flex-wrap: wrap; gap: 0.75rem; }
  .catalog-row .arrow-cell { grid-row: 1 / span 3; grid-column: 3; align-self: center; }
}

/* ── Section numbered (label-left, content-right layout) ─ */
.section-numbered { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: clamp(3rem, 7vw, 6rem) 0; }
@media (min-width: 900px) { .section-numbered { grid-template-columns: 1fr 1.6fr; gap: 4rem; } }
.section-numbered .head .serial { display: block; margin-bottom: 1rem; }
.section-numbered .body { font-size: 1.0625rem; line-height: 1.7; color: #475569; }
.dark .section-numbered .body { color: #cbd5e1; }
.section-numbered .body p { margin-bottom: 1.25rem; max-width: 65ch; }
.section-numbered .body p strong { color: #0f172a; font-weight: 600; }
.dark .section-numbered .body p strong { color: #f8fafc; }
.section-numbered .grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem 2.5rem; margin-top: 2.5rem; }
@media (min-width: 700px) { .section-numbered .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ── Testimonials (bordered editorial grid) ─────────────── */
.testimonial-grid { display: grid; grid-template-columns: 1fr; padding: 0; border-top: 2px solid #0f172a; border-bottom: 2px solid #0f172a; }
@media (min-width: 880px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.dark .testimonial-grid { border-color: #f8fafc; }
.testimonial { padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.25rem); border-right: 1px solid rgba(15,23,42,0.08); border-bottom: 1px solid rgba(15,23,42,0.08); position: relative; }
.dark .testimonial { border-color: rgba(255,255,255,0.06); }
.testimonial:last-child { border-right: none; }
@media (max-width: 879px) { .testimonial { border-right: none; } }
.testimonial:nth-last-child(-n+1) { border-bottom: none; }
.testimonial blockquote { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 500; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.45; color: #0f172a; letter-spacing: -0.005em; margin-bottom: 2rem; }
.dark .testimonial blockquote { color: #f1f5f9; }
.testimonial cite { display: flex; align-items: center; gap: 0.85rem; font-style: normal; }
.testimonial .avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #4338ca, #155e75); color: white; display: grid; place-items: center; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: -0.01em; }
.testimonial .who { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: #0f172a; }
.dark .testimonial .who { color: #f1f5f9; }
.testimonial .role { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #64748b; margin-top: 2px; }
.dark .testimonial .role { color: #94a3b8; }

/* ── Marquee strip (editorial credential band) ──────────── */
.strip { background: linear-gradient(135deg, #020617 0%, #1e1b4b 100%); color: #f1f5f9; padding: 1.125rem 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.strip-track { display: flex; gap: 3rem; animation: scroll 50s linear infinite; white-space: nowrap; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0.04em; }
.strip-track .dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #c2410c; margin: 0 1.5rem; vertical-align: middle; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── Brand mark (MJ tile + lockup) ──────────────────────── */
.brand-mark-mj {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #020617, #1e1b4b);
  color: #f8fafc;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 17px; letter-spacing: -0.02em;
  border-radius: 6px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.1);
}
.brand-mark-mj::before {
  content: ''; position: absolute; inset: 3px;
  border: 1px solid rgba(194,65,12,0.6);
  border-radius: 3px;
  pointer-events: none;
}

/* ── Subtle texture overlay (refined premium feel) ───────── */
/* Adds a barely-visible dot grid to deep backgrounds for editorial depth */
.texture-dots {
  position: relative;
}
.texture-dots::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(15,23,42,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}
.dark .texture-dots::before {
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
  .glass, .spotlight, [class*="blur-"], .animate-blob { display: none !important; }
  body { background: white !important; color: black !important; }
}
