:root {
  color-scheme: light;
  --ink: #17233a;
  --muted: #5f6c80;
  --paper: #f5f7fb;
  --surface: #ffffff;
  --accent: #1769aa;
  --accent-dark: #0f4f82;
  --line: #dce3ed;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #edf3fa 0, var(--paper) 360px);
  line-height: 1.65;
}

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

.site-header,
footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header { min-height: 76px; border-bottom: 1px solid rgba(23, 35, 58, 0.12); }
.brand { color: var(--ink); font-weight: 800; letter-spacing: 0.08em; text-decoration: none; }
nav { display: flex; gap: 22px; }
nav a { color: var(--muted); font-weight: 650; text-decoration: none; }
nav a[aria-current="page"] { color: var(--ink); }

main { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.hero { padding: 96px 0 76px; max-width: 850px; }
.eyebrow { margin: 0 0 14px; color: var(--accent-dark); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { margin: 0; max-width: 850px; font-size: clamp(2.55rem, 7vw, 5.25rem); line-height: 0.98; letter-spacing: -0.055em; }
.lede { max-width: 760px; margin: 26px 0 0; color: var(--muted); font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 34px; }
.button { display: inline-block; padding: 12px 18px; border-radius: 9px; color: white; background: var(--accent-dark); font-weight: 750; text-decoration: none; }
.button:hover { color: white; background: var(--accent); }
.text-link { font-weight: 700; }

.panel { margin-bottom: 76px; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, 0.84); box-shadow: 0 20px 50px rgba(34, 62, 96, 0.08); }
.panel h2 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid h3 { margin-bottom: 6px; }
.grid p { margin: 0; color: var(--muted); }

.document { max-width: 820px; padding: 76px 0 92px; }
.document h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
.document h2 { margin: 42px 0 8px; font-size: 1.28rem; }
.document p:not(.eyebrow):not(.lede) { color: #3f4d61; }

footer { min-height: 100px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }

@media (max-width: 720px) {
  .site-header, footer { width: min(calc(100% - 28px), var(--max)); }
  main { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding-top: 68px; }
  .grid { grid-template-columns: 1fr; }
  .panel { padding: 24px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; }
}

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