/* NIGames — лендинг. Одна тёмная тема, никаких зависимостей. */

:root {
  --ink-950: #06060a;
  --ink-900: #0a0a11;
  --ink-850: #0f0f18;
  --ink-800: #141420;
  --line: rgba(255, 255, 255, 0.07);
  --line-soft: rgba(255, 255, 255, 0.045);
  --text: #e8eaf2;
  --text-dim: #9aa1b4;
  --text-faint: #646b80;
  --brand: #6366f1;
  --brand-300: #a5b4ff;
  --accent: #22d3ee;
  --ok: #34d399;
  --radius: 18px;
  --page: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text);
  font: 16px/1.6 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; font-weight: 650; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
code { font-family: "JetBrains Mono", "Cascadia Code", ui-monospace, monospace; }

::selection { background: rgba(99, 102, 241, 0.4); }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--ink-950); }
::-webkit-scrollbar-thumb { background: #232338; border-radius: 99px; border: 3px solid var(--ink-950); }
::-webkit-scrollbar-thumb:hover { background: #32324e; }

/* ─────────────────── фон ─────────────────── */

.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  animation: drift 24s ease-in-out infinite alternate;
}
.b1 { width: 620px; height: 620px; background: #4f46e5; top: -260px; left: -160px; }
.b2 { width: 520px; height: 520px; background: #0e7490; top: 180px; right: -200px; animation-delay: -8s; }
.b3 { width: 480px; height: 480px; background: #7c3aed; top: 1500px; left: 20%; animation-delay: -14s; opacity: 0.3; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 80px, 0) scale(1.15); }
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ─────────────────── шапка ─────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 16px 24px;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: rgba(6, 6, 10, 0.78);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
  max-width: none;
  padding-inline: max(24px, calc(50vw - var(--page) / 2));
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-weight: 900; font-size: 15px; color: #fff;
  box-shadow: 0 6px 20px -6px rgba(99, 102, 241, .8);
}
.brand-text { font-size: 17px; }

.nav-links { display: flex; gap: 26px; margin-left: 12px; font-size: 14.5px; color: var(--text-dim); }
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--text); }

.nav-cta { display: flex; gap: 10px; margin-left: auto; }

.burger { display: none; }

/* ─────────────────── кнопки ─────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 9px 18px;
  border-radius: 12px;
  font-size: 14.5px; font-weight: 550;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s, filter .18s, background .18s, border-color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #4f46e5);
  color: #fff;
  box-shadow: 0 12px 32px -14px rgba(99, 102, 241, .95);
}
.btn-primary:hover { filter: brightness(1.12); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-lg { padding: 14px 26px; font-size: 15.5px; border-radius: 14px; }

/* ─────────────────── герой ─────────────────── */

.hero {
  max-width: var(--page);
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.badge-line { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px; color: var(--text-dim);
}
.pill-quiet { color: var(--text-faint); }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 { font-size: clamp(40px, 6.2vw, 68px); font-weight: 700; }
.grad {
  background: linear-gradient(100deg, var(--brand-300), var(--accent) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lead { margin-top: 22px; max-width: 30em; font-size: 17px; color: var(--text-dim); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 34px;
  margin-top: 44px; padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.hero-meta div { display: flex; flex-direction: column; gap: 3px; }
.hero-meta b { font-size: 15px; font-weight: 600; }
.hero-meta span { font-size: 12.5px; color: var(--text-faint); }

/* макет окна лаунчера */
.shot { perspective: 1400px; }
.shot-window {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink-900);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255,255,255,.03);
  transform: rotateY(-14deg) rotateX(5deg) translateZ(0);
  animation: float 9s ease-in-out infinite alternate;
}
@keyframes float {
  from { transform: rotateY(-14deg) rotateX(5deg) translateY(0); }
  to   { transform: rotateY(-9deg) rotateX(2deg) translateY(-16px); }
}

.shot-bar {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 13px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--line-soft);
}
.shot-mark {
  display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-size: 10px; font-weight: 900;
}
.shot-title { font-size: 12px; color: var(--text-dim); }
.shot-dots { margin-left: auto; display: flex; gap: 5px; }
.shot-dots i { width: 9px; height: 9px; border-radius: 50%; background: #26263a; }

.shot-body { display: grid; grid-template-columns: 132px 1fr; min-height: 330px; }

.shot-side {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 10px;
  border-right: 1px solid var(--line-soft);
  background: rgba(255,255,255,.012);
}
.shot-side .row {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 9px; border-radius: 9px;
  font-size: 11.5px; color: var(--text-faint);
}
.shot-side .row.active { background: rgba(99,102,241,.16); color: #fff; }
.chip {
  margin-left: auto; padding: 0 6px; border-radius: 99px;
  background: var(--brand); color: #fff; font-size: 9.5px;
}
.shot-user {
  margin-top: auto; display: flex; align-items: center; gap: 8px;
  padding: 9px; border-radius: 10px; background: rgba(255,255,255,.03);
}
.shot-user i { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.shot-user u { flex: 1; height: 6px; border-radius: 99px; background: #22223a; }

.shot-main { padding: 13px; display: flex; flex-direction: column; gap: 12px; }
.shot-hero {
  height: 118px; border-radius: 12px;
  background:
    radial-gradient(120% 140% at 20% 10%, rgba(99,102,241,.55), transparent 60%),
    radial-gradient(120% 120% at 90% 80%, rgba(34,211,238,.4), transparent 55%),
    #14142a;
  border: 1px solid var(--line-soft);
}
.shot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; flex: 1; }
.shot-grid span {
  border-radius: 10px; border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(99,102,241,.22), rgba(34,211,238,.08));
}
.shot-grid span:nth-child(2) { background: linear-gradient(160deg, rgba(236,72,153,.2), rgba(99,102,241,.1)); }
.shot-grid span:nth-child(3) { background: linear-gradient(160deg, rgba(34,211,238,.2), rgba(16,185,129,.1)); }
.shot-grid span:nth-child(4) { background: linear-gradient(160deg, rgba(251,146,60,.2), rgba(99,102,241,.08)); }

/* ─────────────────── секции ─────────────────── */

.section { max-width: var(--page); margin: 0 auto; padding: 88px 24px; }

.section-head {
  display: flex; flex-wrap: wrap; gap: 20px 40px;
  align-items: flex-end; justify-content: space-between;
  margin-bottom: 38px;
}
.eyebrow {
  display: block; margin-bottom: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-300);
}
.section h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-note { max-width: 30em; color: var(--text-faint); font-size: 14.5px; }

/* ─────────────────── каталог ─────────────────── */

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }

.game {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.game:hover {
  transform: translateY(-4px);
  border-color: rgba(129,140,248,.35);
  box-shadow: 0 26px 60px -30px rgba(99,102,241,.8);
}
.game-cover {
  aspect-ratio: 3 / 4;
  background: linear-gradient(150deg, rgba(99,102,241,.5), rgba(34,211,238,.18));
  background-size: cover; background-position: center;
  position: relative;
}
.game-sale {
  position: absolute; left: 10px; top: 10px;
  padding: 3px 8px; border-radius: 8px;
  background: var(--ok); color: #04120c; font-size: 11.5px; font-weight: 700;
}
.game-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 4px; }
.game-title { font-size: 15px; font-weight: 600; }
.game-studio { font-size: 12px; color: var(--text-faint); }
.game-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 10px; }
.game-price { font-size: 15px; font-weight: 650; color: var(--brand-300); }
.game-tags { font-size: 11.5px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.game-skeleton {
  height: 340px; border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(100deg, rgba(255,255,255,.02) 30%, rgba(255,255,255,.06) 50%, rgba(255,255,255,.02) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.games-empty {
  grid-column: 1 / -1;
  padding: 60px 24px; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--text-faint);
}

/* ─────────────────── карточки возможностей ─────────────────── */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }

.card {
  padding: 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,.022);
  transition: border-color .2s, background .2s;
}
.card:hover { border-color: rgba(129,140,248,.28); background: rgba(255,255,255,.035); }
.card h3 { font-size: 18px; margin-bottom: 9px; }
.card p { color: var(--text-dim); font-size: 14.5px; }
.card b { color: var(--text); font-weight: 600; }
.card-ico {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(99,102,241,.14);
  border: 1px solid rgba(129,140,248,.22);
  font-size: 18px;
}
.feature-wide { grid-column: span 2; }

.bars { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.bar { display: grid; grid-template-columns: 130px 1fr 72px; align-items: center; gap: 12px; font-size: 12.5px; color: var(--text-faint); }
.bar i {
  height: 8px; border-radius: 99px;
  background: rgba(255,255,255,.08);
  position: relative; overflow: hidden;
}
.bar i::after {
  content: ""; position: absolute; inset: 0; width: var(--w);
  border-radius: 99px; background: #2b2b45;
}
.bar-accent i::after { background: linear-gradient(90deg, var(--brand), var(--accent)); }
.bar b { text-align: right; color: var(--text-dim); font-weight: 500; }

/* ─────────────────── полоса лаунчера ─────────────────── */

.band { max-width: none; padding: 0; }
.band-inner {
  max-width: var(--page); margin: 0 auto; padding: 78px 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 56px; align-items: center;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.band-text p { margin-top: 16px; color: var(--text-dim); max-width: 32em; }

.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.ticks li { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: var(--text-dim); }
.ticks li::before {
  content: "✓";
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(52,211,153,.14); color: var(--ok);
  font-size: 11px; flex: none;
}

.band-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.dl-note { font-size: 12.5px; color: var(--text-faint); }

.band-art { display: flex; flex-direction: column; gap: 14px; }
.art-card {
  padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,.03);
  display: flex; flex-direction: column; gap: 8px;
  animation: rise .8s ease both;
}
.art-2 { animation-delay: .12s; border-color: rgba(129,140,248,.3); }
.art-3 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.art-title { font-size: 14.5px; font-weight: 600; }
.art-tag { font-size: 12px; color: var(--text-faint); }
.art-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.art-bar i { display: block; height: 100%; width: 12%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--accent)); animation: fill 4s ease-in-out infinite; }
@keyframes fill { 0%, 100% { width: 12%; } 50% { width: 64%; } }

