/* ===========================
   MultiStart — Luxe Dark v2
   =========================== */

/* Палитра и токены */
:root {
  --bg: #0b0d12;
  --bg2: #0f1117;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.06);
  --txt: #eef0f3;
  --muted: #a8afc0;

  --brand1: #f5b942; /* золото */
  --brand2: #ffb300; /* янтарь */
  --brand3: #ffd35a; /* светлее */
  --accent: #2fdc7c; /* зелёный */
  --danger: #ff5b6e;

  --r-s: 10px;
  --r-m: 14px;
  --r-l: 18px;

  --ring: 0 0 0 3px rgba(245, 185, 66, 0.28);
  --shadow-1: 0 12px 28px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 18px 46px rgba(0, 0, 0, 0.55);
  --blur: blur(10px) saturate(120%);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--txt);
  background: radial-gradient(
      1200px 900px at 10% -10%,
      rgba(255, 202, 80, 0.08),
      transparent 60%
    ),
    radial-gradient(
      1200px 900px at 110% 10%,
      rgba(120, 110, 255, 0.06),
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

/* Меньше движухи — уважение A11y */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: url("assets/tank_bg.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
}
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(8, 9, 12, 0.75),
      rgba(8, 9, 12, 0.92) 50%,
      rgba(8, 9, 12, 0.96)
    ),
    radial-gradient(
      60% 40% at 50% 0%,
      rgba(245, 185, 66, 0.12) 0%,
      transparent 70%
    );
  z-index: 0;
}
.content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  padding: clamp(16px, 2.6vw, 32px);
}

/* ---------- Брендинг ---------- */
.preview {
  width: min(170px, 28vw);
  display: block;
  margin: 6px auto 12px;
  border-radius: 18px;
  background: radial-gradient(
    65% 55% at 50% 40%,
    rgba(245, 185, 66, 0.12),
    transparent 62%
  );
  box-shadow: 0 10px 26px rgba(245, 185, 66, 0.22);
}

h1 {
  margin: 0.2em 0 0.1em;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.05;
  background: linear-gradient(
    180deg,
    var(--brand1) 0%,
    #fff2b8 55%,
    var(--brand2) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 36px rgba(245, 185, 66, 0.18);
}
.subtitle {
  margin: 6px 0 18px;
  font-size: clamp(16px, 2.4vw, 22px);
  color: var(--muted);
}

/* ---------- Фичи + Видео ---------- */
.features-video-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 44px);
  justify-content: center;
  margin: clamp(20px, 6vw, 64px) auto;
  max-width: 1300px;
  padding: 0 20px;
}
.features {
  flex: 1 1 520px;
}

.features h2,
.video-demo h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 28px);
  color: var(--brand1);
  letter-spacing: 0.3px;
}

.features-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature,
.feature-card {
  position: relative;
  background: var(--panel);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: var(--r-m);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 18px;
  box-shadow: var(--shadow-1);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e9ecf2;
  font-size: 1.04em;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.28s ease,
    border-color 0.22s ease;
}
/* Градиентная полоса слева (неон) */
.feature::before,
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 4px;
  background: linear-gradient(180deg, var(--brand1), var(--brand2));
  left: 0;
  border-top-left-radius: var(--r-m);
  border-bottom-left-radius: var(--r-m);
}
/* Блик */
.feature::after,
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 20%,
    transparent 40%
  );
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.feature:hover::after,
.feature-card:hover::after {
  transform: translateX(120%);
}
.feature:hover,
.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-2);
}

/* Плавающее превью */
.hover-video {
  position: fixed;
  display: none;
  z-index: 10000;
  width: clamp(320px, 40vw, 680px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #000;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
}

/* ---------- Видео ---------- */
.video-demo {
  flex: 1 1 520px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.local-video {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
#licenseOptions label {
  display: block;
  line-height: 1.6em;
  margin: 6px 0;
}
/* ---------- Кнопка скачивания ---------- */
.download-section {
  text-align: center;
  margin-top: 20px;
}

.download-btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 1.1em;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--brand2), var(--brand3));
  color: #111;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(255, 211, 90, 0.35);
  transition: transform 0.16s ease, filter 0.2s ease, box-shadow 0.24s ease;
}

.download-btn:hover {
  transform: translateY(-1px) scale(1.02);
  filter: saturate(110%);
  box-shadow: 0 18px 44px rgba(255, 211, 90, 0.45);
}

.download-btn:active {
  transform: translateY(0) scale(0.98);
}

.download-note {
  margin-top: 6px;
  font-size: 0.9em;
  color: var(--muted);
}

#licenseOptions .rub {
  color: #f5b942;
  font-weight: 500;
  margin-left: 4px;
}

#licenseOptions .promo {
  color: #8fff8f;
  font-size: 0.9em;
  margin-left: 6px;
}

