/* ============================================================
   LegacySure — marketing site design system
   Palette and type derived from the app so site + product read
   as one brand. Motif: "chain of custody" — legacy as a
   documented, deliberate handoff.
   ============================================================ */

:root {
  --navy:        #0A1322;
  --navy-raised: #0E1A2E;
  --navy-card:   #101F38;
  --gold:        #C9963B;
  --gold-bright: #E8B54D;
  --paper:       #F5F2EC;
  --slate:       #8FA3BD;
  --slate-dim:   #5D6E85;
  --line:        rgba(201,150,59,0.18);
  --line-soft:   rgba(255,255,255,0.07);

  --serif: Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fixed shield watermark — always faintly present behind the page as you scroll,
   the brand standing behind everything. Sits below content, above the base bg. */
body::before {
  content: "";
  position: fixed;
  top: 50%; right: -6%;
  transform: translateY(-50%);
  width: min(760px, 66vw);
  height: min(980px, 85vh);
  background: url('assets/shield.png') no-repeat center / contain;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}
/* keep real content above the watermark */
.nav, .hero, .band, .cta-band, .footer, .page-hero { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  body::before { transition: opacity 0.6s; }
}
@media (max-width: 820px) {
  body::before { opacity: 0.03; right: -20%; }
}

/* ---------- shared layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}

section { position: relative; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,19,34,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 7px; flex-shrink: 0;
  background: var(--navy-card);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.brand-mark img { width: 18px; height: auto; display: block; }
.brand-name { font-family: var(--serif); font-size: 19px; font-weight: bold; color: var(--paper); letter-spacing: 0.3px; }
.brand-name span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--slate); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--paper); }
.nav-cta {
  background: var(--gold); color: var(--navy) !important; padding: 9px 18px;
  border-radius: 8px; font-weight: 700 !important; font-size: 13px !important;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--gold-bright); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; color: var(--paper); font-size: 22px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 10px; font-size: 15px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: none;
  font-family: var(--sans); transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--gold); color: var(--navy);
  box-shadow: 0 6px 24px rgba(201,150,59,0.22);
}
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(201,150,59,0.3); }
.btn-ghost {
  background: transparent; color: var(--paper); border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------- hero ---------- */
.hero { padding: 92px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 15%, rgba(201,150,59,0.10), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(30,55,95,0.35), transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 26px;
  font-size: 12px; letter-spacing: 1px; color: var(--gold-bright);
}
.hero h1 {
  font-family: var(--serif); font-weight: bold;
  font-size: clamp(38px, 6.2vw, 66px); line-height: 1.04;
  letter-spacing: -0.5px; margin-bottom: 24px;
}
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero-lede {
  font-size: clamp(17px, 2.2vw, 20px); color: var(--slate);
  max-width: 620px; margin-bottom: 36px; line-height: 1.6;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 13px; color: var(--slate-dim); margin-top: 20px; }

/* "chain of custody" hero manifest strip — the signature element */
.manifest {
  margin-top: 60px; border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, rgba(16,31,56,0.6), rgba(10,19,34,0.3));
}
.manifest-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-bottom: 1px solid var(--line-soft);
  background: rgba(201,150,59,0.05);
}
.manifest-head span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.manifest-head .seal { font-size: 11px; color: var(--slate-dim); letter-spacing: 1px; }
.manifest-row {
  display: grid; grid-template-columns: 44px 1fr auto;
  align-items: center; gap: 16px; padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.manifest-row:last-child { border-bottom: none; }
.manifest-num {
  font-family: var(--serif); font-size: 15px; color: var(--gold);
  border: 1px solid var(--line); border-radius: 6px;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
}
.manifest-label { font-size: 15px; font-weight: 600; color: var(--paper); }
.manifest-label small { display: block; font-size: 12.5px; font-weight: 400; color: var(--slate-dim); margin-top: 2px; }
.manifest-check { font-size: 13px; color: var(--gold-bright); letter-spacing: 1px; }

/* ---------- section shell ---------- */
.band { padding: 84px 0; }
.band-alt { background: var(--navy-raised); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 {
  font-family: var(--serif); font-weight: bold;
  font-size: clamp(28px, 4vw, 42px); line-height: 1.12; margin: 14px 0 16px;
}
.section-head p { color: var(--slate); font-size: 17px; }

/* ---------- feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--navy-card); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 28px; transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: var(--line); transform: translateY(-3px); }
.card-icon {
  width: 46px; height: 46px; border-radius: 10px; margin-bottom: 18px;
  background: rgba(201,150,59,0.1); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.card h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 9px; color: var(--paper); }
.card p { color: var(--slate); font-size: 14.5px; line-height: 1.6; }

/* ---------- audience strip ---------- */
.who { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.who-chip {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 13.5px; color: var(--paper);
  background: rgba(201,150,59,0.04);
}
.who-chip strong { color: var(--gold-bright); font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band {
  padding: 78px 0; text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(201,150,59,0.12), transparent 55%),
    var(--navy-raised);
  border-top: 1px solid var(--line);
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(28px, 4.5vw, 44px); margin-bottom: 16px; line-height: 1.1; }
.cta-band p { color: var(--slate); font-size: 18px; max-width: 540px; margin: 0 auto 32px; }

/* ---------- footer ---------- */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line-soft); background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--slate-dim); font-size: 14px; margin-top: 14px; max-width: 320px; }
.footer-col h4 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--slate); text-decoration: none; font-size: 14px; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--paper); }
.footer-legal {
  border-top: 1px solid var(--line-soft); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: var(--slate-dim);
}
.footer-disclaimer { max-width: 720px; font-size: 12px; color: var(--slate-dim); line-height: 1.6; margin-top: 16px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .manifest-row { grid-template-columns: 40px 1fr; }
  .manifest-check { display: none; }
  .hero { padding: 60px 0 56px; }
  .band { padding: 60px 0; }
}

