:root {
  --bg-0: #0b0d14;
  --bg-1: #12151f;
  --card: #161a26;
  --card-2: #1b2033;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f3f7;
  --text-dim: #9ba0b3;
  --accent: #7c5cff;
  --accent-2: #4fd1c5;
  --accent-soft: rgba(124, 92, 255, 0.14);
  --danger: #ff6b6b;
  --shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(124, 92, 255, 0.16), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(79, 209, 197, 0.1), transparent 40%),
    var(--bg-0);
}

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

h1, h2, h3 { letter-spacing: -0.015em; margin: 0; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 48px;
  background: rgba(11, 13, 20, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16.5px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }

.nav-links { display: flex; gap: 28px; flex: 1; font-size: 14px; color: var(--text-dim); font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: filter 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #9b7bff);
  color: #fff;
  box-shadow: 0 10px 24px -6px rgba(124, 92, 255, 0.5);
}

.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.25); }

.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* Layout */
main { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow.center { display: block; text-align: center; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding: 88px 0 110px; }
.hero h1 { font-size: 46px; line-height: 1.2; margin-bottom: 20px; }

.subtitle { color: var(--text-dim); font-size: 17px; line-height: 1.65; margin: 0 0 32px; max-width: 480px; }

.hero-actions { display: flex; gap: 12px; margin-bottom: 28px; }

.trust-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-dim); }
.stars { color: #f5a623; letter-spacing: 1px; font-size: 13px; }

.hero-visual { position: relative; display: flex; justify-content: center; }

.glow {
  position: absolute;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.25), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}

.mock-browser {
  position: relative;
  z-index: 1;
  width: 320px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, var(--card), var(--bg-1));
}

.mock-topbar { display: flex; gap: 6px; padding: 13px 14px; background: var(--bg-1); border-bottom: 1px solid var(--border); }
.mock-topbar .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }

.mock-popup { padding: 24px; }
.mock-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 14px; }
.mock-brand img { width: 22px; height: 22px; border-radius: 6px; }

.mock-toggle { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-dim); margin-bottom: 22px; }

.switch { width: 32px; height: 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); position: relative; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.switch.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.switch.on::after { left: 16px; }

.mock-stat { padding: 18px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); text-align: center; }

.mock-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mock-stat span:last-child { font-size: 12.5px; color: var(--text-dim); }

/* Sections */
section { padding: 84px 0; }
section h2 { font-size: 32px; text-align: center; margin-bottom: 12px; }

.features { background: rgba(255, 255, 255, 0.02); border-radius: 32px; border: 1px solid var(--border); }

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }

.feature { padding: 28px; border-radius: 16px; background: linear-gradient(180deg, var(--card), var(--bg-1)); border: 1px solid var(--border); }

.icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-2);
  margin-bottom: 18px;
}

.icon svg { width: 20px; height: 20px; }

.feature h3 { font-size: 16px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.6; }

/* Comparison table */
.table-wrap { margin-top: 44px; overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); }

table { width: 100%; border-collapse: collapse; background: var(--card); }

th, td { padding: 18px 22px; text-align: center; font-size: 14.5px; border-bottom: 1px solid var(--border); }
td:first-child, th:first-child { text-align: left; color: var(--text-dim); }
th { font-size: 13px; color: var(--text-dim); font-weight: 600; }

.col-highlight { background: var(--accent-soft); }
th.col-highlight { color: var(--accent-2); }
tr:last-child td { border-bottom: none; }

.ok { width: 19px; height: 19px; color: var(--accent-2); }
.no { width: 16px; height: 16px; color: #565c70; }
.unsure { font-size: 12.5px; color: var(--text-dim); }

/* Pricing */
.pricing { text-align: center; }
.pricing-subtitle { color: var(--text-dim); font-size: 14.5px; margin: 10px auto 32px; max-width: 480px; }

.billing-toggle {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 44px;
}

.billing-toggle button {
  border: none;
  background: transparent;
  color: var(--text-dim);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.billing-toggle button.active {
  background: linear-gradient(135deg, var(--accent), #9b7bff);
  color: #fff;
}

.save { font-size: 11px; margin-left: 4px; opacity: 0.85; }

.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 720px; margin: 0 auto; }

.pricing-card {
  text-align: left;
  padding: 36px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--card), var(--bg-1));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.pricing-card.highlight { border: 1.5px solid var(--accent); box-shadow: 0 24px 60px -18px rgba(124, 92, 255, 0.45); }

.plan-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-2);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.pricing-card h3 { font-size: 15px; color: var(--text-dim); font-weight: 600; margin-bottom: 18px; }

.price { margin-bottom: 6px; }
.amount { font-size: 38px; font-weight: 700; }
.period { color: var(--text-dim); font-size: 14px; }

.price-note { font-size: 12.5px; color: var(--text-dim); margin: 0 0 24px; }

.plan-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; color: var(--text-dim); }
.plan-features li { padding-left: 24px; position: relative; }
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(79, 209, 197, 0.4);
}

/* FAQ */
.faq-list { max-width: 700px; margin: 44px auto 0; display: flex; flex-direction: column; gap: 12px; }

details { padding: 20px 22px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }
summary { cursor: pointer; font-size: 15px; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
details p { margin: 14px 0 0; color: var(--text-dim); font-size: 14px; line-height: 1.65; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 44px 48px 32px; color: var(--text-dim); font-size: 13px; }

.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--text); }

/* Checkout page */
.checkout-wrap { max-width: 480px; margin: 0 auto; padding: 64px 0 96px; }

.checkout-card {
  padding: 32px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--card), var(--bg-1));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.checkout-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.checkout-summary .label { font-size: 14px; color: var(--text-dim); }
.checkout-summary .total { font-size: 26px; font-weight: 700; }

.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.field input:focus { border-color: var(--accent); background: var(--accent-soft); }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 20px 0 24px;
}

.consent input { margin-top: 3px; }
.consent strong { color: var(--text); }
.consent a { color: var(--accent-2); text-decoration: underline; }

#checkoutError { color: var(--danger); font-size: 13px; margin: 0 0 12px; min-height: 14px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 56px 0 64px; text-align: center; }
  .hero-actions, .trust-row { justify-content: center; }
  .subtitle { margin-left: auto; margin-right: auto; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav { padding: 16px 20px; }
  .hero h1 { font-size: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  footer { text-align: center; }
  .footer-top { flex-direction: column; }
}

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 0 96px; }
.legal h1 { font-size: 30px; margin-bottom: 6px; }
.legal .updated { color: var(--text-dim); font-size: 13px; margin: 0 0 40px; }
.legal h2 { font-size: 19px; margin: 40px 0 14px; }
.legal p, .legal li { color: var(--text-dim); font-size: 14.5px; line-height: 1.75; }
.legal ul { padding-left: 22px; margin: 12px 0; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); }
.legal .placeholder { color: var(--accent-2); }
.legal a { color: var(--accent-2); text-decoration: underline; }
