/* ==========================================================================
   UpLabs AI — Onboarding · Design System
   Monochrome (black & white), animated, dark-first.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #060606;
  --bg-elevated: #0d0d0d;
  --bg-card: #0a0a0a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.22);
  --fg: #f6f6f6;
  --fg-dim: #9c9c9c;
  --fg-dimmer: #6a6a6a;
  --white: #ffffff;
  --black: #000000;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--white); color: var(--black); }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
}

/* ---------------------------------------------------------------------- */
/* Texture layers: grain + glow orbs                                       */
/* ---------------------------------------------------------------------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(8) infinite;
}

@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -4%); }
  30% { transform: translate(3%, 2%); }
  50% { transform: translate(-3%, 3%); }
  70% { transform: translate(2%, -2%); }
  90% { transform: translate(-1%, 4%); }
}

.orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  background: radial-gradient(circle at 30% 30%, #fff, transparent 70%);
  will-change: transform;
}

.orb--1 { width: 42vw; height: 42vw; top: -10%; left: -10%; animation: float-1 26s ease-in-out infinite; }
.orb--2 { width: 34vw; height: 34vw; top: 30%; right: -12%; animation: float-2 22s ease-in-out infinite; opacity: 0.1; }
.orb--3 { width: 28vw; height: 28vw; bottom: -14%; left: 20%; animation: float-3 30s ease-in-out infinite; opacity: 0.08; }

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, 8%) scale(1.1); }
}
@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8%, 6%) scale(0.9); }
}
@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, -6%) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .orb { animation: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------------- */
/* Cursor                                                                  */
/* ---------------------------------------------------------------------- */

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease), height 0.2s var(--ease);
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 34px; height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease), width 0.2s, height 0.2s, opacity 0.2s;
}

.cursor-ring.is-active { width: 54px; height: 54px; opacity: 0.7; }

/* ---------------------------------------------------------------------- */
/* Layout helpers                                                         */
/* ---------------------------------------------------------------------- */

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.6);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ---------------------------------------------------------------------- */
/* Reveal-on-scroll                                                        */
/* ---------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------------- */
/* Navigation                                                              */
/* ---------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 22px 0;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(6, 6, 6, 0.85), rgba(6, 6, 6, 0.4));
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), padding 0.4s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  padding: 14px 0;
}

.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo__mark {
  width: 10px;
  height: 10px;
  background: var(--white);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.logo__sub {
  color: var(--fg-dimmer);
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
}

.nav__links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav__links a {
  font-size: 14px;
  color: var(--fg-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--white);
  transition: width 0.3s var(--ease);
}

.nav__links a:hover {
  color: var(--fg);
}
.nav__links a:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__toggle span {
  width: 22px; height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn--primary {
  background: var(--white);
  color: var(--black);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(255, 255, 255, 0.35);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--fg);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.btn svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */

.hero {
  padding: 120px 0 100px;
  text-align: center;
}

.hero__eyebrow { justify-content: center; margin-bottom: 28px; }

.hero h1 {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 26px;
}

.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span {
  display: block;
  transform: translateY(110%);
  animation: line-up 1s var(--ease) forwards;
}
.hero h1 .line:nth-child(2) span { animation-delay: 0.12s; }

@keyframes line-up {
  to { transform: translateY(0); }
}

.hero h1 .accent {
  background: linear-gradient(100deg, #fff 30%, #6a6a6a 60%, #fff 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to { background-position: -200% center; }
}

.hero p.lead {
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--fg-dim);
  font-size: 17px;
}

.hero__cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 72px;
  flex-wrap: wrap;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat__num {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat__label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--fg-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------------------------------------------------------------------- */
/* Marquee divider                                                        */
/* ---------------------------------------------------------------------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  gap: 40px;
  animation: marquee-scroll 30s linear infinite;
}

.marquee span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
  display: inline-flex;
  align-items: center;
  gap: 40px;
}

.marquee span::after { content: '◆'; color: var(--fg-dimmer); font-size: 10px; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------------- */
/* Section headers                                                        */
/* ---------------------------------------------------------------------- */

.section { padding: 110px 0; }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.section__head h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 10px;
}

.section__head p {
  max-width: 420px;
  color: var(--fg-dim);
  font-size: 15px;
}

/* ---------------------------------------------------------------------- */
/* Project cards grid                                                     */
/* ---------------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
  isolation: isolate;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 220px at var(--mx) var(--my), rgba(255, 255, 255, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: 0;
}

.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); }

.card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
}

.card__index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dimmer);
}

.card__arrow {
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover .card__arrow {
  background: var(--white);
  color: var(--black);
  transform: rotate(45deg);
}
.card__arrow svg { width: 14px; height: 14px; }

.card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.card p {
  color: var(--fg-dim);
  font-size: 14.5px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg-dim);
}

.card--ghost {
  border-style: dashed;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 220px;
  color: var(--fg-dimmer);
}
.card--ghost:hover { transform: none; border-color: var(--line); }
.card--ghost .card__index { margin-bottom: 14px; }

/* ---------------------------------------------------------------------- */
/* Process steps                                                          */
/* ---------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}
.step:hover { background: rgba(255, 255, 255, 0.02); }
.step:last-child { border-right: none; }

.step__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-dimmer);
  margin-bottom: 22px;
  display: block;
}

.step h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  color: var(--fg-dim);
  font-size: 14px;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 70px 0 36px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.footer__top h3 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 480px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--fg-dimmer);
  font-size: 13px;
  font-family: var(--font-mono);
}

.footer__links { display: flex; gap: 24px; }
.footer__links a { color: var(--fg-dim); transition: color 0.3s var(--ease); }
.footer__links a:hover { color: var(--fg); }

/* ---------------------------------------------------------------------- */
/* Timeline (numbered flow steps)                                         */
/* ---------------------------------------------------------------------- */