#licenseOptions .info {
  color: #999;
  font-size: 0.9em;
  margin-left: 4px;
}

/* ---------- Форма покупки ---------- */
.purchase-form {
  margin: 26px auto 0;
  max-width: 660px;
  text-align: left;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.03)
  );
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  padding: 22px;
  border-radius: var(--r-l);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-2);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.form-group label {
  font-weight: 700;
  color: var(--brand1);
  text-shadow: 0 0 4px rgba(245, 185, 66, 0.25);
  letter-spacing: 0.2px;
}
input[type="email"],
input.form-input {
  width: 100%;
  padding: 13px 14px;
  font-size: 1.02em;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #1a1d22, #14171b);
  color: #fff;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.05s;
}
input[type="email"]::placeholder,
input.form-input::placeholder {
  color: #9ca3b2;
}
input[type="email"]:focus,
input.form-input:focus {
  border-color: rgba(245, 185, 66, 0.6);
  box-shadow: var(--ring), inset 0 0 0 1px rgba(245, 185, 66, 0.22);
}

input[type="password"],
input.form-input {
  width: 100%;
  padding: 13px 14px;
  font-size: 1.02em;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #1a1d22, #14171b);
  color: #fff;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.05s;
}
input[type="password"]::placeholder,
input.form-input::placeholder {
  color: #9ca3b2;
}
input[type="password"]:focus,
input.form-input:focus {
  border-color: rgba(245, 185, 66, 0.6);
  box-shadow: var(--ring), inset 0 0 0 1px rgba(245, 185, 66, 0.22);
}

/* Опции лицензий */
.license-options {
  width: 100%;
  max-width: 600px; /* ограничиваем, чтобы не растягивалось на весь экран */
  margin: 0 auto;
}
.license-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s, border-color 0.2s, transform 0.12s;
}
.license-options label:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
.license-options input[type="radio"] {
  accent-color: var(--brand2);
  transform: scale(1.06);
}

/* Кнопка покупки */
.buy-section {
  text-align: center;
  margin-top: 22px;
}
#buyButton {
  position: relative;
  overflow: hidden;
  padding: 15px 30px;
  font-size: 1.13em;
  border: none;
  cursor: pointer;
  color: #101114;
  background: linear-gradient(180deg, var(--brand1), var(--brand2));
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(245, 185, 66, 0.45);
  transition: transform 0.16s ease, filter 0.2s ease, box-shadow 0.24s ease;
}
#buyButton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 25%,
    transparent 55%
  );
  transform: translateX(-120%);
  transition: transform 0.8s ease;
}
#buyButton:hover {
  transform: translateY(-1px) scale(1.015);
  filter: saturate(112%);
  box-shadow: 0 18px 44px rgba(245, 185, 66, 0.55);
}
#buyButton:hover::after {
  transform: translateX(120%);
}
#buyButton:active {
  transform: translateY(0) scale(0.99);
}
#buyButton:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

#statusText {
  margin-top: 12px;
  min-height: 1.4em;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Контакты ---------- */
.author-contact {
  margin: 56px auto 32px;
  max-width: 820px;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.03)
  );
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  padding: 24px;
  border-radius: 16px;
  border-top: 2px solid var(--brand1);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-1);
}
.author-contact h3 {
  margin: 0 0 10px;
  color: var(--brand1);
  font-size: clamp(20px, 3vw, 24px);
}
.author-contact p {
  margin: 6px 0;
  font-size: 1.06em;
  color: #e6e9ef;
}
.author-contact a {
  color: var(--brand2);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.18s, text-shadow 0.18s;
}
.author-contact a:hover {
  color: var(--brand3);
  text-shadow: 0 0 10px rgba(255, 211, 90, 0.25);
}
.copy-link {
  cursor: pointer;
  color: var(--brand2);
  font-weight: 700;
}
.copy-link:hover {
  color: var(--brand3);
  text-decoration: underline;
}

/* ---------- Адаптив ---------- */
@media (max-width: 520px) {
  .purchase-form {
    padding: 16px;
  }
  #buyButton {
    width: 100%;
  }
}

/* ---------- Декоративные эффекты ---------- */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 rgba(245, 185, 66, 0);
  }
  50% {
    box-shadow: 0 0 100px rgba(245, 185, 66, 0.22);
  }
  100% {
    box-shadow: 0 0 0 rgba(245, 185, 66, 0);
  }
}
.preview {
  animation: pulseGlow 5.5s ease-in-out infinite;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 1400px; /* было 900 — теперь шире */
  margin: 0 auto;
  padding-bottom: 56.25%; /* соотношение 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.4);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
@media (min-width: 1600px) {
  .video-container {
    max-width: 1600px;
  }
}

@media (min-width: 2000px) {
  .video-container {
    max-width: 1900px;
  }
}
