/* ============================================================
   OILO — EDITORIAL SWISS, 2026
   PP Neue Montreal substitute: Geist (free, similar geometric sans)
   PP Editorial substitute: Fraunces / Instrument Serif
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..800;1,9..144,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

:root {
  /* Tokens — light default */
  --bg: #F4F1EA;
  --bg-soft: #ECE7DB;
  --paper: #FBF9F4;
  --surface: #FFFFFF;
  --ink: #0A0908;
  --ink-2: #4A4742;
  --ink-3: #8B867C;
  --line: #DFD9CB;
  --line-2: #C9C2B0;

  --accent: #2B59FF; /* electric blue default */
  --accent-ink: #0A0908;
  --accent-soft: #DDE5FF;

  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 36px;

  --display: 'PP Neue Montreal', 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --body: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Fraunces', 'Instrument Serif', Georgia, serif;
  --mono: 'Geist Mono', ui-monospace, monospace;

  --container: 1320px;
  --gutter: 32px;

  --ease: cubic-bezier(.2,.8,.2,1);
}

[data-theme="dark"] {
  --bg: #0A0908;
  --bg-soft: #15130F;
  --paper: #100E0B;
  --surface: #16140F;
  --ink: #F4F1EA;
  --ink-2: #B8B2A4;
  --ink-3: #6F6A5E;
  --line: #2A2620;
  --line-2: #3D372E;
  --accent-soft: rgba(43, 89, 255, 0.18);
}

[data-font="grotesk"] {
  --display: 'Space Grotesk', sans-serif;
  --body: 'Space Grotesk', sans-serif;
}
[data-font="serif-display"] {
  --display: 'Fraunces', serif;
  --body: 'Geist', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow-x: clip; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  transition: background .4s var(--ease), color .4s var(--ease);
  cursor: none;
}
@media (hover: none), (max-width: 980px) {
  body { cursor: auto; }
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; font-size: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #fff; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
  transition: width .25s var(--ease), height .25s var(--ease);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid #fff;
  transition: transform .15s linear, width .3s var(--ease), height .3s var(--ease), border-width .3s var(--ease);
}
body.cur-hover .cursor-dot { width: 0; height: 0; }
body.cur-hover .cursor-ring { width: 60px; height: 60px; border-width: 2px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  transition: backdrop-filter .3s, background .3s;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-inner {
  width: 100%; max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px;
  align-items: center;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.04em;
  cursor: pointer;
}
.logo-mark {
  width: 32px; height: 32px;
  position: relative;
  display: inline-block;
}
.logo-mark svg { width: 100%; height: 100%; }
.logo-mark .o-outer { stroke: var(--ink); stroke-width: 2.5; fill: none; }
.logo-mark .o-dot { fill: var(--accent); }

.menu {
  display: flex; gap: 2px; justify-self: center;
  background: color-mix(in oklab, var(--ink) 6%, transparent);
  border-radius: 999px; padding: 4px;
}
[data-theme="dark"] .menu { background: rgba(255,255,255,0.06); }

.menu button {
  padding: 8px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  border-radius: 999px;
  transition: all .25s var(--ease);
  position: relative;
  letter-spacing: -0.005em;
}
.menu button:hover { color: var(--ink); }
.menu button:focus-visible { outline: none; }
.menu button.active {
  color: var(--ink);
  background: transparent;
}
[data-theme="dark"] .menu button.active { background: transparent; }

.nav-right { display: flex; align-items: center; gap: 8px; justify-self: end; }

.lang {
  display: flex; gap: 0;
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lang button {
  padding: 6px 10px;
  color: var(--ink-3);
  transition: color .2s;
}
.lang button.on { color: var(--ink); }
.lang .sep { color: var(--ink-3); padding: 6px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body);
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  padding: 12px 22px;
  border-radius: 999px;
  transition: all .3s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.1); }
.btn-lg { padding: 16px 30px; font-size: 15px; }

/* Magnetic wrapper */
.magnetic { display: inline-block; transition: transform .4s var(--ease); }
.magnetic-inner { display: inline-block; transition: transform .4s var(--ease); }

