/* First screen — matched to the approved layout */
:root { --hero-purple: #9654cb; --hero-purple-light: #bb7ee5; }

html { scroll-padding-top: 92px; }

.site-header {
  min-height: 92px;
  padding: 18px clamp(32px, 4.3vw, 70px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand {
  display: block;
  flex: 0 0 auto;
  width: clamp(220px, 18.5vw, 300px);
}

.brand img { display: block; width: 100%; height: auto; }

.main-nav {
  flex: 1 1 auto;
  gap: clamp(22px, 2.65vw, 43px);
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  text-transform: uppercase;
}

.main-nav a { position: relative; padding: 10px 0; transition: color .2s ease; }
.main-nav a::after { content: ""; position: absolute; right: 100%; bottom: 3px; left: 0; height: 1px; background: var(--hero-purple); transition: right .2s ease; }
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { right: 0; }
.main-nav-footer { display: none; }
.main-nav-links {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: clamp(22px, 2.65vw, 43px);
}
.main-nav-links .nav-mobile-only { display: none; }
.nav-label-mobile { display: none; }

.header-actions { gap: 22px; }
.header-login { padding: 11px 25px; border: 1px solid rgba(166, 91, 217, .65); border-radius: 6px; color: rgba(255, 255, 255, .8); font-size: 12px; text-transform: uppercase; }
.header-login:hover { border-color: var(--hero-purple-light); color: #fff; }
.header-register { min-width: 144px; padding: 12px 20px; border-radius: 5px; font-size: 11px; }
.theme-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(166, 91, 217, .45); border-radius: 50%; color: rgba(255, 255, 255, .62); font-size: 22px; font-weight: 300; }

.menu-toggle { width: 42px; height: 42px; padding: 11px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; }
.menu-toggle span { display: block; height: 1px; background: #fff; transition: transform .2s ease; }
.menu-toggle span + span { margin-top: 7px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.hero-scroll-scene {
  position: relative;
  height: max(175svh, calc(820px + 75svh));
}

.hero {
  position: sticky;
  top: 0;
  min-height: 820px;
  height: max(820px, 100svh);
  display: block;
  overflow: hidden;
  padding: 168px clamp(32px, 4.3vw, 88px) 160px;
  background: #06101c url('assets/bg-oksana-full-feng-shuy.jpg') center center / cover no-repeat;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 8, 17, .91) 0%, rgba(3, 12, 23, .74) 37%, rgba(4, 15, 27, .12) 64%, rgba(2, 8, 15, .08) 100%),
    linear-gradient(0deg, rgba(2, 7, 13, .73) 0%, transparent 31%);
  pointer-events: none;
}

.hero::after { content: ""; position: absolute; z-index: 1; inset: auto 0 0; height: 31%; background: linear-gradient(0deg, rgba(2, 7, 13, .66), transparent); pointer-events: none; }

.hero-video {
  position: absolute;
  z-index: 0;
  top: -6%;
  left: -2%;
  width: 108%;
  height: 110%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.elements-orbit {
  position: absolute;
  z-index: 2;
  top: 96px;
  left: 67%;
  width: min(58vw, 900px);
  height: auto;
  opacity: .72;
  transform: translateX(-50%);
  will-change: opacity;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 3; width: min(650px, 48vw); }

.hero-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 27px; color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.hero-kicker-copy { display: inline; }
.hero-kicker-copy > span { display: inline; }
.hero-kicker .play, .hero-secondary .play { display: grid; place-items: center; flex: 0 0 auto; width: 29px; height: 29px; border: 1px solid var(--hero-purple); border-radius: 50%; color: var(--hero-purple-light); }
.hero-kicker .play::before, .hero-secondary .play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
}

.hero h1 { margin: 0; color: #fff; font: 500 clamp(68px, 6.5vw, 128px) / .88 var(--sans); letter-spacing: -.065em; text-transform: uppercase; }
.hero h1 em { display: block; margin: 0; color: var(--hero-purple); font-style: normal; font-weight: 500; }

.hero-lead { max-width: 620px; margin: 38px 0 0; color: rgba(255, 255, 255, .78); font-size: clamp(14px, 1.05vw, 16px); line-height: 1.52; }

.hero-meta { display: flex; gap: 25px; margin-top: 38px; }
.hero-meta-item { display: flex; align-items: center; gap: 12px; min-width: 170px; padding-right: 25px; border-right: 1px solid rgba(255, 255, 255, .18); color: var(--hero-purple-light); }
.hero-meta-item:last-child { border-right: 0; }
.hero-meta-item img { width: 34px; height: 34px; filter: brightness(0) saturate(100%) invert(48%) sepia(45%) saturate(1681%) hue-rotate(237deg) brightness(92%) contrast(91%); }
.hero-meta-item p { margin: 0; line-height: 1.25; }
.hero-meta-item span, .hero-meta-item strong { display: block; }
.hero-meta-item span { color: rgba(255, 255, 255, .57); font-size: 11px; }
.hero-meta-item strong { margin-top: 4px; color: rgba(255, 255, 255, .9); font-size: 15px; font-weight: 500; }

.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 32px; }
.hero-actions .btn { min-height: 51px; padding: 13px 24px; border-radius: 5px; font-size: 10px; }
.hero-primary { min-width: 226px; }
.hero-primary > span { margin-left: auto; font-size: 20px; font-weight: 300; line-height: 0; }
.hero-secondary { border: 1px solid rgba(163, 86, 214, .72); color: rgba(255, 255, 255, .88); background: rgba(3, 10, 18, .2); backdrop-filter: blur(7px); }
.hero-secondary:hover { border-color: var(--hero-purple-light); background: rgba(151, 82, 201, .09); }
.hero-secondary .play { width: 25px; height: 25px; }
.hero-secondary .play::before { border-top-width: 3.5px; border-bottom-width: 3.5px; border-left-width: 5px; }

.hero .proof-strip {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: clamp(32px, 4.3vw, 70px);
  display: grid;
  grid-template-columns: repeat(6, minmax(80px, 1fr));
  width: min(54vw, 900px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.hero .proof-strip.reveal { opacity: 1; transform: none; }
.hero .proof-strip > div { min-width: 0; padding: 0 10px; border: 0; border-right: 1px solid rgba(255, 255, 255, .16); color: inherit; text-align: center; }
.hero .proof-strip > div:first-child { padding-left: 0; border-left: 0; }
.hero .proof-strip > div:last-child { padding-right: 0; border-right: 0; }
.hero .proof-strip > div::before {
  content: "";
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  background: var(--hero-purple-light);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  filter: drop-shadow(0 0 10px rgba(168, 91, 220, .24));
}
.hero .proof-strip > div:nth-child(1)::before { -webkit-mask-image: url('assets/icons/iconcino/school.svg'); mask-image: url('assets/icons/iconcino/school.svg'); }
.hero .proof-strip > div:nth-child(2)::before { -webkit-mask-image: url('assets/icons/iconcino/compass.svg'); mask-image: url('assets/icons/iconcino/compass.svg'); }
.hero .proof-strip > div:nth-child(3)::before { -webkit-mask-image: url('assets/icons/iconcino/book-open.svg'); mask-image: url('assets/icons/iconcino/book-open.svg'); }
.hero .proof-strip > div:nth-child(4)::before { -webkit-mask-image: url('assets/icons/iconcino/clock.svg'); mask-image: url('assets/icons/iconcino/clock.svg'); }
.hero .proof-strip > div:nth-child(5)::before { -webkit-mask-image: url('assets/icons/iconcino/infinite.svg'); mask-image: url('assets/icons/iconcino/infinite.svg'); }
.hero .proof-strip > div:nth-child(6)::before { -webkit-mask-image: url('assets/icons/iconcino/team.svg'); mask-image: url('assets/icons/iconcino/team.svg'); }
.hero .proof-strip span { display: block; color: rgba(255, 255, 255, .76); font-size: 16px; font-weight: 300; line-height: 1.35; }

@media (min-width: 901px) and (max-height: 850px) {
  .hero { min-height: 100svh; height: 100svh; padding-top: 108px; }
  .hero-kicker { margin-bottom: 16px; }
  .hero-lead { margin-top: 20px; }
  .hero-meta { margin-top: 17px; }
  .hero-actions { margin-top: 19px; }
}

@media (max-width: 1180px) {
  .site-header { padding-right: 26px; padding-left: 26px; }
  .brand { width: 210px; }
  .main-nav-links { gap: 19px; }
  .header-actions { gap: 12px; }
  .theme-icon { display: none; }
  .hero { padding-right: 40px; padding-left: 40px; background-position: 54% center; }
  .hero-content { width: min(555px, 49vw); }
  .hero .proof-strip { left: 40px; width: 58vw; }
  .elements-orbit { left: 67%; width: 63vw; }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .hero { padding-top: 126px; }
  .hero-video { object-position: 64% center; }
  .hero-actions {
    width: min(315px, 100%);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-actions .btn { width: 100%; }
  .hero .proof-strip {
    right: 40px;
    left: 40px;
    width: auto;
  }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 78px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
  }
  .hero-scroll-scene { height: auto; }
  .site-header { min-height: 78px; padding: 15px 20px; }
  .brand { width: 176px; }
  .header-login, .header-register { display: none; }
  .menu-toggle { display: block; }
  .main-nav.is-open {
    position: absolute;
    top: 77px;
    right: 0;
    bottom: auto;
    left: 0;
    height: calc(100svh - 77px);
    max-height: calc(100svh - 77px);
    margin: 0;
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 100% 0%, rgba(139, 75, 190, .18), transparent 36%),
      linear-gradient(180deg, #07101c 0%, #050b14 100%);
    box-shadow: none;
    backdrop-filter: blur(20px);
  }
  .main-nav-links {
    width: min(560px, 100%);
    margin: 6px auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .main-nav-links a,
  .main-nav-links .nav-mobile-only {
    min-width: 0;
    min-height: 52px;
    padding: 10px 2px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f4f1f6;
    text-transform: none;
  }
  .main-nav-links a::after {
    content: "";
    top: 50%;
    right: 2px;
    bottom: auto;
    left: auto;
    width: 0;
    height: 0;
    display: block;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #b878e6;
    background: transparent;
    transform: translateY(-50%);
    transition: none;
  }
  .main-nav-links a:active { color: #c686ef; }
  .main-nav-links a > span { padding-right: 24px; font-size: clamp(19px, 5.2vw, 24px); font-weight: 400; line-height: 1.2; text-align: left; }
  .main-nav-links .nav-wide { grid-column: auto; min-height: 52px; }
  .nav-label-desktop { display: none; }
  .nav-label-mobile { display: inline; }
  .main-nav-footer { width: min(560px, 100%); margin: auto auto 0; padding-top: 18px; display: block; border: 0; }
  .main-nav-footer p { margin: 0 0 13px; display: flex; justify-content: space-between; gap: 12px; color: rgba(244, 241, 246, .62); font-size: 14px; line-height: 1.3; text-transform: none; }
  .main-nav-footer .btn { width: 100%; min-height: 52px; display: inline-flex; color: #fff; font-size: 15px; }
  .hero { position: relative; height: auto; min-height: 100svh; padding: 0 28px 42px; background-color: #06101c; background-position: 61% 78px; background-size: auto 520px; background-repeat: no-repeat; }
  .hero-video { display: none; }
  .hero::before { background: linear-gradient(180deg, rgba(2, 8, 15, .08) 0, rgba(2, 8, 15, .12) 23%, rgba(2, 8, 15, .78) 34%, #06101c 45%); }
  .hero::after { height: 68%; background: linear-gradient(0deg, #06101c 76%, transparent); }
  .elements-orbit { display: none !important; }
  .hero-content { width: 100%; padding-top: 380px; }
  .hero h1 { font-size: clamp(57px, 13vw, 78px); }
  .hero-lead { max-width: 620px; }
  .hero .proof-strip { position: relative; right: auto; bottom: auto; left: 0; justify-self: stretch; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin: 42px 0 0; gap: 26px 0; transform: none; }
  .hero .proof-strip > div:nth-child(3) { border-right: 0; }
  .hero .proof-strip > div:nth-child(4) { padding-left: 0; }
}

@media (max-width: 520px) {
  .brand { width: 154px; }
  .hero { padding-right: 20px; padding-bottom: 32px; padding-left: 20px; background-position: 61% -5px; background-size: auto 450px; }
  .hero-video { top: -24px; height: 474px; object-position: 61% 52%; transform: scale(1.12); }
  .hero-content { padding-top: 270px; }
  .hero-kicker {
    position: absolute;
    top: 96px;
    right: 0;
    left: 0;
    margin: 0;
    font-size: 12px !important;
  }
  .hero-kicker-copy { display: grid; gap: 2px; }
  .hero-kicker-copy > span { display: block; white-space: nowrap; }
  .hero h1 { font-size: clamp(49px, 14.5vw, 66px); line-height: .9; }
  .hero-lead { margin-top: 22px; font-size: 14px; line-height: 1.5; }
  .hero-meta { gap: 14px; }
  .hero-meta-item { min-width: 0; flex: 1; gap: 9px; padding-right: 12px; }
  .hero-meta-item img { width: 30px; height: 30px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .hero-actions .btn { width: 100%; }
  .hero .proof-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin: 34px 0 0;
  }
  .hero .proof-strip > div,
  .hero .proof-strip > div:nth-child(3),
  .hero .proof-strip > div:nth-child(4),
  .hero .proof-strip > div:nth-child(odd),
  .hero .proof-strip > div:nth-child(even) {
    display: block;
    flex: 0 1 auto;
    width: auto;
    min-height: 0;
    padding: 9px 13px;
    border: 1px solid rgba(177, 104, 225, .4);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(119, 61, 166, .18), rgba(8, 17, 29, .48));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    text-align: center;
  }
  .hero .proof-strip > div:nth-child(1) { order: 1; }
  .hero .proof-strip > div:nth-child(4) { order: 2; }
  .hero .proof-strip > div:nth-child(2) { order: 3; }
  .hero .proof-strip > div:nth-child(3) { order: 4; }
  .hero .proof-strip > div:nth-child(5) { order: 5; }
  .hero .proof-strip > div:nth-child(6) { order: 6; }
  .hero .proof-strip > div::before { display: none; }
  .hero .proof-strip span { font-size: 0; line-height: 1.2; white-space: nowrap; }
  .hero .proof-strip span::after {
    content: attr(data-mobile);
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) { .main-nav a, .btn, .menu-toggle span { transition: none; } }