/* ─────────────────── шаги ─────────────────── */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.step {
  padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,.02);
}
.step-n {
  display: block; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--brand-300);
}
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-dim); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 18px; }
.split-box {
  padding: 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(99,102,241,.1), rgba(255,255,255,.015));
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.split-box p { font-size: 13.5px; color: var(--text-dim); }
.big {
  font-size: 42px; font-weight: 700; letter-spacing: -.03em;
  background: linear-gradient(100deg, #fff, var(--brand-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ─────────────────── SDK ─────────────────── */

.sdk { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.02); overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line-soft); }
.tab {
  padding: 8px 16px; border-radius: 10px;
  border: none; background: transparent; cursor: pointer;
  color: var(--text-faint); font-size: 13.5px; font-family: inherit;
  transition: background .15s, color .15s;
}
.tab:hover { color: var(--text); }
.tab.active { background: rgba(99,102,241,.18); color: #fff; }

.code {
  margin: 0; padding: 26px 28px;
  overflow-x: auto;
  font-size: 13px; line-height: 1.75;
  color: #cdd3e3;
}
.code .k { color: #a5b4ff; }
.code .t { color: #67e8f9; }
.code .s { color: #86efac; }
.code .c { color: #5a6377; font-style: italic; }

.sdk-note {
  padding: 18px 28px;
  border-top: 1px solid var(--line-soft);
  background: rgba(99,102,241,.06);
  font-size: 13.5px; color: var(--text-dim);
}
.sdk-note code { color: var(--brand-300); font-size: 12.5px; }

/* ─────────────────── финал и подвал ─────────────────── */

.final { text-align: center; padding-block: 110px; }
.final h2 { font-size: clamp(30px, 4.4vw, 46px); }
.final p { margin-top: 16px; color: var(--text-dim); }
.final .hero-cta { justify-content: center; }

.foot { border-top: 1px solid var(--line-soft); background: rgba(0,0,0,.3); }
.foot-inner {
  max-width: var(--page); margin: 0 auto; padding: 40px 24px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.foot-note { margin-top: 8px; font-size: 13px; color: var(--text-faint); }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; color: var(--text-dim); }
.foot-links a:hover { color: var(--text); }

/* ─────────────────── адаптив ─────────────────── */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 48px; }
  .shot { display: none; }
  .band-inner { grid-template-columns: 1fr; gap: 40px; }
  .feature-wide { grid-column: span 1; }
  .nav-links { display: none; }
}

@media (max-width: 620px) {
  .section { padding: 62px 20px; }
  .nav { padding: 14px 20px; gap: 14px; }
  .nav-cta .btn-ghost { display: none; }
  .hero { padding-inline: 20px; }
  .hero-meta { gap: 22px; }
  .bar { grid-template-columns: 100px 1fr 62px; }
}

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