:root {
  --ink: #00324c;
  --navy: #003a56;
  --navy-mid: #004d6e;
  --paper: #f3f7fa;
  --paper-2: #e6eef3;
  --cyan: #00a8d8;
  --muted: #4a6b7c;
  --line: rgba(0, 58, 86, 0.12);
  --line-dark: rgba(243, 247, 250, 0.22);
  --display: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --sans: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --max: 72rem;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; letter-spacing: -0.03em; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.dot-field {
  background-image: radial-gradient(circle, #00a8d8 1px, transparent 1.15px);
  background-size: 22px 22px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 247, 250, 0.92);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4rem;
}
.logo-h { height: 2.5rem; width: auto; }
.logo-icon { height: 2.25rem; width: auto; }
.nav-desk {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.nav-desk a {
  display: inline-block;
  margin: 0;
  padding: 0.25rem 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-desk a:hover { color: var(--ink); }
.header-actions { display: none; align-items: center; gap: 1.5rem; }
.header-actions .portal { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border: 1px solid var(--line);
  background: transparent; border-radius: 6px; color: var(--ink); cursor: pointer;
}
.nav-mob { display: none; border-top: 1px solid var(--line); padding: 1rem 1.25rem 1.25rem; }
.nav-mob.open { display: flex; flex-direction: column; }
.nav-mob a { min-height: 2.75rem; display: flex; align-items: center; text-decoration: none; font-weight: 500; }

@media (min-width: 1024px) {
  .nav-desk, .header-actions { display: flex; }
  .menu-btn, .nav-mob { display: none !important; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .nav-desk { gap: 1rem; }
  .header-actions .portal { display: none; }
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 1.25rem; border-radius: 6px;
  font-size: 0.875rem; font-weight: 500; text-decoration: none; border: 0; cursor: pointer;
  font-family: inherit; transition: background 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.96); }
.btn-paper { background: var(--paper); color: var(--navy); }
.btn-paper:hover { background: #fff; }
.btn-ink { background: var(--navy); color: var(--paper); }
.btn-ink:hover { background: var(--navy-mid); }
.btn-outline { background: transparent; color: var(--paper); border: 1px solid rgba(255,255,255,0.55); }
.btn-row { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.75rem; }
@media (min-width: 640px) { .btn-row { flex-direction: row; align-items: center; } }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--paper);
  padding: 5.5rem 0 0;
}
.hero .dots { position: absolute; inset: 0; opacity: 0.14; pointer-events: none; }
.hero-inner { position: relative; padding-bottom: 3.75rem; }
.kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan); margin: 0;
}
.hero h1 {
  margin: 1.5rem 0 0; font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.98; font-weight: 600; max-width: 16ch;
}
.lede { margin: 1.75rem 0 0; max-width: 38rem; color: rgba(243, 247, 250, 0.82); font-size: 1.125rem; line-height: 1.7; }
.strip {
  position: relative;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem;
  padding: 1.35rem 0 1.5rem;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(243, 247, 250, 0.62);
}
.strip .hi { color: rgba(243, 247, 250, 0.78); }

.page-hero { position: relative; overflow: hidden; background: var(--navy); color: var(--paper); padding: 5rem 0 6rem; border-bottom: 1px solid var(--line); }
.page-hero .dots { position: absolute; inset: 0; opacity: 0.12; pointer-events: none; }
.page-hero h1 { margin: 1.25rem 0 0; font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.05; max-width: 20ch; }

/* Sections */
.section { padding: 5rem 0; }
.section-head { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.tiles { margin-top: 3rem; display: grid; gap: 1px; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: var(--line); }
@media (min-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { background: var(--paper); padding: 2rem; }
.num { font-family: var(--display); font-size: 0.75rem; letter-spacing: 0.18em; color: var(--cyan); margin: 0; }
.tile h3 { margin: 1rem 0 0; font-size: 1.25rem; }
.muted { color: var(--muted); }
.tiny { font-size: 1rem; line-height: 1.65; }

.navy-band { position: relative; overflow: hidden; background: var(--navy); color: var(--paper); padding: 5rem 0; }
.navy-band .dots { position: absolute; inset: 0; opacity: 0.1; pointer-events: none; }
.navy-grid { position: relative; display: grid; gap: 3rem; }
@media (min-width: 1024px) { .navy-grid { grid-template-columns: 7fr 5fr; } }
.ghost { color: rgba(243, 247, 250, 0.35); font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; margin: 0.5rem 0 0; letter-spacing: -0.03em; }
.ghost.hi { color: var(--cyan); margin-top: 0; }

.two { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .two { grid-template-columns: 5fr 7fr; } }

.rows { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.row { display: grid; gap: 1rem; padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
@media (min-width: 768px) {
  .row { grid-template-columns: 5rem 1fr 1.4fr; gap: 2rem; }
  .row h2 { margin: 0; font-size: 1.5rem; }
}

#identity { background: var(--paper-2); border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.steps { margin-top: 3.5rem; display: grid; gap: 3rem; }
.step { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .step { grid-template-columns: 7rem 1fr; gap: 2.5rem; } }
.scope { margin: 3.5rem 0 0; padding: 0; list-style: none; }
.scope li { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.875rem; }
.scope strong { color: var(--ink); font-weight: 500; }

.faq dt { font-family: var(--display); font-size: 1.125rem; font-weight: 600; margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.faq dd { margin: 0.5rem 0 2rem; color: var(--muted); font-size: 0.875rem; }

/* Form */
.lead-form, .lead-ok {
  background: var(--paper-2); border-radius: 10px; padding: 2rem;
}
.fields { display: grid; gap: 1rem; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } }
.span-2 { grid-column: 1 / -1; }
.lead-form label { display: grid; gap: 0.4rem; font-size: 0.875rem; font-weight: 500; }
.lead-form input, .lead-form select, .lead-form textarea {
  min-height: 3rem; width: 100%; border: 0; border-radius: 6px;
  background: var(--paper); padding: 0 0.75rem; color: var(--ink);
  font: inherit; box-shadow: 0 0 0 1px var(--line);
}
.lead-form textarea { padding: 0.75rem; min-height: 7rem; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: 2px solid var(--navy); outline-offset: 0;
}
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.75rem; color: var(--muted); margin: 0.75rem 0 0; }
.form-err { color: var(--muted); font-size: 0.875rem; margin: 0.75rem 0 0; }

.contact-meta { display: grid; gap: 2rem; }
@media (min-width: 1024px) {
  .contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
}
.contact-meta a { font-weight: 500; }

/* Footer */
.site-footer { background: var(--navy); color: var(--paper); }
.footer-grid { display: grid; gap: 3rem; padding: 4rem 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.wordmark-inv { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.wordmark-inv .g { font-family: var(--display); font-size: 1.125rem; font-weight: 600; line-height: 1; }
.wordmark-inv .t { font-size: 11px; font-weight: 500; letter-spacing: 0.04em; color: var(--cyan); }
.footer-grid ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.footer-grid li { margin: 0 0 0.65rem; }
.footer-grid a { color: rgba(243, 247, 250, 0.78); text-decoration: none; font-size: 0.875rem; }
.footer-grid a:hover { color: var(--paper); }
.sub { padding-left: 0.75rem; color: rgba(243, 247, 250, 0.55) !important; }
.legal {
  border-top: 1px solid var(--line-dark);
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1.25rem 0; font-size: 11px; letter-spacing: 0.04em;
  color: rgba(243, 247, 250, 0.45);
}
@media (min-width: 768px) { .legal { flex-direction: row; justify-content: space-between; align-items: center; } }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
