/* =====================================================================
   MASTERING REVIT API Design System
   Theme: "Revit Blue + Amber on near-black" (IDE-inspired)
   Author site for Alaa Elsolami's Revit API course
   ===================================================================== */

/* ------------------------------------------------------------------ *
 * 1. Design Tokens
 * ------------------------------------------------------------------ */
:root {
  /* Surfaces */
  --bg:            #0A0E17;
  --bg-2:          #0C1120;
  --surface:       #111827;
  --surface-2:     #151E30;
  --surface-3:     #1B2740;
  --glass:         rgba(17, 24, 39, 0.55);
  --glass-strong:  rgba(13, 18, 32, 0.82);

  /* Borders */
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-blue:   rgba(59, 130, 246, 0.40);

  /* Text */
  --text:          #E7EEF8;
  --text-dim:      #9AA8BF;
  --text-faint:    #9DAAC4;

  /* Brand / accents (Revit blue + amber + IDE syntax colors) */
  --blue:          #3B82F6;
  --blue-bright:   #60A5FA;
  --blue-deep:     #2563EB;
  --amber:         #F59E0B;
  --amber-bright:  #FBBF24;
  --cyan:          #22D3EE;
  --green:         #3FB950;
  --purple:        #A78BFA;
  --pink:          #F472B6;
  --red:           #FF6B6B;

  /* Gradients */
  --grad-primary:  linear-gradient(135deg, #3B82F6 0%, #22D3EE 100%);
  --grad-accent:   linear-gradient(135deg, #F59E0B 0%, #FB7185 100%);
  --grad-text:     linear-gradient(120deg, #60A5FA 0%, #22D3EE 50%, #FBBF24 100%);
  --grad-surface:  linear-gradient(160deg, rgba(27,39,64,0.7) 0%, rgba(13,18,32,0.5) 100%);

  /* Glows & shadows */
  --glow-blue:     0 0 48px rgba(59, 130, 246, 0.35);
  --glow-amber:    0 0 48px rgba(245, 158, 11, 0.28);
  --glow-cyan:     0 0 48px rgba(34, 211, 238, 0.30);
  --shadow-sm:     0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow:        0 18px 50px -12px rgba(0, 0, 0, 0.65);
  --shadow-lg:     0 40px 90px -24px rgba(0, 0, 0, 0.75);

  /* Typography */
  --font-display:  'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body:     'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'Consolas', monospace;

  /* Radii */
  --r-sm:  8px;
  --r:     14px;
  --r-lg:  22px;
  --r-xl:  30px;
  --r-full: 999px;

  /* Layout */
  --container: 1200px;
  --nav-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------------ *
 * 2. Reset & Base
 * ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient backdrop glow blobs */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(50% 40% at 18% 8%, rgba(59,130,246,0.18) 0%, transparent 60%),
    radial-gradient(45% 45% at 88% 12%, rgba(34,211,238,0.12) 0%, transparent 60%),
    radial-gradient(60% 50% at 70% 95%, rgba(245,158,11,0.10) 0%, transparent 60%),
    var(--bg);
}

/* Subtle blueprint grid overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }

::selection { background: rgba(59,130,246,0.35); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #243049; border-radius: 99px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: #324264; }
/* Firefox scrollbar (mirrors the WebKit styling above) */
html { scrollbar-width: thin; scrollbar-color: #324264 var(--bg-2); }

/* ------------------------------------------------------------------ *
 * 3. Typography helpers
 * ------------------------------------------------------------------ */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }

.h-xl { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.h-lg { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.h-md { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.gradient-text {
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 8s ease infinite;
}

.text-blue  { color: var(--blue-bright); }
.text-amber { color: var(--amber-bright); }
.text-cyan  { color: var(--cyan); }
.text-dim   { color: var(--text-dim); }
.mono       { font-family: var(--font-mono); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-blue);
  border-radius: var(--r-full);
  background: rgba(34, 211, 238, 0.06);
}
.eyebrow::before { content: "<"; opacity: 0.6; }
.eyebrow::after  { content: "/>"; opacity: 0.6; }

/* ------------------------------------------------------------------ *
 * 4. Layout primitives
 * ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

section { position: relative; }

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.section-head p {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 1.08rem;
}

.grid { display: grid; gap: 1.5rem; }
.center { text-align: center; }

/* ------------------------------------------------------------------ *
 * 5. Buttons
 * ------------------------------------------------------------------ */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: var(--r-full);
  background: var(--btn-bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn svg { width: 1.15em; height: 1.15em; }

.btn-primary {
  background: var(--grad-primary);
  border-color: transparent;
  color: #061021;
  font-weight: 700;
  box-shadow: var(--glow-blue);
}
.btn-primary:hover { box-shadow: 0 12px 40px rgba(59,130,246,0.55); }

.btn-wa {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-color: transparent;
  color: #04140d;
  font-weight: 700;
  box-shadow: 0 0 42px rgba(37, 211, 102, 0.30);
}
.btn-wa:hover { box-shadow: 0 12px 40px rgba(37, 211, 102, 0.50); }

.btn-ghost { background: rgba(255,255,255,0.03); }
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: var(--border-blue); }

.btn-lg { padding: 1.15rem 2rem; font-size: 1.1rem; }
.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.88rem; }
.btn-block { display: flex; width: 100%; }

/* ------------------------------------------------------------------ *
 * 6. Cards & surfaces
 * ------------------------------------------------------------------ */
.card {
  position: relative;
  background: var(--grad-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  backdrop-filter: blur(10px);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-blue);
  box-shadow: var(--shadow);
}

/* gradient ring on hover */
.card-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-primary);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s;
}
.card-glow:hover::before { opacity: 0.8; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.chip strong { color: var(--text); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.32rem 0.7rem;
  border-radius: var(--r-full);
  background: var(--grad-accent);
  color: #1a0e00;
}

/* ------------------------------------------------------------------ *
 * 7. Top offer ribbon
 * ------------------------------------------------------------------ */
.ribbon {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  text-align: center;
  background: linear-gradient(90deg, rgba(245,158,11,0.16), rgba(59,130,246,0.16));
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.ribbon b { color: var(--amber-bright); }
.ribbon .countdown {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.ribbon .countdown span {
  background: rgba(0,0,0,0.35);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.ribbon-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); font-size: 1.1rem; line-height: 1; padding: 4px;
}
.ribbon-close:hover { color: var(--text); }

/* ------------------------------------------------------------------ *
 * 8. Navbar
 * ------------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand .logo-mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--grad-primary);
  box-shadow: var(--glow-blue);
  color: #061021;
}
.brand .logo-mark svg { width: 20px; height: 20px; }
.brand small { display: block; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; color: var(--cyan); letter-spacing: 0.18em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links a {
  position: relative;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
  color: var(--text-dim);
  border-radius: var(--r-sm);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.25rem; height: 2px;
  background: var(--grad-primary); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 0.6rem; }

.nav-toggle { display: none; flex: none; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--border); }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--text); transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------------ *
 * 9. Hero
 * ------------------------------------------------------------------ */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 9vw, 7rem); overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.6; }
.hero h1, .hero .lead { text-shadow: 0 2px 30px rgba(8, 12, 22, 0.85); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-copy { max-width: 640px; }
.hero h1 { margin: 1.3rem 0 1.25rem; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--text-dim); max-width: 540px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.8rem 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.5rem; }
.hero-note { margin-top: 1.2rem; font-size: 0.86rem; color: var(--text-faint); display: flex; align-items: center; gap: 0.5rem; }
.hero-note b { color: var(--text-dim); font-weight: 600; }

/* ------------------------------------------------------------------ *
 * 10. IDE / code window
 * ------------------------------------------------------------------ */
.ide {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #0d1424 0%, #0a0f1c 100%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), var(--glow-blue);
  overflow: hidden;
  font-family: var(--font-mono);
  min-width: 0;
  max-width: 100%;
}
.ide::after { /* glossy edge light */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.ide-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--border);
}
.ide-dot { width: 12px; height: 12px; border-radius: 50%; }
.ide-dot.r { background: #ff5f57; } .ide-dot.y { background: #febc2e; } .ide-dot.g { background: #28c840; }
.ide-file { margin-left: 0.6rem; font-size: 0.8rem; color: var(--text-dim); display: flex; align-items: center; gap: 0.45rem; }
.ide-file::before { content: ""; width: 14px; height: 14px; background: var(--purple); border-radius: 3px; box-shadow: 0 0 8px rgba(167,139,250,0.6); }
.ide-tag { margin-left: auto; font-size: 0.7rem; color: var(--green); display: flex; align-items: center; gap: 0.35rem; }
.ide-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.ide-body { display: flex; font-size: 0.86rem; line-height: 1.75; min-height: 340px; min-width: 0; }
.ide-gutter {
  padding: 1.1rem 0.6rem 1.1rem 1rem; text-align: right; color: #3a4866; user-select: none;
  border-right: 1px solid var(--border); background: rgba(0,0,0,0.15);
}
.ide-code { padding: 1.1rem 1.2rem; overflow-x: auto; white-space: pre; flex: 1; min-width: 0; }
.ide-code .caret { display: inline-block; width: 8px; height: 1.05em; background: var(--cyan); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; margin-left: 1px; box-shadow: 0 0 8px var(--cyan); }

/* syntax colors */
.tok-key  { color: #569cd6; }
.tok-type { color: #4ec9b0; }
.tok-fn   { color: #dcdcaa; }
.tok-str  { color: #ce9178; }
.tok-num  { color: #b5cea8; }
.tok-cmt  { color: #6a9955; font-style: italic; }
.tok-pun  { color: #9aa8bf; }
.tok-var  { color: #9cdcfe; }

/* ------------------------------------------------------------------ *
 * 11. Marquee (tech strip)
 * ------------------------------------------------------------------ */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: rgba(255,255,255,0.015); padding: 1.1rem 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-mono); font-size: 1rem; color: var(--text-dim); white-space: nowrap; }
.marquee-item b { color: var(--text); }
.marquee-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); }

/* ------------------------------------------------------------------ *
 * 12. Feature cards
 * ------------------------------------------------------------------ */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.3rem; }
.feature .ficon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: rgba(59,130,246,0.12); border: 1px solid var(--border-blue); color: var(--blue-bright);
}
.feature .ficon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.feature p { color: var(--text-dim); font-size: 0.96rem; }

/* ------------------------------------------------------------------ *
 * 13. Stats band
 * ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.6rem 1rem; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; }
.stat .num .suffix { -webkit-text-fill-color: var(--amber-bright); }
.stat .label { margin-top: 0.6rem; color: var(--text-dim); font-size: 0.92rem; }

/* ------------------------------------------------------------------ *
 * 14. Demo (plugin) window
 * ------------------------------------------------------------------ */
.demo-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2.5rem; align-items: center; }
.revit-window { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); background: #0d1424; }
.revit-window .ide-bar { background: linear-gradient(90deg, rgba(59,130,246,0.12), rgba(34,211,238,0.06)); }
.revit-window img, .revit-window video { width: 100%; height: auto; display: block; }
.demo-list { display: grid; gap: 1rem; }
.demo-list li { display: flex; gap: 0.85rem; align-items: flex-start; color: var(--text-dim); }
.demo-list li svg { flex: none; width: 22px; height: 22px; color: var(--green); margin-top: 2px; }
.demo-list li b { color: var(--text); display: block; }

/* ------------------------------------------------------------------ *
 * 15. Module preview cards
 * ------------------------------------------------------------------ */
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.4rem; }
.module-card { display: flex; flex-direction: column; }
.module-card .mhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.module-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--cyan); border: 1px solid var(--border-blue); border-radius: var(--r-full); padding: 0.25rem 0.7rem; }
.module-card h3 { font-size: 1.22rem; margin-bottom: 0.5rem; }
.module-card p { color: var(--text-dim); font-size: 0.93rem; flex: 1; }
.module-card .lesson-count { margin-top: 1.1rem; font-family: var(--font-mono); font-size: 0.85rem; color: var(--text); display: flex; align-items: center; gap: 0.5rem; }
.module-card .lesson-count .bar { flex: 1; height: 5px; border-radius: 99px; background: rgba(255,255,255,0.07); overflow: hidden; }
.module-card .lesson-count .bar i { display: block; height: 100%; background: var(--grad-primary); border-radius: 99px; }

