/* ==========================================================
   Nexus Optimization — сайт
   Палитра = палитра приложения (тёмная тема):
   bg #0A0A0B · поверхность #141311 · акцент #FFC92E / #FFDD57
   градиент кнопок #FFD23F → #F0B428 · текст на жёлтом #171408
   ========================================================== */

:root {
  --bg: #0A0A0B;
  --bg-alt: #100F0D;
  --surface: #141311;
  --card: #171511;
  --border: rgba(255, 201, 46, 0.14);
  --border-strong: rgba(255, 201, 46, 0.30);
  --text: #F5F2E9;
  --text-dim: #A8A396;
  --accent: #FFC92E;
  --accent-bright: #FFDD57;
  --accent-soft: rgba(255, 201, 46, 0.10);
  --on-accent: #171408;
  --grad: linear-gradient(135deg, #FFD23F 0%, #F0B428 100%);
  --radius: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(255, 201, 46, 0.35); }

.container { width: min(1140px, 92%); margin: 0 auto; }
.container.narrow { width: min(820px, 92%); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ================= Шапка ================= */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-icon { border-radius: 8px; }

.brand-text { font-weight: 700; font-size: 16.5px; letter-spacing: 0.2px; }
.brand-text em { font-style: normal; color: var(--text-dim); font-weight: 500; }

.brand-chip {
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 7px;
  letter-spacing: 1px;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.18s;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--accent-bright); }

/* Фоновые частицы на внутренних страницах */
.bg-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.nav-cta {
  color: var(--on-accent) !important;
  background: var(--grad);
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 700 !important;
}
/* ================= Герой v2 (сплит со скриншотом) ================= */

.hero-inner.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  text-align: left;
}

.hero-left { display: flex; flex-direction: column; align-items: flex-start; }
.hero-inner.split .hero-left { align-items: flex-start; }

.hero-inner.split .hero-title { margin-left: 0; max-width: 560px; }
.hero-inner.split .hero-sub { max-width: 540px; margin-left: 0; }
.hero-inner.split .hero-badges { justify-content: flex-start; }
.hero-inner.split .hero-actions { justify-content: flex-start; }

/* Прайс-чип рядом с кнопками */
.price-chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  border: 1px solid var(--border-strong); background: var(--accent-soft);
  color: var(--accent-bright); font-weight: 700;
  padding: 13px 18px; border-radius: 10px; font-size: 15px;
}

/* Оформление скриншота приложения */
.hero-art { position: relative; }
.art-frame {
  position: relative;
  border-radius: 16px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255,201,46,0.16), rgba(255,201,46,0.03) 45%, transparent 70%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 90px rgba(255,201,46,0.07);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform .3s ease;
}
.art-frame:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.art-frame img {
  display: block; width: 100%; border-radius: 9px;
  background: var(--bg-alt);
}

.float-chip {
  position: absolute; display: flex; flex-direction: column; gap: 1px;
  background: rgba(20,19,17,0.92);
  border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 9px 14px;
  font-size: 12px; color: var(--text-dim);
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}
.float-chip b { color: var(--accent-bright); font-size: 14px; }
.chip-1 { top: -18px; right: -14px; animation: floatY 4s ease-in-out infinite; }
.chip-2 { bottom: 26px; left: -20px; animation: floatY 5.2s ease-in-out infinite reverse; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.trust-line {
  margin-top: 22px; color: var(--text-dim); font-size: 13px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.trust-line .dot { color: var(--accent); }

@media (max-width: 960px) {
  .hero-inner.split { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-inner.split .hero-left { align-items: center; }
  .art-frame { transform: none; }
  .chip-1, .chip-2 { display: none; }
}

/* ================= Кнопка «Купить» на всю ширину ================= */
.js-buy { cursor: pointer; }

/* ================= /Герой v2 ================= */

.nav-cta:hover { color: var(--on-accent) !important; filter: brightness(1.06); }

/* ================= Герой ================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 120px;
  background:
    radial-gradient(900px 420px at 70% -10%, rgba(255, 201, 46, 0.09), transparent 65%),
    radial-gradient(700px 380px at 12% 20%, rgba(255, 201, 46, 0.05), transparent 60%),
    var(--bg);
}

.hero-snow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner { position: relative; text-align: center; }

.hero-badges { display: flex; gap: 10px; justify-content: center; margin-bottom: 26px; flex-wrap: wrap; }

.badge {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 5px 13px;
  border-radius: 999px;
}

.hero-title {
  font-size: clamp(34px, 5.6vw, 62px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 860px;
  margin: 0 auto 22px;
}

.hero-sub {
  color: var(--text-dim);
  font-size: clamp(15px, 2vw, 17.5px);
  max-width: 640px;
  margin: 0 auto 34px;
}
.hero-sub strong { color: var(--text); }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Кнопки — как в приложении: жёлтый градиент, тёмный текст, радиус 10 */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  transition: transform 0.15s, filter 0.15s, background 0.15s, border-color 0.15s;
  will-change: transform;
}

.btn-primary {
  background: var(--grad);
  color: var(--on-accent);
  box-shadow: 0 8px 30px rgba(255, 201, 46, 0.22);
}
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); }

