:root {
  --bg: #070707;
  --surface: #111111;
  --surface-soft: #171717;
  --surface-hover: #1b1b1b;
  --gold: #ffd500;
  --gold-strong: #ffeb3b;
  --gold-muted: #b99b00;
  --text: #f8f8f5;
  --muted: #aaa9a2;
  --line: rgba(255, 213, 0, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius-lg: 22px;
  --radius-md: 16px;
  color-scheme: dark;
  font-family: "Montserrat", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 213, 0, 0.09), transparent 28rem),
    radial-gradient(circle at 90% 40%, rgba(255, 213, 0, 0.05), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 176px;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.app-link,
.floating-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--gold-muted);
  border-radius: 999px;
  color: #080808;
  background: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.app-link:hover,
.app-link:focus-visible,
.floating-app:hover,
.floating-app:focus-visible {
  background: var(--gold-strong);
  transform: translateY(-2px);
}

.support-link,
.floating-support {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.floating-app {
  position: fixed;
  z-index: 10;
  right: 22px;
  bottom: 84px;
  max-width: min(310px, calc(100vw - 28px));
  box-shadow: 0 13px 36px rgba(0, 0, 0, 0.48);
}

.support-link {
  color: var(--gold);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: 180ms ease;
}

.support-link:hover,
.support-link:focus-visible {
  background: rgba(255, 213, 0, 0.09);
  border-color: rgba(255, 213, 0, 0.5);
}

.support-link svg,
.floating-support svg {
  width: 19px;
  fill: currentColor;
}

.hero {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 88px;
  text-align: center;
}

.hero-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-kicker span {
  display: block;
  width: 27px;
  height: 1px;
  background: var(--gold);
}

.hero h1,
.section-heading h2,
.leveling-content h2,
.lesson-title {
  margin-top: 0;
  font-family: "Montserrat", Arial, sans-serif;
  text-wrap: balance;
}

.hero h1 {
  max-width: 850px;
  margin-right: auto;
  margin-bottom: 22px;
  margin-left: auto;
  font-size: clamp(2.35rem, 6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  font-weight: 900;
}

.hero h1 strong {
  color: var(--gold);
  font-weight: 900;
}

.hero p {
  max-width: 670px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.primary-cta,
.button,
.lesson-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 10px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-cta,
.button-primary,
.lesson-button {
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  color: #090909;
  box-shadow: 0 12px 30px rgba(255, 213, 0, 0.12);
}

.primary-cta {
  padding: 0 25px;
}

.primary-cta:hover,
.button-primary:hover,
.lesson-button:hover,
.primary-cta:focus-visible,
.button-primary:focus-visible,
.lesson-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 213, 0, 0.22);
}

.leveling-section,
.lessons-section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.leveling-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) 1.45fr;
  gap: 54px;
  align-items: center;
  padding: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 213, 0, 0.28);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(130deg, rgba(255, 213, 0, 0.06), transparent 36%),
    var(--surface);
  box-shadow: var(--shadow);
}

.leveling-card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -140px;
  bottom: -170px;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255, 213, 0, 0.025), 0 0 0 72px rgba(255, 213, 0, 0.015);
}

.leveling-visual {
  position: relative;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent),
    #0a0a0a;
}

.leveling-logo {
  width: min(240px, 72%);
  height: auto;
  object-fit: contain;
  object-position: left top;
}

.document-lines {
  display: grid;
  gap: 13px;
}

.document-lines i {
  display: block;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(255, 213, 0, 0.72), rgba(255, 255, 255, 0.08));
}

.document-lines i:nth-child(2) { width: 76%; }
.document-lines i:nth-child(3) { width: 91%; }
.document-lines i:nth-child(4) { width: 57%; }

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.leveling-content h2,
.section-heading h2 {
  margin-bottom: 15px;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.leveling-content p,
.section-heading p,
.lesson-description {
  color: var(--muted);
}

.leveling-content p {
  max-width: 620px;
  margin: 0 0 24px;
}

.leveling-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.button {
  padding: 0 19px;
}

.button-secondary {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line);
  background: rgba(255, 213, 0, 0.07);
}