/* ------------------------------------------------------------------ *
 * 17. Instructor teaser
 * ------------------------------------------------------------------ */
.instructor { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2.5rem; align-items: center; }
.avatar {
  position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden;
  background: var(--grad-surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
}
.avatar .mono-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 10vw, 6rem);
  background: radial-gradient(circle at 50% 30%, rgba(59,130,246,0.25), transparent 70%);
  color: var(--blue-bright);
}
.avatar img { position: relative; width: 100%; height: 100%; object-fit: cover; }
/* Background-removed photo over a branded backdrop */
.avatar.photo { background: radial-gradient(118% 85% at 50% 2%, rgba(59,130,246,0.32), rgba(34,211,238,0.07) 46%, transparent 70%), linear-gradient(160deg, var(--surface-2), var(--bg-2)); }
.avatar.photo::before { content: ""; position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%); }
.avatar.photo img { object-fit: cover; object-position: center top; z-index: 1; }
.avatar.photo::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to top, rgba(10,14,23,0.55), transparent 34%); }
.instructor h2 { margin-bottom: 0.4rem; }
.instructor .role { font-family: var(--font-mono); color: var(--cyan); font-size: 0.95rem; margin-bottom: 1.2rem; }
.instructor p { color: var(--text-dim); margin-bottom: 1rem; }
.cred-list { display: grid; gap: 0.7rem; margin: 1.2rem 0 1.6rem; }
.cred-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.cred-list li svg { flex: none; width: 20px; height: 20px; color: var(--amber); margin-top: 3px; }

/* ------------------------------------------------------------------ *
 * 18. Pricing
 * ------------------------------------------------------------------ */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; max-width: 880px; margin-inline: auto; }
.price-card { display: flex; flex-direction: column; padding: 2.2rem; overflow: hidden; }
.price-card.featured { border-color: var(--border-blue); box-shadow: var(--glow-blue); }
.price-card.featured::after { content: "Most Popular"; position: absolute; top: 1.3rem; right: -2.4rem; transform: rotate(45deg); background: var(--grad-primary); color: #061021; font-family: var(--font-mono); font-weight: 700; font-size: 0.7rem; padding: 0.3rem 2.6rem; }
.price-card h3 { font-size: 1.4rem; }
.price-card .ptag { color: var(--text-dim); font-size: 0.92rem; margin: 0.4rem 0 1.3rem; }
.price-row { display: flex; align-items: baseline; gap: 0.6rem; }
.price-now { font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; }
.price-old { font-family: var(--font-mono); font-size: 1.2rem; color: var(--text-faint); text-decoration: line-through; }
.price-card .save { color: var(--green); font-family: var(--font-mono); font-size: 0.85rem; margin-top: 0.5rem; }
.price-features { display: grid; gap: 0.8rem; margin: 1.6rem 0; flex: 1; }
.price-features li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--text-dim); font-size: 0.95rem; }
.price-features li svg { flex: none; width: 19px; height: 19px; color: var(--green); margin-top: 2px; }
.price-features li.off { color: var(--text-faint); }
.price-features li.off svg { color: var(--text-faint); }

/* ------------------------------------------------------------------ *
 * 19. FAQ
 * ------------------------------------------------------------------ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 1rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r); background: var(--glass); overflow: hidden; transition: border-color .3s; }
.faq-item[open] { border-color: var(--border-blue); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.2rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; transition: transform .3s, background .3s; color: var(--blue-bright); }
.faq-item summary .ic svg { width: 12px; height: 12px; display: block; }
.faq-item[open] summary .ic { transform: rotate(45deg); background: var(--blue); color: #061021; }
.faq-item .faq-body { padding: 0 1.4rem 1.3rem; color: var(--text-dim); }

/* ------------------------------------------------------------------ *
 * 20. CTA band
 * ------------------------------------------------------------------ */
.cta-band { position: relative; text-align: center; border-radius: var(--r-xl); padding: clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; border: 1px solid var(--border-blue); background: linear-gradient(140deg, rgba(59,130,246,0.14), rgba(34,211,238,0.06) 50%, rgba(245,158,11,0.08)); }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { color: var(--text-dim); max-width: 560px; margin: 0 auto 2rem; font-size: 1.08rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------------ *
 * 21. Footer
 * ------------------------------------------------------------------ */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-block: 3.5rem 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr 1.6fr; gap: 2rem; }
.footer h4 { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); margin-bottom: 1.1rem; }
.footer .brand { margin-bottom: 1rem; }
.footer p { color: var(--text-dim); font-size: 0.92rem; max-width: 320px; }
.footer-links { display: grid; gap: 0.6rem; }
.footer-links a { color: var(--text-dim); font-size: 0.94rem; transition: color .2s; white-space: nowrap; }
.footer-links a:hover { color: var(--blue-bright); }
.socials { display: flex; gap: 0.7rem; }
.socials a { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); transition: .25s; }
.socials a:hover { color: #fff; border-color: var(--border-blue); transform: translateY(-3px); background: var(--surface-2); }
.socials a svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--text-faint); font-size: 0.86rem; }

