:root {
  --bg: #0a0711;
  --bg-soft: #f5f3fb;
  --surface: #ffffff;
  --surface-dark: #15111f;
  --text: #1f2430;
  --muted: #626b7c;
  --muted-light: #d6d0e6;
  --line: #ded8ec;
  --purple: #4527a0;
  --green: #009666;
  --gold: #ffd36f;
  --brand-gradient: linear-gradient(32deg, #0462b7 0%, #616ecc 24%, #f66ca8 50%, #ffd36f 75%, #fffcc1 100%);
  --warm-gradient: linear-gradient(45deg, #ffe1ac 0%, #fdc28d 34%, #f696b7 68%, #dd8ccf 100%);
  --radius: 8px;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

code {
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: rgba(69, 39, 160, 0.08);
  color: #4527a0;
  font-size: 0.95em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 26px;
  color: #fff;
  background: rgba(10, 7, 17, 0.94);
  backdrop-filter: blur(14px);
}

.brand img {
  width: auto;
  height: 42px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 0.55rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  outline: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: transparent;
  color: #fff;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.section-dark {
  color: #fff;
  background:
    radial-gradient(circle at 13% 16%, rgba(69, 39, 160, 0.34), transparent 27rem),
    radial-gradient(circle at 84% 6%, rgba(246, 108, 168, 0.18), transparent 25rem),
    #08050d;
}

.section-light {
  background: #fff;
}

.section-soft {
  background: var(--bg-soft);
}

section {
  padding: clamp(58px, 8vw, 104px) 0;
}

.hero {
  padding-top: clamp(68px, 8vw, 112px);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.25fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero-copy {
  max-width: 580px;
}

.hero-logo {
  width: min(420px, 84vw);
  margin: 0 0 0.85rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Encode Sans", Poppins, sans-serif;
  line-height: 1.22;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 6vw, 6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: 1.15rem;
}

.gradient-text {
  display: inline-block;
  overflow: visible;
  color: transparent;
  background-image: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  line-height: 1.25;
  padding: 0.04em 0 0.2em;
  margin-bottom: -0.08em;
}

.warm-gradient {
  background-image: var(--warm-gradient);
}

.hero-subtitle {
  max-width: 46rem;
  margin: 1.15rem 0 0;
  color: var(--muted-light);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.75rem 1.05rem;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: #0a0711;
  background: var(--gold);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
}

.featured-video,
.video-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: var(--surface-dark);
  box-shadow: var(--shadow);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #0a0711;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: opacity 180ms ease, transform 180ms ease;
}

.video-placeholder:hover img,
.video-placeholder:focus-visible img {
  opacity: 0.92;
  transform: scale(1.02);
}

.video-placeholder:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  place-items: center;
}

.play-icon::before {
  display: block;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid var(--purple);
  content: "";
}

.intro-layout {
  display: grid;
  gap: 42px;
  text-align: center;
}

.intro-layout > div:first-child {
  max-width: 850px;
  margin: 0 auto;
}

.intro-layout p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 26px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-card p {
  margin: 0;
  color: var(--muted);
}

.step-number {
  font-family: "Encode Sans", Poppins, sans-serif;
  font-size: 3rem;
  line-height: 1;
}

.step-purple {
  color: var(--purple);
}

.step-green {
  color: var(--green);
}

.step-gold {
  color: #b78012;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 30px;
  text-align: center;
}

.section-heading p:last-child {
  margin: 0.85rem auto 0;
  color: var(--muted-light);
}

.section-light .section-heading p:last-child,
.section-soft .section-heading p:last-child {
  color: var(--muted);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.video-card {
  background: #fff;
  color: var(--text);
  border-color: rgba(11, 13, 18, 0.08);
  scroll-margin-top: 92px;
}

.section-dark .video-card {
  background: #12101b;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.video-card:target {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.video-content {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.video-content h3 {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.video-content p {
  margin: 0;
  color: var(--muted);
}

.section-dark .video-content p {
  color: var(--muted-light);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.resource-link {
  justify-self: start;
  min-height: 38px;
  padding: 0.52rem 0.78rem;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 999px;
  color: #202635;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.section-dark .resource-link {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.resource-link:hover,
.resource-link:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.training-intro {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 32px;
}

.training-intro img {
  width: 100%;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--purple);
}

.training-intro p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  padding: 34px 0;
  color: #fff;
  background: #0a0711;
}

.footer-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.footer-layout img {
  width: auto;
  height: 42px;
}

.footer-layout p {
  margin: 0;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
  outline: none;
}

@media (max-width: 920px) {
  .site-header {
    padding: 0 18px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: #0a0711;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0.85rem;
  }

  .hero-layout,
  .training-intro,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
  }

  .steps,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .training-intro img,
  .footer-layout img {
    justify-self: center;
  }

  .footer-layout {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .brand img {
    height: 34px;
  }

  h1 {
    font-size: clamp(2.6rem, 18vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .play-icon {
    width: 58px;
    height: 58px;
  }
}
