:root {
  --bg: #0d0820;
  --bg-elevated: #15102b;
  --text: #f1eefb;
  --muted: #a39cbf;
  --accent: #6a3ddb;
  --accent-hover: #7b4df0;
  --accent-light: #9a86ff;
  --accent-soft: rgba(154, 134, 255, 0.15);
  --card: #1a1230;
  --card-hover: #211638;
  --border: rgba(154, 134, 255, 0.14);
  --border-strong: rgba(154, 134, 255, 0.3);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(106, 61, 219, 0.25), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(154, 134, 255, 0.15), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; }

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
}

/* ---------- Навигация ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 5vw, 56px);
  backdrop-filter: blur(18px);
  background: rgba(13, 8, 32, 0.6);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
}
.logo {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  font-weight: 800;
}
.logo.big { width: 72px; height: 72px; border-radius: 20px; font-size: 36px; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a {
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; gap: 10px; align-items: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s var(--ease);
}
.pill.small { padding: 5px 12px; font-size: 12px; }
.pill:hover { background: rgba(154, 134, 255, 0.25); }
.discord-pill svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding: 60px clamp(16px, 5vw, 56px) 80px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  margin: 18px 0 20px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.gradient {
  background: linear-gradient(135deg, var(--accent-light), #d7b8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
  margin: 0 0 28px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.download, .discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.download {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(106, 61, 219, 0.6);
}
.download:hover { transform: translateY(-2px); }
.download svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.discord {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.discord:hover { background: var(--accent-soft); border-color: var(--accent-light); }
.meta { color: var(--muted); font-size: 13px; }

.trust {
  display: flex;
  gap: 36px;
}
.trust div { display: flex; flex-direction: column; }
.trust b { font-size: 22px; font-weight: 700; }
.trust span { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- Mockup ---------- */
.hero-visual { display: flex; justify-content: center; }
.mock {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border);
  transform: rotate(-1.5deg);
  transition: transform 0.4s var(--ease);
}
.mock:hover { transform: rotate(0deg) translateY(-4px); }
.mock-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(154, 134, 255, 0.04);
}
.mock-dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-dot.red { background: #ff6b6b; }
.mock-dot.amber { background: #ffb545; }
.mock-dot.green { background: #51cf66; }
.mock-title { margin-left: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.mock-hint {
  margin-left: auto;
  font-size: 11px;
  color: var(--accent-light);
  opacity: 0.7;
  animation: hint-pulse 2.4s ease-in-out infinite;
}
@keyframes hint-pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
.mock-body { padding: 18px; }
.mock-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mock-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(154, 134, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 12px;
  font-family: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.mock-card:hover {
  background: rgba(154, 134, 255, 0.1);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.mock-card.active {
  background: linear-gradient(135deg, rgba(106, 61, 219, 0.35), rgba(154, 134, 255, 0.18));
  border-color: var(--accent-light);
  box-shadow: 0 6px 20px -8px rgba(106, 61, 219, 0.6);
}
.mock-card.active .mock-card-ico {
  background: var(--accent);
  color: #fff;
}
.mock-card-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent-soft);
  font-size: 15px;
  flex-shrink: 0;
  color: var(--accent-light);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.mock-card b { display: block; font-size: 12px; }
.mock-card span { display: block; color: var(--muted); font-size: 10.5px; }

/* ---------- Секции ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 80px clamp(16px, 5vw, 56px);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.section h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section-sub {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 40px;
}

/* ---------- Features ---------- */
.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.feature-grid li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.feature-grid li:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--card-hover);
}
.feature-grid .fi {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  margin-bottom: 14px;
  font-size: 18px;
  color: var(--accent-light);
}
.feature-grid b { display: block; font-size: 16px; margin-bottom: 4px; }
.feature-grid span { color: var(--muted); font-size: 14px; }

/* ---------- Showcase ---------- */
.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border);
  background: var(--card);
  transition: transform 0.3s var(--ease);
}
.shot:hover { transform: translateY(-4px); }
.shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.plan:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.plan.highlight {
  border-color: var(--accent-light);
  background: linear-gradient(180deg, #221645 0%, #1a1230 100%);
  box-shadow: 0 20px 60px -20px rgba(106, 61, 219, 0.5);
  transform: translateY(-6px);
}
.plan.highlight:hover { transform: translateY(-10px); }
.plan-ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  padding: 5px 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.plan-tag {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-light);
  margin-bottom: 14px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}
.plan-price .amount { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.plan-price .cur { font-size: 24px; font-weight: 600; color: var(--muted); }
.plan-price .period { font-size: 14px; color: var(--muted); margin-left: 8px; }
.plan-feats { list-style: none; padding: 0; margin: 0 0 28px; flex-grow: 1; }
.plan-feats li {
  padding: 8px 0 8px 22px;
  font-size: 14px;
  position: relative;
}
.plan-feats li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-weight: 700;
}
.plan-buy {
  display: inline-block;
  text-align: center;
  padding: 13px 20px;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.plan-buy:hover { background: var(--accent-soft); border-color: var(--accent-light); }
.plan-buy.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-color: transparent;
  color: #fff;
}
.plan-buy.primary:hover { filter: brightness(1.1); }

/* ---------- FAQ ---------- */
.qa { display: flex; flex-direction: column; gap: 10px; max-width: 800px; }
.qa details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  transition: border-color 0.2s var(--ease);
}
.qa details[open] { border-color: var(--border-strong); background: var(--card-hover); }
.qa summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '+';
  font-size: 22px;
  color: var(--accent-light);
  font-weight: 400;
  transition: transform 0.2s var(--ease);
}
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.qa code {
  background: rgba(154, 134, 255, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
}

/* ---------- Footer ---------- */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 36px clamp(16px, 5vw, 56px);
  max-width: 1200px;
  margin: 40px auto 0;
  width: 100%;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.foot-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s var(--ease);
}
.foot-links a:hover { color: var(--text); }
.foot-legal { color: var(--muted); font-size: 12px; text-align: center; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.7s var(--ease) both;
  animation-delay: var(--d, 0s);
}
@keyframes reveal {
  to { opacity: 1; transform: none; }
}

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

.pay-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 24px auto 0;
  max-width: 600px;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal.open { display: flex; }
.modal-back {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}
.modal-box {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 28px;
  max-width: 420px;
  width: calc(100% - 32px);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.7);
}
.modal-box h3 { margin: 0; font-size: 20px; }
.modal-box .plan-buy { margin-top: 4px; }
.modal-box code {
  background: rgba(154, 134, 255, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 14px;
  color: var(--accent-light);
}
.muted { color: var(--muted); }
.small { font-size: 12px; }
