:root {
  --bg: #000;
  --bg2: #08080a;
  --card: #0e0e10;
  --fg: #f5f5f7;
  --muted: #a1a1a6;
  --dim: #6e6e73;
  --line: rgba(255, 255, 255, .1);
  --line2: rgba(255, 255, 255, .18);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease2: cubic-bezier(.65, 0, .35, 1);
  --cw: min(380px, 84vw);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

::selection {
  background: #fff;
  color: #000;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.grad {
  background: linear-gradient(180deg, #fff 0%, #d2d2d7 50%, #7a7a80 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.shine {
  background: linear-gradient(100deg, #6e6e73 0%, #fff 25%, #8e8e93 45%, #fff 65%, #6e6e73 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 8s linear infinite;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 2px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #3a3a3c, #fff);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s;
}

.nav.scrolled {
  background: rgba(0, 0, 0, .62);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo svg {
  width: 26px;
  height: 26px;
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  transition: color .3s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  transition: transform .4s var(--ease), opacity .3s;
}

.nav-cta:hover {
  transform: scale(1.04);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 130px 0 40px;
  overflow: hidden;
  isolation: isolate;
}

.orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  will-change: transform;
}

.orb.a {
  width: 620px;
  height: 620px;
  left: 50%;
  top: -260px;
  margin-left: -310px;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%);
  animation: float1 18s var(--ease2) infinite alternate;
}

.orb.b {
  width: 420px;
  height: 420px;
  left: -120px;
  top: 380px;
  background: radial-gradient(circle, rgba(160, 160, 170, .16), transparent 65%);
  animation: float2 22s var(--ease2) infinite alternate;
}

.orb.c {
  width: 460px;
  height: 460px;
  right: -160px;
  top: 220px;
  background: radial-gradient(circle, rgba(220, 220, 230, .12), transparent 65%);
  animation: float1 26s var(--ease2) infinite alternate-reverse;
}

.grid-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 10%, transparent 70%);
}

.hero-head {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 1s var(--ease) .1s forwards;
}

.eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px #fff;
  animation: pulse 2.4s ease-in-out infinite;
}

h1 {
  margin: 26px 0 22px;
  font-size: clamp(46px, 8.4vw, 108px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.05em;
}

.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0 .02em .1em;
}

.w > span {
  display: inline-block;
  transform: translateY(110%) rotate(4deg);
  animation: rise 1.3s var(--ease) forwards;
  animation-delay: var(--d);
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.5;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) .75s forwards;
}

.carousel {
  position: relative;
  margin-top: 44px;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease) 1s forwards;
}

.track {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 30px calc(50% - var(--cw) / 2) 50px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.track::-webkit-scrollbar {
  display: none;
}

.track.drag {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.tcard {
  position: relative;
  flex: 0 0 var(--cw);
  padding: 28px 28px 22px;
  border: 1px solid transparent;
  border-radius: 30px;
  scroll-snap-align: center;
  transform: scale(var(--s, 1));
  transform-origin: 50% 0;
  opacity: var(--o, 1);
  background:
    linear-gradient(180deg, #151517, #09090a) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .04) 60%) border-box;
  transition: box-shadow .6s var(--ease);
}

.tcard.active {
  box-shadow: 0 40px 80px -30px rgba(255, 255, 255, .12);
}

.tcard.featured {
  background:
    linear-gradient(180deg, #161618, #09090a) padding-box,
    linear-gradient(135deg, #fff 0%, #4a4a4e 35%, #d8d8dc 65%, #2c2c2e 100%) border-box;
}

.tcard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .09), transparent 45%);
  transition: opacity .5s;
}

.tcard:hover::before {
  opacity: 1;
}

.t-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--dim);
}

.t-level {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
}

.featured .t-level {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.t-name {
  margin-top: 30px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.t-sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--dim);
}

.t-price {
  margin-top: 26px;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
}

.t-price small {
  margin-left: 4px;
  font-size: 26px;
  font-weight: 600;
}

.t-tag {
  min-height: 4.5em;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.t-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .7s var(--ease);
}

.t-more > div {
  overflow: hidden;
}

.t-more ul {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.t-more li {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  font-size: 15px;
  color: #d2d2d7;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}

.t-more li svg {
  flex: 0 0 18px;
  margin-top: 3px;
}

.tcard.open .t-more {
  grid-template-rows: 1fr;
}

.tcard.open .t-more li {
  opacity: 1;
  transform: none;
}

.tcard.open .t-more li:nth-child(1) { transition-delay: .12s; }
.tcard.open .t-more li:nth-child(2) { transition-delay: .18s; }
.tcard.open .t-more li:nth-child(3) { transition-delay: .24s; }
.tcard.open .t-more li:nth-child(4) { transition-delay: .30s; }
.tcard.open .t-more li:nth-child(5) { transition-delay: .36s; }

.t-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .5s var(--ease), background .3s, color .3s;
}

.btn-w {
  flex: 1;
  background: #fff;
  color: #000;
}

.btn-w:hover {
  transform: scale(1.03);
}

.btn-w:active {
  transform: scale(.97);
}

.btn-w svg {
  transition: transform .5s var(--ease);
}

.btn-w:hover svg {
  transform: translateX(4px);
}

.t-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line2);
  border-radius: 50%;
  transition: background .3s, transform .5s var(--ease);
}

