:root {
  --bg: #0c0e14;
  --surface: #141820;
  --surface2: #1c2230;
  --border: #2a3344;
  --text: #e8eaed;
  --muted: #8b95a8;
  --accent: #6d8cff;
  --accent-dim: rgba(109, 140, 255, 0.12);
  --success: #3dd68c;
  --warning: #e8b84a;
  --max: 1080px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--max), 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 14, 20, 0.92);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #0c0e14;
}

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

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

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.stat-card .val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.stat-card .lbl {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}

/* Sections */
section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 60ch;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-dim) 0%, var(--surface) 40%);
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.card .price {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}

.card .price small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}

.card ul {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.card ul li {
  margin: 0.35rem 0;
}

.card .btn {
  width: 100%;
  margin-top: auto;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent);
  color: #0c0e14;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* Proof / topics table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

tr:last-child td {
  border-bottom: none;
}

.highlight-row td {
  color: var(--success);
}

/* Email form */
.lead-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  max-width: 520px;
}

.lead-form h3 {
  margin: 0 0 0.5rem;
}

.lead-form p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-row input[type='email'] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}

.form-row input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

.form-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.form-success {
  display: none;
  color: var(--success);
  font-weight: 600;
  margin-top: 1rem;
}

.form-success.visible {
  display: block;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.faq-item h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* Config banner (dev) */
.config-hint {
  background: var(--surface2);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.config-hint code {
  color: var(--warning);
  font-size: 0.85em;
}

@media (max-width: 640px) {
  .nav .hide-mobile {
    display: none;
  }

  .hero {
    padding-top: 2rem;
  }
}

@media print {
  .site-header,
  .config-hint,
  .lead-form,
  .site-footer .hide-print {
    display: none;
  }
}
