
/* --------------------------------------------------------------------------
   1. ЗМІННІ
   -------------------------------------------------------------------------- */
:root {
  --bg:          #150f2b;
  --bg-deep:     #0f0a20;
  --violet:      #7c3aed;
  --violet-2:    #9d5cf5;
  --violet-soft: #b892ff;
  --magenta:     #e0559f;
  --pink:        #ff3ea5;

  --text:        #f3effc;
  --muted:       #fff;
  --dim:         #8a80ad;

  --surface:     rgba(124, 58, 237, .10);
  --line:        rgba(157, 92, 245, .28);

  --font: "KoHo", "Segoe UI", system-ui, Arial, sans-serif;

  --container: 1400px;
  --gutter: 20px;
  --radius: 16px;

  --ease: cubic-bezier(.22, .68, .36, 1);
}

/* --------------------------------------------------------------------------
   2. RESET / БАЗА
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1024px) {
  body { font-size: 15px; }
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
}

:focus-visible {
  outline: 2px solid var(--violet-soft);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 18px;
  background-color: var(--violet);
  color: #fff;
}
.skip-link:focus { left: 0; }

body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   3. КОНТЕЙНЕР
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
@media (min-width: 1024px) {
  .container {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* --------------------------------------------------------------------------
   4. ХЕДЕР
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(157, 92, 245, .18);
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(21, 15, 43, .8);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
@media (min-width: 1024px) {
  .header__inner {
    gap: 32px;
    min-height: 72px;
  }
}

.header__cta { display: none; }
@media (min-width: 1024px) {
  .header__cta { display: inline-flex; flex-shrink: 0; }
}

/* --- логотип --- */
.logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background-image: linear-gradient(92deg, var(--pink), var(--violet-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform .3s var(--ease), filter .3s var(--ease);
}
.logo:hover { transform: scale(1.05); filter: brightness(1.15); }
@media (min-width: 1024px) {
  .logo { font-size: 22px; }
}

.logo--footer { font-size: 18px; }
@media (min-width: 1024px) {
  .logo--footer { font-size: 20px; }
}

/* --- бургер --- */
.burger {
  position: relative;
  z-index: 130;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: rgba(124, 58, 237, .16);
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.burger:hover { transform: scale(1.07); border-color: var(--violet-soft); }
@media (min-width: 1024px) {
  .burger { display: none; }
}

.burger__line {
  display: block;
  height: 2px;
  border-radius: 2px;
  background-color: var(--text);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.burger.is-open .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open .burger__line:nth-child(2) { opacity: 0; }
.burger.is-open .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- навігація --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: 80px 24px 40px;
  background-color: rgba(21, 15, 43, .97);
  backdrop-filter: blur(14px);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s linear .45s;
}
.nav.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform .45s var(--ease), visibility 0s;
}
@media (min-width: 1024px) {
  .nav {
    position: static;
    flex-direction: row;
    gap: 34px;
    width: auto;
    height: auto;
    padding: 0;
    margin-left: auto;
    background-color: transparent;
    backdrop-filter: none;
    transform: none;
    visibility: visible;
    transition: none;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
@media (min-width: 1024px) {
  .nav__list {
    flex-direction: row;
    gap: 30px;
  }
}

.nav__item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.nav.is-open .nav__item { opacity: 1; transform: none; }
.nav.is-open .nav__item:nth-child(1) { transition-delay: .12s; }
.nav.is-open .nav__item:nth-child(2) { transition-delay: .18s; }
.nav.is-open .nav__item:nth-child(3) { transition-delay: .24s; }
.nav.is-open .nav__item:nth-child(4) { transition-delay: .30s; }
@media (min-width: 1024px) {
  .nav__item { opacity: 1; transform: none; transition: none; }
}

.nav__link {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--violet-soft); transform: scale(1.06); }
@media (min-width: 1024px) {
  .nav__link {
    padding: 4px 0;
    color: var(--muted);
    font-size: 14.5px;
    font-weight: 500;
  }
}

.nav__cta {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s var(--ease) .38s, transform .4s var(--ease) .38s;
}
.nav.is-open .nav__cta { opacity: 1; transform: none; }
@media (min-width: 1024px) {
  .nav__cta { display: none; }
}

/* --------------------------------------------------------------------------
   5. КНОПКИ
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease),
              background-color .28s var(--ease), color .28s var(--ease);
}
.btn:hover,
.btn:focus-visible { transform: translateY(-3px) scale(1.04); }
.btn:active { transform: translateY(-1px) scale(1); }

.btn--lg {
  min-height: 52px;
  padding: 15px 38px;
  font-size: 15px;
}
@media (min-width: 1024px) {
  .btn--lg { min-height: 56px; padding: 17px 46px; }
}

.btn--solid {
  background-image: linear-gradient(135deg, var(--violet-2), var(--violet));
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, .4);
}
.btn--solid:hover,
.btn--solid:focus-visible { box-shadow: 0 14px 34px rgba(124, 58, 237, .6); }

/* --------------------------------------------------------------------------
   6. СЕКЦІЯ — спільне + ФОНИ ПО СЕКЦІЯХ
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding: 56px 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.section > .container { position: relative; z-index: 1; }

/* --- у кожної секції своя фонова картинка (webp) --- */
.hero        { background-image: url("images/bg-hero.webp"); }
.crew        { background-image: url("images/bg-crew.webp"); }
.gameplay    { background-image: url("images/bg-gameplay.webp"); }
.change      { background-image: url("images/bg-change.webp"); }
.play        { background-image: url("images/bg-play.webp"); }

.section__title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.08;
}
@media (min-width: 1024px) {
  .section__title { font-size: 52px; }
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 44px;
  padding-bottom: 52px;
}
@media (min-width: 1024px) {
  .hero { padding-top: 70px; padding-bottom: 96px; }
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
@media (min-width: 1024px) {
  .hero__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .hero__content { flex: 0 1 700px; padding-top: 20px; }
}

.hero__title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.02;
}
@media (min-width: 1024px) {
  .hero__title { font-size: 72px; }
}

.hero__lead {
  max-width: 40ch;
  margin-top: 18px;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}
@media (min-width: 1024px) {
  .hero__lead { margin-top: 24px; font-size: 26px; }
}

.hero__mono {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 62ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
@media (min-width: 1024px) {
  .hero__mono { margin-top: 28px; font-size: 20px; }
}

.hero__visual {
  margin: 0;
  transition: transform .6s var(--ease);
}
.hero__visual img { width: 100%; }
@media (min-width: 1024px) {
  .hero__visual { flex: 0 0 42%; }
  .hero__visual:hover { transform: translateY(-8px) scale(1.02); }
}

/* --------------------------------------------------------------------------
   8. THE CREW
   -------------------------------------------------------------------------- */
.crew__title {
  margin-bottom: 30px;
  text-align: center;
}
@media (min-width: 1024px) {
  .crew__title { margin-bottom: 48px; }
}

.crew__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 1024px) {
  .crew__body {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }
}

.crew__media {
  margin: 0 auto;
  max-width: 340px;
  transition: transform .6s var(--ease);
}
.crew__media:hover { transform: translateY(-8px) scale(1.02); }
@media (min-width: 1024px) {
  .crew__media { flex: 0 0 40%; max-width: none; margin: 0; }
}

.crew__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
@media (min-width: 1024px) {
  .crew__text { flex: 1 1 auto; font-size: 15px; }
}

/* --------------------------------------------------------------------------
   9. GAMEPLAY
   -------------------------------------------------------------------------- */
.gameplay__title {
  margin-bottom: 26px;
  text-align: center;
}
@media (min-width: 1024px) {
  .gameplay__title { margin-bottom: 44px; }
}

.gameplay__body {
  max-width: 640px;
}

.gameplay__intro {
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}
@media (min-width: 1024px) {
  .gameplay__intro { font-size: 22px; }
}

.rules {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}
@media (min-width: 1024px) {
  .rules { gap: 14px; margin: 30px 0; }
}

.rule {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  transition: transform .25s var(--ease), color .25s var(--ease);
}
.rule:hover { transform: translateX(6px); color: var(--text); }
@media (min-width: 1024px) {
  .rule { font-size: 15px; }
}

.rule__icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.rule__icon::before,
.rule__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background-color: var(--pink);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}
.rule__icon::before { width: 18px; height: 3px; }
.rule__icon::after  { width: 3px; height: 18px; }
.rule:hover .rule__icon { animation: spark .5s var(--ease); }

