:root {
  --bg: #07070d;
  --bg-elevated: #101018;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f8;
  --text-muted: #9b9bb0;
  --primary: #8b7cff;
  --primary-2: #5b8dff;
  --accent: #ff7eb3;
  --success: #4ade80;
  --danger: #f87171;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1120px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: #b4abff; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 15% 10%, rgba(139, 124, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(91, 141, 255, 0.14), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 90%, rgba(255, 126, 179, 0.08), transparent 50%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(7, 7, 13, 0.72);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}
.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(139, 124, 255, 0.35);
}
.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--text); }
.header-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  text-decoration: none;
  color: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 12px 32px rgba(91, 141, 255, 0.3);
}
.btn-primary:hover { color: #fff; box-shadow: 0 16px 40px rgba(91, 141, 255, 0.4); }
.btn-ghost {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.07); }
.btn-sm { padding: 10px 18px; font-size: 0.875rem; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Hero */
.hero {
  padding: 72px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 800;
}
.hero h1 span {
  background: linear-gradient(135deg, #fff 20%, var(--primary) 60%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.hero-badges strong { color: var(--text); display: block; font-size: 1.1rem; font-variant-numeric: tabular-nums; }

/* Phone mockup */
.phone-mockup {
  position: relative;
  justify-self: center;
  width: min(320px, 90%);
}
.phone-frame {
  position: relative;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, #2a2a38, #12121a);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.12);
}
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background: #0a0a12;
  border-radius: 20px;
  z-index: 3;
}
.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  background: #0d0d16;
  line-height: 0;
}
.phone-screen-img {
  display: block;
  width: 100%;
  height: auto;
}
.phone-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(139,124,255,.25), transparent 60%);
  z-index: -1;
  filter: blur(40px);
}

/* Sections */
.section { padding: 88px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.section-head p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color .2s, transform .2s;
}
.feature-card:hover {
  border-color: rgba(139, 124, 255, 0.35);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(139,124,255,.2), rgba(91,141,255,.15));
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Screens */
.screens-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
  justify-items: center;
}
.screen-card {
  margin: 0;
  width: 100%;
  max-width: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.screen-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}
.screen-shot {
  display: block;
  width: 100%;
  height: auto;
}
.screen-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-size: 0.8rem;
  font-weight: 600;
}

/* Download CTA */
.cta-band {
  margin: 0 0 88px;
  padding: 56px;
  border-radius: var(--radius-lg);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(139,124,255,.15), rgba(91,141,255,.1)),
    var(--bg-card);
  border: 1px solid rgba(139,124,255,.25);
}
.cta-band h2 { margin: 0 0 12px; font-size: 2rem; }
.cta-band p { color: var(--text-muted); margin: 0 0 28px; max-width: 480px; margin-inline: auto; }
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-weight: 600;
  transition: transform .15s;
}
.app-store-badge:hover { color: #111; transform: scale(1.02); }
.app-store-badge svg { width: 28px; height: 28px; }
.app-store-badge small { display: block; font-size: 0.7rem; font-weight: 500; opacity: .7; }

/* Legal / content pages */
.page-hero {
  padding: 56px 0 32px;
}
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
}
.page-hero .meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.legal-content, .form-page {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 88px;
}
.legal-content h2 {
  margin: 40px 0 12px;
  font-size: 1.35rem;
}
.legal-content h3 {
  margin: 28px 0 10px;
  font-size: 1.1rem;
}
.legal-content p, .legal-content li {
  color: #c8c8d8;
}
.legal-content ul {
  padding-left: 1.25rem;
}
.legal-content a { text-decoration: underline; text-underline-offset: 3px; }

/* Forms */
.form-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  gap: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  color: var(--text);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(139,124,255,.5);
  box-shadow: 0 0 0 3px rgba(139,124,255,.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.captcha-group .cf-turnstile { margin-top: 4px; }
.math-captcha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}
.math-captcha-label {
  font-weight: 600;
  color: var(--text);
  min-width: 180px;
}
.math-captcha-input {
  width: 120px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}
.math-captcha-input:focus {
  outline: none;
  border-color: rgba(139, 124, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 124, 255, 0.15);
}
.form-alert {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  display: none;
}
.form-alert.show { display: block; }
.form-alert.success {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #86efac;
}
.form-alert.error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}

/* Star rating */
.star-rating {
  display: flex;
  gap: 6px;
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.star-rating input { display: none; }
.star-rating label {
  cursor: pointer;
  font-size: 1.8rem;
  color: #44445a;
  transition: color .15s, transform .15s;
  line-height: 1;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #fbbf24;
}
.star-rating label:hover { transform: scale(1.1); }

/* Reviews */
.reviews-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
  padding-bottom: 88px;
}
.reviews-list { display: grid; gap: 16px; }
.review-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.review-stars { color: #fbbf24; letter-spacing: 2px; margin-bottom: 8px; }
.review-author { font-weight: 600; margin-bottom: 4px; }
.review-date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.review-body { color: #c8c8d8; margin: 0; }
.reviews-empty {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 16px 0 0;
  max-width: 280px;
}
.footer-links h4, .footer-contact h4 {
  margin: 0 0 14px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text); font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary); }
.footer-contact p { margin: 0 0 8px; }
.footer-muted { color: var(--text-muted); font-size: 0.9rem; }
.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .phone-mockup { order: -1; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .screens-showcase { grid-template-columns: repeat(2, 1fr); }
  .reviews-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    padding: 20px;
    background: rgba(7,7,13,.96);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s, opacity .25s;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-cta { display: none; }
  .features-grid, .screens-showcase { grid-template-columns: 1fr; }
  .screen-card { max-width: 280px; margin-inline: auto; }
  .cta-band { padding: 36px 24px; }
  .form-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
