/* Recon — Design System */

/* ==============================
   Reset + Base
   ============================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #243348;
  --border: #334155;
  --text: #e2e8f0;
  --text-muted: #a8b8cc;  /* Raised from #94a3b8 for WCAG AA 4.5:1 on card bg */
  --text-dim: #8494a7;    /* Raised from #64748b for WCAG AA 4.5:1 on page bg */
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.12);
  --success: #10b981;
  --warning: #f59e0b;
  --hero-gradient: linear-gradient(135deg, #1e3a5f 0%, #0f172a 60%);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --font-mono: "SF Mono", "Fira Code", Menlo, monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.3);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ==============================
   Skip Link (Accessibility)
   ============================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

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

section { padding: 80px 0; }

/* ==============================
   Nav
   ============================== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

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

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

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

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
}

.nav-cta:hover { background: var(--accent-hover) !important; color: #fff !important; }

/* Hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

/* ==============================
   Buttons
   ============================== */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  text-decoration: none;
}

.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ==============================
   Section Headers
   ============================== */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
}

.section-header { margin-bottom: 52px; }

/* ==============================
   Hero
   ============================== */
.hero {
  background: var(--hero-gradient);
  padding: 100px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59,130,246,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,0.3);
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 780px;
  margin: 0 auto 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* ==============================
   Cards
   ============================== */
.card-grid { display: grid; gap: 20px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), background var(--transition);
}

.card:hover {
  border-color: rgba(59,130,246,0.35);
  background: var(--bg-card-hover);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ==============================
   Problem
   ============================== */
.problem-statement {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 26px;
  margin-bottom: 40px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
}

/* ==============================
   Steps
   ============================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.step-number {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.step h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.step p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ==============================
   Sample Report Mockup
   ============================== */
.mockup-section { background: linear-gradient(180deg, var(--bg) 0%, #0a1628 100%); }
.mockup-wrap { max-width: 680px; }

.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.report-chrome {
  background: #0f172a;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red    { background: #f87171; }
.dot-yellow { background: #fbbf24; }
.dot-green  { background: #34d399; }

.chrome-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-left: 6px;
}

.report-body { padding: 24px; }

.report-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.report-competitor {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.change-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.22);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
}

.change-text { font-size: 0.875rem; color: #fca5a5; font-weight: 600; }

.analysis-block {
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.analysis-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 6px;
}

.analysis-text { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

.confidence-row { display: flex; align-items: center; gap: 8px; }

.conf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.conf-label { font-size: 0.78rem; color: var(--success); font-weight: 600; }

/* Score mockup styles */
.mockup-score-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.mockup-score-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 12px 0 16px;
}

.mockup-gauge {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.mockup-score-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.mockup-score-max {
  font-size: 1.1rem;
  color: var(--text-dim);
  font-weight: 600;
}

.mockup-grade {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mockup-grade-letter {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.grade-a { color: #22c55e; }
.grade-b { color: #3b82f6; }
.grade-c { color: #f59e0b; }
.grade-d { color: #f97316; }
.grade-f { color: #ef4444; }

.mockup-grade-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

.mockup-benchmark-row {
  display: flex;
  gap: 24px;
}

.mockup-benchmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mockup-benchmark-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.mockup-benchmark-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ==============================
   Pricing
   ============================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}

.pricing-card.hero-tier {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 40px rgba(59,130,246,0.08);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-price sup {
  font-size: 1rem;
  font-weight: 600;
  vertical-align: super;
}

.pricing-period {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 20px;
  margin-top: 4px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
}

.pricing-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-features li::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  min-width: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 2px;
}

.pricing-anchor {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 10px;
  text-align: center;
  line-height: 1.5;
}

.pricing-urgency {
  font-size: 0.78rem;
  color: var(--warning);
  margin-top: 10px;
  text-align: center;
}

/* ==============================
   Lead Magnet
   ============================== */
.lead-magnet-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.lm-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lm-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lm-content { flex: 1; }
.lm-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.lm-content p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 16px; }

/* ==============================
   Signup
   ============================== */
.signup-section {
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, #0a1628 100%);
}

.signup-form {
  max-width: 460px;
  margin: 28px auto 0;
}

.form-row { display: flex; gap: 10px; }

.form-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
}

.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-dim); }

.privacy-note { font-size: 0.78rem; color: var(--text-dim); margin-top: 12px; }

/* ==============================
   Trust Signals
   ============================== */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-item svg {
  width: 15px;
  height: 15px;
  stroke: var(--success);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==============================
   Footer
   ============================== */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy { font-size: 0.85rem; color: var(--text-dim); }

.footer-links { display: flex; gap: 20px; }

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text-muted); }

/* ==============================
   Responsive
   ============================== */
@media (max-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
  .hero { padding: 72px 0 60px; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .lead-magnet-block { flex-direction: column; text-align: center; }
  .form-row { flex-direction: column; }
  .trust-strip { gap: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }

  /* Mobile hamburger nav */
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px 24px 20px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    font-size: 1rem;
    padding: 8px 0;
  }
  .nav-cta {
    text-align: center;
    display: block;
    padding: 12px 18px;
  }

  /* Score mockup responsive */
  .mockup-score-row {
    flex-direction: column;
    gap: 12px;
  }
  .mockup-benchmark-row {
    flex-direction: column;
    gap: 12px;
  }
}
