/* ============================================================
   Hollow Knight — промо-лендинг
   Оглавление:
   1. Переменные и база       5. Секция «Особенности» (вкладки)
   2. Кнопки                  6. Трейлер
   3. Шапка (nav) и хиро      7. Скриншоты (галерея)
   4. Секция «Об игре»        8. Отзывы, требования, CTA, футер
   ============================================================ */

/* ---------- 1. Переменные и база ---------- */
:root {
  --accent: #8fd6ea;            /* бледное свечение душ */
  --bg: #080c16;                /* основной фон */
  --bg-alt: #0a111f;            /* фон чередующихся секций */
  --card: #0c1322;              /* фон карточек */
  --ink: #0a0f1c;               /* тёмный текст на светлых кнопках */
  --text: #dce4f2;
  --heading: #e9eef8;
  --body: #a9b6d0;
  --muted: #93a4c2;
  --faint: #7f8fae;
  --line: rgba(150, 180, 220, .12);
  --serif: 'Cormorant', serif;
  --sans: 'Raleway', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #c6ecf8; }
img { max-width: 100%; display: block; }
::selection { background: rgba(143, 214, 234, .28); color: #f2f7ff; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--heading);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.section { padding: 120px 24px; scroll-margin-top: 70px; }
.section--alt { background: var(--bg-alt); border-top: 1px solid rgba(150,180,220,.07); border-bottom: 1px solid rgba(150,180,220,.07); }
.container { max-width: 1140px; margin: 0 auto; }
.container--wide { max-width: 1220px; }

/* Надзаголовок секции и заголовок */
.kicker {
  font-size: 12px; font-weight: 700;
  letter-spacing: .38em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; text-wrap: balance; }

/* Появление секций при прокрутке (класс вешает main.js) */
.will-reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s ease, transform .85s ease; }
.will-reveal.is-visible { opacity: 1; transform: none; }

/* Декоративный разделитель-ромб */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; }
.ornament::before, .ornament::after { content: ''; height: 1px; width: 92px; }
.ornament::before { background: linear-gradient(90deg, transparent, rgba(176,204,238,.55)); }
.ornament::after { background: linear-gradient(270deg, transparent, rgba(176,204,238,.55)); }
.ornament span { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid rgba(176,204,238,.75); }

/* Полоса прогресса чтения и «фонарь» за курсором */
.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 70;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 12px color-mix(in oklab, var(--accent) 60%, transparent);
  pointer-events: none;
}
.lantern {
  position: fixed; left: 0; top: 0; z-index: 4;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 13%, transparent), transparent 70%);
  opacity: 0; transition: opacity .5s ease;
  pointer-events: none;
}

/* ---------- 2. Кнопки ---------- */
.btn {
  display: inline-block; border-radius: 6px; cursor: pointer;
  font-weight: 700; letter-spacing: .2em; text-transform: uppercase; text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
/* Главная кнопка «Скачать» — светлая, с пульсирующим свечением */
.btn--primary {
  padding: 20px 46px; font-size: 14.5px;
  background: linear-gradient(180deg, #f7fbff, #cfe9f5); color: var(--ink);
  animation: btn-glow 2.6s ease-in-out infinite;
}
.btn--primary:hover { transform: translateY(-2px); color: var(--ink); }
.btn--md { padding: 18px 42px; font-size: 13.5px; }
.btn--lg { padding: 22px 54px; font-size: 15.5px; letter-spacing: .22em; }
/* Контурная кнопка */
.btn--outline {
  padding: 18px 34px; font-size: 13.5px; font-weight: 600;
  border: 1px solid color-mix(in oklab, var(--accent) 42%, transparent); color: var(--accent);
}
.btn--outline:hover { background: color-mix(in oklab, var(--accent) 12%, transparent); color: var(--accent); }

@keyframes btn-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(233,238,248,.22), 0 10px 40px color-mix(in oklab, var(--accent) 35%, transparent); }
  50% { box-shadow: 0 0 0 2px rgba(233,238,248,.4), 0 14px 70px color-mix(in oklab, var(--accent) 68%, transparent), 0 0 26px color-mix(in oklab, var(--accent) 42%, transparent); }
}

