:root {
  --bg: #0b1220;
  --surface: #131c2e;
  --surface2: #1b2740;
  --border: #27334d;
  --accent: #2f8aff;
  --accent-hover: #5aa7ff;
  --text: #e8edf5;
  --muted: #94a3b8;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--accent); }

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

/* ── Header ── */
.lp-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.lp-header.scrolled {
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.lp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.lp-brand-logo {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.lp-brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}

.lp-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.lp-nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.lp-nav a:hover { color: #fff; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:hover { opacity: 0.92; }
.btn:active { transform: scale(0.98); }
.btn-cta {
  background: linear-gradient(135deg, var(--accent), #1c63d6);
  color: #fff;
  box-shadow: 0 4px 18px rgba(47, 138, 255, 0.35);
}
.btn-secondary { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.btn-paypal { background: #ffc439; color: #003087; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 12px; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.7);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 18px;
  color: #fff;
}

.hero-copy .subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: #cbd5e1;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-copy .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-score-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.score-demo-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 8px solid var(--danger);
  background: rgba(239, 68, 68, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.25);
}

.score-demo-num {
  font-size: 56px;
  font-weight: 900;
  color: var(--danger);
  line-height: 1;
}

.score-demo-grade {
  font-size: 22px;
  font-weight: 800;
  color: var(--danger);
  margin-top: 4px;
}

.score-demo-caption {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

/* ── Sections ── */
.section {
  padding: 80px 0;
  position: relative;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin-bottom: 8px;
}

.section-heading p {
  color: var(--muted);
  font-size: 14px;
}

.section-heading.light h2 { color: #fff; }
.section-heading.light p { color: #cbd5e1; }

/* ── Grid of cards ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(47, 138, 255, 0.15);
}

.card .card-icon {
  font-size: 26px;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  font-size: 13px;
  color: var(--muted);
}

/* ── How it works (image bg) ── */
.how-it-works {
  background-size: cover;
  background-position: center;
}

.how-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.8);
}

.how-it-works .container { position: relative; z-index: 1; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step { text-align: center; }

.step .step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(47, 138, 255, 0.18);
  border: 2px solid var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  margin: 0 auto 14px;
}

.step h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: #fff; }
.step p { font-size: 13px; color: #cbd5e1; }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.price-card:hover { transform: translateY(-3px); }

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(47,138,255,0.4), 0 8px 30px rgba(47,138,255,0.2);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.price-card .price-name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.price-card .price-amount {
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 6px;
}

.price-card .price-amount small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.price-card ul {
  list-style: none;
  margin: 18px 0 24px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
}

.price-card li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.price-card li:last-child { border-bottom: none; }

/* ── Payment methods ── */
.payment-section { background: var(--surface); }
.payment-grid { max-width: 820px; margin: 0 auto; }
.payment-card { text-align: center; }
.payment-card .card-icon { font-size: 30px; }

/* ── Request form (image bg) ── */
.request-section {
  background-size: cover;
  background-position: center;
}

.request-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.75);
}

.request-section .container { position: relative; z-index: 1; }

.lp-form-card {
  background: rgba(19, 28, 46, 0.92);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  max-width: 540px;
  margin: 0 auto;
  backdrop-filter: blur(4px);
}

.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 80px; }

.form-input.valid, .form-select.valid { border-color: var(--success); }
.form-input.invalid, .form-select.invalid { border-color: var(--danger); box-shadow: 0 0 0 1px rgba(239,68,68,0.25); }

.field-hint {
  display: block;
  font-size: 11px;
  margin-top: 5px;
  min-height: 14px;
  color: var(--danger);
}

.form-check {
  display: flex;
  align-items: flex-start;
}
.form-check-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.form-check-label input { margin-top: 2px; flex-shrink: 0; }

.form-msg {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}
.form-msg.success { display: block; background: rgba(34,197,94,0.12); color: var(--success); }
.form-msg.error { display: block; background: rgba(239,68,68,0.12); color: var(--danger); }

/* ── Footer ── */
.lp-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  background: var(--surface);
}

.lp-footer-brand { justify-content: center; margin-bottom: 6px; }
.lp-footer-brand .lp-brand-logo { height: 32px; width: 32px; }
.lp-footer-brand .lp-brand-name { color: var(--text); }

.lp-footer-tagline { font-size: 13px; margin-bottom: 18px; color: var(--text); }

.lp-footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 18px;
}
.lp-footer-links a { color: var(--muted); text-decoration: none; font-size: 12px; }
.lp-footer-links a:hover { color: var(--text); }

.lp-footer-disclaimer { margin-top: 8px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── Payment result page (shared with payment_flow.py) ── */
.payment-result {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.payment-result .icon { font-size: 56px; margin-bottom: 16px; }
.payment-result h1 { font-size: 24px; margin-bottom: 10px; }
.payment-result p { color: var(--muted); margin-bottom: 24px; }

/* ── Mobile (breakpoint 768px) ── */
@media (max-width: 768px) {
  .lp-nav a:not(.btn) { display: none; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .cta-row { justify-content: center; }
  .hero-score-demo { margin: 0 auto; }
  .hero { padding-top: 96px; min-height: auto; padding-bottom: 64px; }
  .section { padding: 56px 0; }
  .score-demo-circle { width: 150px; height: 150px; }
  .score-demo-num { font-size: 44px; }
}