.timeline {
  position: relative;
  margin-top: 8px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 46px 64px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-dim);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  z-index: 1;
}

.timeline-item:hover .timeline-item__num {
  background: var(--white);
  color: var(--black);
}

.timeline-item h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--fg-dim);
  font-size: 14.5px;
  max-width: 640px;
}

/* ---------------------------------------------------------------------- */
/* Accordion (expandable module list)                                     */
/* ---------------------------------------------------------------------- */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.acc-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.acc-item.is-open { border-color: var(--line-strong); }

.acc-item__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  text-align: left;
}

.acc-item__head-text {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.acc-item__head h4 {
  font-size: 16px;
  font-weight: 700;
}

.acc-item__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dimmer);
}

.acc-item__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.acc-item__icon svg { width: 13px; height: 13px; }
.acc-item.is-open .acc-item__icon {
  transform: rotate(45deg);
  background: var(--white);
  color: var(--black);
}

.acc-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}

.acc-item__body-inner {
  padding: 0 26px 24px;
  color: var(--fg-dim);
  font-size: 14.5px;
}

.acc-item__body ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acc-item__body li {
  position: relative;
  padding-left: 18px;
}
.acc-item__body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-dimmer);
}

/* ---------------------------------------------------------------------- */
/* Detail page: breadcrumb, meta, progress                                */
/* ---------------------------------------------------------------------- */

.detail-hero { padding: 70px 0 60px; border-bottom: 1px solid var(--line); }

.crumb {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-dim);
  margin-bottom: 40px;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.crumb svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.crumb:hover { color: var(--fg); gap: 12px; }
.crumb:hover svg { transform: translateX(-3px); }

.detail-hero h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 18px 0 20px;
  max-width: 760px;
}

.detail-hero p.lead {
  color: var(--fg-dim);
  max-width: 620px;
  font-size: 16px;
  margin-bottom: 32px;
}

.progress-bar {
  max-width: 420px;
}
.progress-bar__label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  margin-bottom: 10px;
}
.progress-bar__track {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--white);
  border-radius: 999px;
  transition: width 0.6s var(--ease);
}

.video-list {
  padding: 90px 0 110px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.video-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.4s var(--ease);
}
.video-card:hover { border-color: var(--line-strong); }
.video-card.is-watched { border-color: rgba(255, 255, 255, 0.3); }

.video-card__head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  flex-wrap: wrap;
}

.video-card__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-dimmer);
  min-width: 28px;
}

.video-card__title {
  flex: 1;
  min-width: 180px;
}
.video-card__title h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.video-card__title p { font-size: 13px; color: var(--fg-dimmer); }

.video-card__check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.video-card__check svg {
  width: 12px; height: 12px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.video-card.is-watched .video-card__check {
  color: var(--fg);
  border-color: var(--line-strong);
}
.video-card.is-watched .video-card__check svg { opacity: 1; transform: scale(1); }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-top: 1px solid var(--line);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-frame__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(20, 20, 20, 0.5), rgba(0, 0, 0, 0.88));
  cursor: pointer;
  transition: opacity 0.4s var(--ease);
  z-index: 2;
}

.video-frame.is-playing .video-frame__overlay {
  opacity: 0;
  pointer-events: none;
}

.play-btn {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
  animation: play-pulse 2.4s ease-in-out infinite;
}
.play-btn svg { width: 22px; height: 22px; margin-left: 2px; }
.video-frame__overlay:hover .play-btn { transform: scale(1.08); }

.video-frame--unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 14px);
}

.video-frame__notice {
  max-width: 420px;
  text-align: center;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.video-frame__notice-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-dim);
  flex-shrink: 0;
}
.video-frame__notice-icon svg { width: 19px; height: 19px; }

.video-frame__notice p {
  color: var(--fg-dim);
  font-size: 13.5px;
  line-height: 1.6;
}
.video-frame__notice strong { color: var(--fg); font-weight: 600; }

.video-card__check--warn {
  color: var(--fg-dim);
  border-color: var(--line-strong);
}

@keyframes play-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.28); }
  50% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                             */
/* ---------------------------------------------------------------------- */

@media (max-width: 860px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 32px 28px;
    background: rgba(6, 6, 6, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: flex; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 90px 0 70px; }
  .stats { gap: 32px; }
  .section { padding: 80px 0; }
}