.btn-lg { padding: 15px 32px; font-size: 16px; }

.hero-stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
}

.stat-num {
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
}

.stat-label { color: var(--text-dim); font-size: 12.5px; }

.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

/* ================= Секции ================= */

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; margin-bottom: 48px; }

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-head p { color: var(--text-dim); max-width: 560px; margin: 0 auto; }

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 14px; }

/* ================= Скриншоты ================= */

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.shot {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.shot figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  padding: 12px;
  border-top: 1px solid var(--border);
}

/* ================= Требования ================= */

.req-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.req-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 15px;
  color: var(--text-dim);
}
.req-list strong { color: var(--text); }

/* ================= Купить ================= */

.buy-card {
  max-width: 560px;
  margin: 0 auto 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn-xl {
  padding: 18px 40px;
  font-size: 17px;
  border-radius: 12px;
}

.buy-note {
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
  max-width: 460px;
}

.buy-note a { color: var(--accent); }

.buy-alt {
  text-align: center;
  color: var(--text-dim);
  font-size: 13.5px;
  margin-top: 30px;
}

.buy-alt a { color: var(--accent); text-decoration: none; font-weight: 600; }
.buy-alt a:hover { text-decoration: underline; }

.buy-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bstep {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.bstep .step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--on-accent);
  font-weight: 800;
  font-size: 14px;
}

.bstep h4 { font-size: 15.5px; margin: 10px 0 6px; }

.bstep p { color: var(--text-dim); font-size: 13.5px; }

.bstep code {
  background: #ffffff14;
  border-radius: 5px;
  padding: 1px 6px;
  font-family: Consolas, monospace;
  font-size: 12.5px;
  color: var(--accent-bright);
}

/* ================= FAQ ================= */

.faq { display: grid; gap: 12px; }

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 20px;
  transition: border-color 0.2s;
}

.faq details[open] { border-color: var(--border-strong); }

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  padding: 17px 34px 17px 0;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  translate: 0 -50%;
  color: var(--accent);
  font-size: 22px;
  font-weight: 600;
  transition: rotate 0.2s;
}

.faq details[open] summary::after { rotate: 45deg; }

.faq details p {
  color: var(--text-dim);
  font-size: 14.5px;
  padding: 0 0 18px;
}

/* ================= Скачать ================= */

.download { padding-bottom: 100px; }

.dl-card {
  background:
    radial-gradient(560px 240px at 85% 0%, rgba(255, 201, 46, 0.10), transparent 70%),
    var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 44px;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.dl-left h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; margin-bottom: 8px; }
.dl-left .hero-actions { justify-content: flex-start; margin-top: 22px; }

.dl-meta { color: var(--text-dim); font-size: 14px; }

.dl-steps { display: grid; gap: 14px; }

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 14.5px;
}

.step-num {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--grad);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 13px;
}

/* ================= Футер ================= */

.footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14.5px;
}

.foot-note, .foot-ver { color: var(--text-dim); font-size: 13.5px; }
.foot-note strong { color: var(--text); }

/* ================= Адаптив ================= */

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: 1fr; }
  .buy-steps { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .nav a:not(.nav-cta) { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 90px; }
  .dl-card { padding: 28px; }
  .section { padding: 64px 0; }
}

/* Уважение к настройке «уменьшить анимации» */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero-snow { display: none; }
}