/* ============================================================
   PAGES
   ============================================================ */
.page { display: none; }
.page.active { display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   HERO — Editorial with marquee, parallax blob
   ============================================================ */
.hero {
  position: relative;
  padding: 120px 0 40px;
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero .container { position: relative; z-index: 2; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 60px;
}
.hero-eyebrow .live {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.hero-eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #18B86A;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(24,184,106,0.6); }
  50% { box-shadow: 0 0 0 8px rgba(24,184,106,0); }
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(64px, 13vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  font-weight: 500;
  margin-bottom: 40px;
}
.hero h1 .ser {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.03em;
}
.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.hero h1 .word .ch {
  display: inline-block;
  transform: translateY(110%);
  animation: charUp 1.1s var(--ease) forwards;
}
@keyframes charUp { to { transform: translateY(0); } }

.hero-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: end;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-lead {
  font-size: 17px; line-height: 1.5;
  color: var(--ink-2);
  max-width: 380px;
}
.hero-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; flex-direction: column; gap: 6px;
}
.hero-meta b { color: var(--ink); font-weight: 500; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-self: end; }

/* Liquid blob behind hero */
.hero-blob {
  position: absolute;
  top: 8%; right: -8%;
  width: 56vw; max-width: 760px;
  aspect-ratio: 1;
  z-index: 0;
  filter: blur(0.5px);
  opacity: 0.95;
  pointer-events: none;
}
.hero-blob svg { width: 100%; height: 100%; }
.hero-blob path {
  fill: var(--accent);
  animation: blobMorph 14s ease-in-out infinite alternate;
}

@keyframes blobMorph {
  0%   { d: path('M421,300Q380,360,320,395Q260,430,200,400Q140,370,108,310Q76,250,108,190Q140,130,200,100Q260,70,320,105Q380,140,421,200Q462,260,421,300Z'); }
  100% { d: path('M430,290Q400,350,340,380Q280,410,210,410Q140,410,100,355Q60,300,90,235Q120,170,180,125Q240,80,310,95Q380,110,420,170Q460,230,430,290Z'); }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track > * { flex-shrink: 0; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 28px;
  padding: 0 28px;
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--ink);
}
.marquee-item .star {
  width: clamp(20px, 2.5vw, 40px); height: clamp(20px, 2.5vw, 40px);
  flex-shrink: 0;
  color: var(--accent);
}
.marquee-item .ser {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding: 120px 0; position: relative; }
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: ''; width: 28px; height: 1px; background: var(--ink-3);
}

.section-head {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  text-wrap: balance;
}
.section-head h2 .ser {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
}
.section-head .meta { color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 380px; }
.section-head .meta-mono {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 18px;
  display: flex; gap: 18px;
}

/* ============================================================
   CATEGORIES — bento grid
   ============================================================ */
.cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
.cat {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  cursor: pointer;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .5s var(--ease), border-color .3s;
}
.cat:hover { border-color: var(--ink); }
.cat-bg {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .4s var(--ease);
  z-index: 0;
}
.cat:hover .cat-bg { opacity: 1; }
.cat > * { position: relative; z-index: 1; }
.cat-num {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cat h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-top: auto;
  text-wrap: balance;
}
.cat .arrow {
  position: absolute; right: 20px; top: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease), background .3s;
  z-index: 2;
}
.cat:hover .arrow { background: var(--ink); color: var(--bg); transform: rotate(-45deg); }
.cat .ic { width: 36px; height: 36px; opacity: 0.9; }

.cat.span-2 { grid-column: span 2; }
.cat.span-3 { grid-column: span 3; }
.cat.span-row-2 { grid-row: span 2; }

/* ============================================================
   COURSE CARDS — tilt 3D
   ============================================================ */
