:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --ink: #142033;
  --muted: #56637a;
  --blue: #0a7cc4;
  --blue-2: #00a0e3;
  --maroon: #9b1b4d;
  --line: #dfe7f0;
  --on-accent: #ffffff;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1420;
    --surface: #151f2e;
    --ink: #eaf1fa;
    --muted: #a3b1c6;
    --blue: #38b2f0;
    --blue-2: #5cc6f5;
    --maroon: #e0628f;
    --line: #243246;
    --on-accent: #06121f;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
h1, h2, h3, h4 { font-family: Montserrat, Inter, sans-serif; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.15rem; }
.brand b { color: var(--maroon); }
.brand img { width: 62px; height: auto; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
nav li { position: relative; }
nav a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
nav a:hover, nav a.active { color: var(--blue); }
.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px rgba(10, 40, 80, .14); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: flex; }
.sub a { font-size: .92rem; padding: 8px 12px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 8px 14px; font: inherit; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; background: linear-gradient(90deg, var(--blue-2), var(--blue)); color: var(--on-accent); font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--maroon); }
.btn-ghost:hover { background: var(--maroon); color: #fff; }

/* Home */
.hero { padding: clamp(64px, 10vw, 128px) 0; background:
  radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--blue-2) 28%, transparent), transparent 45%),
  radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--maroon) 18%, transparent), transparent 40%), var(--bg); }
.hero h1 span { color: var(--maroon); }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 600; color: var(--blue); margin: 0 0 .8rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 680px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; padding: 56px 0 80px; }
.tile { display: block; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); border-top: 4px solid var(--blue); transition: transform .15s, box-shadow .15s; }
.tile:nth-child(even) { border-top-color: var(--maroon); }
.tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10, 40, 80, .12); }
.tile p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Inner pages */
.page-hero { padding: clamp(40px, 7vw, 72px) 0 clamp(24px, 4vw, 40px); background: linear-gradient(180deg, color-mix(in srgb, var(--blue-2) 14%, var(--bg)), var(--bg)); }
.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; padding: 24px 0 80px; }
.prose { max-width: 720px; }
.prose p, .prose li { color: var(--ink); }
.prose img { border-radius: var(--radius); margin: 0 0 1.2rem; }
.cta-inline { margin-top: 2rem; }
.related { align-self: start; position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.related h3 { font-size: 1rem; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related a { display: block; padding: 6px 0; text-decoration: none; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 1.5rem 0 2rem; }
.contact-card { display: block; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.contact-card span { display: block; color: var(--muted); font-size: .85rem; }
.contact-card strong { font-size: 1.15rem; color: var(--blue); }
.social a { margin-right: 14px; white-space: nowrap; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 32px; }
.site-footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

@media (max-width: 900px) {
  .page-body { grid-template-columns: 1fr; }
  .related { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  nav.open { display: block; }
  nav ul { flex-direction: column; }
  .sub { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
}