/* ------------------------------------------------------------------ *
 * 22. Floating actions
 * ------------------------------------------------------------------ */
/* Floating "Enroll" action — round, bottom-right (replaces the old WhatsApp float) */
.fab-enroll {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; text-decoration: none;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright)); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 32px rgba(59,130,246,0.5);
  transition: transform .25s; animation: floatY 3s ease-in-out infinite;
}
.fab-enroll:hover { transform: scale(1.1); }
.fab-enroll svg { width: 30px; height: 30px; }
.fab-enroll::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--blue); animation: ping 2.4s ease-out infinite; }
.fab-enroll::before { content: attr(data-tip); position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--r); padding: 0.4rem 0.7rem; font-family: var(--font-mono); font-size: 0.78rem; opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: var(--shadow); }
.fab-enroll:hover::before { opacity: 1; }

/* Enhanced, wider home-hero Enroll CTA */
.btn-enroll-hero { min-width: 280px; justify-content: center; font-size: 1.18rem; padding: 1.05rem 2.6rem; border-radius: var(--r-lg); box-shadow: 0 16px 44px rgba(59,130,246,0.45); animation: enrollPulse 2.8s ease-in-out infinite; }
.btn-enroll-hero svg { width: 22px; height: 22px; }
@keyframes enrollPulse { 0%, 100% { box-shadow: 0 16px 44px rgba(59,130,246,0.40); } 50% { box-shadow: 0 16px 56px rgba(59,130,246,0.68); } }
@media (max-width: 560px) { .btn-enroll-hero { width: 100%; min-width: 0; } }
@media (prefers-reduced-motion: reduce) { .btn-enroll-hero { animation: none; } .fab-enroll { animation: none; } }

.to-top { position: fixed; right: 29px; bottom: 110px; z-index: 40; width: 44px; height: 44px; border-radius: 12px; background: var(--glass-strong); backdrop-filter: blur(10px); border: 1px solid var(--border-strong); color: var(--text); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--blue-bright); transform: translateY(-3px); }

/* ------------------------------------------------------------------ *
 * 23. Scroll reveal
 * ------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }

/* ------------------------------------------------------------------ *
 * 24. Keyframes
 * ------------------------------------------------------------------ */
@keyframes gradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ *
 * 25. Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .ide { max-width: 560px; }
  .demo-grid { grid-template-columns: 1fr; }
  .instructor { grid-template-columns: 1fr; }
  .avatar { max-width: 320px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-text { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--glass-strong); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border); padding: 1rem 1.5rem 1.5rem; gap: 0.2rem;
  }
  .nav.open .nav-links a { padding: 0.85rem 0.5rem; font-size: 1.05rem; }
  .nav.open .nav-links a.active::after { display: none; }
  .section { padding-block: 3.5rem; }
  #hero-canvas { opacity: 0.32; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .ribbon { font-size: 0.8rem; }
  .price-card.featured::after { display: none; }
}

@media (max-width: 360px) {
  .footer-links a { font-size: 0.82rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==================================================================== *
 * 26. Sub-page hero
 * ==================================================================== */
.page-hero { position: relative; padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); overflow: hidden; text-align: center; border-bottom: 1px solid var(--border); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 80% at 50% 0%, rgba(59,130,246,0.15), transparent 70%);
}
.page-hero h1 { margin: 1rem 0 0.8rem; }
.page-hero p { color: var(--text-dim); max-width: 640px; margin-inline: auto; font-size: 1.08rem; }
.crumbs { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint); }
.crumbs a { color: var(--cyan); }

/* ==================================================================== *
 * 27. Curriculum tabs + skill tree
 * ==================================================================== */
.modtabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-bottom: 3rem; }
.modtab {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.2rem; border-radius: var(--r-full);
  border: 1px solid var(--border); background: var(--glass); color: var(--text-dim);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; transition: .25s;
}
.modtab .n { font-family: var(--font-mono); font-size: 0.72rem; color: var(--cyan); border: 1px solid var(--border-blue); border-radius: var(--r-full); padding: 0.1rem 0.5rem; }
.modtab:hover { color: var(--text); border-color: var(--border-blue); }
.modtab.active { background: var(--grad-primary); color: #061021; border-color: transparent; box-shadow: var(--glow-blue); }
.modtab.active .n { color: #061021; border-color: rgba(0,0,0,0.25); }

.modpanel { display: none; }
.modpanel.active { display: block; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.modpanel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; margin-bottom: 2rem; padding: 1.6rem 1.8rem; border-radius: var(--r-lg); background: var(--grad-surface); border: 1px solid var(--border); }
.modpanel-head h2 { font-size: 1.6rem; }
.modpanel-head p { color: var(--text-dim); margin-top: 0.3rem; font-size: 0.95rem; }
.modpanel-head .meta { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* The tree */
.tree { position: relative; margin-left: 12px; padding-left: 32px; }
.tree::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--blue), var(--cyan), var(--amber)); opacity: 0.5; border-radius: 2px; }
.tnode { position: relative; padding: 0.55rem 0; display: flex; align-items: flex-start; gap: 0.9rem; }
.tnode::before {
  content: ""; position: absolute; left: -39px; top: 0.95rem; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--blue); box-shadow: 0 0 0 4px rgba(59,130,246,0.12); transition: .25s;
}
.tnode:hover::before { background: var(--blue); box-shadow: 0 0 14px var(--blue); }
.tnode .ix { flex: none; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint); width: 26px; text-align: right; padding-top: 0.15rem; }
.tnode .tt { font-weight: 500; }
.tnode .tt small { display: block; color: var(--text-faint); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400; }
.tnode.milestone .tt { color: var(--amber-bright); font-weight: 600; }
.tnode.milestone::before { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(245,158,11,0.14); }

/* Plugin gallery */
.plugin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.plugin-card { overflow: hidden; padding: 0; }
.plugin-card .pc-media { aspect-ratio: 16/9; background: #0d1424; border-bottom: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; }
.plugin-card .pc-media img { width: 100%; height: 100%; object-fit: cover; }
.plugin-card .pc-media .ph { font-family: var(--font-mono); color: var(--text-faint); font-size: 0.85rem; }
.plugin-card .pc-body { padding: 1.4rem 1.6rem; }
.plugin-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.plugin-card p { color: var(--text-dim); font-size: 0.93rem; }
.plugin-card .parts { display: flex; gap: 0.4rem; margin-top: 1rem; flex-wrap: wrap; }
.plugin-card .parts span { font-family: var(--font-mono); font-size: 0.72rem; padding: 0.2rem 0.55rem; border-radius: 6px; background: rgba(59,130,246,0.12); border: 1px solid var(--border-blue); color: var(--blue-bright); }

/* ==================================================================== *
 * 28. About timeline, skills, education
 * ==================================================================== */
.about-hero { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: center; }
.about-hero .avatar { max-width: 440px; aspect-ratio: 4/5; width: 100%; justify-self: center; }
.about-lead { font-size: 1.15rem; color: var(--text); }

.timeline { position: relative; max-width: 820px; margin-inline: auto; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--blue), var(--cyan) 50%, var(--amber)); opacity: 0.45; }
.tl-item { position: relative; padding-bottom: 1.6rem; }
.tl-item::before { content: ""; position: absolute; left: -34px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--blue); box-shadow: 0 0 0 4px rgba(59,130,246,0.12); }
.tl-item.now::before { border-color: var(--amber); box-shadow: 0 0 16px var(--amber); }
.tl-card { padding: 1.4rem 1.6rem; }
.tl-when { font-family: var(--font-mono); font-size: 0.78rem; color: var(--cyan); }
.tl-card h3 { font-size: 1.15rem; margin: 0.3rem 0 0.15rem; }
.tl-where { color: var(--amber-bright); font-size: 0.92rem; font-weight: 500; margin-bottom: 0.5rem; }
.tl-card p { color: var(--text-dim); font-size: 0.93rem; }

.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.3rem; }
.skill-group h4 { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan); margin-bottom: 0.9rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag { font-family: var(--font-mono); font-size: 0.82rem; padding: 0.4rem 0.8rem; border-radius: var(--r-sm); background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-dim); transition: .2s; }
.skill-tag:hover { color: var(--text); border-color: var(--border-blue); transform: translateY(-2px); }