.courses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
  display: flex; flex-direction: column;
}
.course:hover {
  border-color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.18);
}
.course-thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transform: translateZ(20px);
}
.course-thumb svg {
  width: 60%; height: 60%;
  transition: transform .8s var(--ease);
}
.course:hover .course-thumb svg { transform: scale(1.08) rotate(-3deg); }
.course-thumb .lvl {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 9px;
  background: var(--bg);
  color: var(--ink);
  border-radius: 4px;
  z-index: 2;
}
.course-thumb .duration {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.06em;
  padding: 5px 9px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border-radius: 4px;
  z-index: 2;
}
.course-thumb .grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.06) 1px, transparent 0);
  background-size: 4px 4px;
  pointer-events: none;
}
.course-body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex; flex-direction: column;
  transform: translateZ(10px);
}
.course-tag {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.course-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-wrap: balance;
  flex: 1;
}
.course-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.course-author { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.course-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600;
  font-family: var(--mono);
}
.course-price {
  font-family: var(--display);
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.02em;
}
.course-price.free { color: var(--accent); }

/* ============================================================
   STATS — animated counters
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--display);
  font-size: clamp(40px, 4.4vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-bottom: 12px;
  white-space: nowrap;
}
.stat .num .ser { font-family: var(--serif); font-style: italic; font-weight: 300; }
.stat .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stat::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 1.2s var(--ease);
}
.stat.in::after { width: 100%; }

/* ============================================================
   B2B
   ============================================================ */
