:root {
  --bg: #06091a;
  --bg-soft: #0c1230;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --panel-solid: #111638;
  --text: #f4f6ff;
  --muted: #9aa6c7;
  --muted-dim: #6f7a99;
  --accent: #ef5a3c;
  --accent-2: #ffb259;
  --accent-grad: linear-gradient(135deg, #ef5a3c 0%, #ffb259 100%);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 32px 80px rgba(239, 90, 60, 0.18), 0 16px 48px rgba(0, 0, 0, 0.4);
  --radius: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #ffffff;
  color: #0b0f1e;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; }
p { margin: 0; }

/* ---------- Background decoration ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.orb-1 { width: 480px; height: 480px; background: #ef5a3c; top: -120px; right: -120px; }
.orb-2 { width: 420px; height: 420px; background: #5d3cef; bottom: -180px; left: -120px; opacity: 0.4; }

/* ---------- Layout ---------- */
.site-header, .hero, .logo-strip, .problem, .how, .features, .testimonial,
.pricing, .faq, .cta-final, .site-footer, .legal {
  width: min(1180px, 92vw);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.route-404 {
  width: min(820px, 92vw);
  margin: 96px auto 120px;
  padding: 32px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.route-404-code {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(239, 90, 60, 0.35);
  color: #ffb259;
  background: rgba(239, 90, 60, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.route-404 h1 {
  margin-top: 14px;
  margin-bottom: 10px;
}

.route-404 p {
  color: var(--muted);
  max-width: 60ch;
}

.route-404-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 14px;
  margin-top: 14px;
  z-index: 20;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(6, 9, 26, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-grad);
  color: #1a0a04;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.nav-links > a:not(.btn) {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links > a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.94rem;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 22px; font-size: 1.02rem; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }
.btn-solid {
  background: var(--accent-grad);
  color: #1a0a04;
  box-shadow: 0 8px 24px rgba(239, 90, 60, 0.35);
}
.btn-outline {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.22); }
.btn-ghost { color: var(--muted); padding: 8px 14px; }
.btn-ghost:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  padding: 92px 0 56px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(239, 90, 60, 0.12);
  color: #ffb259;
  border: 1px solid rgba(239, 90, 60, 0.3);
}
.badge-muted {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-color: var(--border-strong);
}
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  max-width: 18ch;
}
.grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 56ch;
}
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-microcopy {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted-dim);
}
.proof-strip {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.proof-stat { display: flex; flex-direction: column; }
.proof-stat strong {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.proof-stat span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Hero preview card ---------- */
.hero-preview-col { position: relative; }
.preview-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.2deg);
}
.preview-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 999px; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.preview-title {
  margin-left: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: ui-monospace, "JetBrains Mono", monospace;
}
.preview-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.preview-row { display: grid; grid-template-columns: 110px 1fr 36px; align-items: center; gap: 12px; }
.preview-label { font-size: 0.85rem; color: var(--muted); }
.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.fill {
  display: block;
  height: 100%;
  background: var(--accent-grad);
  border-radius: 999px;
}
.preview-score {
  text-align: right;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.preview-note {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(239, 90, 60, 0.08);
  border-left: 2px solid var(--accent);
  font-size: 0.88rem;
  color: #ffd9c5;
  font-style: italic;
}

/* ---------- Logo strip ---------- */
.logo-strip {
  margin-top: 12px;
  padding: 24px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logo-strip-label {
  display: block;
  color: var(--muted-dim);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  color: var(--muted);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  opacity: 0.7;
}

/* ---------- Section headings ---------- */
.kicker {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 14px;
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  max-width: 22ch;
}

/* ---------- Problem ---------- */
.problem { margin-top: 88px; }
.problem h2 { max-width: 28ch; }
.problem-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.problem-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}
.problem-card h4 { font-size: 1.05rem; margin: 14px 0 6px; }
.problem-card p { color: var(--muted); font-size: 0.95rem; }
.problem-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(239, 90, 60, 0.12);
  color: var(--accent);
  font-weight: 800;
}

/* ---------- How ---------- */
.how { margin-top: 96px; text-align: center; }
.how h2 { margin-inline: auto; }
.how-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  text-align: left;
}
.step {
  position: relative;
  padding: 28px 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}