/* ---------- 3. Шапка и хиро ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease;
}
.nav.is-scrolled { background: rgba(7,11,20,.85); backdrop-filter: blur(14px); border-bottom-color: rgba(150,180,220,.1); }
.nav__inner {
  max-width: 1220px; margin: 0 auto; padding: 15px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.nav__logo { font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: .22em; color: var(--heading); }
.nav__links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.nav__links a { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav__links a:hover { color: var(--accent); }
.nav__cta {
  padding: 11px 22px; border-radius: 5px;
  background: #e9eef8; color: var(--ink);
  font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 4px 24px color-mix(in oklab, var(--accent) 45%, transparent);
  transition: transform .2s ease, background .2s ease;
}
.nav__cta:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }

.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 150px 24px 110px;
  background:
    radial-gradient(1100px 640px at 50% -12%, rgba(64,94,148,.32), transparent 62%),
    radial-gradient(1000px 560px at 50% 115%, rgba(24,44,76,.55), transparent 66%);
}
/* Фоновое видео, частицы и виньетка лежат слоями под контентом */
.hero__video, .hero__particles, .hero__vignette { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__video { object-fit: cover; opacity: .22; filter: saturate(.8) brightness(.75); }
.hero__particles, .hero__vignette { pointer-events: none; }
.hero__vignette { background: radial-gradient(120% 95% at 50% 45%, transparent 55%, rgba(3,6,12,.6) 100%); }
.hero__content {
  position: relative; max-width: 860px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  will-change: transform; /* параллакс от мыши */
}
.hero__kicker { font-size: 12px; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: #8fa0c0; }
.hero__logo {
  width: min(640px, 88vw); height: auto;
  animation: float 7s ease-in-out infinite;
  filter: drop-shadow(0 0 40px color-mix(in oklab, var(--accent) 32%, transparent));
}
.hero__lead { margin: 0; max-width: 640px; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.75; color: var(--body); text-wrap: pretty; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.badge {
  padding: 9px 16px; border: 1px solid rgba(150,180,220,.16); border-radius: 999px;
  background: rgba(12,18,32,.5);
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8fa0c0;
}
/* Индикатор «листайте вниз» */
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1px solid rgba(176,204,238,.4); border-radius: 12px;
  display: flex; justify-content: center; padding-top: 7px;
}
.scroll-hint span { width: 3px; height: 7px; border-radius: 2px; background: rgba(200,224,248,.8); animation: scroll-dot 2s ease-in-out infinite; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes scroll-dot { 0%, 100% { transform: translateY(0); opacity: .75; } 50% { transform: translateY(9px); opacity: .15; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 4. Секция «Об игре» ---------- */
.about__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: start; }
.about__grid h2 { margin-bottom: 22px; }
.about__grid p { margin: 0 0 18px; font-size: 16.5px; line-height: 1.85; color: var(--body); text-wrap: pretty; }
.about__note {
  padding: 18px 22px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(14,21,36,.55); font-size: 14px; line-height: 1.7; color: var(--muted);
}
.about__note strong { color: #dbe4f2; font-weight: 600; }

/* Карточка фактов */
.facts {
  background: linear-gradient(180deg, rgba(19,28,48,.72), rgba(11,17,30,.72));
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 30px 24px;
}
.facts__row { display: flex; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid rgba(150,180,220,.09); }
.facts__row:last-of-type { border-bottom: 0; }
.facts__row dt { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.facts__row dd { margin: 0; font-size: 14px; font-weight: 600; color: #dbe4f2; text-align: right; }
.facts__row dd.accent { color: var(--accent); }
.facts__link {
  display: block; margin-top: 16px; padding: 14px; border-radius: 6px; text-align: center;
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.facts__link:hover { background: color-mix(in oklab, var(--accent) 12%, transparent); color: var(--accent); }

/* ---------- 5. «Особенности»: вкладки ---------- */
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 40px 0 44px; }
.tab {
  padding: 13px 22px; border-radius: 6px; cursor: pointer;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  background: transparent; border: 1px solid rgba(150,180,220,.16); color: #8fa0c0;
  transition: all .25s ease;
}
.tab:hover { border-color: color-mix(in oklab, var(--accent) 45%, transparent); color: var(--accent); }
.tab.is-active {
  background: color-mix(in oklab, var(--accent) 13%, transparent);
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
  color: var(--accent);
}
/* Панель вкладки: текст слева, кадр справа. Активную панель показывает main.js */
.feature-panel { display: none; }
.feature-panel.is-active { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: center; animation: fade-up .5s ease both; }
.feature-panel h3 { margin-bottom: 16px; font-size: 30px; letter-spacing: .03em; text-transform: none; }
.feature-panel > div > p { margin: 0 0 22px; font-size: 16px; line-height: 1.8; color: var(--body); text-wrap: pretty; }
.points { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.points li { display: flex; gap: 14px; align-items: baseline; font-size: 14.5px; line-height: 1.65; color: #b6c2da; }
.points li::before {
  content: ''; flex: none; width: 7px; height: 7px; transform: rotate(45deg);
  border: 1px solid color-mix(in oklab, var(--accent) 80%, transparent);
}
.feature-panel figure {
  margin: 0; position: relative; aspect-ratio: 4 / 3;
  border-radius: 10px; overflow: hidden; border: 1px solid rgba(150,180,220,.14);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.feature-panel figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 6. Трейлер ---------- */
.trailer { max-width: 1000px; margin: 0 auto; text-align: center; }
.trailer__frame {
  position: relative; margin: 44px auto 0; aspect-ratio: 16 / 9;
  border-radius: 12px; overflow: hidden; border: 1px solid rgba(150,180,220,.14); background: #0a101d;
  box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 70px color-mix(in oklab, var(--accent) 9%, transparent);
}
.trailer__cover { position: absolute; inset: 0; cursor: pointer; }
.trailer__cover img { width: 100%; height: 100%; object-fit: cover; }
.trailer__cover::after { /* затемнение поверх обложки */
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 50% 50%, rgba(5,9,17,.25), rgba(5,9,17,.66));
}
.trailer__play {
  position: absolute; inset: 0; margin: auto; z-index: 1;
  width: 94px; height: 94px; border-radius: 50%; cursor: pointer;
  border: 1px solid color-mix(in oklab, var(--accent) 55%, transparent);
  background: rgba(8,12,22,.62); backdrop-filter: blur(6px);
  display: grid; place-items: center;
  animation: pulse 3.2s ease-in-out infinite;
  transition: transform .25s ease, background .25s ease;
}
.trailer__play:hover { transform: scale(1.07); background: rgba(13,21,38,.85); }
.trailer__play span { /* треугольник Play */
  width: 0; height: 0; margin-left: 7px;
  border-left: 24px solid #e9eef8; border-top: 14px solid transparent; border-bottom: 14px solid transparent;
}
.trailer__tag {
  position: absolute; right: 16px; bottom: 14px; z-index: 1;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(8,12,22,.72); border: 1px solid rgba(150,180,220,.16);
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.trailer__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.trailer__cta { margin-top: 32px; }

@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .92; } 50% { transform: scale(1.05); opacity: 1; } }

/* ---------- 7. Скриншоты ---------- */
.gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.gallery__arrows { display: flex; gap: 10px; }
.gallery__arrows button {
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(150,180,220,.22); background: rgba(14,20,36,.7);
  color: #dbe4f2; font-size: 22px; line-height: 1;
  transition: border-color .2s ease, color .2s ease;
}
.gallery__arrows button:hover { border-color: var(--accent); color: var(--accent); }
.gallery__track {
  display: flex; gap: 18px; padding: 4px 4px 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  cursor: grab; /* трек можно тянуть мышью */
}
.gallery__track::-webkit-scrollbar { display: none; }
.shot {
  flex: none; width: min(620px, 84vw); aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden; border: 1px solid rgba(150,180,220,.14);
  scroll-snap-align: start;
  transition: transform .35s ease, box-shadow .35s ease;
}
.shot:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(0,0,0,.55); }
.shot img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gallery__note { margin: 18px 4px 0; font-size: 13px; color: var(--faint); }

/* ---------- 8. Отзывы ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.stat { background: var(--card); padding: 32px 24px; text-align: center; }
.stat__num { font-family: var(--serif); font-weight: 600; font-size: 52px; line-height: 1; color: var(--heading); }
.stat__num small { font-size: 26px; color: var(--faint); }
.stat__label { margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
.press-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 28px;
  background: linear-gradient(180deg, rgba(19,28,48,.5), rgba(11,17,30,.5));
}
.press-card .source { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }
.press-card .score { margin: 10px 0 8px; font-family: var(--serif); font-weight: 600; font-size: 42px; line-height: 1; color: var(--accent); }
.press-card .quote { font-size: 14px; line-height: 1.6; color: #9fb0cc; }

.review-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.review-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.review-card__avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 20%, #101828);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 21px; color: var(--accent);
}
.review-card__name { font-size: 14px; font-weight: 700; color: #dbe4f2; }
.review-card__meta { margin-top: 3px; font-size: 11.5px; color: var(--faint); }
.review-card__meta strong { color: var(--accent); font-weight: 700; letter-spacing: .08em; }
.review-card p { margin: 0; font-size: 14.5px; line-height: 1.75; color: #b6c2da; }

/* Системные требования */
.sysreq { padding: 0 24px 110px; }
.sysreq h2 { text-align: center; font-size: 28px; letter-spacing: .06em; margin-bottom: 30px; color: #c9d5ea; }
.sysreq__grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.req-card { border: 1px solid var(--line); border-radius: 12px; padding: 26px 28px; background: rgba(12,19,34,.5); }
.req-card h3 { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--accent); margin-bottom: 14px; }
.req-card .row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(150,180,220,.08); font-size: 13.5px; }
.req-card .row:last-child { border-bottom: 0; }
.req-card .row span:first-child { color: var(--faint); }
.req-card .row span:last-child { color: #c9d5ea; text-align: right; }

/* Финальный призыв */
.cta {
  position: relative; padding: 150px 24px 160px; text-align: center;
  background: radial-gradient(900px 520px at 50% 60%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 70%);
}
.cta__inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.cta h2 { font-size: clamp(38px, 5.5vw, 58px); line-height: 1.1; letter-spacing: .06em; }
.cta p { margin: 0; font-size: 17px; line-height: 1.75; color: var(--body); max-width: 520px; text-wrap: pretty; }
.cta__platforms { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }

/* Футер */
.footer { border-top: 1px solid rgba(150,180,220,.09); padding: 38px 24px 44px; }
.footer__brand { font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .22em; color: #c9d5ea; }
.footer__legal { max-width: 1140px; margin: 18px auto 0; font-size: 11.5px; line-height: 1.7; color: #5f6e8c; }
.footer .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ---------- Адаптив и доступность ---------- */
@media (max-width: 760px) {
  .nav__links { display: none; } /* на телефоне остаются логотип и кнопка */
  .section { padding: 90px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