/* ==================================================================== *
 * 29. Enroll steps + compare
 * ==================================================================== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; counter-reset: step; }
.step { position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 11px; background: rgba(96,165,250,0.12); border: 1px solid var(--border-blue); color: var(--blue-bright); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 1.1rem; box-shadow: 0 0 18px -6px var(--blue); }
.step h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-dim); font-size: 0.93rem; }

.guarantee { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; justify-content: center; text-align: center; max-width: 720px; margin: 2.5rem auto 0; padding: 1.5rem 2rem; border-radius: var(--r-lg); border: 1px dashed var(--border-blue); background: rgba(59,130,246,0.05); }
.guarantee svg { width: 38px; height: 38px; color: var(--green); flex: none; }
.guarantee p { color: var(--text-dim); font-size: 0.95rem; text-align: left; }
.guarantee b { color: var(--text); }

@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero .avatar { max-width: 340px; }
}

/* ==================================================================== *
 * 30. v2 — Creative portrait stage (instructor photo)
 * ==================================================================== */
.portrait-stage {
  position: relative; width: 100%; max-width: 460px; aspect-ratio: 5/6;
  margin-inline: auto; display: grid; place-items: end center; overflow: visible;
}
.portrait-stage .disc {
  position: absolute; width: 88%; aspect-ratio: 1; left: 6%; top: 4%; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.50), rgba(34,211,238,0.14) 52%, transparent 72%);
  filter: blur(4px); z-index: 0;
}
.portrait-stage .ring {
  position: absolute; width: 96%; aspect-ratio: 1; left: 2%; top: 2%; border-radius: 50%;
  border: 1px dashed rgba(96,165,250,0.40); z-index: 1; animation: spinSlow 44s linear infinite;
}
.portrait-stage .ring::after {
  content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan);
}
.portrait-stage .grid-bg {
  position: absolute; inset: 0; z-index: 0; border-radius: var(--r-xl);
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: radial-gradient(circle at 50% 44%, #000, transparent 70%);
}
.portrait-stage img {
  position: relative; z-index: 2; max-height: 100%; width: auto; max-width: 96%;
  object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 26px 44px rgba(0,0,0,0.65));
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 86%, transparent 99%);
}
.portrait-stage .pchip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-mono); font-size: 0.76rem; padding: 0.5rem 0.8rem; border-radius: var(--r-full);
  background: var(--glass-strong); backdrop-filter: blur(10px); border: 1px solid var(--border-strong);
  color: var(--text); box-shadow: var(--shadow-sm); animation: floatY 4.5s ease-in-out infinite; white-space: nowrap;
}
.portrait-stage .pchip b { color: var(--blue-bright); }
.portrait-stage .pchip .d { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.portrait-stage .pchip.c1 { top: 14%; left: -4%; }
.portrait-stage .pchip.c2 { top: 44%; right: -5%; animation-delay: 0.9s; }
.portrait-stage .pchip.c3 { bottom: 16%; left: -3%; animation-delay: 1.8s; }

/* ==================================================================== *
 * 31. v2 — Contact hub
 * ==================================================================== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 1rem; max-width: 940px; margin-inline: auto; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: var(--r); background: var(--glass); border: 1px solid var(--border); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.contact-card:hover { transform: translateY(-4px); border-color: var(--border-blue); box-shadow: var(--shadow); }
.contact-card .ci { flex: none; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; }
.contact-card .ci svg { width: 24px; height: 24px; }
.contact-card > span:not(.ci) { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.contact-card .ct { display: block; font-weight: 600; font-family: var(--font-display); line-height: 1.2; }
.contact-card .cs { display: block; color: var(--text-dim); font-size: 0.84rem; overflow-wrap: anywhere; }
.contact-card.wa .ci { background: rgba(37,211,102,.14); color: #25D366; }
.contact-card.li .ci { background: rgba(59,130,246,.16); color: var(--blue-bright); }
.contact-card.fb .ci { background: rgba(24,119,242,.18); color: #4a93ff; }
.contact-card.pg .ci { background: rgba(34,211,238,.14); color: var(--cyan); }
.contact-card.em .ci { background: rgba(245,158,11,.14); color: var(--amber-bright); }

/* ==================================================================== *
 * 32. v2 — Wide demo stage
 * ==================================================================== */
/* Break out wider than the container so the demo fills the screen */
.demo-stage { width: min(95vw, 1440px); max-width: none; margin-left: calc(50% - min(95vw, 1440px) / 2); }
.demo-stage .revit-window img, .demo-stage .revit-window video { width: 100%; }
.demo-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; margin-top: 2rem; }
.demo-feat { padding: 1.4rem 1.5rem; }
.demo-feat .di { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: .9rem; background: rgba(34,211,238,0.10); border: 1px solid var(--border-blue); color: var(--cyan); }
.demo-feat .di svg { width: 22px; height: 22px; }
.demo-feat h4 { font-size: 1.05rem; margin-bottom: .35rem; }
.demo-feat p { color: var(--text-dim); font-size: .9rem; }

/* ==================================================================== *
 * 33. v2 — Curriculum (module navigator + lesson grid)
 * ==================================================================== */
.curr { display: grid; grid-template-columns: 320px 1fr; gap: 2.2rem; align-items: start; }
.curr-nav { display: grid; gap: .8rem; position: sticky; top: calc(var(--nav-h) + 18px); }
.curr-nav button { text-align: left; display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border-radius: var(--r); border: 1px solid var(--border); background: var(--glass); transition: .25s; width: 100%; }
.curr-nav button .cn-num { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--text-faint); line-height: 1; transition: .25s; }
.curr-nav button .cn-t { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.curr-nav button .cn-s { color: var(--text-dim); font-size: .76rem; font-family: var(--font-mono); margin-top: .15rem; }
.curr-nav button:hover { border-color: var(--border-blue); transform: translateX(3px); }
.curr-nav button.active { background: var(--grad-surface); border-color: var(--border-blue); box-shadow: var(--glow-blue); }
.curr-nav button.active .cn-num { color: var(--blue-bright); }
.curr-panel { display: none; }
.curr-panel.active { display: block; animation: fadeUp .45s var(--ease); }
.curr-phead { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.6rem 1.8rem; border-radius: var(--r-lg); background: var(--grad-surface); border: 1px solid var(--border); margin-bottom: 1.6rem; }
.curr-phead h2 { font-size: 1.5rem; }
.curr-phead p { color: var(--text-dim); font-size: .95rem; margin-top: .3rem; max-width: 460px; }
.curr-phead .meta { display: flex; gap: .6rem; flex-wrap: wrap; }
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .7rem; }
.lpill { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem .95rem; border-radius: var(--r-sm); background: rgba(255,255,255,0.025); border: 1px solid var(--border); transition: .2s; }
.lpill:hover { border-color: var(--border-blue); background: rgba(59,130,246,0.07); transform: translateY(-2px); }
.lpill .lx { font-family: var(--font-mono); font-size: .72rem; color: var(--cyan); flex: none; padding-top: .12rem; }
.lpill .lt { font-size: .88rem; line-height: 1.4; }
.lpill.milestone { border-color: rgba(245,158,11,0.32); background: rgba(245,158,11,0.07); }
.lpill.milestone .lx { color: var(--amber-bright); }
.lpill.milestone .lt::after { content: " ★"; color: var(--amber); }

/* ==================================================================== *
 * 34. v2 — Instructor (company strip + journey)
 * ==================================================================== */
.company-strip { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.company-chip { font-family: var(--font-display); font-weight: 600; padding: .65rem 1.15rem; border-radius: var(--r); background: var(--glass); border: 1px solid var(--border); color: var(--text-dim); transition: .25s; }
.company-chip:hover { color: var(--text); border-color: var(--border-blue); transform: translateY(-3px); }
.company-chip b { color: var(--text); }
.bring { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.3rem; }
.bring .ficon { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 1rem; background: rgba(245,158,11,0.10); border: 1px solid rgba(245,158,11,0.30); color: var(--amber-bright); }
.bring .ficon svg { width: 25px; height: 25px; }
.bring h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.bring p { color: var(--text-dim); font-size: .93rem; }

/* ==================================================================== *
 * 35. v2 — Responsive for new components
 * ==================================================================== */
@media (max-width: 900px) {
  .curr { grid-template-columns: 1fr; }
  .curr-nav { position: static; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; padding-bottom: .5rem; }
  .curr-nav button:hover { transform: none; }
}
@media (max-width: 560px) {
  .portrait-stage .pchip.c2 { right: 0; }
  .portrait-stage .pchip.c1, .portrait-stage .pchip.c3 { left: 0; }
}

/* ==================================================================== *
 * 36. v2 — Tech stack category cards
 * ==================================================================== */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.2rem; }
