/* =============================================
   POLICYPILOT — BRAND DESIGN SYSTEM
   ============================================= */

:root {
  --bg: #faf8f5;
  --bg-alt: #f0ece4;
  --dark: #1a1f2e;
  --dark-mid: #2d3348;
  --accent: #e8a838;
  --accent-dark: #c8881a;
  --text: #1a1f2e;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: rgba(26, 31, 46, 0.12);
  --white: #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* ---- NAV ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--dark);
  padding: 0 48px;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.nav-tagline {
  color: var(--text-light);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

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

.hero-left { max-width: 540px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding: 4px 10px;
  border: 1px solid rgba(232, 168, 56, 0.3);
  border-radius: 2px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  padding-right: 32px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  margin-right: 32px;
}

/* ---- DOC STACK ---- */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.doc-stack {
  position: relative;
  width: 320px;
  height: 340px;
}

.doc-card {
  position: absolute;
  background: var(--white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.doc-card:hover { transform: translateY(-4px) !important; }

.doc-card-1 { top: 0; left: 0; transform: rotate(-3deg); z-index: 3; }
.doc-card-2 { top: 60px; right: 0; transform: rotate(2deg); z-index: 2; }
.doc-card-3 { bottom: 0; left: 40px; transform: rotate(-1deg); z-index: 1; }

.doc-state {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.doc-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 12px;
}

.doc-meta {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 8px;
  background: var(--bg-alt);
  border-radius: 4px;
  display: inline-block;
}

/* ---- SECTIONS ---- */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 48px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 20px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 600px;
  margin-bottom: 24px;
}

.section-body {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 64px;
}

/* ---- HOW IT WORKS ---- */
.howitworks { background: var(--white); }

.pipeline {
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr;
  align-items: start;
  gap: 0;
}

.pipeline-step {
  padding: 32px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: rgba(232, 168, 56, 0.15);
  line-height: 1;
  margin-bottom: 16px;
}

.pipeline-step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}

.pipeline-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  color: var(--text-light);
}

/* ---- MANIFESTO ---- */
.manifesto {
  background: var(--dark);
  padding: 96px 48px;
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
}

.manifesto-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  line-height: 1.45;
  margin-bottom: 32px;
}

.manifesto-quote p {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 20px;
}

/* ---- NICHES ---- */
.niches { background: var(--bg-alt); }

.niche-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.niche-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.niche-card:hover {
  box-shadow: 0 8px 32px rgba(26,31,46,0.08);
  transform: translateY(-2px);
}

.niche-icon {
  color: var(--accent-dark);
  margin-bottom: 20px;
}

.niche-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}

.niche-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- CLOSING ---- */
.closing {
  background: var(--white);
  padding: 96px 48px;
}

.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.closing-body {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
}

.roadmap-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 24px;
}

.roadmap { display: flex; flex-direction: column; gap: 0; }

.roadmap-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 20px;
}

.roadmap-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 30px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.rm-marker {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.rm-content {
  font-size: 15px;
  color: var(--dark);
  line-height: 1.5;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--dark);
  padding: 64px 48px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 24px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-light);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { display: none; }
  .niche-grid { grid-template-columns: 1fr 1fr; }
  .closing-inner { grid-template-columns: 1fr; gap: 48px; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline-arrow { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .site-nav { padding: 0 24px; }
  .hero, .manifesto, .closing { padding-left: 24px; padding-right: 24px; }
  .section-inner { padding: 64px 24px; }
}

@media (max-width: 600px) {
  .niche-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }
  .stat { padding-right: 16px; }
}