/* ============================================================
   NEXBYTE SOLUTIONS — Design System
   Base: deep obsidian. Accent: electric cyan + violet.
   Fonts: Space Grotesk (headings), Inter (body).
   ============================================================ */

:root {
  --obsidian: #07080C;
  --surface-1: #0D0F16;
  --surface-2: #131722;
  --surface-3: #1A1F2E;
  --cyan: #22D3EE;
  --cyan-dim: #0e7490;
  --violet: #818CF8;
  --green: #34D399;
  --amber: #FBBF24;
  --text: #E7EAF0;
  --text-dim: #9AA3B2;
  --text-faint: #616B7D;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(19, 23, 34, 0.55);
  --glow-cyan: 0 0 40px rgba(34, 211, 238, 0.22);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1200px;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

/* Background circuit / grid texture layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  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 90% 70% at 50% 0%, #000 40%, transparent 100%);
}
body::after {
  content: "";
  position: fixed;
  top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  z-index: -3;
  background: radial-gradient(circle at 30% 30%, rgba(34,211,238,0.12), transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(129,140,248,0.10), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: #fff; }
.display { font-size: clamp(2.6rem, 6vw, 4.5rem); letter-spacing: -0.035em; }
h2.section-title { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--text-dim); }
a { color: inherit; text-decoration: none; }

.meta-label {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.meta-label::before { content: ""; width: 22px; height: 1px; background: var(--cyan); opacity: 0.7; }

.accent { color: var(--cyan); }
.violet { color: var(--violet); }
.green { color: var(--green); }
.text-dim { color: var(--text-dim); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 60px 0; }
@media (max-width: 640px) { .section { padding: 64px 0; } }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.95rem;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.28s var(--ease);
  position: relative; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--cyan); color: #05121a; border-color: var(--cyan);
  box-shadow: 0 6px 22px rgba(34,211,238,0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(34,211,238,0.42); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: var(--cyan); color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }

/* ---------- Glass card ---------- */
.card {
  background: var(--surface-1);
  background: linear-gradient(160deg, rgba(26,31,46,0.6), rgba(13,15,22,0.75));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
@supports (backdrop-filter: blur(10px)) {
  .card { background: var(--glass); backdrop-filter: blur(14px); }
}
.card:hover { border-color: rgba(34,211,238,0.4); box-shadow: var(--glow-cyan); }
.card-hover-lift:hover { transform: translateY(-6px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7,8,12,0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 0.92rem; color: var(--text-dim); font-family: var(--font-head); font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: var(--cyan); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.hamburger { display: none; background: none; border: 1px solid var(--border-strong); border-radius: 10px; width: 42px; height: 42px; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.hamburger svg { width: 22px; height: 22px; }

.mobile-menu {
  position: fixed; inset: 72px 0 0 0; z-index: 99;
  background: rgba(7,8,12,0.97); backdrop-filter: blur(20px);
  padding: 32px 24px; display: none; flex-direction: column; gap: 6px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-head); font-size: 1.3rem; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.mobile-menu .btn { margin-top: 20px; }

@media (max-width: 1080px) { .nav-explore { display: none; } }
@media (max-width: 940px) {
  .nav-links, .nav-cta .btn { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-glyph { width: 38px; height: 38px; flex-shrink: 0; }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word .lw-main { font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; letter-spacing: 0.02em; color: #fff; }
.logo-word .lw-sub { font-family: var(--font-head); font-size: 0.52rem; letter-spacing: 0.42em; color: var(--cyan); margin-top: 3px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-1); padding: 64px 0 32px; margin-top: 40px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-grid h4 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; font-weight: 600; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan); }
.footer-brand p { font-size: 0.92rem; margin-top: 16px; max-width: 280px; }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input { flex: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; color: #fff; font-family: var(--font-body); font-size: 0.9rem; }
.newsletter input:focus { outline: none; border-color: var(--cyan); }
.newsletter button { background: var(--cyan); border: none; border-radius: 10px; width: 46px; color: #05121a; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-dim); transition: all 0.25s; }
.socials a:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-faint); }
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--cyan); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Chips / tags ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; font-size: 0.8rem; font-weight: 500; border: 1px solid var(--border); background: rgba(255,255,255,0.03); color: var(--text-dim); }
.chip svg { width: 14px; height: 14px; }
.chip.filter { cursor: pointer; transition: all 0.2s; font-family: var(--font-head); }
.chip.filter:hover { border-color: var(--cyan); color: #fff; }
.chip.filter.active { background: var(--cyan); color: #05121a; border-color: var(--cyan); }
.tag-field { font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; font-weight: 600; }

/* ---------- Stat ---------- */
.stat-row { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat .num { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: #fff; line-height: 1; }
.stat .lbl { font-size: 0.82rem; color: var(--text-dim); margin-top: 8px; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Reveal animation (fail-safe) ---------- */
/* Content is visible by default. Only when JS is active (html.js-ready)
   do we hide it for the entrance animation — so a JS/observer hiccup can
   never leave a blank section. */
.reveal { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.js-ready .reveal { opacity: 0; transform: translateY(24px); }
html.js-ready .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.07s; }
.reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.21s; }
.reveal.d4 { transition-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  html.js-ready .reveal { opacity: 1; transform: none; }
}

/* ---------- Course card ---------- */
.course-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.course-thumb { width: 100%; aspect-ratio: 16/9; display: block; }
.course-thumb svg { width: 100%; height: 100%; display: block; }
.course-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 1.12rem; margin: 12px 0 6px; }
.course-meta { display: flex; align-items: center; gap: 12px; font-size: 0.82rem; color: var(--text-faint); margin-top: auto; padding-top: 14px; }
.course-price { display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.course-price .p { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: #fff; }
.course-price .pm { font-size: 0.75rem; color: var(--text-faint); }
.rating { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; color: var(--amber); font-weight: 600; }
.rating svg { width: 14px; height: 14px; }

/* ---------- Accordion ---------- */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: rgba(255,255,255,0.02); }
.accordion-head { width: 100%; text-align: left; background: none; border: none; color: #fff; font-family: var(--font-head); font-size: 1.02rem; font-weight: 500; padding: 20px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.accordion-head .plus { flex-shrink: 0; width: 24px; height: 24px; position: relative; transition: transform 0.3s var(--ease); color: var(--cyan); }
.accordion-item.open .accordion-head .plus { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.accordion-panel-inner { padding: 0 22px 22px; color: var(--text-dim); font-size: 0.94rem; }
.accordion-panel-inner ul { margin: 0; padding-left: 18px; }
.accordion-panel-inner li { margin: 6px 0; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(3,4,7,0.8); backdrop-filter: blur(6px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity 0.3s; }
.modal-overlay.open { display: flex; opacity: 1; }
.modal { background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); max-width: 480px; width: 100%; padding: 34px; position: relative; max-height: 92vh; overflow-y: auto; transform: translateY(20px); transition: transform 0.3s var(--ease); }
.modal-overlay.open .modal { transform: none; }
.modal-close { position: absolute; top: 18px; right: 18px; background: none; border: none; color: var(--text-dim); cursor: pointer; width: 32px; height: 32px; }
.modal-close:hover { color: #fff; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 8px; font-family: var(--font-head); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 15px; color: #fff; font-family: var(--font-body); font-size: 0.95rem; transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); }
.field textarea { resize: vertical; min-height: 110px; }
.field.error input, .field.error select, .field.error textarea { border-color: #f87171; }
.field .err-msg { color: #f87171; font-size: 0.8rem; margin-top: 6px; display: none; }
.field.error .err-msg { display: block; }
.form-success { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.4); border-radius: 12px; padding: 22px; text-align: center; color: var(--green); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; gap: 8px; font-size: 0.85rem; color: var(--text-faint); align-items: center; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- Sticky enroll card ---------- */
.enroll-card { position: sticky; top: 96px; }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.02); flex-wrap: wrap; }
.tab-btn { font-family: var(--font-head); font-size: 0.88rem; padding: 9px 18px; border-radius: 999px; background: none; border: none; color: var(--text-dim); cursor: pointer; transition: all 0.25s; }
.tab-btn.active { background: var(--cyan); color: #05121a; }

/* ---------- Table ---------- */
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.92rem; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--border); }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; color: var(--text-dim); }
.compare-table thead th { font-family: var(--font-head); color: #fff; font-size: 1rem; vertical-align: bottom; }
.compare-table .tier-price { font-size: 0.85rem; color: var(--cyan); font-weight: 600; margin-top: 4px; }
.compare-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.compare-table .yes { color: var(--green); }
.compare-table .no { color: var(--text-faint); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table-wrap .compare-table th, .table-wrap .compare-table td { white-space: nowrap; }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.timeline-step { padding: 0 20px; position: relative; }
.timeline-step .dot { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; color: var(--cyan); margin-bottom: 20px; position: relative; z-index: 2; }
.timeline-step .dot svg { width: 22px; height: 22px; }
.timeline::before { content: ""; position: absolute; top: 23px; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan-dim), transparent); }
@media (max-width: 700px) { .timeline { grid-template-columns: 1fr; gap: 30px; } .timeline::before { display: none; } }

/* ---------- Testimonial slider ---------- */
.slider { position: relative; overflow: hidden; }
.slider-track { display: flex; transition: transform 0.5s var(--ease); }
.slide { min-width: 100%; padding: 8px; }
.slider-nav { display: flex; gap: 10px; justify-content: center; margin-top: 28px; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); border: none; cursor: pointer; transition: all 0.25s; }
.slider-dot.active { background: var(--cyan); width: 28px; border-radius: 6px; }

/* ---------- Hero specifics ---------- */
.hero { padding: 80px 0 60px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 { margin: 20px 0 22px; }
.hero p.lead { font-size: 1.15rem; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- Badges ---------- */
.badge-earlybird { display: inline-flex; align-items: center; gap: 6px; background: rgba(251,191,36,0.12); color: var(--amber); border: 1px solid rgba(251,191,36,0.35); padding: 4px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; font-family: var(--font-head); }
.badge-tier { font-family: var(--font-head); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 11px; border-radius: 6px; font-weight: 600; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.flex { display: flex; } .items-center { align-items: center; } .items-end { align-items: flex-end; } .items-start { align-items: flex-start; } .justify-between { justify-content: space-between; } .gap-2 { gap: 16px; } .gap-1 { gap: 8px; } .wrap { flex-wrap: wrap; }
/* Buttons must never stretch to their flex container's cross size (prevents pill->circle) */
.flex > .btn { flex: 0 0 auto; align-self: center; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.92rem; color: var(--text-dim); }
.checklist li svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.divider { height: 1px; background: var(--border); margin: 24px 0; border: none; }
.empty-state { text-align: center; padding: 70px 24px; color: var(--text-dim); }
.empty-state svg { width: 56px; height: 56px; color: var(--text-faint); margin-bottom: 18px; }

/* pill list of tools */
.tool-grid { display: flex; flex-wrap: wrap; gap: 10px; }

/* certificate */
.certificate { border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface-1); }
.certificate svg { width: 100%; display: block; }

/* asymmetric page hero bg orbs */
.orb { position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; pointer-events: none; }

/* ===================== VIDEO / LESSON COMPONENTS ===================== */
.video-poster-svg { width: 100%; display: block; aspect-ratio: 16/9; }

/* Lesson (educational video) grid card */
.lesson-card { padding: 0; overflow: hidden; text-align: left; background: var(--surface-1); border: 1px solid var(--border); cursor: pointer; color: inherit; font: inherit; display: flex; flex-direction: column; }
.lesson-poster, .vtest-poster { position: relative; display: block; overflow: hidden; }
.lesson-poster .video-poster-svg, .vtest-poster .video-poster-svg { transition: transform 0.5s var(--ease); }
.lesson-card:hover .video-poster-svg, .vtestimonial-card:hover .video-poster-svg { transform: scale(1.05); }
.lesson-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lesson-title { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: #fff; line-height: 1.3; margin-top: 4px; }
.lesson-teaser { font-size: 0.9rem; color: var(--text-dim); line-height: 1.55; }
.lesson-watch { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 600; font-size: 0.86rem; margin-top: auto; padding-top: 6px; }

/* badges on posters */
.video-badge { position: absolute; bottom: 12px; right: 12px; display: inline-flex; align-items: center; gap: 5px; background: rgba(3,4,7,0.72); backdrop-filter: blur(4px); color: #fff; font-size: 0.76rem; font-weight: 500; padding: 5px 10px; border-radius: 999px; }
.video-level { position: absolute; top: 12px; left: 12px; font-family: var(--font-head); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; padding: 4px 10px; border-radius: 6px; border: 1px solid; }

/* pulsing play affordance */
.play-pulse { position: absolute; top: 50%; left: 50%; width: 78px; height: 78px; transform: translate(-50%,-50%); border-radius: 50%; border: 2px solid var(--pc); opacity: 0; pointer-events: none; }
.lesson-card:hover .play-pulse, .vtestimonial-card:hover .play-pulse { animation: playPulse 1.4s var(--ease) infinite; }
@keyframes playPulse { 0% { opacity: 0.5; transform: translate(-50%,-50%) scale(0.7);} 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.5);} }

/* Video testimonial card */
.vtestimonial-card { padding: 0; overflow: hidden; text-align: left; background: var(--surface-1); border: 1px solid var(--border); cursor: pointer; color: inherit; font: inherit; display: flex; flex-direction: column; }
.vtest-avatar { position: absolute; top: 12px; left: 12px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; border: 1px solid; backdrop-filter: blur(4px); }
.vtest-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vtest-jump { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; }
.vtest-quote { font-size: 0.96rem; color: var(--text); line-height: 1.55; font-style: italic; }
.vtest-person { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 6px; font-size: 0.85rem; }
.vtest-person strong { color: #fff; font-family: var(--font-head); font-size: 0.98rem; }
.vtest-person span { color: var(--text-faint); }

/* Video modal player */
.video-overlay .video-modal { max-width: 720px; padding: 0; overflow: hidden; }
.video-stage { position: relative; aspect-ratio: 16/9; background: #060810; overflow: hidden; }
.vstage-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; }
.vstage-glow { position: absolute; top: 40%; left: 50%; width: 320px; height: 320px; transform: translate(-50%,-50%); background: radial-gradient(circle, var(--vc) 0%, transparent 65%); opacity: 0.22; filter: blur(20px); }
.vstage-badge { position: relative; display: inline-flex; align-items: center; gap: 7px; color: var(--vc); border: 1px solid; border-color: color-mix(in srgb, var(--vc) 50%, transparent); background: rgba(3,4,7,0.4); font-family: var(--font-head); font-size: 0.78rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.08em; }
.vstage-title { position: relative; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.1rem, 3vw, 1.5rem); color: #fff; max-width: 460px; }
.vstage-wave { position: relative; display: flex; align-items: flex-end; gap: 4px; height: 46px; }
.vstage-wave span { width: 5px; height: 12px; border-radius: 3px; opacity: 0.85; animation: vwave 1.1s ease-in-out infinite alternate; }
@keyframes vwave { from { height: 8px; } to { height: 44px; } }
.vstage-progress { position: relative; width: min(60%, 320px); height: 4px; border-radius: 3px; background: rgba(255,255,255,0.12); overflow: hidden; }
.vstage-progress span { position: absolute; inset: 0; width: 0; background: var(--vc); border-radius: 3px; animation: vprog 9s linear forwards; }
@keyframes vprog { to { width: 100%; } }
.vstage-note { position: relative; font-size: 0.8rem; color: var(--text-faint); }
.video-info { padding: 24px 28px 28px; }
.video-info h3 { font-family: var(--font-head); color: #fff; font-size: 1.2rem; margin: 12px 0 12px; }
.vinfo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vinfo-meta { font-size: 0.85rem; color: var(--text-faint); display: inline-flex; align-items: center; gap: 6px; }
.vinfo-points { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 10px; }
.vinfo-points li { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 0.94rem; }
.vinfo-points li svg { color: var(--green); flex-shrink: 0; }
.vinfo-transcript { color: var(--text-dim); line-height: 1.65; font-size: 0.98rem; margin-bottom: 18px; }
@media (prefers-reduced-motion: reduce) {
  .vstage-wave span, .vstage-progress span, .play-pulse { animation: none !important; }
  .vstage-progress span { width: 60%; }
}