.step-num {
  display: inline-block;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Features ---------- */
.features { margin-top: 96px; text-align: center; }
.features h2 { margin-inline: auto; }
.feature-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  text-align: left;
}
.feature-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--panel-strong);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(239, 90, 60, 0.12);
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Testimonial ---------- */
.testimonial {
  margin-top: 88px;
  padding: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(239, 90, 60, 0.08), rgba(255, 255, 255, 0.02));
  text-align: center;
}
.testimonial blockquote {
  margin: 0 auto;
  max-width: 28ch;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.testimonial-attr {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #1a0a04;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}
.testimonial-attr strong { display: block; font-size: 0.95rem; }
.testimonial-attr span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { margin-top: 96px; text-align: center; }
.pricing h2 { margin-inline: auto; }
.pricing-sub { color: var(--muted); margin-bottom: 32px; max-width: 50ch; margin-inline: auto; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  text-align: left;
}
.price-card {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: rgba(239, 90, 60, 0.55);
  background: linear-gradient(180deg, rgba(239, 90, 60, 0.10), rgba(255, 255, 255, 0.02));
  box-shadow: 0 18px 40px rgba(239, 90, 60, 0.18);
  transform: translateY(-6px);
}
.featured-badge {
  position: absolute;
  top: -12px; right: 20px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #1a0a04;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.price-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.price {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.price span { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.price-sub { margin-top: 4px; color: var(--muted); font-size: 0.9rem; }
.price-features {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}
.price-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 800;
}
.price-card .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { margin-top: 96px; }
.faq h2 { margin-bottom: 28px; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.faq details {
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.faq details[open] {
  background: var(--panel-strong);
  border-color: var(--border-strong);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent-2);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Final CTA ---------- */
.cta-final {
  margin-top: 96px;
  margin-bottom: 56px;
  padding: 56px 32px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(239, 90, 60, 0.35);
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(239, 90, 60, 0.25), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.cta-final h2 { margin-inline: auto; margin-bottom: 12px; }
.cta-final p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 24px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.footer-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.muted { color: var(--muted-dim); font-size: 0.88rem; }
.footer-right { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.9rem; }
.footer-right a:hover { color: var(--text); }

/* ---------- Reveal anim ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 600ms ease forwards;
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 64px; gap: 32px; }
  .hero-preview-col { order: -1; }
  .preview-card { transform: rotate(0); }
  .site-header { position: static; }
  .nav-links > a:not(.btn) { display: none; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 2.1rem; }
  .proof-strip { gap: 18px; }
  .testimonial { padding: 28px 22px; }
  .cta-final { padding: 40px 22px; }
}

/* ---------- Legal pages (Terms, Privacy, Refund, Pricing) ---------- */
.legal {
  padding: 64px 0 56px;
}
.legal-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-header .kicker { margin-bottom: 10px; }
.legal-header h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.legal-header p.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 70ch;
}
.legal-meta {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted-dim);
}
.legal-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 90px;
  padding: 18px 18px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 0.9rem;
}
.legal-toc strong {
  display: block;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  margin-bottom: 10px;
}
.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-toc a {
  color: var(--muted);
  display: block;
  padding: 4px 6px;
  border-radius: 6px;
}
.legal-toc a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.legal-content section {
  margin-bottom: 36px;
  scroll-margin-top: 100px;
}
.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  max-width: none;
}
.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 18px 0 8px;
  color: var(--text);
}
.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}
.legal-content p + p { margin-top: 10px; }
.legal-content ul,
.legal-content ol.legal-list {
  margin: 10px 0 10px 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-content a {
  color: var(--accent-2);
  border-bottom: 1px dotted rgba(255, 178, 89, 0.4);
}
.legal-content a:hover { color: #ffd9a8; }
.legal-content strong { color: var(--text); }
.legal-callout {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 10px;
  border-left: 3px solid var(--accent);
  background: rgba(239, 90, 60, 0.08);
  color: #ffd9c5;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .legal-body { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
