/* ---------- Tokens ---------- */
:root {
  --primary: #7302f9;
  --primary-light: #9b4dff;
  --primary-dark: #5601c4;
  --bg: #0a0713;
  --bg-alt: #0f0a1c;
  --surface: #16102a;
  --surface-2: #1d1638;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f5f3fb;
  --text-muted: #b3a8c9;
  --text-faint: #7c7297;
  --success: #33d17a;
  --star: #ffb800;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(115, 2, 249, 0.45);
  --font-head: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p { margin: 0 0 1em; color: var(--text-muted); }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

section { padding: 96px 0; }

.eyebrow {
  color: var(--primary-light);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.section-heading { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-subtitle { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 70px -18px rgba(115, 2, 249, 0.6); }
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn[disabled], .btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 7, 19, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 34px; height: 34px; border-radius: 8px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.brand-accent { color: var(--primary-light); }

.main-nav { display: flex; gap: 32px; }
.main-nav a { color: var(--text-muted); font-weight: 500; transition: color 0.15s; }
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 0 auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: 88px; padding-bottom: 64px; }
.hero-glow {
  position: absolute;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(circle, rgba(115, 2, 249, 0.35), transparent 65%);
  filter: blur(10px);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-text h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.hero-subtitle { font-size: 1.08rem; max-width: 560px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.badge svg { width: 16px; height: 16px; color: var(--primary-light); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.hero-fineprint { color: var(--text-faint); font-size: 0.85rem; margin: 0; }

.hero-visual { display: flex; justify-content: center; }
.hero-card {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.hero-card-logo { width: 55%; position: relative; z-index: 1; filter: drop-shadow(0 10px 30px rgba(115,2,249,0.5)); }
.hero-card-glow {
  position: absolute;
  inset: 20px;
  border-radius: 24px;
  background: radial-gradient(circle at 30% 20%, rgba(155, 77, 255, 0.35), transparent 70%);
}

/* ---------- Trust strip ---------- */
.trust-strip { padding: 40px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-item strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--primary-light); }
.trust-item span { color: var(--text-muted); font-size: 0.88rem; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(155,77,255,0.4); }
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(115,2,249,0.25), rgba(155,77,255,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--primary-light);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 0.95rem; }

/* ---------- How it works ---------- */
.how { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.how-steps li { text-align: center; padding: 0 12px; }
.how-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 16px;
}
.how-steps h3 { font-size: 1.05rem; margin-bottom: 8px; }
.how-steps p { font-size: 0.94rem; margin: 0 auto; max-width: 280px; }

/* ---------- Download ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.download-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(115,2,249,0.25), rgba(155,77,255,0.1));
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.download-card-icon svg { width: 26px; height: 26px; }
.download-card h3 { margin-bottom: 8px; }
.download-card p { font-size: 0.94rem; margin-bottom: 22px; }
.download-status {
  display: block;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-faint);
}
.download-status.is-missing { color: #ffb84d; }
.download-status.is-ready { color: var(--success); }

.os-support { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.os-item { display: flex; align-items: center; gap: 8px; color: var(--text-faint); font-size: 0.9rem; }
.os-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); }
.os-available { color: var(--success); }
.os-available .os-dot { background: var(--success); }

/* ---------- Reviews ---------- */
.reviews-summary { display: flex; justify-content: center; margin-bottom: 48px; }
.reviews-average { text-align: center; }
.reviews-average-number { font-family: var(--font-head); font-size: 3rem; font-weight: 700; display: block; color: var(--text); }
.stars { color: var(--star); font-size: 1.3rem; letter-spacing: 2px; margin: 6px 0; }
.reviews-count { color: var(--text-muted); font-size: 0.92rem; }

.reviews-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.reviews-list { display: flex; flex-direction: column; gap: 16px; }
.reviews-empty { color: var(--text-faint); }

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.review-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 12px; }
.review-card-name { font-weight: 600; }
.review-card-stars { color: var(--star); letter-spacing: 1px; font-size: 0.95rem; }
.review-card-date { color: var(--text-faint); font-size: 0.78rem; }
.review-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.review-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 96px;
}
.review-form h3 { margin-bottom: 18px; }
.review-form label { display: block; font-size: 0.88rem; font-weight: 600; margin: 16px 0 6px; }
.review-form input[type="text"],
.review-form textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.review-form input[type="text"]:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}
.rating-field { border: none; margin: 16px 0 0; padding: 0; }
.rating-field legend { font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; padding: 0; }
.star-rating { display: flex; gap: 6px; }
.star-rating .star {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--border);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.1s, transform 0.1s;
}
.star-rating .star:hover { transform: scale(1.15); }
.star-rating .star.is-active { color: var(--star); }

.review-form .btn { margin-top: 20px; width: 100%; }
.review-form-message { margin: 12px 0 0; font-size: 0.88rem; min-height: 1.2em; }
.review-form-message.is-error { color: #ff6b6b; }
.review-form-message.is-success { color: var(--success); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--primary-light);
  margin-left: 12px;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 12px 0 0; font-size: 0.94rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0; background: var(--bg-alt); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--text-muted); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--text); }
.footer-disclaimer { color: var(--text-faint); font-size: 0.8rem; max-width: 560px; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-card { width: 220px; height: 220px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .reviews-layout { grid-template-columns: 1fr; }
  .review-form { position: static; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
  .site-header.is-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 18px;
  }
  .features-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
