/* ═══════════════════════════════════════════════════════════════
   ARAM ALGORITHM — SHARED DESIGN SYSTEM v2.0
   Premium legal-tech. Litigation infrastructure.
═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --primary: #0F1115;
  --navy: #1B2A4A;
  --navy-mid: #2C3E6B;
  --navy-faint: #E8ECF2;
  --navy-dim: rgba(27,42,74,0.08);
  --ink: #0E0F11;
  --paper: #FAFAF7;
  --warm: #F2EFEB;
  --surface: #FFFFFF;
  --fog: #F6F7F9;
  --red: #8B2500;
  --red-bg: #FDF0EC;
  --green: #1A5632;
  --green-bg: #EAF5EE;
  --amber: #8B6914;
  --amber-bg: #FDF6E8;
  --amber-bright: #C8920A;
  --slate: #3D4452;
  --muted: #6B7280;
  --rule: #DDD9D3;
  --rule-light: #EDEAE5;
  --dark: #0F1218;
  --dark-mid: #1A1F2B;
  --dark-border: #252B38;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --max-w: 1200px;
  --text-w: 720px;
  --radius: 2px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[id] { scroll-margin-top: 5rem; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── TYPOGRAPHY SCALE ── */
.t-hero {
  font-family: var(--heading);
  font-size: clamp(3rem, 6vw, 5.25rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.t-h1 {
  font-family: var(--heading);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.t-h2 {
  font-family: var(--heading);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.18;
  font-weight: 700;
}
.t-h3 {
  font-family: var(--heading);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.25;
  font-weight: 700;
}
.t-eye {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--navy);
}
.t-eye--amber { color: var(--amber-bright); }
.t-eye--muted { color: var(--muted); }
.t-body { font-size: 1rem; line-height: 1.72; color: var(--slate); }
.t-small { font-size: 0.875rem; line-height: 1.65; color: var(--slate); }
.t-caption { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.t-mono { font-family: var(--mono); }

/* ── STATUTE BADGE ── */
.statute {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--fog);
  border: 1px solid var(--rule);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.statute-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.statute-row .statute { font-size: 0.72rem; }

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--rule);
  max-width: var(--max-w);
  margin: 0 auto;
}
.divider--full { max-width: 100%; }

.evidence-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  margin: 2rem 0;
}
.evidence-divider::before,
.evidence-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ── GATE MARKERS ── */
.gate-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--rule);
  color: var(--navy);
  background: var(--navy-faint);
  border-radius: var(--radius);
}

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 250, 247, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.2s;
}
.site-nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.nav-left { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.nav-logo { height: 40px; width: auto; display: block; }
.nav-badge {
  font-family: var(--mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: var(--warm);
  border: 1px solid var(--rule);
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.15s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-cta {
  background: var(--amber-bright) !important;
  color: #fff !important;
  padding: 0.5rem 1.1rem !important;
  font-weight: 700 !important;
  font-size: 0.76rem !important;
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: background 0.15s, transform 0.15s !important;
  border-radius: var(--radius);
}
.nav-cta:hover { background: #B07A08 !important; transform: translateY(-1px); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.25rem; }
.hamburger svg { display: block; width: 22px; height: 22px; color: var(--slate); }

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 18, 24, 0.98);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav-logo { margin-bottom: 2.5rem; }
.mobile-nav-logo img { height: 36px; mix-blend-mode: screen; opacity: 0.9; }
.mobile-nav a {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 2rem;
  transition: color 0.15s;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav a:hover { color: #fff; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .mobile-cta {
  margin-top: 1.5rem;
  background: var(--amber-bright);
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 700;
  border: none;
}
.mobile-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  background: none; border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s;
  border-radius: var(--radius);
  cursor: pointer;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  font-size: 0.92rem;
  padding: 0.9rem 2rem;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  font-size: 0.88rem;
  color: var(--slate);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  border-radius: 0;
  background: transparent;
}
.btn-secondary:hover { color: var(--navy); border-color: var(--navy); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--slate);
  font-size: 0.85rem;
  padding: 0.75rem 1.4rem;
}
.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-amber {
  background: var(--amber-bright);
  color: #fff;
  font-size: 0.92rem;
  padding: 0.9rem 2rem;
}
.btn-amber:hover {
  background: #B07A08;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.cta-group { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }

/* ── SECTION LAYOUT ── */
.section { padding: 5.5rem 2rem; }
.section--sm { padding: 3.5rem 2rem; }
.section--dark { background: var(--dark); }
.section--fog { background: var(--fog); }
.section--surface { background: var(--surface); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-header { margin-bottom: 3rem; }
.section-header .t-eye { display: block; margin-bottom: 0.75rem; }
.section-header .t-h2 { max-width: var(--text-w); }

/* ── CARD COMPONENTS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card--flat:hover { transform: none; box-shadow: none; }

/* ── STAT BIG ── */
.stat-big {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-big__num {
  font-family: var(--mono);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
}
.stat-big__num--red { color: var(--red); }
.stat-big__num--amber { color: var(--amber); }
.stat-big__num--green { color: var(--green); }
.stat-big__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ── VERDICT BADGES ── */
.v-tag {
  font-family: var(--mono);
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  white-space: nowrap;
}
.v-tag--nd { background: var(--red-bg); color: var(--red); }
.v-tag--ind { background: var(--amber-bg); color: var(--amber); }
.v-tag--def { background: var(--green-bg); color: var(--green); }

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--dark-border);
  padding: 4rem 2rem 2.5rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--dark-border);
  margin-bottom: 2rem;
}
.footer-brand {}
.footer-logo { height: 38px; width: auto; max-width: 180px; object-fit: contain; mix-blend-mode: screen; opacity: 0.85; margin-bottom: 1rem; }
.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 280px;
}
.footer-statutes {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer-statutes span {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
.footer-col-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.2);
  line-height: 1.7;
}
.footer-disclaimer {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(255,255,255,0.15);
  text-align: right;
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .section { padding: 4rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-disclaimer { text-align: center; }
  .nav-links { display: none; }
  .hamburger { display: block; }
}
@media (max-width: 600px) {
  .section { padding: 3rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-inner { padding: 0.75rem 1.25rem; }
  .t-hero { font-size: 2.75rem; }
}

/* ── SHARED SCROLL SCRIPT DATA ── */