/* Prominent hero shield emblem */
.hero-shield {
  width: 92px; height: auto; display: block; margin-bottom: 26px;
  filter: drop-shadow(0 8px 28px rgba(201,150,59,0.28));
}
@media (max-width: 820px) { .hero-shield { width: 72px; } }

/* ---------- stakes / metrics band (restrained, sourced) ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.stat {
  background: var(--navy-card); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 26px;
}
.stat-bar {
  height: 6px; border-radius: 999px; background: rgba(255,255,255,0.06);
  overflow: hidden; margin-bottom: 18px;
}
.stat-fill {
  height: 100%; width: var(--pct); border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(0.16,1,0.3,1);
}
.stat.in .stat-fill { transform: scaleX(1); }
.stat-num { font-family: var(--serif); font-size: 46px; font-weight: bold; color: var(--gold); line-height: 1; margin-bottom: 12px; }
.stat-label { font-size: 15px; color: var(--paper); line-height: 1.5; margin-bottom: 12px; }
.stat-src { font-size: 11.5px; color: var(--slate-dim); letter-spacing: 0.3px; }
.stats-foot { text-align: center; margin-top: 36px; color: var(--slate); font-size: 15.5px; font-style: italic; }
@media (prefers-reduced-motion: reduce) { .stat-fill { transition: none; transform: scaleX(1); } }

/* ---------- testimonials (graceful empty state) ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; }
.quote {
  background: var(--navy-card); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 28px; margin: 0;
  position: relative;
}
.quote::before {
  content: "\201C"; font-family: var(--serif); font-size: 60px; color: var(--line);
  position: absolute; top: 8px; left: 18px; line-height: 1;
}
.quote blockquote {
  margin: 0 0 20px; padding-top: 22px; font-size: 15.5px; line-height: 1.6;
  color: var(--slate); font-style: italic;
}
.quote figcaption { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.q-name { font-size: 14px; font-weight: 700; color: var(--gold-bright); }
.q-role { font-size: 12px; color: var(--slate-dim); letter-spacing: 0.5px; }
.quotes-foot { text-align: center; margin-top: 34px; color: var(--slate); font-size: 15px; }
.quotes-foot a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--line); }
.quotes-foot a:hover { color: var(--gold-bright); }

/* ---------- contact / support ---------- */
.contact-card {
  display: grid; grid-template-columns: 72px 1fr; gap: 24px; align-items: center;
  max-width: 640px; background: var(--navy-card); border: 1px solid var(--line);
  border-radius: 16px; padding: 32px;
}
.contact-icon {
  width: 60px; height: 60px; border-radius: 14px; font-size: 28px;
  background: rgba(201,150,59,0.1); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.contact-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.contact-email { font-family: var(--serif); font-size: clamp(18px,3vw,24px); color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-email:hover { color: var(--gold-bright); }
.contact-note { color: var(--slate); font-size: 14px; margin-top: 12px; line-height: 1.6; }
@media (max-width: 620px) { .contact-card { grid-template-columns: 1fr; text-align: left; } }
