:root {
  --bg: #120506;
  --bg-soft: #25070b;
  --panel: rgba(31, 8, 11, 0.88);
  --gold: #ff1f32;
  --gold-soft: #ff6d7e;
  --gold-deep: #8f071b;
  --cream: #ffe7e7;
  --text: #ffffff;
  --muted: rgba(255, 233, 233, 0.78);
  --line: rgba(255, 60, 65, 0.28);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --soft-glow: 0 0 26px rgba(255, 31, 50, 0.12);
  --container-max: 1200px;
  --container-gutter: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Montserrat", sans-serif;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 31, 50, 0.2), transparent 22%),
    radial-gradient(circle at 80% 20%, rgba(143, 7, 27, 0.2), transparent 24%),
    linear-gradient(180deg, #180406 0%, #080102 100%);
  color: var(--text);
}

.page-shell {
  overflow-x: clip;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(26, 6, 9, 0.86), rgba(17, 8, 2, 0.72));
}

.brand-logo {
  width: auto;
  height: clamp(42px, 5vw, 58px);
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 31, 50, 0.12));
}

.hero {
  position: relative;
  padding: 56px 24px 88px;
  border-bottom: 1px solid var(--line);
}

.hero-backdrop {
  position: absolute;
  top: 28px;
  width: min(23vw, 320px);
  opacity: 0.82;
  pointer-events: none;
}

.hero-backdrop-left {
  left: -40px;
}

.hero-backdrop-right {
  right: -40px;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.25;
}

.hero-glow-a {
  top: 150px;
  left: 12%;
  width: 280px;
  height: 6px;
  transform: rotate(-28deg);
  background: linear-gradient(90deg, transparent, #ff5267, transparent);
}

.hero-glow-b {
  top: 170px;
  right: 12%;
  width: 360px;
  height: 7px;
  transform: rotate(-16deg);
  background: linear-gradient(90deg, transparent, #ff4d57, #c10925, transparent);
}

.hero-content,
.bio-section,
.faq-section,
.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

.lead-section {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding: 56px var(--container-gutter) 40px;
}

body.is-auth-screen .lead-section {
  min-height: calc(100vh - 108px);
  display: flex;
  align-items: center;
}

.course-shell {
  display: block;
}

body.is-auth-screen .course-shell {
  display: none;
}

body.is-course-screen .lead-section {
  display: none;
}

.lead-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: center;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 5, 8, 0.94), rgba(18, 5, 8, 0.88));
  box-shadow: var(--shadow), var(--soft-glow);
  overflow: hidden;
}

.lead-copy {
  display: grid;
  gap: 12px;
  align-content: center;
}

.lead-copy h2 {
  max-width: 12ch;
}

.lead-description {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.lead-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--cream);
}

.field input {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field input::placeholder {
  color: rgba(255, 231, 231, 0.45);
}

.field input:focus {
  border-color: rgba(255, 61, 72, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 31, 50, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.lead-submit {
  width: 100%;
  min-width: 0;
  position: relative;
  overflow: hidden;
  animation: enterPulse 2.8s ease-in-out infinite;
}

.lead-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.18) 46%, transparent 70%);
  transform: translateX(-130%);
  animation: buttonShine 3.2s ease-in-out infinite;
  pointer-events: none;
}

.form-feedback {
  min-height: 20px;
  margin: -2px 0 0;
  color: var(--gold-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.welcome-message {
  margin: 0 0 12px;
  color: var(--gold-soft);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@keyframes enterPulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 18px 40px rgba(185, 15, 42, 0.24), 0 0 22px rgba(255, 31, 50, 0.08);
  }

  50% {
    transform: translateY(-1px);
    box-shadow: 0 22px 44px rgba(185, 15, 42, 0.32), 0 0 28px rgba(255, 31, 50, 0.14);
  }
}

@keyframes buttonShine {
  0%, 55% {
    transform: translateX(-130%);
  }

  100% {
    transform: translateX(130%);
  }
}

.hero-copy {
  margin-bottom: 22px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gold);
  font-weight: 800;
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

h1,
h2 {
  margin: 0;
  text-transform: uppercase;
  line-height: 0.95;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  max-width: 680px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.course-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.player-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.video-frame {
  position: relative;
  min-height: 380px;
  border: 1px solid rgba(255, 60, 65, 0.55);
  background: linear-gradient(135deg, rgba(255, 49, 71, 0.24), rgba(103, 9, 22, 0.12));
  box-shadow: var(--shadow), var(--soft-glow);
  overflow: hidden;
}

.video-media {
  position: absolute;
  inset: 0;
}

.video-bg,
.bio-visual .image-placeholder,
.video-thumb,
.video-embed {
  width: 100%;
  height: 100%;
}

.video-thumb,
.video-embed {
  position: absolute;
  inset: 0;
  object-fit: cover;
  border: 0;
}

.hero-description,
.bio-copy p,
.faq-list p,
.footer p {
  margin: 0;
  color: var(--muted);
}

.hero-description {
  max-width: 760px;
  font-size: clamp(0.96rem, 1.15vw, 1.08rem);
  line-height: 1.45;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 290px;
  padding: 18px 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff3b4f, #d10926 52%, #8f071b 100%);
  color: #fff6f6;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(185, 15, 42, 0.24), 0 0 22px rgba(255, 31, 50, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
  text-align: center;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(185, 15, 42, 0.3), 0 0 24px rgba(255, 31, 50, 0.12);
}

.course-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 540px;
}

.course-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.course-progress-label {
  color: var(--cream);
  font-size: 0.86rem;
}

.course-progress-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.course-progress-fill {
  width: 12.5%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff4659, #ff2439 55%, #b10824 100%);
  box-shadow: 0 0 14px rgba(255, 31, 50, 0.18);
  transition: width 220ms ease;
}

.lesson-list {
  max-height: 380px;
  padding-right: 8px;
  overflow: auto;
}

.lesson-list::-webkit-scrollbar {
  width: 8px;
}

.lesson-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), #7f0c20);
  border-radius: 999px;
}

