:root {
  --bg: #0b1220;
  --panel: #111827;
  --panel-2: #172033;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --text: #0f172a;
  --text-soft: #475569;
  --text-inverse: #e5edf8;
  --muted-inverse: #9fb0c8;
  --line: #d9e2ec;
  --line-dark: #273245;
  --brand: #0f4c81;
  --brand-2: #1d6fb8;
  --accent: #dbeafe;
  --success: #0f766e;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.58;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding-left: 1.2rem; }
li + li { margin-top: .45rem; }

.site-shell { min-height: 100vh; }
.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--brand-2);
  display: inline-block;
}

h1, h2, h3, h4 {
  margin: 0 0 1rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); }
.lead {
  font-size: clamp(1.08rem, 1.9vw, 1.3rem);
  color: var(--text-soft);
  max-width: 52rem;
}
.small { font-size: .95rem; color: var(--text-soft); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 226, 236, .75);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .95rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--brand), #071a2f);
  color: white;
  display: grid;
  place-items: center;
  font-size: 1rem;
  box-shadow: var(--shadow);
}
.brand-copy span { display: block; }
.brand-copy .title { font-size: 1.05rem; }
.brand-copy .tag { font-size: .8rem; color: var(--text-soft); font-weight: 600; }
.nav-toggle {
  border: 0;
  background: transparent;
  font: inherit;
  display: none;
  padding: .35rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  border-radius: 999px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
.site-nav a {
  color: var(--text-soft);
  font-weight: 600;
  padding: .45rem .1rem;
  border-bottom: 2px solid transparent;
}
.site-nav a.active,
.site-nav a:hover { color: var(--text); border-color: var(--brand); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.15rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff !important;
  border: 0 !important;
}

main { overflow: clip; }
.page-hero {
  padding: 5rem 0 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items: stretch;
}
.hero-copy {
  padding: 1rem 0;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.stat-card,
.card,
.panel,
.note,
.form-card,
.image-slot,
.quote-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.stat-card {
  padding: 1.15rem 1rem;
}
.stat-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: .3rem;
}
.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.7rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--text);
  color: white;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
}
.btn-secondary {
  background: white;
  color: var(--text);
  border-color: var(--line);
}
.btn-link {
  color: var(--brand);
  font-weight: 700;
}
.hero-visual,
.section-visual {
  height: 100%;
}
.image-slot {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: .85rem;
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(29,111,184,.18), transparent 32%),
    radial-gradient(circle at 90% 15%, rgba(15,76,129,.16), transparent 32%),
    linear-gradient(160deg, #eff6ff, #f8fafc 48%, #eef2ff);
}
.image-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,.1), rgba(255,255,255,0));
  pointer-events: none;
}
.image-slot::after {
  content: attr(data-image);
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(15,76,129,.14);
}
.image-slot h3,
.image-slot p { position: relative; z-index: 1; }
.image-slot h3 { margin-bottom: .35rem; }
.image-slot .small { max-width: 30rem; }
.image-slot.tall { min-height: 480px; }
.image-slot.compact { min-height: 280px; }
.image-slot.dark {
  background:
    radial-gradient(circle at 15% 15%, rgba(37,99,235,.22), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(14,165,233,.18), transparent 30%),
    linear-gradient(160deg, #0f172a, #111827 50%, #0b1220);
  color: var(--text-inverse);
  border-color: var(--line-dark);
}
.image-slot.dark .small { color: var(--muted-inverse); }

.image-slot.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-color: rgba(15, 23, 42, 0.08);
}
.image-slot.has-image::after {
  display: none;
}
.image-slot.has-image > * {
  display: none;
}
.image-slot.has-image::before {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(15,23,42,.14));
}
.image-slot.dark.has-image::before {
  background: linear-gradient(180deg, rgba(15,23,42,.08), rgba(2,8,23,.42));
}

.page-section {
  padding: 4.2rem 0;
}
.page-section.alt { background: var(--surface-2); }
.page-section.dark {
  background: linear-gradient(160deg, var(--bg), #0f172a 50%, #101b30);
  color: var(--text-inverse);
}
.page-section.dark .lead,
.page-section.dark .small,
.page-section.dark p { color: var(--muted-inverse); }
.page-section.dark .card,
.page-section.dark .panel,
.page-section.dark .note,
.page-section.dark .form-card,
.page-section.dark .quote-box {
  background: rgba(17, 24, 39, .68);
  border-color: var(--line-dark);
  color: var(--text-inverse);
  box-shadow: none;
}
.page-section.dark .btn-secondary {
  background: transparent;
  border-color: rgba(159,176,200,.45);
  color: var(--text-inverse);
}
.section-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
}
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card,
.panel,
.note,
.form-card,
.quote-box {
  padding: 1.35rem;
}
.card h3,
.panel h3,
.note h3,
.form-card h3 { margin-bottom: .75rem; }
.card p:last-child,
.panel p:last-child,
.note p:last-child,
.form-card p:last-child { margin-bottom: 0; }
.card ul,
.panel ul { color: var(--text-soft); }
.kicker {
  display: inline-flex;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--brand);
  font-weight: 700;
  font-size: .8rem;
  margin-bottom: .8rem;
}
.checklist {
  display: grid;
  gap: .65rem;
  padding: 0;
  list-style: none;
}
.checklist li {
  position: relative;
  padding-left: 1.55rem;
}
.checklist li::before {
  content: "•";
  position: absolute;
  left: .2rem;
  color: var(--brand-2);
  font-size: 1.1rem;
}
.callout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 1.5rem;
  align-items: start;
}
.quote-box {
  background: linear-gradient(160deg, #f8fafc, #eef4fb);
}
.quote-box blockquote {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  line-height: 1.5;
  letter-spacing: -.02em;
}
.quote-box cite {
  font-style: normal;
  color: var(--text-soft);
  font-weight: 600;
}
.table-like {
  display: grid;
  gap: .8rem;
}
.row-like {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.row-like:first-child { border-top: 0; padding-top: 0; }
.row-like strong { display: block; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 1.25rem;
}
form { display: grid; gap: .95rem; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .95rem;
}
label {
  display: grid;
  gap: .45rem;
  font-weight: 600;
  font-size: .95rem;
}
input, textarea, select {
  width: 100%;
  font: inherit;
  color: var(--text);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: .9rem .95rem;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(29,111,184,.18);
  border-color: var(--brand-2);
}
.footer {
  padding: 2.4rem 0 3rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr .9fr;
  gap: 1.5rem;
}
.footer-links {
  display: grid;
  gap: .55rem;
}
.footer-links a { color: var(--text-soft); }
.footer-links a:hover { color: var(--text); }
.footer-note {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: .92rem;
}
.hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .contact-grid,
  .footer-grid,
  .callout-grid,
  .grid.four {
    grid-template-columns: 1fr;
  }
  .grid.three { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .row-like { grid-template-columns: 1fr; }
  .section-header { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar-inner { min-height: 74px; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + .5rem);
    right: 1rem;
    left: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.open { display: flex; }
  .hero-meta,
  .grid.two,
  .grid.three,
  .form-grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: 3.8rem; }
  .container { width: min(calc(100% - 1.25rem), var(--max)); }
}