.lessons-section {
  padding: 118px 0 100px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading p {
  margin: 0;
}

.lessons-list {
  display: grid;
  gap: 18px;
}

.lesson-card {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) 1.3fr;
  min-height: 290px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(110deg, #111, #141414);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.lesson-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 213, 0, 0.22);
  background: linear-gradient(110deg, #121212, var(--surface-hover));
}

.video-slot {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  background: #030303;
}

.video-slot iframe,
.video-launcher,
.coming-soon {
  width: 100%;
  height: 100%;
  min-height: 290px;
  border: 0;
}

.video-launcher {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  color: white;
  background: #000;
}

.video-launcher::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent 60%);
}

.video-launcher img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 350ms ease, opacity 350ms ease;
}

.video-launcher:hover img,
.video-launcher:focus-visible img {
  transform: scale(1.025);
  opacity: 0.96;
}

.play-symbol {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--gold);
  color: #050505;
  box-shadow: 0 0 0 10px rgba(255, 213, 0, 0.16), 0 16px 36px rgba(0, 0, 0, 0.42);
  font-size: 1.35rem;
}

.play-symbol::before {
  content: "";
  margin-left: 5px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #050505;
}

.coming-soon {
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    radial-gradient(circle at center, rgba(255, 213, 0, 0.12), transparent 50%),
    #080808;
}

.coming-soon-inner {
  text-align: center;
}

.coming-soon img {
  width: min(210px, 74%);
  height: auto;
  margin-bottom: 16px;
}

.coming-soon strong {
  display: block;
  color: var(--gold);
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lesson-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 31px 34px;
}

.lesson-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.lesson-number::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.lesson-title {
  margin-bottom: 13px;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.lesson-description {
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.65;
}

.lesson-button {
  min-height: 46px;
  margin-top: auto;
  padding: 0 17px;
  text-align: center;
}

.site-footer {
  padding: 48px 20px;
  border-top: 1px solid var(--line-soft);
  background: #050505;
  text-align: center;
}

.site-footer img {
  width: 145px;
  height: auto;
  margin-bottom: 18px;
}

.site-footer p {
  margin: 0 auto 10px;
}

.copyright {
  color: #ddd;
  font-size: 0.83rem;
}

.risk-warning {
  max-width: 790px;
  color: #777;
  font-size: 0.76rem;
}

.site-footer a {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
}

.floating-support {
  position: fixed;
  z-index: 10;
  right: 22px;
  bottom: 22px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  background: #229ed9;
  color: white;
  box-shadow: 0 13px 36px rgba(0, 0, 0, 0.48);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-support:hover,
.floating-support:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(34, 158, 217, 0.28);
}

:focus-visible {
  outline: 3px solid rgba(255, 213, 0, 0.55);
  outline-offset: 4px;
}

@media (max-width: 860px) {
  .hero {
    padding: 72px 0 68px;
  }

  .leveling-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .leveling-visual {
    min-height: 200px;
  }

  .lesson-card {
    grid-template-columns: 1fr;
  }

  .video-slot,
  .video-slot iframe,
  .video-launcher,
  .video-launcher img,
  .coming-soon {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: min(100% - 28px, 1160px);
    min-height: 82px;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 12px 0;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .app-link {
    min-height: 42px;
    padding: 8px 12px;
    font-size: 0.7rem;
  }

  .brand img {
    width: 136px;
  }

  .support-link {
    padding: 10px;
  }

  .support-link span {
    display: none;
  }

  .hero,
  .leveling-section,
  .lessons-section {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    padding-top: 60px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 12vw, 3.3rem);
  }

  .hero-kicker {
    font-size: 0.65rem;
  }

  .leveling-card {
    padding: 20px;
    border-radius: 17px;
  }

  .leveling-content h2,
  .section-heading h2 {
    font-size: 1.7rem;
  }

  .leveling-actions,
  .button,
  .lesson-button {
    width: 100%;
  }

  .lessons-section {
    padding: 88px 0 80px;
  }

  .lesson-content {
    padding: 25px 21px 23px;
  }

  .lesson-title {
    font-size: 1.25rem;
  }

  .lesson-description {
    font-size: 0.91rem;
  }

  .floating-support {
    right: 14px;
    bottom: 14px;
    width: 52px;
    padding: 0;
  }

  .floating-app {
    right: 14px;
    bottom: 76px;
    max-width: min(260px, calc(100vw - 28px));
    min-height: 46px;
    font-size: 0.7rem;
  }

  .floating-support span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
