/* Вайбкот — лендинг. Дизайн-система: design-system/vibecat/MASTER.md (ui-ux-pro-max), Retro-Futurism / неон.
   Mobile-first: базовые стили для 375px, расширения на 768 / 1024 / 1440. */

:root {
  --bg: #0b0d18;
  --bg-2: #10142a;
  --surface: #151b33;
  --surface-2: #1b2244;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f3f5ff;
  --muted: #a3abcf;
  --brand: #ff9a26;      /* оранжевый ia9.app */
  --accent: #6dff8e;     /* неоновый зелёный, CTA */
  --accent-ink: #04140a;
  --violet: #a66bff;
  --cyan: #4fd8ff;
  --red: #ff4d5e;
  --yellow: #ffd23f;
  --radius: 18px;
  --radius-sm: 12px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --font-head: "Unbounded", system-ui, sans-serif;
  --font-body: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --glow-green: 0 0 18px rgba(109, 255, 142, 0.45);
  --glow-orange: 0 0 22px rgba(255, 154, 38, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  overscroll-behavior-y: none;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
b { color: var(--brand); font-weight: 600; }
code { font-family: var(--font-body); color: var(--yellow); font-size: 0.92em; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

/* ---------- Кнопки (мин. 48px — удобно пальцем) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 200ms var(--ease), background-color 200ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-play { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow-green); }
.btn-play:hover { box-shadow: 0 0 30px rgba(109, 255, 142, 0.7); transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--brand); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- Навигация ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: 10px max(16px, env(safe-area-inset-left)) 10px max(16px, env(safe-area-inset-right));
  background: rgba(11, 13, 24, 0.72); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand span { font: 800 17px/1 var(--font-head); letter-spacing: 0.02em; }
.nav nav { display: none; gap: var(--space-3); }
.nav nav a { color: var(--muted); text-decoration: none; padding: 10px 4px; transition: color 150ms; }
.nav nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: 45% 40%; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 13, 24, 0.15) 0%, rgba(11, 13, 24, 0.35) 40%, rgba(11, 13, 24, 0.92) 78%, var(--bg) 100%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px); /* мягкие CRT-сканлайны */
}
.hero-content { position: relative; z-index: 2; padding: var(--space-4) var(--space-2) var(--space-5); max-width: 760px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 var(--space-2);
  color: var(--brand); font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
}
.kicker .lc { text-transform: none; letter-spacing: 0.04em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: var(--glow-green); }
.title {
  position: relative; margin: 0; font: 800 clamp(46px, 13vw, 132px)/0.95 var(--font-head);
  letter-spacing: 0.02em; color: var(--accent);
  text-shadow: 0 0 14px rgba(109, 255, 142, 0.6), 0 0 42px rgba(109, 255, 142, 0.25);
}
.lead { margin: var(--space-2) 0 var(--space-3); font-size: 17px; color: #dfe4ff; max-width: 34ch; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.badges li {
  font-size: 13px; color: var(--muted); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04);
}

/* ---------- Полоса цифр ---------- */
.strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border); border-block: 1px solid var(--border);
}
.strip div { background: var(--bg-2); padding: var(--space-3) var(--space-2); text-align: center; }
.strip b { display: block; font: 800 32px/1.1 var(--font-head); color: var(--brand); text-shadow: var(--glow-orange); }
.strip span { color: var(--muted); font-size: 14px; }

/* ---------- Секции ---------- */
.section { padding: var(--space-5) var(--space-2); max-width: 1200px; margin: 0 auto; }
.h2 { margin: 0 0 var(--space-2); font: 800 clamp(28px, 6vw, 48px)/1.12 var(--font-head); }
.accent { color: var(--accent); text-shadow: var(--glow-green); }
.sub { margin: 0 0 var(--space-4); color: var(--muted); max-width: 60ch; }

/* ---------- Карточки фич ---------- */
.cards { display: grid; gap: var(--space-2); margin-top: var(--space-4); }
.card {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(109, 255, 142, 0.35); }
.card h3 { margin: var(--space-2) 0 8px; font: 600 19px/1.3 var(--font-head); }
.card p { margin: 0; color: var(--muted); }
.ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-cyan { color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(79, 216, 255, 0.4); }
.ico-yellow { color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, 0.4); }
.ico-red { color: var(--red); box-shadow: inset 0 0 0 1px rgba(255, 77, 94, 0.4); }
.ico-green { color: var(--accent); box-shadow: inset 0 0 0 1px rgba(109, 255, 142, 0.4); }
.ico-violet { color: var(--violet); box-shadow: inset 0 0 0 1px rgba(166, 107, 255, 0.4); }
.ico-orange { color: var(--brand); box-shadow: inset 0 0 0 1px rgba(255, 154, 38, 0.4); }