.t-toggle:hover {
  background: rgba(255, 255, 255, .08);
}

.t-toggle svg {
  transition: transform .7s var(--ease);
}

.tcard.open .t-toggle svg {
  transform: rotate(180deg);
}

.c-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: -18px;
}

.c-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line2);
  border-radius: 50%;
  transition: background .3s, transform .4s var(--ease), opacity .3s;
}

.c-arrow:hover {
  background: rgba(255, 255, 255, .08);
}

.c-arrow:active {
  transform: scale(.92);
}

.c-arrow:disabled {
  opacity: .3;
  cursor: default;
}

.dots {
  display: flex;
  gap: 8px;
}

.dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--dim);
  transition: width .6s var(--ease), background .4s;
}

.dots button.on {
  width: 28px;
  background: #fff;
}

.scroll-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 46px;
  color: var(--dim);
  font-size: 13px;
}

.scroll-hint span {
  width: 1px;
  height: 34px;
  background: linear-gradient(#fff, transparent);
  transform-origin: top;
  animation: drip 2.2s var(--ease) infinite;
}

section {
  position: relative;
}

.sec {
  padding: 140px 0;
}

.kicker {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
}

h2 {
  font-size: clamp(36px, 5.6vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.lead {
  max-width: 640px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
}

.reveal {
  opacity: 0;
  transform: translateY(44px) scale(.985);
  filter: blur(8px);
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease), filter 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

.courses-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 56px;
}

.seg {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
}

.seg button {
  position: relative;
  z-index: 1;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color .4s;
}

.seg button.active {
  color: #000;
}

.seg-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(255, 255, 255, .2);
  transition: left .6s var(--ease), width .6s var(--ease);
}

.panel {
  display: none;
}

.panel.show {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  animation: panelIn .9s var(--ease);
}

.p-side {
  position: sticky;
  top: 100px;
  align-self: start;
}

.p-label {
  font-size: 14px;
  color: var(--dim);
}

.p-name {
  margin: 10px 0 6px;
  font-size: clamp(40px, 4.6vw, 58px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
}

.p-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
  font-size: 22px;
  font-weight: 600;
}

.p-price em {
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  color: var(--dim);
}

.p-about {
  margin-top: 22px;
  color: var(--muted);
}

.p-block {
  margin-top: 34px;
}

.p-block h4 {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
}

.p-block li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 16px;
  color: #d2d2d7;
}

.p-block li svg {
  flex: 0 0 18px;
  margin-top: 4px;
}

.mods-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.mods-title h3 {
  font-size: 24px;
  letter-spacing: -.03em;
}

.mods-title span {
  font-size: 14px;
  color: var(--dim);
}

.mod {
  border-bottom: 1px solid var(--line);
}

.mod-h {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 22px 0;
  text-align: left;
}

.mod-n {
  width: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.mod-t {
  flex: 1;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
  transition: transform .5s var(--ease);
}

.mod-h:hover .mod-t {
  transform: translateX(6px);
}

.plus {
  position: relative;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line2);
  border-radius: 50%;
  transition: background .4s, transform .7s var(--ease);
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: transform .7s var(--ease);
}

.plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.mod.open .plus {
  background: #fff;
  transform: rotate(180deg);
}

.mod.open .plus::before,
.mod.open .plus::after {
  background: #000;
}

.mod.open .plus::after {
  transform: translate(-50%, -50%) rotate(0);
}

.mod-b {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .7s var(--ease);
}

.mod-b > div {
  overflow: hidden;
}

.mod.open .mod-b {
  grid-template-rows: 1fr;
}

.mod-in {
  padding: 0 0 26px 44px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}

.mod.open .mod-in {
  opacity: 1;
  transform: none;
  transition-delay: .1s;
}

.mod-in p {
  color: var(--muted);
  font-size: 16px;
}

.why {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  font-size: 15px;
  color: #d2d2d7;
}

.why b {
  color: #fff;
  font-weight: 600;
}

@keyframes shine {
  to { background-position: -250% 0; }
}

@keyframes float1 {
  to { transform: translate(80px, 60px) scale(1.15); }
}

@keyframes float2 {
  to { transform: translate(120px, -80px) scale(.9); }
}

@keyframes pulse {
  50% { opacity: .3; }
}

@keyframes rise {
  to { transform: none; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes drip {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 900px) {
  .panel.show {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .p-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 16px;
  }

  .track {
    -webkit-mask-image: none;
    mask-image: none;
    gap: 14px;
  }

  .sec {
    padding: 96px 0;
  }

  .seg button {
    padding: 10px 13px;
    font-size: 14px;
  }

  .mod-in {
    padding-left: 0;
  }

  .mod-h {
    gap: 14px;
  }

  .mod-t {
    font-size: 17px;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