@keyframes spark {
  0%   { transform: rotate(0) scale(1); }
  50%  { transform: rotate(90deg) scale(1.3); }
  100% { transform: rotate(90deg) scale(1); }
}

.gameplay__outro {
  max-width: 60ch;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}
@media (min-width: 1024px) {
  .gameplay__outro { font-size: 13.5px; }
}

/* декоративні трикутники */
.deco {
  position: absolute;
  z-index: 0;
  display: block;
  width: 0;
  height: 0;
  opacity: .5;
  pointer-events: none;
}
.deco--1 {
  right: 8%;
  top: 24%;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 120px solid rgba(124, 58, 237, .3);
  transform: rotate(18deg);
  animation: float 7s ease-in-out infinite;
}
.deco--2 {
  right: 28%;
  top: 46%;
  border-left: 48px solid transparent;
  border-right: 48px solid transparent;
  border-bottom: 82px solid rgba(157, 92, 245, .22);
  transform: rotate(-14deg);
  animation: float 9s ease-in-out infinite reverse;
}
.deco--3 {
  right: 6%;
  bottom: 12%;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(124, 58, 237, .26);
  transform: rotate(-24deg);
  animation: float 8s ease-in-out infinite;
}
@media (min-width: 1024px) {
  .deco--1 { border-left-width: 110px; border-right-width: 110px; border-bottom-width: 190px; }
  .deco--2 { border-left-width: 80px;  border-right-width: 80px;  border-bottom-width: 138px; }
  .deco--3 { border-left-width: 95px;  border-right-width: 95px;  border-bottom-width: 164px; }
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -18px; }
}

