:root {
  --ink: #f6faff;
  --muted: #b8cae0;
  --night: #020b1d;
  --night-soft: #071a35;
  --mint: #18d9ff;
  --mint-dark: #063d59;
  --blue: #168cff;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--night);
  color: var(--ink);
  font-family: "Poppins", sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(28px, 5vw, 72px);
}

.hero__media,
.hero__picture,
.hero__grid,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 38%, rgba(0, 184, 255, 0.3), transparent 26%),
    linear-gradient(135deg, #020817 0%, #08234c 55%, #020b1d 100%);
}

.hero__picture {
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  object-position: center;
  opacity: 0.94;
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.11);
  transform-origin: center;
  transition: transform 160ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.hero__grid {
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, black, transparent 78%);
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(2, 11, 29, 0.98) 0%, rgba(2, 11, 29, 0.83) 43%, rgba(2, 11, 29, 0.18) 75%),
    linear-gradient(0deg, rgba(2, 11, 29, 0.88), transparent 40%);
}

.hero__content {
  align-self: start;
  width: min(680px, 58vw);
  padding: clamp(180px, 24vh, 220px) 0 72px;
}

.brand-line {
  position: absolute;
  top: clamp(22px, 4vw, 52px);
  left: clamp(28px, 5vw, 72px);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  isolation: isolate;
}

.brand-line__logo {
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 5px 18px rgba(20, 162, 255, 0.2));
  object-fit: contain;
  opacity: 1;
}

.brand-line__course {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  position: absolute;
  z-index: 2;
  top: clamp(126px, 11vw, 152px);
  left: clamp(28px, 5vw, 72px);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 34px;
  height: 2px;
  background: currentColor;
}

h1 {
  max-width: 670px;
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(3rem, 5.5vw, 5.8rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.hero__promise {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  letter-spacing: -0.02em;
}

.hero__promise span {
  color: rgba(255, 255, 255, 0.76);
}

.hero__promise strong {
  color: var(--mint);
  font-weight: 700;
}

.hero__intro {
  max-width: 590px;
  margin: 13px 0 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.watch-button {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 10px 24px 10px 10px;
  border: 1px solid rgba(24, 217, 255, 0.5);
  border-radius: 999px;
  background: rgba(2, 11, 29, 0.7);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.26);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  backdrop-filter: blur(14px);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.watch-button:hover {
  transform: translate(-50%, calc(-50% - 3px));
  border-color: var(--mint);
  background: rgba(5, 31, 65, 0.92);
}

.watch-button--replay {
  position: static;
  margin: 0 0 18px;
  transform: none;
}

.watch-button--replay:hover {
  transform: translateY(-3px);
}

.watch-button--replay + .purchase {
  margin-top: 0;
}

.watch-button:focus-visible,
.video-modal__close:focus-visible,
.purchase__button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.watch-button__icon {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--night);
  box-shadow: 0 0 0 8px rgba(24, 217, 255, 0.1), 0 0 28px rgba(24, 217, 255, 0.25);
}

.watch-button__icon svg,
.video-placeholder__play svg {
  width: 24px;
  height: 24px;
}

.watch-button strong,
.watch-button small {
  display: block;
}

.watch-button strong {
  font-size: 1rem;
}

.watch-button small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
}

.purchase {
  width: min(100%, 430px);
  margin-top: 28px;
  animation: reveal 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.purchase p {
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 600;
}

.purchase__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--mint);
  box-shadow: 0 16px 38px rgba(24, 217, 255, 0.2);
  color: #03101d;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.purchase__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(24, 217, 255, 0.3);
}

.purchase__button-copy {
  display: grid;
  gap: 1px;
}

.purchase__button-copy > span {
  font-size: 0.86rem;
  font-weight: 600;
}

.purchase__button-copy strong {
  font-size: 1.2rem;
  line-height: 1.15;
}

.purchase > small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  text-align: center;
}

.video-modal {
  width: min(100% - 32px, 1040px);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.video-modal[open] {
  animation: modal-in 340ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.video-modal::backdrop {
  background: rgba(2, 9, 15, 0.87);
  backdrop-filter: blur(16px);
}

.video-modal__panel {
  position: relative;
  padding: clamp(20px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, #0a2851, #030e24 70%);
  box-shadow: var(--shadow);
}

.video-modal__heading span {
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.video-modal__heading h2 {
  margin: 8px 52px 24px 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.45rem);
  letter-spacing: -0.04em;
}

.video-modal__close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.video-modal__close span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.video-modal__close span:first-child {
  transform: rotate(45deg);
}

.video-modal__close span:last-child {
  transform: rotate(-45deg);
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(24, 217, 255, 0.28);
  border-radius: 15px;
  background: #02080c;
}

.video-frame iframe,
.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(24, 217, 255, 0.14), transparent 36%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 13px);
  text-align: center;
}

.video-placeholder__play {
  display: grid;
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--night);
}

.video-placeholder strong {
  font-size: 1.2rem;
}

.video-placeholder small {
  max-width: 390px;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.5;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.975);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@media (max-width: 820px) {
  .hero {
    align-items: end;
    min-height: 100svh;
    padding: 30px 24px 70px;
  }

  .hero__shade {
    background:
      linear-gradient(0deg, rgba(2, 11, 29, 0.99) 6%, rgba(2, 11, 29, 0.78) 52%, rgba(2, 11, 29, 0.12) 100%),
      linear-gradient(90deg, rgba(2, 11, 29, 0.68), transparent);
  }

  .hero__image {
    object-position: center top;
  }

  .hero__content {
    align-self: end;
    width: 100%;
    padding: calc(27vh - 20px) 0 0;
  }

  .watch-button {
    position: static;
    transform: none;
  }

  .watch-button:hover {
    transform: translateY(-3px);
  }

  .brand-line {
    position: absolute;
    top: 28px;
    left: 24px;
    margin: 0;
  }

  .eyebrow {
    top: 108px;
  }

  h1 {
    font-size: clamp(3.15rem, 15vw, 5rem);
  }

  .hero__intro {
    margin: 22px 0 26px;
    font-size: 1rem;
  }

}

@media (max-width: 520px) {
  .brand-line__logo {
    width: 64px;
    height: 64px;
  }

  .brand-line__course {
    max-width: 165px;
    font-size: 0.66rem;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .watch-button {
    width: 100%;
  }

  h1 {
    max-width: 360px;
    font-size: clamp(2.05rem, 9.6vw, 3.15rem);
    line-height: 1.05;
  }

  .video-modal {
    width: calc(100% - 18px);
  }

  .video-modal__panel {
    padding: 20px 14px;
    border-radius: 18px;
  }

  .video-modal__close {
    top: 15px;
    right: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__image {
    transform: scale(1.11);
  }
}
