:root {
  --navy: #06162b;
  --navy-2: #0b2340;
  --ink: #10192f;
  --muted: #68728a;
  --line: #e8edf5;
  --card: #ffffff;
  --magenta: #ff2b9a;
  --purple: #7653d6;
  --orange: #ff9f2e;
  --teal: #10c8b7;
  --shadow: 0 18px 45px rgba(6, 22, 43, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255,43,154,.12), transparent 26rem),
    radial-gradient(circle at top right, rgba(118,83,214,.12), transparent 24rem),
    #f5f7fb;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(232,237,245,.8);
}
.brand img { width: 184px; display: block; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.ghost-button {
  border: 0;
  border-radius: 10px;
  padding: 11px 18px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--magenta), var(--purple));
  cursor: pointer;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(280px, .78fr) minmax(360px, 1fr);
  gap: 22px;
  padding: 34px clamp(18px, 4vw, 56px);
  align-items: stretch;
}
.hero-card, .course-panel {
  background: var(--card);
  border: 1px solid rgba(220,228,240,.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-cover {
  position: relative;
  min-height: 680px;
  grid-row: span 2;
  padding: 40px;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(6,22,43,.98) 0%, rgba(6,22,43,.96) 54%, rgba(255,43,154,.88) 54.4%, rgba(118,83,214,.9) 62%, #fff 62.3%);
}
.hero-logo { width: 210px; margin-bottom: 52px; }
.kicker, .section-label {
  margin: 0 0 8px;
  color: var(--teal);
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-cover h1 {
  margin: 0;
  max-width: 360px;
  font-size: clamp(34px, 3.2vw, 42px);
  line-height: .98;
  text-transform: uppercase;
  letter-spacing: 0;
  overflow-wrap: normal;
}
.hero-copy {
  max-width: 390px;
  margin: 28px 0;
  color: rgba(255,255,255,.92);
  font-size: 18px;
  line-height: 1.45;
}
.hero-features {
  position: absolute;
  left: 40px;
  bottom: 48px;
  display: grid;
  gap: 18px;
  color: var(--ink);
  font-weight: 800;
}
.hero-features span {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-features span::before {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--magenta), var(--orange));
  box-shadow: 0 10px 22px rgba(255,43,154,.24);
}
.hero-device {
  position: absolute;
  right: 34px;
  bottom: 102px;
  width: 285px;
  height: 202px;
  transform: rotate(-4deg);
  border-radius: 16px;
  background: #111827;
  box-shadow: 0 28px 45px rgba(0,0,0,.32);
  padding: 12px;
}
.device-top { height: 10px; border-radius: 8px; background: #252f46; margin-bottom: 10px; }
.device-screen { height: 158px; border-radius: 10px; background: #f8fafc; padding: 16px; color: var(--ink); }
.device-screen span { display: inline-block; width: 54px; height: 34px; margin-right: 8px; border-radius: 8px; background: #eef2ff; }
.device-screen strong { display: block; margin: 14px 0; }
.mini-bars { display: flex; align-items: end; gap: 8px; height: 48px; }
.mini-bars i { width: 18px; border-radius: 6px 6px 0 0; background: linear-gradient(var(--purple), var(--magenta)); }
.mini-bars i:nth-child(1){ height: 22px; } .mini-bars i:nth-child(2){ height: 38px; } .mini-bars i:nth-child(3){ height: 28px; } .mini-bars i:nth-child(4){ height: 46px; } .mini-bars i:nth-child(5){ height: 34px; }
.dot-grid {
  position: absolute;
  top: 48px;
  right: 48px;
  width: 92px;
  height: 92px;
  opacity: .7;
  background-image: radial-gradient(var(--teal) 2px, transparent 2px);
  background-size: 14px 14px;
}

.modules-preview, .lesson-preview, .thumbnails-card, .done-card { padding: 32px; }
.modules-preview h2, .lesson-preview h2, .thumbnails-card h2, .done-card h2, .course-panel h2 {
  margin: 0 0 20px;
  color: var(--navy);
  font-size: clamp(24px, 2vw, 28px);
  line-height: 1.12;
}
.module-list { display: grid; gap: 14px; }
.module-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  background: #f7f9fc;
}
.module-icon {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--magenta), var(--purple));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
}
.module-number { color: var(--magenta); font-size: 28px; font-weight: 900; }
.module-row strong { display: block; color: var(--navy); }
.module-row strong, .module-row small { overflow-wrap: normal; }
.module-row small { color: var(--muted); }
.module-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px 12px;
  align-items: center;
}
.module-copy .module-number {
  grid-row: span 2;
}
.module-copy strong,
.module-copy small {
  min-width: 0;
}

.lesson-preview { border-left: 10px solid var(--magenta); }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--magenta), var(--purple));
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.accent-text { margin: -12px 0 18px; color: var(--magenta); font-size: 20px; font-weight: 800; }
.video-frame {
  border-radius: 8px;
  overflow: hidden;
  background: #030712;
  box-shadow: 0 12px 28px rgba(6,22,43,.2);
}
.video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #030712; }
.sound-wave {
  height: 44px;
  margin-top: 18px;
  background: repeating-linear-gradient(90deg, var(--purple) 0 3px, transparent 3px 12px);
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 70%);
  opacity: .8;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.thumb-card {
  position: relative;
  min-height: 112px;
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6,22,43,.98), rgba(6,22,43,.84)),
    linear-gradient(145deg, transparent 46%, rgba(255,43,154,.65) 46.5%, rgba(118,83,214,.72) 75%);
  overflow: hidden;
}
.thumb-card strong { display: block; margin-top: 20px; font-size: 16px; line-height: 1.05; text-transform: uppercase; }
.thumb-card small { display: block; margin-top: 6px; color: rgba(255,255,255,.75); }
.thumb-card em {
  position: absolute;
  left: 10px;
  top: 10px;
  font-style: normal;
  font-weight: 900;
  background: var(--magenta);
  border-radius: 6px;
  padding: 4px 6px;
}
.thumb-card span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0,0,0,.72);
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
}