.stack-cat { padding: 1.5rem 1.6rem; }
.stack-cat .sc-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.15rem; }
.stack-cat .sc-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accbg); color: var(--acc); border: 1px solid var(--accbd); }
.stack-cat .sc-ic svg { width: 22px; height: 22px; }
.stack-cat h4 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); text-transform: none; margin: 0; }
.stack-cat .sc-sub { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); margin-top: 0.12rem; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stack-tags span { font-family: var(--font-mono); font-size: 0.82rem; padding: 0.42rem 0.8rem; border-radius: 9px; background: rgba(255,255,255,0.035); border: 1px solid var(--border); color: var(--text-dim); transition: transform .2s var(--ease), color .2s, border-color .2s, background .2s; cursor: default; }
.stack-tags span:hover { color: #fff; border-color: var(--accbd); background: var(--accbg); transform: translateY(-2px); }
.stack-cat:hover .sc-ic { box-shadow: 0 0 22px -4px var(--acc); }

.c-blue   { --acc:#60A5FA; --accbg:rgba(96,165,250,.14);  --accbd:rgba(96,165,250,.42); }
.c-cyan   { --acc:#22D3EE; --accbg:rgba(34,211,238,.14);  --accbd:rgba(34,211,238,.42); }
.c-amber  { --acc:#FBBF24; --accbg:rgba(245,158,11,.15);  --accbd:rgba(245,158,11,.42); }
.c-green  { --acc:#3FB950; --accbg:rgba(63,185,80,.14);   --accbd:rgba(63,185,80,.42); }
.c-purple { --acc:#A78BFA; --accbg:rgba(167,139,250,.14); --accbd:rgba(167,139,250,.42); }
.c-pink   { --acc:#F472B6; --accbg:rgba(244,114,182,.14); --accbd:rgba(244,114,182,.42); }
.c-gold   { --acc:#fbbf24; --accbg:rgba(251,191,36,.15);  --accbd:rgba(251,191,36,.45); }

/* ==================================================================== *
 * 37. v2 — "The Library": electric books curriculum
 * ==================================================================== */
.shelf-hint { text-align: center; font-family: var(--font-mono); font-size: .82rem; color: var(--text-faint); margin-bottom: 2.2rem; }
.shelf-hint b { color: var(--cyan); }

.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.6vw, 2.2rem); perspective: 1900px; margin-bottom: 3rem; }

.ebook {
  position: relative; aspect-ratio: 5/7; cursor: pointer; border: 0; padding: 0; background: none;
  transform-style: preserve-3d; transition: transform .55s var(--ease);
  transform: rotateY(-17deg);
}
.ebook:hover { transform: rotateY(-3deg) translateY(-10px); }
.ebook.active { transform: rotateY(0deg) translateY(-14px); z-index: 2; }

.ebook-glow { position: absolute; inset: -6px; border-radius: 12px; background: var(--acc); opacity: 0; filter: blur(22px); transition: opacity .45s; z-index: -1; }
.ebook:hover .ebook-glow { opacity: .45; }
.ebook.active .ebook-glow { opacity: .6; animation: glowPulse 2.6s ease-in-out infinite; }
@keyframes glowPulse { 0%,100% { opacity: .45; } 50% { opacity: .7; } }

.ebook-cover {
  position: absolute; inset: 0; border-radius: 4px 10px 10px 4px; overflow: hidden;
  background: var(--cov); color: #fff;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.10), inset -8px 0 18px -8px rgba(0,0,0,.6);
  display: flex; flex-direction: column; padding: 1.15rem 1.05rem 1.1rem 1.5rem;
}
/* spine shadow (left) */
.ebook-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 16px; background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(255,255,255,.06) 60%, transparent); }
/* page edges (right) */
.ebook-cover::after { content: ""; position: absolute; right: 0; top: 4px; bottom: 4px; width: 6px; border-radius: 0 4px 4px 0; background: repeating-linear-gradient(180deg, rgba(255,255,255,.55) 0 1px, rgba(180,190,210,.18) 1px 2.5px); }

/* electric spark along the spine */
.ebook-cover .spark { position: absolute; left: 15px; top: 9%; bottom: 9%; width: 2px; border-radius: 2px; background: var(--acc); box-shadow: 0 0 10px var(--acc), 0 0 22px var(--acc); opacity: .25; transition: opacity .4s; }
.ebook:hover .ebook-cover .spark, .ebook.active .ebook-cover .spark { opacity: .95; animation: sparkPulse 1.8s ease-in-out infinite; }
@keyframes sparkPulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* shine sweep on hover */
.ebook-cover .shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.22) 48%, transparent 62%); transform: translateX(-130%); transition: transform .85s var(--ease); pointer-events: none; }
.ebook:hover .ebook-cover .shine { transform: translateX(130%); }

.ebook .ecube { width: 28px; height: 28px; align-self: flex-end; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.ebook .elabel { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; opacity: .82; margin-top: .3rem; }
.ebook .etitle { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 2.3vw, 1.55rem); line-height: 1.04; margin-top: auto; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.ebook .erule { height: 2px; width: 44px; background: rgba(255,255,255,.75); margin: .65rem 0; border-radius: 2px; box-shadow: 0 0 12px rgba(255,255,255,.6); }
.ebook .emeta { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: .72rem; opacity: .9; }
.ebook .eopen { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .55rem; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); font-weight: 600; }
.ebook.active .eopen { background: rgba(255,255,255,.95); color: #0a0f1c; }

/* book themes (match original covers) */
.ebook.b1 { --cov: linear-gradient(155deg,#24408f 0%,#0f1f4d 100%); --acc:#60a5fa; }
.ebook.b2 { --cov: linear-gradient(155deg,#c2740c 0%,#7c2d12 100%); --acc:#fbbf24; }
.ebook.b3 { --cov: linear-gradient(155deg,#1f5fe0 0%,#0c2a6b 100%); --acc:#22d3ee; }
.ebook.b4 { --cov: linear-gradient(155deg,#5b6b86 0%,#1e293b 100%); --acc:#a78bfa; }

/* The open "spread" (reading panel) */
.spread { display: none; }
.spread.active { display: block; animation: fadeUp .5s var(--ease); }
.book-spread { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-strong); background: linear-gradient(180deg,#0e1626,#0a0f1c); box-shadow: var(--shadow-lg); }
.book-spread::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); border-radius: inherit; }
.spread-head { position: relative; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.7rem 1.9rem; border-bottom: 1px solid var(--border); background: linear-gradient(120deg, var(--accbg), transparent 70%); }
.spread-head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--acc); box-shadow: 0 0 18px var(--acc); }
.spread-head .eyebrow { border-color: var(--accbd); color: var(--acc); background: var(--accbg); }
.spread-head h2 { font-size: 1.5rem; margin-top: .7rem; }
.spread-head p { color: var(--text-dim); font-size: .94rem; margin-top: .35rem; max-width: 480px; }
.spread-head .meta { display: flex; gap: .6rem; flex-wrap: wrap; }
.spread-body { padding: 1.7rem 1.9rem; }
.spread .lpill:hover { border-color: var(--accbd); background: var(--accbg); }

@media (max-width: 820px) {
  .shelf { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .ebook, .ebook:hover, .ebook.active { transform: none; }
  .ebook:hover { transform: translateY(-6px); }
}
@media (max-width: 420px) {
  .shelf { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* ==================================================================== *
 * 38. v2 — Book cover ornaments, premium Master, premium lessons
 * ==================================================================== */
/* keep text above the watermark */
.ebook .elabel, .ebook .etitle, .ebook .erule, .ebook .emeta, .ebook .ecube, .ebook .epremium { position: relative; z-index: 1; }

/* decorative double-line frame */
.ebook-cover .eframe { position: absolute; inset: 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 5px; pointer-events: none; z-index: 1; }
.ebook-cover .eframe::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(255,255,255,.10); border-radius: 4px; }

/* faded watermark glyph */
.ebook-cover .ewm { position: absolute; right: 8px; bottom: -8px; font-family: var(--font-display); font-weight: 700; font-size: 6.4rem; line-height: .8; letter-spacing: -.05em; color: rgba(255,255,255,.07); pointer-events: none; z-index: 0; }
.ebook-cover .ewm svg { width: 128px; height: 128px; }

.ebook .epremium { display: none; }

/* ---- Premium "Master" book ---- */
.ebook.premium { --cov: linear-gradient(160deg,#3a2c12 0%,#120c05 74%); --acc:#fbbf24; }
.ebook.premium .ebook-cover { box-shadow: var(--shadow-lg), 0 0 32px -6px rgba(251,191,36,.45), inset 0 0 0 1px rgba(251,191,36,.45), inset -8px 0 18px -8px rgba(0,0,0,.7); }
.ebook.premium .eframe { border-color: rgba(251,191,36,.55); }
.ebook.premium .eframe::before { border-color: rgba(251,191,36,.30); }
.ebook.premium .erule { background: linear-gradient(90deg,#fde68a,#f59e0b); box-shadow: 0 0 16px rgba(251,191,36,.85); width: 56px; }
.ebook.premium .elabel { color: #fcd34d; }
.ebook.premium .etitle { color: #fde6b5; }
.ebook.premium .ecube { color: #fbbf24; }
.ebook.premium .ewm { color: rgba(251,191,36,.12); }
.ebook.premium .eopen { background: rgba(251,191,36,.18); border-color: rgba(251,191,36,.45); color: #fde68a; }
.ebook.premium.active .eopen { background: linear-gradient(135deg,#fde68a,#f59e0b); color: #1a0e00; }
.ebook.premium .epremium { display: inline-flex; align-items: center; gap: .3rem; position: absolute; top: 16px; left: 22px; z-index: 2; font-family: var(--font-mono); font-size: .55rem; font-weight: 700; letter-spacing: .14em; padding: .32rem .6rem; border-radius: 999px; background: linear-gradient(135deg,#fde68a,#f59e0b); color: #1a0e00; box-shadow: 0 0 16px rgba(251,191,36,.6); }

/* ---- Premium lessons (gold star) ---- */
.lpill.milestone { border-color: rgba(251,191,36,.45); background: linear-gradient(120deg, rgba(251,191,36,.15), rgba(245,158,11,.04)); }
.lpill.milestone .lx { color: #fcd34d; }
.lpill.milestone .lt::after { content: " ★"; color: #fbbf24; text-shadow: 0 0 8px rgba(251,191,36,.65); }
.spread .lpill.milestone:hover { border-color: rgba(251,191,36,.72); background: linear-gradient(120deg, rgba(251,191,36,.22), rgba(245,158,11,.08)); }
.premium-key { color: #fbbf24; }

/* ==================================================================== *
 * 39. Premium FX — motion, cursor glow, scrollspy dots, grain, transitions
 * ==================================================================== */

/* Cinematic scroll reveals (upgrades section 23) */
.reveal { transform: translateY(32px) scale(.99); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { transform: none; }

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: var(--grad-text); background-size: 200% auto; box-shadow: 0 0 12px rgba(59,130,246,.65); transition: width .12s linear; pointer-events: none; }

/* Cursor glow */
.cursor-glow { position: fixed; top: 0; left: 0; width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%; pointer-events: none; z-index: 8; opacity: 0; transition: opacity .5s ease; background: radial-gradient(circle, rgba(96,165,250,.05), transparent 55%); will-change: transform; }
.cursor-glow.on { opacity: 1; }

/* Section dots (scrollspy) */
.section-dots { position: fixed; right: 24px; top: 50%; transform: translateY(-50%); z-index: 35; display: flex; flex-direction: column; gap: .85rem; }
.section-dots button { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; padding: 0; position: relative; transition: .25s var(--ease); }
.section-dots button:hover { border-color: var(--blue-bright); }
.section-dots button.active { background: var(--grad-primary); border-color: transparent; box-shadow: 0 0 12px var(--blue); transform: scale(1.3); }
.section-dots .lbl { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-family: var(--font-mono); font-size: .7rem; color: var(--text); background: var(--glass-strong); backdrop-filter: blur(8px); border: 1px solid var(--border); padding: .25rem .55rem; border-radius: 7px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.section-dots button:hover .lbl { opacity: 1; }
@media (max-width: 1100px) { .section-dots { display: none; } }

/* Film grain */
html::before { content: ""; position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }

/* Animated aurora drift on the ambient backdrop */
body::before { animation: auroraDrift 26s ease-in-out infinite alternate; }
@keyframes auroraDrift { from { transform: translate3d(-2%, -1%, 0) scale(1.04); } to { transform: translate3d(2%, 1.5%, 0) scale(1.12); } }

/* Cross-page View Transitions */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .3s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .42s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  .reveal { filter: none !important; transform: none !important; }
  body::before { animation: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* ==================================================================== *
 * 40. Sample lesson video (wide, click-to-play facade)
 * ==================================================================== */
.video-stage { width: min(95vw, 1440px); max-width: none; margin-left: calc(50% - min(95vw, 1440px) / 2); }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg), var(--glow-blue); background: linear-gradient(160deg, #0e1626, #0a0f1c); }
.video-frame::before { content: ""; position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000, transparent 75%); }
.video-frame video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; background: transparent; }
.video-play { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; width: 100%; border: 0; cursor: pointer; background: radial-gradient(circle at 50% 42%, rgba(10,15,28,.28), rgba(10,15,28,.78)); transition: opacity .4s ease; }
.video-play.hidden { opacity: 0; pointer-events: none; visibility: hidden; }
.video-play .pbtn { position: relative; width: clamp(64px, 9vw, 94px); height: clamp(64px, 9vw, 94px); border-radius: 50%; display: grid; place-items: center; background: var(--grad-primary); color: #061021; box-shadow: var(--glow-blue); transition: transform .25s var(--ease); }
.video-play:hover .pbtn { transform: scale(1.08); }
.video-play .pbtn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--blue); animation: ping 2.4s ease-out infinite; }
.video-play .pbtn svg { width: 38%; height: 38%; margin-left: 8%; }
.video-play .plabel { font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 2.2vw, 1.2rem); color: #fff; }
.video-play .psub { font-family: var(--font-mono); font-size: .76rem; color: var(--text-dim); }

/* ==================================================================== *
 * 41. Curriculum sample-lesson "open book" spread
 * ==================================================================== */
.preview-book { display: grid; grid-template-columns: 0.85fr 1.15fr; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-strong); background: linear-gradient(180deg, #0e1626, #0a0f1c); box-shadow: var(--shadow-lg); }
.preview-book .pb-page { padding: clamp(1.6rem, 3vw, 2.5rem); }
.preview-book .pb-left { display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--border); background: linear-gradient(125deg, rgba(59,130,246,0.06), transparent 65%); }
.preview-book .pb-left h3 { font-size: 1.4rem; margin-bottom: .7rem; }
.preview-book .pb-right { display: flex; align-items: center; }
.preview-book .pb-right .video-frame { width: 100%; box-shadow: var(--shadow); }
@media (max-width: 820px) {
  .preview-book { grid-template-columns: 1fr; }
  .preview-book .pb-left { border-right: 0; border-bottom: 1px solid var(--border); }
}

/* ==================================================================== *
 * 42. Mobile fixes — community grid stacking + compact navbar brand
 * ==================================================================== */
.community-grid { display: grid; grid-template-columns: 1.45fr 0.55fr; align-items: center; gap: 2rem; }
@media (max-width: 760px) {
  .community-grid { grid-template-columns: 1fr; gap: 1.4rem; }
}
@media (max-width: 600px) {
  /* let long-text buttons wrap instead of overflowing the screen */
  .btn { white-space: normal; max-width: 100%; }
}
@media (max-width: 520px) {
  .brand { font-size: 1rem; gap: 0.55rem; }
  .brand .logo-mark { width: 30px; height: 30px; }
  .brand small { display: none; }
  .nav-cta .btn-primary { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
}

/* ===== Skip-to-content link (WCAG 2.4.1 Bypass Blocks). Visually hidden until focused. ===== */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; }
.skip-link:focus {
  left: 1rem; top: 1rem; padding: 0.6rem 1rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-blue); border-radius: 8px;
  font-family: var(--font-display); font-weight: 600;
}

/* ==================================================================== *
 * 44. Live Lesson Lab — interactive demo trigger (.lpill.has-demo) + modal
 * ==================================================================== */
.lpill.has-demo {
  cursor: pointer; align-items: center;
  border-color: rgba(63,185,80,0.45);
  background: linear-gradient(120deg, rgba(63,185,80,0.14), rgba(34,211,238,0.05));
}
.lpill.has-demo:hover,
.spread .lpill.has-demo:hover {
  border-color: rgba(63,185,80,0.85);
  background: linear-gradient(120deg, rgba(63,185,80,0.22), rgba(34,211,238,0.08));
  box-shadow: 0 0 22px rgba(63,185,80,0.22);
}
.lpill.has-demo .lx { color: var(--green); }
.lpill .live-tag {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 0.28rem;
  font-family: var(--font-mono); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.07em;
  color: #06140a; background: var(--green);
  padding: 0.14rem 0.42rem; border-radius: var(--r-full);
  box-shadow: 0 0 14px rgba(63,185,80,0.5);
  animation: livePulse 2.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 10px rgba(63,185,80,0.4); }
  50%      { box-shadow: 0 0 20px rgba(63,185,80,0.75); }
}

/* ---- Modal ---- */
body.demo-open { overflow: hidden; }
.demo-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 2.5vh 2vw; }
.demo-modal[hidden] { display: none; }
.demo-modal-backdrop { position: absolute; inset: 0; background: rgba(4,8,18,0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: demoFade 0.25s ease; }
.demo-modal-shell {
  position: relative; display: flex; flex-direction: column;
  width: min(1480px, 98vw); height: min(940px, 96vh);
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  animation: demoRise 0.35s var(--ease);
}
.demo-modal-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.65rem 0.65rem 0.65rem 1.1rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.demo-modal-title { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 600; font-size: 0.96rem; }
.demo-modal-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); flex: none; }
.demo-modal-actions { display: flex; align-items: center; gap: 0.5rem; }
.demo-modal-open { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-dim); text-decoration: none; padding: 0.5rem 0.75rem; border-radius: var(--r-sm); border: 1px solid var(--border); white-space: nowrap; }
.demo-modal-open:hover { color: var(--text); border-color: var(--border-blue); }
.demo-modal-close { width: 38px; height: 38px; flex: none; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 0.95rem; line-height: 1; cursor: pointer; transition: 0.18s; }
.demo-modal-close:hover { border-color: var(--red); color: var(--red); }
.demo-modal-body { position: relative; flex: 1; min-height: 0; background: #060d1c; }
.demo-modal-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.demo-modal-loader { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-dim); }
@keyframes demoRise { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes demoFade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 720px) {
  .demo-modal { padding: 0; }
  .demo-modal-shell { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .demo-modal-open { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lpill .live-tag { animation: none; }
  .demo-modal-backdrop, .demo-modal-shell { animation: none; }
}

/* ==================================================================== *
 * 45. Live Labs page (interactive lesson hub) + highlighted nav entry
 * ==================================================================== */
/* ===== Flagship "Live Labs" ON-AIR broadcast badge (lives in .nav-cta) ===== */
.nav-live {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.46rem 0.9rem; border-radius: var(--r-full);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.13em;
  color: #fff !important; text-decoration: none; white-space: nowrap; isolation: isolate;
  background: linear-gradient(120deg, rgba(239,68,68,0.18), rgba(34,211,238,0.10) 55%, rgba(63,185,80,0.12));
  border: 1px solid rgba(239,68,68,0.55);
  box-shadow: 0 0 18px rgba(239,68,68,0.22), 0 6px 16px rgba(0,0,0,0.35);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  animation: nlBoot 0.85s var(--ease) 0.2s backwards;
}
/* periodic sheen sweep, clipped to the pill */
.nav-live::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  clip-path: inset(0 round var(--r-full));
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.20) 50%, transparent 60%);
  transform: translateX(-130%); animation: nlSheen 6s var(--ease) 1.6s infinite;
}
.nav-live::after { content: none !important; }
.nav-live > * { position: relative; z-index: 2; }

.nav-live:hover { transform: translateY(-1px) scale(1.03); border-color: rgba(239,68,68,0.95); box-shadow: 0 0 26px rgba(239,68,68,0.45), 0 6px 16px rgba(0,0,0,0.4); }
.nav-live:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; box-shadow: 0 0 0 4px rgba(34,211,238,0.25); }
.nav-live.active, .nav-live[aria-current="page"] { border-color: rgba(239,68,68,0.95); background: linear-gradient(120deg, rgba(239,68,68,0.28), rgba(34,211,238,0.12) 60%, rgba(63,185,80,0.14)); }

/* on-air recording dot + emission ring */
.nav-live .nl-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 10px #ff3b3b; flex: none; animation: nlRec 1.5s ease-in-out infinite; }
.nav-live .nl-dot::after { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; border: 1.5px solid #ff3b3b; opacity: 0; animation: nlRing 2s var(--ease) infinite; }

/* live equalizer bars (brand cyan to green) */
.nav-live .nl-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.nav-live .nl-eq i { width: 3px; border-radius: 2px; height: 35%; background: linear-gradient(180deg, var(--cyan), var(--green)); animation: nlEq 0.85s ease-in-out infinite; }
.nav-live .nl-eq i:nth-child(1) { animation-duration: 0.7s; }
.nav-live .nl-eq i:nth-child(2) { animation-duration: 1.05s; animation-delay: 0.18s; }
.nav-live .nl-eq i:nth-child(3) { animation-duration: 0.85s; animation-delay: 0.32s; }
.nav-live .nl-eq i:nth-child(4) { animation-duration: 1.2s; animation-delay: 0.1s; }

@keyframes nlBoot { 0% { transform: scale(0.55) translateY(-8px); opacity: 0; } 55% { transform: scale(1.12); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes nlSheen { 0% { transform: translateX(-130%); } 14% { transform: translateX(130%); } 100% { transform: translateX(130%); } }
@keyframes nlRec { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.6); opacity: 0.5; } }
@keyframes nlRing { 0% { transform: scale(0.7); opacity: 0.7; } 100% { transform: scale(3); opacity: 0; } }
@keyframes nlEq { 0%, 100% { height: 28%; } 50% { height: 100%; } }

@media (max-width: 560px) {
  .nav-live { padding: 0.4rem 0.72rem; font-size: 0.66rem; gap: 0.42rem; }
  .nav-live .nl-eq { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-live { animation: none; }
  .nav-live::before, .nav-live .nl-dot, .nav-live .nl-dot::after, .nav-live .nl-eq i { animation: none; }
  .nav-live .nl-eq i { height: 62%; }
}

/* Hero */
.labs-hero { text-align: center; padding: clamp(1.1rem, 3vw, 2rem) 0 1.1rem; }
.labs-hero h1 { margin: 0.8rem 0 0.5rem; }
.labs-hero p { color: var(--text-dim); max-width: 58ch; margin: 0 auto 1.3rem; }
.labs-hero .labs-hero-cta { display: inline-flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }

/* ===== Focus Studio: lab bar + collapsible rail + maximized viewer ===== */
/* App-like page — use most of the screen instead of the reading container */
.labs-wrap { max-width: min(1760px, 96vw); }
.labs-section { padding-top: 0.4rem; }
.labs-shell { display: flex; flex-direction: column; border: 1px solid var(--border-strong); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); margin-bottom: 2.6rem; }

/* lab bar (toolbar across the top of the workspace) */
.lab-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.55rem 0.7rem 0.55rem 1rem; background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--bg-2); border-bottom: 1px solid var(--border); }
.lb-left { display: inline-flex; align-items: center; gap: 0.55rem; min-width: 0; }
.lb-pkg { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); white-space: nowrap; flex: none; }
.lb-sep { color: var(--text-faint); flex: none; }
.lab-bar .ls-title { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab-bar .ls-live { font-family: var(--font-mono); font-size: 0.55rem; font-weight: 700; color: var(--green); display: inline-flex; align-items: center; gap: 0.3rem; flex: none; }
.lab-bar .ls-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: livePulse 2s ease-in-out infinite; }
.lb-right { display: inline-flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.lb-btn { display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-dim); background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 0.42rem 0.7rem; text-decoration: none; transition: 0.16s var(--ease); }
.lb-btn:hover { color: var(--text); border-color: var(--border-blue); background: rgba(127,176,232,0.08); }
.lb-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn:disabled { opacity: 0.38; cursor: default; }
.lb-btn:disabled:hover { color: var(--text-dim); border-color: var(--border); background: rgba(255,255,255,0.03); }
.lb-icon { padding: 0.42rem; }
.lb-open { color: var(--cyan); }
#labCollapse[aria-pressed="true"] { color: var(--amber); border-color: var(--amber); }

/* body: rail + stage */
.labs-body { display: grid; grid-template-columns: 290px 1fr; height: clamp(560px, calc(100vh - 150px), 1400px); min-height: 0; transition: grid-template-columns 0.28s var(--ease); }
.labs-rail { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.8rem; border-right: 1px solid var(--border); background: var(--bg-2); min-height: 0; overflow: hidden; }
.labs-shell.rail-collapsed .labs-body { grid-template-columns: 0 1fr; }
.labs-shell.rail-collapsed .labs-rail { padding: 0; border-right: 0; overflow: hidden; opacity: 0; pointer-events: none; }

/* package accordion */
.labs-level { display: flex; flex-direction: column; flex: none; min-height: 0; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.labs-level.open { flex: 1 1 auto; }   /* open package grows to fill the rail; its lessons scroll */
.lvl-head { display: flex; flex: none; align-items: center; gap: 0.6rem; width: 100%; text-align: left; cursor: pointer; padding: 0.6rem 0.7rem; background: transparent; border: 0; color: var(--text); font: inherit; }
.lvl-head:hover { background: rgba(127,176,232,0.05); }
.lvl-ring { flex: none; width: 26px; height: 26px; display: inline-grid; place-items: center; }
.lvl-ring svg { width: 26px; height: 26px; transform: rotate(-90deg); }
.lr-bg { fill: none; stroke: rgba(127,176,232,0.18); stroke-width: 3; }
.lr-fg { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset 0.5s var(--ease); }
.lvl-name { flex: 1; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.lvl-count { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); flex: none; }
.lvl-head.done .lvl-count { color: var(--green); }
.lvl-chev { width: 16px; height: 16px; fill: none; stroke: var(--text-faint); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease); flex: none; }
.labs-level.open .lvl-chev { transform: rotate(180deg); }
.labs-level .labs-lessons { display: none; padding: 0.1rem 0.5rem 0.6rem; }
.labs-level.open .labs-lessons { display: flex; flex-direction: column; gap: 0.45rem; flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(127,176,232,0.4) transparent; }
.labs-level.open .labs-lessons::-webkit-scrollbar { width: 9px; }
.labs-level.open .labs-lessons::-webkit-scrollbar-thumb { background: rgba(127,176,232,0.35); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
.labs-rail > .labs-cta { flex: none; margin-top: auto; }
.labs-lessons { display: flex; flex-direction: column; gap: 0.45rem; }
.labs-lesson {
  display: flex; align-items: center; gap: 0.7rem; width: 100%; text-align: left;
  padding: 0.72rem 0.85rem; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; font-family: var(--font-body); font-size: 0.92rem; transition: 0.18s var(--ease);
}
.labs-lesson:hover { border-color: rgba(63,185,80,0.5); background: rgba(63,185,80,0.06); transform: translateX(2px); }
.labs-lesson .ll-no { font-family: var(--font-mono); font-size: 0.72rem; color: var(--cyan); flex: none; }
.labs-lesson .ll-name { flex: 1; }
.labs-lesson .ll-live { font-family: var(--font-mono); font-size: 0.54rem; font-weight: 700; letter-spacing: 0.05em; color: var(--green); border: 1px solid rgba(63,185,80,0.45); border-radius: var(--r-full); padding: 0.1rem 0.4rem; flex: none; }
.labs-lesson.active { border-color: var(--green); background: linear-gradient(120deg, rgba(63,185,80,0.16), rgba(34,211,238,0.05)); box-shadow: 0 0 20px rgba(63,185,80,0.18); }
.labs-lesson.active .ll-name { font-weight: 600; }
.labs-lesson.active .ll-live { background: var(--green); color: #06140a; }

/* Highlighted enroll CTA in the sidebar */
.labs-cta { margin-top: 0.3rem; padding: 1.1rem; border-radius: var(--r-lg); text-align: center;
  background: radial-gradient(130% 150% at 0% 0%, rgba(245,158,11,0.18), transparent 60%), var(--surface);
  border: 1px solid var(--border-strong); }
.labs-cta p { color: var(--text-dim); font-size: 0.9rem; margin: 0 0 0.8rem; }

/* Embedded viewer — the star; as large as possible */
.labs-stage { position: relative; display: flex; min-width: 0; background: #060d1c; height: 100%; }
.labs-frame { flex: 1; width: 100%; height: 100%; border: 0; display: block; background: #060d1c; }
.labs-stage:fullscreen { height: 100vh; }
.labs-stage:-webkit-full-screen { height: 100vh; }
.labs-stage:fullscreen .labs-frame, .labs-stage:-webkit-full-screen .labs-frame { height: 100vh; }

@media (max-width: 880px) {
  .labs-body { grid-template-columns: 1fr; height: auto; }
  .labs-shell.rail-collapsed .labs-body { grid-template-columns: 1fr; }
  .labs-rail { max-height: 46vh; overflow-y: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .labs-level.open { flex: none; }                      /* on mobile the whole rail scrolls instead */
  .labs-level.open .labs-lessons { overflow: visible; min-height: 0; }
  .labs-rail > .labs-cta { margin-top: 0.3rem; }
  .lab-bar .ls-title { font-size: 0.9rem; }
  .lb-btn span { display: none; }      /* icon-only controls on small screens */
  .lb-open { display: none; }
  .labs-stage { height: 72vh; }
  .cert-cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .lab-bar .ls-live::before { animation: none; }
  .lr-fg, .cc-fg, .lvl-chev, .labs-body { transition: none; }
}
/* "▶ LIVE" badge acting as a link to the Live Labs page */
a.live-tag { text-decoration: none; cursor: pointer; }
a.live-tag:hover { filter: brightness(1.14); transform: translateY(-1px); }

/* ---- Certificates: one gold card per track ---- */
.labs-certs { margin: 0.4rem 0 3rem; }
.lc-head { text-align: center; margin-bottom: 1.5rem; }
.lc-head h2 { margin: 0 0 0.35rem; }
.lc-head p { color: var(--text-dim); max-width: 58ch; margin: 0 auto; }
.cert-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.cert-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.7rem;
  padding: 1.6rem 1.2rem; border-radius: var(--r-lg); border: 1px solid var(--border-strong);
  background: radial-gradient(120% 120% at 50% 0%, rgba(245,158,11,0.07), transparent 60%), var(--surface);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.cert-card:hover { transform: translateY(-3px); border-color: var(--border-blue); }
.cert-card.is-complete { border-color: rgba(232,198,106,0.6);
  background: radial-gradient(120% 130% at 50% 0%, rgba(232,198,106,0.18), transparent 62%), var(--surface);
  box-shadow: 0 0 30px rgba(232,198,106,0.18); }
.cc-ring { position: relative; width: 84px; height: 84px; display: inline-grid; place-items: center; }
.cc-ring svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.cc-bg { fill: none; stroke: rgba(127,176,232,0.16); stroke-width: 7; }
.cc-fg { fill: none; stroke: var(--cyan); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 0.6s var(--ease); }
.cert-card.is-complete .cc-fg { stroke: #E8C66A; }
.cc-frac { position: absolute; font-family: var(--font-mono); font-size: 0.92rem; font-weight: 700; color: var(--text); }
.cert-card.is-complete .cc-frac { color: #f3d27a; }
.cc-name { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; }
.cc-status { font-size: 0.82rem; color: var(--text-dim); min-height: 1.1em; }
.cert-card.is-complete .cc-status { color: #e8c66a; }
.cc-btn { margin-top: 0.2rem; cursor: pointer; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  padding: 0.6rem 1.05rem; border-radius: var(--r); border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.02); color: var(--text-dim); transition: 0.16s var(--ease); }
.cc-btn:hover { color: var(--text); border-color: var(--border-blue); }
.cert-card.is-complete .cc-btn { color: #0b1020; background: var(--amber); border-color: var(--amber); font-weight: 700; box-shadow: 0 0 22px rgba(245,158,11,0.3); }
.cert-card.is-complete .cc-btn:hover { filter: brightness(1.06); color: #0b1020; }

.labs-lesson .ll-check { display: none; margin-left: 0.35rem; color: var(--green); font-weight: 700; flex: none; }
.labs-lesson.done .ll-check { display: inline; }
.labs-lesson.done { border-color: rgba(63,185,80,0.45); }
.labs-lesson.done .ll-live { background: var(--green); color: #06140a; }

/* Certificate modal */
.cert-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.cert-modal[hidden] { display: none; }
.cert-backdrop { position: absolute; inset: 0; background: rgba(4,8,18,0.72); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.cert-dialog { position: relative; width: min(760px, 100%); max-height: 92vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  padding: 1.6rem 1.7rem; box-shadow: var(--shadow-lg); }
.cert-dialog h3 { margin: 0 0 0.3rem; font-size: 1.3rem; }
.cert-dialog p { color: var(--text-dim); font-size: 0.92rem; margin: 0 0 0.85rem; }
.cert-x { position: absolute; top: 0.8rem; right: 0.9rem; background: none; border: 0; color: var(--text-dim); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0.3rem; border-radius: var(--r-sm); }
.cert-x:hover { color: var(--text); background: rgba(255,255,255,0.06); }
#certName { width: 100%; padding: 0.72rem 0.9rem; border-radius: var(--r); border: 1px solid var(--border-strong);
  background: var(--bg-2); color: var(--text); font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 1rem; }
#certName:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.cert-preview { border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); background: #070b14; }
.cert-preview canvas { display: block; width: 100%; height: auto; }
.cert-actions { display: flex; align-items: center; gap: 0.9rem; margin-top: 1rem; flex-wrap: wrap; }
.cert-note { font-size: 0.82rem; color: var(--text-faint); }
