/* ============================================================
   ReportForge — shared stylesheet
   Classic modern elegant: deep navy + warm gold on ivory
   ============================================================ */

:root {
  --navy-950: #0a0f1c;
  --navy-900: #0f1729;
  --navy-800: #16213a;
  --navy-700: #1e2c4a;
  --ivory: #faf7f1;
  --ivory-dim: #f1ebdd;
  --paper: #fffdf9;
  --gold: #b8934f;
  --gold-light: #d9b876;
  --gold-dim: #e7d3a4;
  --ink: #1b2130;
  --slate: #5c6474;
  --slate-light: #8b93a3;
  --line: rgba(27, 33, 48, 0.1);
  --line-gold: rgba(184, 147, 79, 0.35);
  --shadow-soft: 0 20px 60px rgba(10, 15, 28, 0.08);
  --shadow-card: 0 10px 30px rgba(10, 15, 28, 0.06);
  --radius: 4px;
  --max-width: 1180px;
  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 0.5em;
  color: var(--navy-950);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--slate); }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.lede {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy-950);
  color: var(--ivory);
  border-color: var(--navy-950);
}
.btn-primary:hover { background: var(--navy-800); transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy-950);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--navy-950);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-light {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(250, 247, 241, 0.35);
}
.btn-outline-light:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--navy-950);
}
.brand .mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand .mark svg { width: 100%; height: 100%; }
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-top: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--slate);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--navy-950);
  border-color: var(--gold);
}
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy-950); display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: var(--ivory);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(184,147,79,0.14), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(184,147,79,0.10), transparent 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 32px 100px;
}
.hero h1 { color: var(--paper); max-width: 820px; }
.hero .lede { color: rgba(250,247,241,0.72); font-size: 1.2rem; max-width: 620px; }
.hero .eyebrow { color: var(--gold-light); }
.hero-rule {
  width: 60px; height: 1px; background: var(--line-gold); margin: 28px 0;
}

.stat-strip {
  border-top: 1px solid rgba(250,247,241,0.12);
  margin-top: 64px;
  padding-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-strip .stat-num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.stat-strip .stat-label {
  font-size: 0.82rem;
  color: rgba(250,247,241,0.6);
  letter-spacing: 0.02em;
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-alt { background: var(--ivory-dim); }
.section-dark {
  background: var(--navy-950);
  color: var(--ivory);
}
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark p { color: rgba(250,247,241,0.66); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-gold);
}
.card .icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  color: var(--gold);
  margin-bottom: 22px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--slate); font-size: 0.9rem; }
.card li { margin-bottom: 6px; }

.pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(184,147,79,0.12);
  color: var(--gold);
  border: 1px solid var(--line-gold);
}

/* ---------- Divider / quote ---------- */
.gold-rule { width: 60px; height: 1px; background: var(--gold); margin: 0 auto 28px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-950);
  color: var(--ivory);
  border-radius: var(--radius);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 20%, rgba(184,147,79,0.18), transparent 55%);
}
.cta-band h2 { color: var(--paper); margin-bottom: 8px; }
.cta-band p { color: rgba(250,247,241,0.65); margin: 0; }
.cta-band > div:first-child { position: relative; max-width: 520px; }
.cta-band .btn-row { position: relative; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(250,247,241,0.55);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250,247,241,0.1);
}
.footer-grid .brand { color: var(--paper); margin-bottom: 14px; }
.footer-grid p { color: rgba(250,247,241,0.5); font-size: 0.88rem; }
.footer-col h4 {
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 0.9rem; color: rgba(250,247,241,0.6); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--navy-950), var(--navy-900));
  color: var(--ivory);
  padding: 84px 0 72px;
}
.page-hero h1 { color: var(--paper); max-width: 760px; }
.page-hero .lede { color: rgba(250,247,241,0.68); max-width: 620px; }
.breadcrumb {
  font-size: 0.78rem;
  color: rgba(250,247,241,0.45);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Timeline (case study) ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.timeline .step {
  border-top: 2px solid var(--gold);
  padding-top: 20px;
}
.timeline .step .num {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.two-col.reverse { grid-template-columns: 0.9fr 1.1fr; }

.callout {
  background: var(--ivory-dim);
  border-left: 3px solid var(--gold);
  padding: 26px 28px;
  border-radius: 2px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--navy-950);
}

.limitation-list { list-style: none; margin: 0; padding: 0; }
.limitation-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
}
.limitation-list strong { color: var(--navy-950); font-size: 0.92rem; }
.limitation-list span { color: var(--slate); font-size: 0.92rem; }

/* ---------- Founder cards ---------- */
.founder-card {
  display: flex;
  gap: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: var(--radius);
}
.founder-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.founder-card h3 { margin-bottom: 2px; }
.founder-role { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; display: block; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-detail { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-detail .icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.contact-detail strong { display: block; color: var(--navy-950); font-size: 0.95rem; margin-bottom: 2px; }
.contact-detail span, .contact-detail a { font-size: 0.92rem; color: var(--slate); }

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-950);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.92rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Demo / Dashboard ---------- */
.demo-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.demo-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--ivory-dim);
}
.demo-tab {
  flex: 1;
  padding: 20px 24px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: var(--sans);
}
.demo-tab .tab-title { font-family: var(--serif); font-size: 1.05rem; color: var(--navy-950); display: block; margin-bottom: 3px; }
.demo-tab .tab-sub { font-size: 0.78rem; color: var(--slate-light); }
.demo-tab.active { background: var(--paper); border-bottom-color: var(--gold); }
.demo-tab:not(.active):hover { background: rgba(184,147,79,0.06); }

.demo-body { padding: 36px; }
.demo-panel { display: none; }
.demo-panel.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.filter-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.filter-field { display: flex; flex-direction: column; gap: 6px; min-width: 160px; }
.filter-field label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate-light); font-weight: 600; }
.filter-field select {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.86rem;
  background: var(--ivory);
  color: var(--ink);
  cursor: pointer;
}
.filter-reset {
  font-size: 0.8rem;
  color: var(--gold);
  background: none; border: none; cursor: pointer;
  font-weight: 600;
  padding: 10px 0;
}

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.kpi-card {
  background: var(--navy-950);
  color: var(--ivory);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(184,147,79,0.22), transparent 60%);
}
.kpi-label { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(250,247,241,0.55); margin-bottom: 10px; position: relative; }
.kpi-value { font-family: var(--serif); font-size: 1.7rem; color: var(--paper); position: relative; }
.kpi-delta { font-size: 0.78rem; margin-top: 8px; position: relative; }
.kpi-delta.up { color: #8fd6a8; }
.kpi-delta.down { color: #e69b9b; }

.chart-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-bottom: 24px; }
.chart-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.chart-card h4 { font-family: var(--serif); font-size: 1rem; margin-bottom: 4px; color: var(--navy-950); }
.chart-card .chart-note { font-size: 0.78rem; color: var(--slate-light); margin-bottom: 16px; }
.chart-card canvas { max-height: 260px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.data-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-light);
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.data-table tr:hover td { background: rgba(184,147,79,0.05); }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }

.demo-disclaimer {
  margin-top: 8px;
  padding: 16px 20px;
  background: var(--ivory-dim);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--slate);
  border: 1px dashed var(--line-gold);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero-inner { padding: 80px 24px 64px; }
  .cta-band { padding: 40px 28px; flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .demo-body { padding: 22px; }
  .demo-tab .tab-sub { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .limitation-list li { grid-template-columns: 1fr; gap: 6px; }
}
