/* =========================================
   CaseVault Landing Page
   Legal command center — warm authority
   ========================================= */

:root {
  --bg: #faf9f6;
  --bg-alt: #f2efe8;
  --nav-bg: #0f1c2e;
  --text: #1a2b3c;
  --text-muted: #6b7a8a;
  --accent: #c8956c;
  --accent-warm: #f5a623;
  --divider: #e0dbd3;
  --card-bg: #ffffff;
  --tag-email: #8baac8;
  --tag-text: #7a9e7a;
  --tag-call: #9b8ab8;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.nav-badge {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent-warm);
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.25);
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-security {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  transition: color 0.15s, border-color 0.15s;
}
.nav-security:hover { color: #ffffff; border-color: rgba(255,255,255,0.4); }
.nav-cta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--nav-bg);
  background: var(--accent-warm);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-cta:hover { background: #e09510; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  padding: 120px 2rem 80px;
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 40%, rgba(200,149,108,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(139,170,200,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 1.25rem;
}
.hero-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  max-width: 42ch;
  margin-bottom: 3rem;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.meta-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.meta-num {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
}
.meta-desc {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.3;
  max-width: 14ch;
}
.meta-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* Case Timeline Widget */
.case-timeline {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
}
.case-timeline::before {
  content: '';
  position: absolute;
  left: 2.5rem;
  top: 2rem;
  bottom: 2rem;
  width: 1px;
  background: rgba(255,255,255,0.08);
}
.timeline-item {
  display: grid;
  grid-template-columns: 3rem 1.25rem 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
}
.tl-date {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
  text-align: right;
  letter-spacing: 0.03em;
}
.tl-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.tl-email { background: var(--tag-email); box-shadow: 0 0 0 3px rgba(139,170,200,0.2); }
.tl-text { background: var(--tag-text); box-shadow: 0 0 0 3px rgba(122,158,122,0.2); }
.tl-meeting { background: var(--accent-warm); box-shadow: 0 0 0 3px rgba(245,166,35,0.2); }
.tl-journal { background: var(--accent); box-shadow: 0 0 0 3px rgba(200,149,108,0.2); }
.tl-phone { background: var(--tag-call); box-shadow: 0 0 0 3px rgba(155,138,184,0.2); }
.tl-content {
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
}
.tl-type {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1px;
}
.tl-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.35;
}

/* ---- DIFFERENTIATORS ---- */
.diff {
  padding: 100px 2rem;
  background: var(--bg);
}
.diff-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.diff-header {
  margin-bottom: 4rem;
}
.diff-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.diff-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--divider);
  border: 1px solid var(--divider);
  border-radius: 12px;
  overflow: hidden;
}
.diff-card {
  background: var(--card-bg);
  padding: 2.5rem 2rem;
}
.diff-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.diff-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.diff-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- FEATURES ---- */
.features {
  padding: 80px 2rem;
  background: var(--bg-alt);
}
.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.features-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
  text-align: center;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--divider);
  border: 1px solid var(--divider);
  border-radius: 12px;
  overflow: hidden;
}
.feat {
  background: var(--card-bg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.feat-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}
.feat-tag-email { background: rgba(139,170,200,0.15); color: var(--tag-email); }
.feat-tag-text { background: rgba(122,158,122,0.15); color: var(--tag-text); }
.feat-tag-call { background: rgba(155,138,184,0.15); color: var(--tag-call); }
.feat-icon-rune { margin-bottom: 0.5rem; }
.feat h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.feat p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- MANIFESTO ---- */
.manifesto {
  padding: 100px 2rem;
  background: var(--nav-bg);
}
.manifesto-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.manifesto-stat {
  border-left: 3px solid var(--accent-warm);
  padding-left: 2rem;
}
.manifesto-num {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-warm);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.manifesto-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}
.manifesto-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.manifesto-text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
}
.manifesto-text p:first-child {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: #ffffff;
  font-style: italic;
  font-weight: 400;
}

/* ---- CLOSING ---- */
.closing {
  padding: 100px 2rem;
  background: var(--bg);
}
.closing-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.closing-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.closing-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 52ch;
  margin: 0 auto 2.5rem;
}
.closing-cta {
  display: inline-block;
  background: var(--accent-warm);
  color: var(--nav-bg);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: background 0.15s;
}
.closing-cta:hover { background: #e09510; }
.landing-disclaimer-box {
  background: #fff7ed;
  border: 2px solid #fed7aa;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: #92400e;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 auto 2rem;
  text-align: center;
}
.landing-disclaimer-box strong { color: #7c2d12; }
.closing-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.closing-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--divider);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--nav-bg);
  padding: 40px 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.footer-logo {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
}
.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  text-align: right;
}
.footer-legal-disclaimer {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
}
.footer-legal-disclaimer strong { color: rgba(255,255,255,0.6); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .hero-meta { flex-wrap: wrap; }
  .diff-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 100px 1.25rem 60px; }
  .diff, .features, .manifesto, .closing { padding: 60px 1.25rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { align-items: flex-start; text-align: left; }
}