/* --------------------------------------------------------------------------
   10. PROGRESSION / YOU CHANGE
   -------------------------------------------------------------------------- */
.change__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 1024px) {
  .change__inner {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }
}

.change__media {
  margin: 0 auto;
  max-width: 340px;
  transition: transform .6s var(--ease);
}
.change__media:hover { transform: translateY(-8px) scale(1.02); }
@media (min-width: 1024px) {
  .change__media { flex: 0 0 40%; max-width: none; margin: 0; }
}

.change__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
@media (min-width: 1024px) {
  .change__text { flex: 1 1 auto; font-size: 15px; }
}

.change__title {
  margin-bottom: 6px;
}
@media (min-width: 1024px) {
  .change__title { margin-bottom: 12px; }
}

/* --------------------------------------------------------------------------
   11. PLAY / CLOSER
   -------------------------------------------------------------------------- */
.play__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 1024px) {
  .play__inner {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }
}

.play__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  order: 2;
}
@media (min-width: 1024px) {
  .play__text { flex: 1 1 auto; font-size: 15px; order: 0; }
}

.play__title {
  margin-bottom: 6px;
}
@media (min-width: 1024px) {
  .play__title { margin-bottom: 12px; }
}

.play__btn {
  align-self: flex-start;
  margin-top: 8px;
}
@media (min-width: 1024px) {
  .play__btn { margin-top: 14px; }
}

.play__media {
  margin: 0 auto;
  max-width: 340px;
  order: 1;
  transition: transform .6s var(--ease);
}
.play__media:hover { transform: translateY(-8px) scale(1.02); }
@media (min-width: 1024px) {
  .play__media { flex: 0 0 40%; max-width: none; margin: 0; order: 0; }
}

/* --------------------------------------------------------------------------
   12. ФУТЕР
   -------------------------------------------------------------------------- */
.footer {
  padding: 30px 0 34px;
  border-top: 1px solid var(--line);
  background-color: var(--bg-deep);
}
@media (min-width: 1024px) {
  .footer { padding: 40px 0 44px; }
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
@media (min-width: 1024px) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    text-align: left;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
@media (min-width: 1024px) {
  .footer__brand { align-items: flex-start; }
}

.footer__site {
  color: var(--muted);
  font-size: 13px;
}

.footer__copy {
  color: var(--dim);
  font-size: 13px;
}

.footer__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
}

.footer__link {
  color: var(--muted);
  font-size: 13px;
  transition: color .25s var(--ease), transform .25s var(--ease);
  display: inline-block;
}
.footer__link:hover,
.footer__link:focus-visible { color: var(--violet-soft); transform: scale(1.05); }

/* --------------------------------------------------------------------------
   13. СТОРІНКИ PRIVACY / TERMS — просто чорний фон
   -------------------------------------------------------------------------- */
body.legal { background-color: #000; }

.page {
  padding: 40px 0 60px;
  min-height: 60vh;
}
@media (min-width: 1024px) {
  .page { padding: 70px 0 100px; }
}

.page__title {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 30px;
  font-weight: 700;
}
@media (min-width: 1024px) {
  .page__title { margin-bottom: 36px; font-size: 46px; }
}

.page__content {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}
@media (min-width: 1024px) {
  .page__content { font-size: 14.5px; }
}

.page__content h2 {
  margin: 28px 0 10px;
  color: var(--text);
  font-size: 20px;
}
@media (min-width: 1024px) {
  .page__content h2 { margin: 40px 0 12px; font-size: 24px; }
}

.page__content h3 {
  margin: 20px 0 8px;
  color: var(--text);
  font-size: 15px;
}
@media (min-width: 1024px) {
  .page__content h3 { margin: 26px 0 10px; font-size: 16px; }
}

.page__content p { margin-bottom: 14px; }
@media (min-width: 1024px) {
  .page__content p { margin-bottom: 16px; }
}

.page__content ul,
.page__content ol {
  margin: 0 0 16px 20px;
  list-style: disc;
}
@media (min-width: 1024px) {
  .page__content ul,
  .page__content ol { margin-bottom: 20px; }
}

.page__content li { margin-bottom: 6px; }

.page__content a {
  color: var(--violet-soft);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   14. ПОЯВА ПРИ СКРОЛІ (клас додає JS)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
