/* === TYPOGRAPHY === */
:root {
  --bg: #FAF8F5;
  --bg-dark: #0D1B2A;
  --fg: #1a1a2e;
  --fg-light: #6B7280;
  --accent: #F5A623;
  --accent-dark: #E09000;
  --border: #E5E0D8;
  --card-bg: #FFFFFF;
  --tag-bg: #FFF3E0;
  --tag-text: #B85C00;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.site-nav { padding: 1.25rem 2rem; border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 0.75rem; }
.nav-logo { font-family: var(--font-display); font-size: 1.25rem; color: var(--fg); letter-spacing: -0.01em; }
.nav-tagline { font-size: 0.8rem; color: var(--fg-light); font-weight: 400; padding-left: 0.75rem; border-left: 1px solid var(--border); }

/* === HERO === */
.hero { background: var(--bg-dark); color: #fff; padding: 5rem 2rem 5rem; }
.hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 420px; gap: 4rem; align-items: center; }
.hero-eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); font-weight: 500; margin-bottom: 1.25rem; }
.hero-headline { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; font-weight: 400; margin-bottom: 1.5rem; color: #fff; }
.hero-sub { font-size: 1.05rem; color: #A8B4C4; line-height: 1.7; margin-bottom: 2.5rem; max-width: 520px; }
.hero-modes { display: flex; gap: 1rem; }
.mode-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 0.85rem 1.1rem; flex: 1; }
.mode-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 600; margin-bottom: 0.25rem; }
.mode-desc { display: block; font-size: 0.8rem; color: #C0CCD8; }
.mode-card--investor { border-color: rgba(245, 166, 35, 0.3); }

.score-card { background: linear-gradient(135deg, #1A3A5C 0%, #0D2040 100%); border: 1px solid rgba(245,166,35,0.3); border-radius: 16px; padding: 2rem; display: flex; align-items: center; gap: 2rem; margin-bottom: 1.5rem; }
.score-grade { font-family: var(--font-display); font-size: 5rem; color: var(--accent); line-height: 1; }
.score-meta { flex: 1; }
.score-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: #7A9AB8; margin-bottom: 0.3rem; }
.score-address { display: block; font-size: 0.85rem; color: #C0D4E8; margin-bottom: 0.75rem; }
.score-forecast { display: flex; align-items: baseline; gap: 0.5rem; }
.forecast-label { font-size: 0.72rem; color: #5A7A98; text-transform: uppercase; letter-spacing: 0.08em; }
.forecast-value { font-size: 1.4rem; font-weight: 600; color: #4ADE80; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.stat { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 0.85rem; text-align: center; }
.stat-value { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); }
.stat-label { display: block; font-size: 0.68rem; color: #7A9AB8; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.2rem; }

/* === MANIFESTO === */
.manifesto { padding: 6rem 2rem; }
.manifesto-inner { max-width: 1100px; margin: 0 auto; }
.manifesto-quote { font-family: var(--font-display); font-size: clamp(1.3rem, 2.5vw, 1.8rem); line-height: 1.5; color: var(--fg); font-style: italic; border-left: 3px solid var(--accent); padding-left: 2rem; margin-bottom: 4rem; max-width: 720px; }
.manifesto-statement h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; margin-bottom: 3rem; line-height: 1.25; }
.manifesto-pains { display: flex; flex-direction: column; gap: 2.5rem; }
.pain { display: flex; gap: 2rem; align-items: flex-start; }
.pain-num { font-family: var(--font-display); font-size: 2.5rem; color: var(--accent); line-height: 1; flex-shrink: 0; width: 3rem; }
.pain strong { font-size: 1rem; font-weight: 600; display: block; margin-bottom: 0.35rem; }
.pain p { color: var(--fg-light); font-size: 0.95rem; line-height: 1.65; }

/* === FEATURES === */
.features { background: var(--bg-dark); color: #fff; padding: 6rem 2rem; }
.features-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); font-weight: 600; margin-bottom: 1rem; }
.section-headline { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 400; color: #fff; margin-bottom: 3.5rem; line-height: 1.2; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5px; background: rgba(255,255,255,0.06); border-radius: 12px; overflow: hidden; }
.feature-card { background: rgba(13,27,42,0.8); padding: 2rem 1.75rem; }
.feature-icon { width: 40px; height: 40px; background: rgba(245,166,35,0.12); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; color: var(--accent); }
.feature-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.6rem; color: #fff; }
.feature-card p { font-size: 0.82rem; color: #8BA8C0; line-height: 1.6; }

/* === DATA SOURCES === */
.data-sources { padding: 6rem 2rem; background: var(--bg); }
.ds-inner { max-width: 1100px; margin: 0 auto; }
.ds-header { margin-bottom: 3rem; }
.ds-header h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 400; line-height: 1.3; }
.ds-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ds-item { background: var(--card-bg); padding: 1.5rem 1.5rem; }
.ds-name { display: block; font-weight: 600; font-size: 0.88rem; color: var(--fg); margin-bottom: 0.3rem; }
.ds-desc { display: block; font-size: 0.78rem; color: var(--fg-light); line-height: 1.4; }

/* === CALCULATOR === */
.calculator-section { padding: 6rem 2rem; background: #F0EDE6; }
.calc-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.calc-text h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-weight: 400; line-height: 1.25; margin-bottom: 1rem; }
.calc-desc { color: var(--fg-light); font-size: 0.95rem; line-height: 1.65; }
.calc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.calc-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 1.4rem 1.5rem; }
.calc-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--bg-dark); border-radius: 8px; color: var(--accent); margin-bottom: 0.9rem; }
.calc-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--fg); }
.calc-card p { font-size: 0.78rem; color: var(--fg-light); line-height: 1.5; }