.done-card {
  color: #fff;
  background:
    radial-gradient(circle at 78% 10%, rgba(255,43,154,.24), transparent 20rem),
    linear-gradient(145deg, var(--navy), #030b17);
  display: grid;
  place-items: center;
  text-align: center;
}
.checkmark {
  width: 92px;
  height: 92px;
  border: 2px solid var(--teal);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--teal);
  font-size: 54px;
  font-weight: 900;
  margin-bottom: 18px;
}
.done-card h2 { color: var(--teal); text-transform: uppercase; margin-bottom: 6px; }
.done-card p { margin-top: 0; font-size: 20px; }
.done-actions { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.done-actions span { border-left: 1px solid rgba(255,255,255,.22); padding: 8px; font-size: 13px; }

.course-panel {
  margin: 0 clamp(18px, 4vw, 56px) 56px;
  padding: 28px;
}
.panel-header { display: flex; gap: 18px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.search-box input {
  width: min(420px, 76vw);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font: inherit;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 24px; }
.stat-card { border-radius: 8px; padding: 16px; background: #f7f9fc; }
.stat-card strong { display: block; color: var(--magenta); font-size: 26px; }
.stat-card span { color: var(--muted); font-size: 13px; font-weight: 700; }
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 18px; }
.catalog-sidebar { align-self: start; display: grid; gap: 8px; position: sticky; top: 92px; }
.side-button {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}
.side-button.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--magenta), var(--purple)); }
.lesson-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lesson-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: inherit;
}
.lesson-card img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #0b1220; }
.lesson-card .lesson-copy { padding: 14px; }
.lesson-card small { color: var(--magenta); font-weight: 900; text-transform: uppercase; }
.lesson-card strong { display: block; margin: 6px 0; line-height: 1.18; }
.lesson-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.35; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 7, 18, .76);
  display: grid;
  place-items: center;
  padding: 22px;
}
.modal[hidden] { display: none; }
.modal-panel {
  position: relative;
  width: min(1120px, 96vw);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0,0,0,.38);
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.65);
  font-size: 28px;
  cursor: pointer;
}
.modal-video video,
.modal-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 0; }
.modal-copy { padding: 22px; }
.modal-copy h2 { margin: 10px 0 8px; color: var(--navy); }
.modal-copy p { margin: 0; color: var(--muted); }

@media (max-width: 1180px) {
  .hero-shell { grid-template-columns: 1fr 1fr; }
  .hero-cover { grid-column: 1 / -1; min-height: 560px; }
  .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav { margin-left: 0; flex-wrap: wrap; }
  .hero-shell { grid-template-columns: 1fr; padding: 18px; }
  .hero-cover { min-height: 620px; padding: 28px; }
  .hero-cover h1 { font-size: 34px; max-width: 280px; }
  .hero-device { display: none; }
  .hero-features { left: 28px; bottom: 28px; }
  .thumb-grid, .done-actions, .stats, .lesson-grid { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
  .panel-header { align-items: flex-start; flex-direction: column; }
  .course-panel { margin: 0 18px 32px; padding: 18px; }
}