.b2b {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-xl);
  padding: 80px;
  position: relative;
  overflow: hidden;
}
.b2b-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px;
  align-items: end;
  position: relative; z-index: 2;
}
.b2b h2 {
  font-family: var(--display);
  font-size: clamp(42px, 5.5vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin-bottom: 24px;
}
.b2b h2 .ser { font-family: var(--serif); font-style: italic; font-weight: 300; }
.b2b p {
  color: rgba(255,255,255,0.65);
  font-size: 16px; line-height: 1.6;
  max-width: 460px;
  margin-bottom: 32px;
}
.b2b-blob {
  position: absolute; right: -10%; top: -30%;
  width: 60%; aspect-ratio: 1;
  z-index: 1;
  opacity: 0.4;
  filter: blur(80px);
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  animation: float 12s ease-in-out infinite alternate;
}
@keyframes float {
  to { transform: translate(-40px, 30px) scale(1.1); }
}
.b2b-stats { display: flex; flex-direction: column; gap: 14px; }
.b2b-stat {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.b2b-stat:first-child { border-top: none; }
.b2b-stat .n {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.b2b-stat .l {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-align: right;
  max-width: 140px;
}
.b2b-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.b2b .btn-primary { background: var(--bg); color: var(--ink); }
.b2b .btn-primary:hover { background: var(--accent); color: #fff; }
.b2b .btn-outline { border-color: rgba(255,255,255,0.3); color: var(--bg); }
.b2b .btn-outline:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* ============================================================
   TESTIMONIAL ROW
   ============================================================ */
.testi {
  padding: 120px 0;
  position: relative;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 24px;
}
.testi-card .quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.testi-card .who {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.testi-card .av {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 12px; font-weight: 600;
}
.testi-card .who-info { display: flex; flex-direction: column; gap: 2px; }
.testi-card .who-info .n { font-size: 14px; font-weight: 500; }
.testi-card .who-info .r {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ============================================================
   CATALOG PAGE
   ============================================================ */
.cat-hero { padding: 140px 0 40px; position: relative; }
.cat-hero h1 {
  font-family: var(--display);
  font-size: clamp(56px, 9vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin-bottom: 32px;
}
.cat-hero h1 .ser { font-family: var(--serif); font-style: italic; font-weight: 300; }
.cat-hero .lead-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cat-hero .lead-row p { font-size: 16px; color: var(--ink-2); line-height: 1.6; max-width: 480px; }
.cat-hero .lead-row .stat-mini { display: flex; gap: 32px; align-items: baseline; }
.cat-hero .lead-row .stat-mini .n {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.cat-hero .lead-row .stat-mini .l {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 48px 0 32px;
  padding: 0;
  border-bottom: 2px solid var(--ink);
}
.search-bar svg { flex-shrink: 0; opacity: 0.5; margin-right: 12px; }
.search-bar input {
  flex: 1;
  border: none; outline: none; background: none;
  padding: 18px 0;
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.search-bar input::placeholder { color: var(--ink-3); }
.search-bar .submit {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
}

.filters {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 32px;
}
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  min-width: 80px;
}
.chip {
  padding: 8px 14px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  transition: all .25s var(--ease);
  letter-spacing: -0.005em;
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.results-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.results-meta .count {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.results-meta .sort { display: flex; gap: 10px; align-items: center; }
.results-meta .sort .l {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.results-meta select {
  background: none; border: none;
  font-family: var(--body);
  font-size: 13px; font-weight: 500;
  cursor: pointer; outline: none;
  color: var(--ink);
}

/* ============================================================
   COURSE PAGE
   ============================================================ */
.crumb {
  padding: 120px 0 28px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.crumb a { cursor: pointer; transition: color .2s; }
.crumb a:hover { color: var(--ink); }
.crumb .sep { margin: 0 10px; }
.crumb .now { color: var(--ink); }

.course-page-hero {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  padding-bottom: 64px;
  align-items: start;
}
.course-tag-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
[data-theme="dark"] .course-tag-pill { color: #fff; }
.course-page-h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin-bottom: 28px;
  text-wrap: balance;
}
.course-page-h1 .ser { font-family: var(--serif); font-style: italic; font-weight: 300; }
.course-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 36px;
  max-width: 580px;
}
.course-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.course-meta-grid .item {
  padding: 24px;
  border-right: 1px solid var(--line);
}
.course-meta-grid .item:first-child { padding-left: 0; }
.course-meta-grid .item:last-child { border-right: none; padding-right: 0; }
.course-meta-grid .v {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.course-meta-grid .k {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}

/* Buy card */
.buy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: sticky; top: 100px;
}
.buy-thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.buy-thumb svg { width: 50%; height: 50%; }
.buy-thumb .play {
  position: absolute;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .3s var(--ease);
}
.buy-thumb .play:hover { transform: scale(1.1); }
.buy-thumb .play svg { width: 18px; height: 18px; }
.buy-thumb .play::before {
  content: ''; position: absolute; inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  animation: ringPulse 2s ease-out infinite;
}
@keyframes ringPulse {
  from { transform: scale(0.9); opacity: 1; }
  to { transform: scale(1.4); opacity: 0; }
}
.buy-body { padding: 28px; }
.buy-price-row {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 6px;
}
.buy-price {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.buy-old {
  font-size: 16px;
  color: var(--ink-3);
  text-decoration: line-through;
}
.buy-discount {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  margin-bottom: 22px;
  font-weight: 500;
}
.buy-actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 24px;
}
.buy-actions .btn { width: 100%; padding: 16px; font-size: 14px; }
.buy-features {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.buy-feat {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--ink-2);
}
.buy-feat svg { color: var(--accent); flex-shrink: 0; }

/* What you'll learn / sections */
.h2-section {
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-bottom: 36px;
  text-wrap: balance;
}
.h2-section .ser { font-family: var(--serif); font-style: italic; font-weight: 300; }

.learn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
}
.learn-item {
  display: flex; gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
}
.learn-item .c {
  flex-shrink: 0; width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.learn-item .c svg { width: 12px; height: 12px; }

/* Modules */
.modules {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.module {
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.module:hover { background: var(--paper); }
.module.open { background: var(--paper); }
.module-head {
  padding: 28px 0;
  cursor: pointer;
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  align-items: center;
  gap: 24px;
}
.module .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.module .t {
  font-family: var(--display);
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.module .meta {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.module .toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s var(--ease);
}
.module.open .toggle {
  background: var(--ink); border-color: var(--ink); color: var(--bg);
  transform: rotate(45deg);
}
.module-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.module.open .module-body { grid-template-rows: 1fr; }
.module-body > div { overflow: hidden; }
.module-inner { padding: 0 0 28px 84px; }
.lesson {
  padding: 12px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.lesson:last-child { border-bottom: none; }
.lesson .l { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.lesson .l-icon {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
}
.lesson .d {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* Teacher */
.teacher {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: start;
}
.teacher-av {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 42px; font-weight: 400;
  flex-shrink: 0;
}
.teacher h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.teacher .role {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.teacher p {
  font-size: 16px; line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.teacher-stats {
  display: flex; gap: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.teacher-stats .item .v {
  font-family: var(--display);
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.02em;
}
.teacher-stats .item .k {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}

/* Reviews */
.reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.review-head {
  display: flex; gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.review-av {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 13px; font-weight: 600;
}
.review-name {
  font-family: var(--display);
  font-size: 16px; font-weight: 500;
  letter-spacing: -0.01em;
}
.review-meta {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}
.review .stars {
  margin-left: auto;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 1px;
}
.review p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
  text-wrap: pretty;
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-hero { padding: 120px 0 36px; }
.checkout-h1 {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin-bottom: 14px;
}
.checkout-h1 .ser { font-family: var(--serif); font-style: italic; font-weight: 300; }
.checkout-sub { font-size: 17px; color: var(--ink-2); }

.checkout-grid {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  padding-bottom: 80px;
  align-items: start;
}
.co-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  margin-bottom: 16px;
}
.co-section h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.co-section h3 .stp {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 12px; font-weight: 500;
}

.pay-methods {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pay-method {
  padding: 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  transition: all .25s var(--ease);
  background: var(--paper);
}
.pay-method:hover { border-color: var(--ink-2); }
.pay-method.active {
  border-color: var(--ink);
  background: var(--bg-soft);
}
.pay-method .pm-icon {
  width: 40px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 10px; font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.pay-method .pm-name { font-size: 14px; font-weight: 500; letter-spacing: -0.005em; }
.pay-method .pm-sub {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-top: 2px;
}
.pay-method .check {
  margin-left: auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  flex-shrink: 0;
  transition: all .25s;
  position: relative;
}
.pay-method.active .check {
  background: var(--ink);
  border-color: var(--ink);
}
.pay-method.active .check::after {
  content: '';
  position: absolute; left: 5px; top: 2px;
  width: 6px; height: 10px;
  border-right: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: rotate(45deg);
}

/* Form */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: all .25s;
  letter-spacing: -0.005em;
}
.field input:focus {
  background: var(--surface);
  border-color: var(--ink);
}
.field input::placeholder { color: var(--ink-3); font-weight: 400; }
.field.full { grid-column: span 2; }

.promo-row { display: flex; gap: 8px; }
.promo-row input {
  flex: 1; padding: 14px 16px;
  background: var(--paper);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  font-size: 14px; outline: none;
}
.promo-row input:focus { background: var(--surface); border-color: var(--ink); }
.promo-row button {
  padding: 14px 22px;
  border: 1px solid var(--ink);
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 500;
  letter-spacing: -0.005em;
  transition: all .25s;
}
.promo-row button:hover { background: var(--ink); color: var(--bg); }

/* Summary sticky */
.summary {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-lg);
  padding: 36px;
  position: sticky; top: 100px;
}
.summary h3 {
  font-family: var(--display);
  font-size: 20px; font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}
.sum-course {
  display: flex; gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 22px;
}
.sum-course-img {
  width: 80px; height: 60px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.sum-course .info h4 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.sum-course .info .sub {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.sum-line {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
}
.sum-line .lbl { color: rgba(255,255,255,0.6); }
.sum-line .val { font-weight: 500; }
.sum-line.discount .val { color: #6BCF7F; }
.sum-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 22px 0;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.sum-total .lbl {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.sum-total .val {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.pay-btn {
  width: 100%;
  padding: 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: filter .25s;
}
.pay-btn:hover { filter: brightness(1.15); }
.pay-btn.is-loading { filter: none; opacity: 0.85; cursor: progress; }
.pay-btn[disabled] { pointer-events: none; }
.pay-spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: paySpin .7s linear infinite;
}
@keyframes paySpin { to { transform: rotate(360deg); } }
.pay-secure {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-top: 14px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* Success */
.success-screen { text-align: center; padding: 140px 0; max-width: 620px; margin: 0 auto; }
.success-icon {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 36px;
}
.success-screen h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin-bottom: 16px;
}
.success-screen h1 .ser { font-family: var(--serif); font-style: italic; font-weight: 300; }
.success-screen p { font-size: 17px; color: var(--ink-2); line-height: 1.55; margin-bottom: 36px; }
.success-receipt {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  text-align: left;
  margin-bottom: 32px;
}
.success-receipt .row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
}
.success-receipt .row .k {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.success-receipt .row .v { font-weight: 500; }
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  margin-top: 120px;
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}
.foot-mega {
  font-family: var(--display);
  font-size: clamp(80px, 18vw, 320px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  font-weight: 500;
  margin-bottom: 60px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.1em;
}
.foot-mega .ser { font-family: var(--serif); font-style: italic; font-weight: 300; }
.foot-mega .accent-dot {
  display: inline-block;
  width: 0.7em; height: 0.7em;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 60px 0 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.foot-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
  margin-top: 16px;
}
.foot-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
  font-weight: 500;
}
.foot-col a {
  display: block;
  font-size: 15px;
  padding: 7px 0;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: color .2s, transform .25s var(--ease);
  letter-spacing: -0.005em;
}
.foot-col a:hover {
  color: var(--accent);
  transform: translateX(4px);
}
.foot-bottom {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.foot-brand .logo { color: var(--bg); }
.foot-brand .o-outer { stroke: var(--bg); }

/* ============================================================
   REVEALS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .cats { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
  .courses { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .nav { padding: 14px 20px; }
  .menu { display: none; }
  .nav-inner { grid-template-columns: auto 1fr; }
  .nav-right { gap: 6px; }

  .hero { padding: 100px 0 32px; min-height: auto; }
  .hero-row { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions { justify-self: start; }
  .hero-blob { width: 80vw; right: -30%; top: 0; opacity: 0.4; }

  .section { padding: 80px 0; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }

  .cats { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .cat { min-height: 200px; }
  .cat.span-2, .cat.span-3, .cat.span-row-2 { grid-column: span 1; grid-row: span 1; }

  .courses { grid-template-columns: 1fr; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .b2b { padding: 40px; }
  .b2b-grid { grid-template-columns: 1fr; gap: 32px; }

  .cat-hero .lead-row { grid-template-columns: 1fr; gap: 24px; }

  .course-page-hero { grid-template-columns: 1fr; }
  .buy { position: static; }
  .course-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .course-meta-grid .item:nth-child(2) { border-right: none; }
  .course-meta-grid .item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .module-head { grid-template-columns: 40px 1fr auto; gap: 16px; }
  .module .meta { display: none; }
  .module-inner { padding: 0 0 24px 0; }
  .learn { grid-template-columns: 1fr; padding: 28px; }
  .teacher { grid-template-columns: 1fr; padding: 32px; }
  .teacher-stats { gap: 18px; flex-wrap: wrap; }
  .reviews { grid-template-columns: 1fr; }

  .checkout-grid { grid-template-columns: 1fr; gap: 24px; }
  .summary { position: static; }
  .pay-methods { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: span 1; }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .marquee-item { font-size: 36px; padding: 0 18px; gap: 18px; }
  .lang { display: none; }
  .nav-right .btn-ghost { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-mega { font-size: 88px; }
  .stat { padding: 24px 16px; }
  .b2b { padding: 28px; }
  .co-section { padding: 24px; }
  .summary { padding: 28px; }
  .results-meta .sort .l { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* === Liquid-glass capsule for active menu === */
.liquid-menu { position: relative; }
.liquid-menu > button { position: relative; z-index: 1; transition: color .25s; }
.liquid-menu > button.active { color: var(--ink); }
.liquid-pill {
  display: block;
}
