:root {
  --bg: #0b0d12;
  --bg-alt: #12151c;
  --card: #171b24;
  --border: #262b38;
  --text: #eef0f4;
  --text-dim: #9aa1b1;
  --accent: #7c9eff;
  --accent-dark: #5c7de0;
  --accent-soft: rgba(124, 158, 255, 0.16);
  --danger: #ff6b6b;
  --radius: 12px;
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 28px 70px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

::selection { background: var(--accent); color: #0b0d12; }

section[id] { scroll-margin-top: 88px; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
p { color: var(--text-dim); margin: 0 0 16px; }
a { color: inherit; text-decoration: none; transition: color 0.15s ease; }

.nav {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.nav.scrolled {
  background: rgba(11, 13, 18, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 22px; }
a.brand { cursor: pointer; }
.brand-mark { font-size: 40px; line-height: 1; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--text-dim); font-size: 14px; }
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.15s var(--ease), background 0.15s ease, box-shadow 0.25s ease;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary {
  background: var(--accent);
  color: #0b0d12;
  box-shadow: 0 0 0 rgba(124, 158, 255, 0);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(124, 158, 255, 0.25);
}
.btn-small { padding: 8px 18px; font-size: 14px; background: var(--accent); color: #0b0d12; }
.btn-large { padding: 16px 32px; font-size: 16px; width: 100%; }
.btn-cta-main { display: block; }
.btn-cta-sub { display: block; font-size: 13px; font-weight: 600; font-style: italic; opacity: 0.95; margin-top: 4px; letter-spacing: 0.02em; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.hero {
  padding: 128px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% -20%, rgba(124, 158, 255, 0.15), transparent 60%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: 50px; max-width: 680px; margin: 0 auto 20px; }
.hero-sub { font-size: 18px; max-width: 560px; margin: 0 auto 36px; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-cta .btn-large { width: auto; padding: 18px 40px; }
.hero-cta-note { font-size: 13px; color: var(--text-dim); margin: 0; }
.hero-flow-note { font-size: 12px; color: var(--text-dim); opacity: 0.75; margin: 0; letter-spacing: 0.01em; }
.hero-flow-note a { color: var(--accent); text-decoration: none; }
.hero-flow-note a:hover { text-decoration: underline; text-underline-offset: 2px; }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 9px 20px;
  font-size: 14px;
  margin-top: 6px;
}
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent-dark); }

.hero-media { position: relative; display: flex; justify-content: center; }
.hero-video-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.hero-video-frame:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift), 0 0 48px rgba(124, 158, 255, 0.22);
}
.hero-video-frame video {
  display: block;
  width: 100%;
  height: auto;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: -10% -10% -10% -10%;
  background: radial-gradient(circle, rgba(124, 158, 255, 0.35), transparent 65%);
  filter: blur(20px);
  opacity: 0.8;
  z-index: -1;
}

@media (min-width: 960px) {
  .hero { text-align: left; padding: 140px 0 120px; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
  .hero h1, .hero-sub { margin-left: 0; margin-right: 0; }
  .hero-cta { align-items: flex-start; }
  .hero-media { justify-content: flex-end; }
}

.features { padding: 80px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features h2, .showcase h2, .pricing h2, .requirements h2, .faq h2 { text-align: center; font-size: 32px; margin-bottom: 44px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 22px;
  text-align: center;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 158, 255, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border-radius: 14px;
  font-size: 24px;
  background: linear-gradient(160deg, rgba(124, 158, 255, 0.2), rgba(124, 158, 255, 0.05));
  border: 1px solid rgba(124, 158, 255, 0.25);
}
.feature-card h3 { font-size: 18px; }
.feature-card p { font-size: 14px; margin: 0; }
.feature-card-wide { grid-column: 1 / -1; }
.feature-card-wide p { max-width: 640px; margin: 0 auto; }

.showcase { padding: 80px 0; }
.showcase-video-frame {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.showcase-video-frame:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift), 0 0 48px rgba(124, 158, 255, 0.22);
}
.showcase-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.pricing { padding: 88px 0; }
.pricing-inner { display: flex; flex-direction: column; align-items: center; }
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  position: relative;
}
.price-card-featured {
  border-color: rgba(124, 158, 255, 0.35);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(124, 158, 255, 0.08);
}
.price-card-featured::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20px;
  right: 20px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.price-amount { font-size: 44px; font-weight: 800; margin-bottom: 12px; }
.price-amount span { font-size: 16px; font-weight: 400; color: var(--text-dim); }
.price-desc { font-size: 14px; }
.price-list { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; }
.price-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.price-list li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

.pricing-columns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 460px;
}
@media (min-width: 960px) {
  .pricing-columns {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    max-width: 940px;
    gap: 40px;
  }
  .price-card-entry { flex: 1.15; max-width: 460px; }
}

.pricing-packs {
  width: 100%;
  max-width: 420px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
@media (min-width: 960px) {
  .pricing-packs { flex: 1; max-width: 380px; }
}
.pricing-packs-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-align: center;
  margin: 0 0 20px;
}
.pack-card-mini {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.pack-card-mini:last-child { margin-bottom: 0; }
.pack-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.pack-mini-price { font-size: 20px; font-weight: 800; }
.price-list-mini { margin: 0; }
.price-list-mini li { padding: 3px 0; border-bottom: none; font-size: 13px; }

.pack-select-card { max-width: 900px; }
.pack-select-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: left;
}
.pack-select-card input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 14px;
}
#select-errors {
  color: var(--danger);
  font-size: 13px;
  margin-top: 8px;
  min-height: 16px;
}
.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.pack-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.pack-price { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.pack-card .price-list { flex: 1; }
.pack-card .btn { margin-top: 4px; }

.requirements { padding: 80px 0; text-align: center; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.requirements-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.requirements-list li {
  font-size: 14px;
  color: var(--text-dim);
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
}
.requirements-list li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.install-note { font-size: 14px; max-width: 560px; margin: 0 auto; }
.install-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.install-note a:hover { color: var(--accent-dark); }

.faq { padding: 80px 0 110px; }
.faq-item {
  max-width: 680px;
  margin: 0 auto 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: transform 0.2s var(--ease), border-color 0.2s ease;
}
.faq-item:hover { transform: translateX(3px); border-left-color: var(--accent-dark); }
.faq-item h3 { font-size: 17px; }
.faq-item p { font-size: 14px; margin: 0; }

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}
.footer p { font-size: 13px; margin: 0; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-dim); }
.footer-links a:hover { color: var(--accent); }