/* === PRICING === */
.pricing { padding: 6rem 2rem; background: var(--bg); }
.pricing-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.pricing-inner h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 400; line-height: 1.25; margin-bottom: 3rem; }
.pricing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 760px; margin: 0 auto; }
.pricing-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; text-align: left; position: relative; }
.pricing-card--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-badge { position: absolute; top: -12px; left: 2rem; background: var(--accent); color: #fff; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.3rem 0.75rem; border-radius: 20px; }
.plan-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--fg); display: block; margin-bottom: 0.75rem; }
.plan-price { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 0.5rem; }
.price-dollars { font-family: var(--font-display); font-size: 2.5rem; color: var(--fg); }
.price-note { font-size: 0.85rem; color: var(--fg-light); }
.plan-desc { font-size: 0.85rem; color: var(--fg-light); margin-bottom: 1.5rem; line-height: 1.5; }
.plan-features { list-style: none; }
.plan-features li { font-size: 0.85rem; color: var(--fg); padding: 0.4rem 0; border-bottom: 1px solid var(--border); display: flex; gap: 0.6rem; }
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before { content: ''; display: inline-block; width: 14px; height: 14px; background: var(--accent); border-radius: 50%; flex-shrink: 0; margin-top: 0.25rem; }

/* === CLOSING === */
.closing { background: var(--bg-dark); color: #fff; padding: 6rem 2rem; text-align: center; }
.closing-inner { max-width: 720px; margin: 0 auto; }
.closing h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 400; line-height: 1.25; margin-bottom: 1.5rem; color: #fff; }
.closing p { font-size: 1.05rem; color: #A8B4C4; line-height: 1.7; max-width: 580px; margin: 0 auto; }

/* === FOOTER === */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.1rem; color: var(--fg); }
.footer-copy { font-size: 0.8rem; color: var(--fg-light); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-score-display { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .ds-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-inner { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 3rem 1.25rem; }
  .features-grid { grid-template-columns: 1fr; }
  .ds-grid { grid-template-columns: 1fr; }
  .calc-cards { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-modes { flex-direction: column; }
}