:root {
  --navy: #1b2a4a;
  --navy-deep: #101b32;
  --red: #c41e3a;
  --red-deep: #94152b;
  --ink: #202632;
  --muted: #667085;
  --paper: #fbfaf8;
  --surface: #ffffff;
  --line: #e3e1dc;
  --soft-navy: #eef2f8;
  --soft-red: #faeef0;
  --green: #176b4d;
  --soft-green: #eaf5ef;
  --amber: #9a5200;
  --soft-amber: #fff4df;
  --shadow: 0 16px 42px rgba(27, 42, 74, 0.09);
  --radius: 14px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -80px; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 255px; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.08; }
.brand-copy strong { color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.02rem; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { text-decoration: none; padding: 10px 12px; border-radius: 8px; color: #3b4350; font-size: .91rem; font-weight: 650; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--soft-navy); color: var(--navy); }
.site-nav .nav-cta { margin-left: 8px; padding-inline: 16px; color: #fff; background: var(--red); box-shadow: 0 6px 18px rgba(196,30,58,.18); }
.site-nav .nav-cta:hover { color: #fff; background: var(--red-deep); }
.mobile-menu { display: none; }

.hero { position: relative; overflow: hidden; padding: 82px 0 68px; background: linear-gradient(125deg, #f4f6fa 0%, #fff 48%, #faeef0 100%); border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; width: 460px; height: 460px; right: -260px; top: -250px; border: 70px solid rgba(196,30,58,.05); border-radius: 50%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 52px; }
.hero-grid > * { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--red-deep); font-size: .74rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.eyebrow-on-dark { color: #ffccd5; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--navy); line-height: 1.14; margin-top: 0; }
h1 { margin-bottom: 20px; max-width: 820px; font-size: clamp(2.55rem, 5vw, 4.7rem); letter-spacing: -.045em; }
.hero p { max-width: 760px; margin: 0; color: #4c5564; font-size: 1.13rem; }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 10px; min-width: 270px; }
.stat { padding: 17px 18px; background: rgba(255,255,255,.82); border: 1px solid rgba(27,42,74,.12); border-radius: 12px; }
.stat strong { display: block; color: var(--navy); font-family: Georgia, serif; font-size: 1.45rem; line-height: 1.1; }
.stat span { display: block; margin-top: 5px; color: var(--muted); font-size: .78rem; line-height: 1.3; }

.section { padding: 68px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 8px; font-size: clamp(1.85rem, 3vw, 2.7rem); letter-spacing: -.025em; }
.section-heading p { max-width: 690px; margin: 0; color: var(--muted); }
.kicker { margin-bottom: 8px; color: var(--red-deep); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 26px; padding: clamp(28px, 5vw, 52px); background: var(--navy); color: #fff; border-radius: 22px; box-shadow: var(--shadow); }
.feature h2, .feature h3 { color: #fff; }
.feature h2 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3.5rem); }
.feature p { max-width: 700px; margin: 0 0 24px; color: #d7deea; }
.feature-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.feature-meta span { padding: 5px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #eef2f8; font-size: .78rem; }
.feature-aside { align-self: stretch; display: grid; align-content: center; gap: 12px; padding: 24px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.13); border-radius: 14px; }
.feature-aside strong { font-family: Georgia, serif; font-size: 1.2rem; }
.feature-aside span { color: #d7deea; font-size: .91rem; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 16px; border: 1px solid var(--navy); border-radius: 8px; background: var(--navy); color: #fff; text-decoration: none; font-size: .9rem; font-weight: 750; line-height: 1.2; }
.button:hover { background: var(--navy-deep); }
.button-red { border-color: var(--red); background: var(--red); }
.button-red:hover { background: var(--red-deep); }
.button-light { border-color: #fff; background: #fff; color: var(--navy); }
.button-light:hover { background: #eef2f8; color: var(--navy); }
.text-link { color: var(--navy); font-weight: 750; text-underline-offset: 3px; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: 25px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); text-decoration: none; box-shadow: 0 8px 25px rgba(27,42,74,.045); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
a.card:hover { transform: translateY(-3px); border-color: #bdc7d7; box-shadow: var(--shadow); }
.card-red { border-top-color: var(--red); }
.card-green { border-top-color: var(--green); }
.card-amber { border-top-color: var(--amber); }
.card h3 { margin-bottom: 11px; font-size: 1.22rem; }
.card p { margin: 0 0 21px; color: var(--muted); font-size: .93rem; line-height: 1.58; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); }
.card-footer small { color: var(--muted); font-size: .76rem; line-height: 1.35; }
.card-arrow { color: var(--red); font-weight: 800; white-space: nowrap; }
.badge { display: inline-flex; width: fit-content; margin-bottom: 14px; padding: 5px 10px; border-radius: 999px; background: var(--soft-navy); color: var(--navy); font-size: .69rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.badge-live { background: var(--soft-green); color: var(--green); }
.badge-draft { background: var(--soft-amber); color: var(--amber); }
.badge-red { background: var(--soft-red); color: var(--red-deep); }

.callout { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px 22px; background: var(--soft-navy); border-left: 4px solid var(--navy); border-radius: 10px; }
.callout strong { color: var(--navy); }
.callout p { margin: 2px 0 0; color: #536071; font-size: .92rem; }
.spaced-callout { margin-top: 28px; }

.library-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.library-nav a { padding: 8px 12px; border: 1px solid #cfd6e2; border-radius: 999px; background: #fff; color: var(--navy); text-decoration: none; font-size: .82rem; font-weight: 700; }
.library-nav a:hover { border-color: var(--navy); }

.site-footer { padding: 38px 0; color: #d7deea; background: var(--navy-deep); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.footer-brand { font-family: Georgia, serif; color: #fff; font-weight: 700; }
.footer-copy { margin-top: 8px; color: #aeb8c8; font-size: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 13px; }
.footer-links a { color: #d7deea; font-size: .78rem; text-underline-offset: 3px; }
.footer-note { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: #aeb8c8; font-size: .8rem; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { cursor: pointer; list-style: none; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--navy); font-weight: 750; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav { position: absolute; right: 0; top: 48px; display: grid; width: min(280px, calc(100vw - 32px)); padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
  .mobile-menu a { padding: 10px 12px; text-decoration: none; border-radius: 7px; }
  .mobile-menu a:hover { background: var(--soft-navy); }
  .hero-grid, .feature { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); min-width: 0; }
  .feature-aside { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 68px; }
  .brand { min-width: 0; }
  .brand img { width: 39px; height: 39px; }
  .brand-copy strong { font-size: .78rem; white-space: nowrap; }
  .brand-copy small { display: none; }
  .hero { padding: 60px 0 48px; }
  h1 { font-size: clamp(2.15rem, 11.5vw, 3rem); overflow-wrap: anywhere; }
  .hero p { font-size: 1rem; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 50px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .feature { padding: 27px 22px; border-radius: 16px; }
  .feature-aside { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--navy);
}