/* Legal pages (privacy, terms, refund) */
.legal { padding: 64px 0 100px; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: 36px; margin-bottom: 4px; }
.legal .brand-name-sub { font-weight: 600; color: var(--text); }
.legal .updated { font-size: 13px; color: var(--text-dim); margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin-top: 40px; }
.legal h3 { font-size: 17px; margin-top: 4px; }
.legal p, .legal li { font-size: 15px; color: var(--text-dim); }
.legal ul { padding-left: 20px; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent-dark); }
.legal a.btn, .legal a.btn:hover { color: #0b0d12; text-decoration: none; }
.legal .back-link { display: inline-block; margin-bottom: 32px; font-size: 14px; color: var(--text-dim); text-decoration: none; }
.legal .back-link:hover { color: var(--accent); }

/* Setup guide */
.setup-hero { padding: 64px 0 24px; text-align: center; }
.setup-hero h1 { font-size: 38px; max-width: 700px; margin: 0 auto 14px; }
.setup-hero-sub { font-size: 17px; max-width: 560px; margin: 0 auto; }
.setup-hero .back-link { display: inline-block; margin-bottom: 28px; font-size: 14px; color: var(--text-dim); text-decoration: none; }
.setup-hero .back-link:hover { color: var(--accent); }

.setup-steps { padding: 16px 0 80px; }
.setup-step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
}
.setup-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: left;
}
.setup-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--accent);
  background: linear-gradient(160deg, rgba(124, 158, 255, 0.22), rgba(124, 158, 255, 0.06));
  border: 1px solid rgba(124, 158, 255, 0.3);
  flex-shrink: 0;
}
.setup-step-body h2 { font-size: 19px; margin-bottom: 6px; }
.setup-step-body p { font-size: 15px; margin-bottom: 14px; }
.setup-step-body p:last-child { margin-bottom: 0; }
.setup-step-body .btn { display: inline-block; padding: 12px 24px; font-size: 14px; }
.setup-footer-note { text-align: center; font-size: 14px; margin: 32px 0 0; }
.setup-footer-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.setup-footer-note a:hover { color: var(--accent-dark); }

@media (min-width: 760px) {
  .setup-step { flex-direction: row; align-items: flex-start; }
  .setup-step-body { flex: 1; }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  padding: 32px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  cursor: pointer;
}
.modal h2 { font-size: 22px; }
.modal-sub { font-size: 13px; margin-bottom: 24px; }

#trial-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 16px;
}
#trial-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
}
.modal-platform-note { font-size: 13px; color: var(--text-dim); margin: 8px 0 0; }
#card-element {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
}
#card-errors {
  color: var(--danger);
  font-size: 13px;
  margin-top: 8px;
  min-height: 16px;
}
#trial-form .btn-large { margin-top: 24px; }

.trial-success h3 { font-size: 20px; }
.license-key-box {
  background: var(--card);
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 16px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 16px;
  text-align: center;
  letter-spacing: 1px;
  margin: 16px 0;
  word-break: break-all;
}
.copy-btn {
  display: block;
  margin: 0 auto 16px;
  padding: 8px 18px;
}
.activation-note {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

/* Scroll-reveal, progressive enhancement only: the .js gate means content
   stays fully visible if this script never runs (JS blocked/failed). */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-video-frame, .feature-card, .faq-item { transition: none; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 34px; }
  .nav-links { display: none; }
}
