/* ─── Variables ─────────────────────────────────────── */
:root {
  --bg:           #080f1c;
  --bg-alt:       #0d1626;
  --surface:      #111e32;
  --border:       #1c2d44;
  --accent:       #e8921a;
  --accent-dim:   rgba(232, 146, 26, 0.12);
  --accent-mid:   rgba(232, 146, 26, 0.4);
  --text:         #f5f1eb;
  --text-muted:   rgba(245, 241, 235, 0.55);
  --text-faint:   rgba(245, 241, 235, 0.25);
  --green:        #4ade80;
  --amber:        #e8921a;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Noise texture overlay ──────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}

/* ─── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ─── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 15, 28, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  padding: 80px 48px 96px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.05;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 100px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ─── Dashboard Visual ────────────────────────────────── */
.dash-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.8rem;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.dash-title {
  font-family: 'Fraunces', serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.dash-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status-dot.green {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.dash-scan {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--accent-dim);
}

.scan-label {
  font-size: 0.75rem;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 500;
}

.scan-bar-wrap {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 10px;
}

.scan-bar.amber { background: var(--amber); border-radius: 2px; height: 4px; }

.scan-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scan-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 3px;
}
.scan-tag.high { background: rgba(232,146,26,0.25); color: var(--amber); }
.scan-tag.medium { background: rgba(232,146,26,0.12); color: rgba(232,146,26,0.7); }
.scan-tag.low { background: rgba(245,241,235,0.06); color: var(--text-faint); }

.scan-match { font-size: 0.7rem; color: var(--text-muted); }

.dash-items { padding: 8px 0; }

.dash-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.dash-item:last-child { border-bottom: none; }

.item-name { font-size: 0.75rem; color: var(--text-muted); }

.item-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-check { font-size: 0.65rem; color: var(--green); }
.item-action { font-size: 0.65rem; color: var(--amber); }
.item-tag { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 3px; }

.dash-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.coverage-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.coverage-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 8px;
}

.coverage-fill {
  height: 6px;
  background: linear-gradient(90deg, var(--accent), #f5c46a);
  border-radius: 3px;
}

.coverage-meta {
  font-size: 0.68rem;
  color: var(--text-faint);
}

/* ─── Problem ─────────────────────────────────────────── */
.problem {
  padding: 96px 48px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.problem-inner { max-width: 1200px; margin: 0 auto; }

.problem-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.problem-headline {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--text);
  max-width: 800px;
  margin-bottom: 36px;
  line-height: 1.2;
}

.problem-body {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
}

.problem-body p { font-size: 1rem; color: var(--text-muted); line-height: 1.75; }

.problem-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.stat {
  padding: 32px 28px;
  background: var(--surface);
}

.stat-value {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ─── Features ───────────────────────────────────────── */
.features {
  padding: 96px 48px;
  border-bottom: 1px solid var(--border);
}

.features-inner { max-width: 1200px; margin: 0 auto; }

.features-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.feature-card {
  padding: 36px 32px;
  background: var(--bg);
  transition: background 0.2s;
}
.feature-card:hover { background: var(--surface); }

.feature-icon {
  margin-bottom: 20px;
}

.feature-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── How it works ───────────────────────────────────── */
.how {
  padding: 96px 48px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.how-inner { max-width: 1200px; margin: 0 auto; }

.how-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.how-step {}

.step-num {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-faint);
  margin-bottom: 16px;
  line-height: 1;
}

.step-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Closing ─────────────────────────────────────────── */
.closing {
  padding: 120px 48px;
}

.closing-inner { max-width: 1200px; margin: 0 auto; }

.closing-content {
  max-width: 680px;
}

.closing-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.closing-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.15;
}

.closing-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
}

.closing-rule {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 40px;
}

.closing-tagline {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Footer ──────────────────────────────────────────── */
.site-footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-wordmark {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.footer-note {
  font-size: 0.72rem;
  color: var(--text-faint);
  text-align: right;
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .site-header, .hero, .problem, .features, .how, .closing, .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .problem-stats { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .site-header { padding: 0 20px; }
  .hero { padding: 56px 20px 72px; }
  .problem { padding: 64px 20px; }
  .features { padding: 64px 20px; }
  .how { padding: 64px 20px; }
  .how-steps { grid-template-columns: 1fr; gap: 32px; }
  .closing { padding: 80px 20px; }
  .site-footer { padding: 24px 20px; }
  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .footer-note { text-align: left; }
}