/* ---------- Скриншоты: горизонтальная лента со snap ---------- */
.shots {
  display: flex; gap: var(--space-2); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px var(--space-2); margin: 0 -4px; overscroll-behavior-x: contain; scrollbar-width: thin;
}
.shot { flex: 0 0 auto; margin: 0; scroll-snap-align: center; }
.shot img { border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.14); background: var(--surface); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.shot-wide img { width: min(84vw, 560px); aspect-ratio: 4 / 3; object-fit: cover; }
.shot-phone img { width: min(52vw, 250px); aspect-ratio: 542 / 890; object-fit: cover; border-radius: 28px; border: 6px solid #22283f; }
.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; text-align: center; }

/* ---------- Как играть ---------- */
.howto { display: grid; gap: var(--space-2); }
.how { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3); }
.how h3 { margin: 0 0 var(--space-2); font: 600 18px/1.3 var(--font-head); color: var(--brand); }
.keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.keys li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); }
.keys li > span:last-child { color: var(--text); }
kbd {
  display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px;
  font: 600 14px/1 var(--font-body); color: var(--text);
  background: linear-gradient(180deg, #2a3157, #1c2240); border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom-width: 3px; border-radius: 9px;
}
.swipe { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(109, 255, 142, 0.1); color: var(--accent); font-size: 20px; }

/* ---------- Платформы ---------- */
.platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.plat {
  display: grid; grid-template-rows: auto auto auto; justify-items: start; gap: 6px;
  min-height: 132px; padding: var(--space-2); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); text-decoration: none;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.plat svg { width: 30px; height: 30px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a.plat { cursor: pointer; }
a.plat:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--surface-2); }
.plat-name { font: 600 16px/1.2 var(--font-head); }
.plat-state { font-size: 13px; color: var(--muted); }
.plat-state.ok { color: var(--accent); }
.plat.is-soon { opacity: 0.62; }
.note { margin: var(--space-3) 0 0; color: var(--muted); font-size: 14px; max-width: 72ch; }

/* ---------- Разработчик ---------- */
.dev { display: grid; gap: var(--space-4); align-items: center; }
.dev-art img { border-radius: var(--radius); border: 1px solid rgba(255, 154, 38, 0.35); box-shadow: 0 0 40px rgba(255, 154, 38, 0.18); }
.dev-text p { color: var(--muted); max-width: 52ch; }
.brand-word { color: var(--brand); text-shadow: var(--glow-orange); }

/* ---------- Финальный CTA ---------- */
.final { position: relative; overflow: hidden; margin: var(--space-4) var(--space-2) var(--space-5); border-radius: 24px; border: 1px solid var(--border); isolation: isolate; }
.final-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0.85; }
.final-content { padding: var(--space-6) var(--space-3); text-align: center; background: linear-gradient(180deg, rgba(11, 13, 24, 0.2), rgba(11, 13, 24, 0.75)); }

/* ---------- Подвал ---------- */
.footer { padding: var(--space-4) var(--space-2) calc(var(--space-4) + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); border-top: 1px solid var(--border); font-size: 14px; }
.footer a { color: var(--brand); }
.footer .muted { opacity: 0.75; font-size: 13px; }

/* ---------- Появление при прокрутке (150–450 мс, с учётом reduced motion) ---------- */
.reveal { opacity: 0; transform: translateY(18px) scale(0.98); transition: opacity 420ms var(--ease), transform 420ms var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .btn, .card, .plat { transition: none; }
}

/* ---------- Планшет ---------- */
@media (min-width: 768px) {
  .nav { padding-inline: var(--space-4); }
  .nav nav { display: flex; }
  .hero { min-height: 88vh; align-items: center; }
  .hero-content { padding: var(--space-6) var(--space-4); }
  .hero-cta { flex-direction: row; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(11, 13, 24, 0.92) 0%, rgba(11, 13, 24, 0.55) 45%, rgba(11, 13, 24, 0.1) 75%),
      linear-gradient(180deg, transparent 70%, var(--bg) 100%),
      repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
  }
  .strip { grid-template-columns: repeat(4, 1fr); }
  .section { padding: var(--space-6) var(--space-4); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .howto { grid-template-columns: 1fr 1fr; }
  .platforms { grid-template-columns: repeat(3, 1fr); }
  .final { margin-inline: var(--space-4); }
}

/* ---------- Ноутбук ---------- */
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .dev { grid-template-columns: 1.1fr 1fr; }
  .lead { font-size: 19px; }
}

/* ---------- Большой экран ---------- */
@media (min-width: 1440px) {
  .hero-content { padding-left: calc((100vw - 1200px) / 2); }
}
