:root {
  --brand: #1e73be;
  --brand-dark: #125a9a;
  --brand-light: #e9f4fc;
  --accent: #61ce70;
  --ink: #0f2233;
  --text: #3a4a57;
  --muted: #6b7a86;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --line: #e1e8ee;
  --warn: #fff4e5;
  --warn-ink: #8a4b00;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 34, 51, 0.08);
  --max: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eaf2f8;
    --text: #c5d2dc;
    --muted: #97a7b3;
    --bg: #0c1822;
    --bg-alt: #112231;
    --line: #22364a;
    --brand-light: #15324c;
    --warn: #3b2a12;
    --warn-ink: #ffd49a;
  }
}

:root[data-theme="dark"] {
  --ink: #eaf2f8;
  --text: #c5d2dc;
  --muted: #97a7b3;
  --bg: #0c1822;
  --bg-alt: #112231;
  --line: #22364a;
  --brand-light: #15324c;
  --warn: #3b2a12;
  --warn-ink: #ffd49a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.skip {
  position: absolute; left: 16px; top: -48px; background: var(--brand); color: #fff;
  padding: 8px 12px; border-radius: 8px; z-index: 100;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1rem; }
.brand img { width: 46px; height: auto; }
.brand strong { color: var(--brand); }

.menu-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
}
.bars, .bars::before, .bars::after {
  display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
}
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }

.site-nav { display: flex; align-items: center; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav ul a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 500;
}
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { background: var(--brand-light); color: var(--brand-dark); }
.site-nav a.btn-small { margin-left: 10px; white-space: nowrap; }

@media (max-width: 1120px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px;
    box-shadow: var(--shadow); flex-direction: column; align-items: stretch;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; justify-content: flex-start; }
  .site-nav a.btn-small { display: inline-block; margin: 12px 0 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-block; background: var(--brand); color: #fff !important; border: 0;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease;
  box-shadow: 0 6px 18px rgba(30, 115, 190, 0.25);
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-small { padding: 9px 18px; font-size: 0.92rem; box-shadow: none; }
.btn-ghost {
  background: transparent; color: var(--brand) !important; box-shadow: none;
  border: 2px solid var(--brand);
}
.btn-ghost:hover { background: var(--brand-light); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.page-hero {
  padding: 64px 0 48px;
  background: linear-gradient(135deg, var(--brand-light), var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero { padding: 72px 0 56px; background: linear-gradient(160deg, var(--brand-light) 0%, var(--bg) 60%); }
.hero-grid, .split, .two-col {
  display: grid; gap: 40px; align-items: center;
}
.hero-grid { grid-template-columns: 1.1fr 1fr; }
.split { grid-template-columns: 1fr 1fr; }
.two-col { grid-template-columns: 1fr 1fr; align-items: start; }
.hero-img, .split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Cards and panels */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 32px; }
.card {
  display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { color: var(--ink); }
.card p { color: var(--muted); }
.more { margin-top: auto; color: var(--brand); font-weight: 600; }

.panel {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
}
.panel-warn { background: var(--warn); border-color: transparent; color: var(--warn-ink); }
.panel-warn h2 { color: inherit; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative; padding-left: 30px; margin-bottom: 12px;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) radial-gradient(circle, #fff 30%, transparent 32%);
}
.panel-warn .checklist li::before { background: #e67e22; }

.pills { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pills a, .pills li {
  display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--bg);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500;
}
.pills a:hover { border-color: var(--brand); color: var(--brand); }
.pills.big li { font-size: 1.02rem; padding: 14px 22px; }

.steps { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 20px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps span {
  flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.steps h3 { margin-bottom: 4px; }
.callout {
  display: inline-block; padding: 12px 18px; border-radius: 10px;
  background: var(--brand-light); color: var(--brand-dark); font-weight: 600;
}

.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }

/* Form */
.contact-form { display: grid; gap: 16px; margin-top: 24px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand);
}
.field-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.req { color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.contact-form .btn { justify-self: start; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d6e0; padding: 56px 0 0; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-brand { font-size: 1.2rem; color: #fff; }
.footer-brand strong { color: var(--accent); }
.footer-title { font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  margin-top: 40px; padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .88rem;
}
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid, .split, .two-col, .field-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
}
@media (max-width: 480px) {
  .panel { padding: 24px; }
  .btn { width: 100%; text-align: center; }
  .cta-row .btn, .contact-form .btn { width: auto; }
}

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