.lesson-card {
  display: grid;
  grid-template-columns: 64px 92px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background:
    linear-gradient(135deg, #ff4452, #ff9ca8),
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(0,0,0,0.05));
  color: #180c02;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.lesson-card:hover,
.lesson-card.is-active {
  transform: translateX(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  filter: saturate(1.05);
}

.lesson-number {
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 900;
}

.lesson-thumb {
  min-height: 58px;
  position: relative;
}

.lesson-thumb-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lesson-text strong,
.lesson-text small {
  display: block;
}

.lesson-text strong {
  font-size: 0.98rem;
  text-transform: uppercase;
}

.lesson-text small {
  font-size: 0.9rem;
  color: rgba(24, 12, 2, 0.86);
}

.bio-section {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 640px;
  overflow: hidden;
    background-image: url(/bg.jpg);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
}


.bio-visual {
  display: none;
}

.bio-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  margin-left: auto;
  padding: 0;
}

.bio-copy p {
  font-size: clamp(0.96rem, 1.08vw, 1.05rem);
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 16px;
}

.faq-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
  padding: 40px 0 80px;
}

.faq-heading {
  position: relative;
}

.faq-watermark {
  position: absolute;
  top: 40px;
  left: 0;
  font-size: clamp(9rem, 18vw, 15rem);
  line-height: 0.8;
  color: rgba(255, 60, 65, 0.12);
  pointer-events: none;
  font-weight: 900;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  list-style: none;
  position: relative;
  padding: 20px 36px 20px 18px;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 20px;
  color: var(--cream);
  font-size: 0.8rem;
}

.faq-list details[open] summary::before {
  content: "▼";
}

.faq-list p {
  padding: 0 18px 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer {
  padding: 24px 0 44px;
  text-align: center;
  font-size: 0.95rem;
}

.image-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}

.image-placeholder::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.image-placeholder.tall {
  height: min(84vh, 820px);
}

.image-placeholder.wide {
  min-height: 380px;
}

.image-placeholder.portrait {
  min-height: 620px;
}

.image-placeholder.small {
  min-height: 58px;
}

@media (max-width: 980px) {
  .hero {
    padding-top: 40px;
  }

  .hero-backdrop {
    width: 170px;
    opacity: 0.4;
  }

  .lead-card,
  .course-grid,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .lead-copy h2,
  .lead-description {
    max-width: none;
  }

  .lesson-list {
    max-height: none;
  }

  .bio-section {
    min-height: 560px;
    padding: 56px 28px;
    background: url("/bg.jpg") center center / cover no-repeat;
  }

  .faq-section {
    gap: 10px;
  }
}

@media (max-width: 640px) {
  :root {
    --container-gutter: 16px;
  }

  .topbar {
    padding: 16px 18px;
  }

  .lead-section,
  .hero,
  .bio-section,
  .faq-section {
    padding-left: 0;
    padding-right: 0;
  }

  .lead-section,
  .hero-content,
  .bio-section,
  .faq-section,
  .footer {
    width: 100%;
    max-width: var(--container-max);
  }

  .lead-card {
    gap: 22px;
    padding: 26px 18px 22px;
    background: linear-gradient(180deg, rgba(18, 5, 8, 0.95), rgba(18, 5, 8, 0.9));
  }

  body.is-auth-screen .lead-section {
    min-height: auto;
    display: block;
    padding-top: 28px;
    padding-bottom: 20px;
  }

  .lead-copy {
    gap: 10px;
    text-align: center;
    justify-items: center;
  }

  .lead-copy h2 {
    max-width: 100%;
    margin: 0 auto;
    font-size: clamp(1.7rem, 7vw, 2.15rem);
  }

  .lead-description {
    max-width: 100%;
    margin: 0 auto;
    font-size: 0.94rem;
    line-height: 1.55;
    text-align: center;
  }

  .lead-form {
    gap: 12px;
  }

  .field {
    gap: 7px;
  }

  .field span,
  .form-feedback {
    text-align: center;
  }

  .field input {
    padding: 15px 14px;
    text-align: center;
  }

  .hero-backdrop-left {
    left: -70px;
  }

  .hero-backdrop-right {
    right: -70px;
  }

  .video-frame,
  .image-placeholder.wide {
    min-height: 240px;
  }

  .lesson-card {
    grid-template-columns: 52px 82px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .lesson-number {
    font-size: 2rem;
  }

  .lesson-text strong {
    font-size: 0.95rem;
  }

  .lesson-text small {
    font-size: 0.92rem;
  }

  .bio-section {
    min-height: 760px;
    padding: 22px 18px 30px;
    justify-content: flex-start;
    align-items: flex-end;
    background:
      linear-gradient(180deg, rgba(10, 2, 4, 0.04) 0%, rgba(10, 2, 4, 0.24) 32%, rgba(10, 2, 4, 0.8) 62%, rgba(10, 2, 4, 0.95) 100%),
      url("/bg-mobile.jpg") center top / cover no-repeat;
  }

  .bio-copy {
    width: 100%;
    padding: 0;
  }

  .bio-copy h2 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
    line-height: 0.98;
    max-width: 100%;
    margin-bottom: 12px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
  }

  .bio-copy p {
    font-size: 0.92rem;
    line-height: 1.48;
    margin-bottom: 14px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  }

  .faq-watermark {
    top: 56px;
    font-size: 8rem;
  }

  .cta-button {
    width: 100%;
    min-width: 0;
  }
}
