:root {
  --navy-900: #0a1628;
  --navy-800: #0f2140;
  --navy-700: #16305a;
  --accent: #0ea5c6;
  --accent-dark: #0b86a2;
  --accent-soft: #e0f5fa;
  --text: #1c2738;
  --muted: #5b6878;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(10, 22, 40, .08);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; color: var(--navy-900); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 22, 40, .97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.3rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
}
.brand-mark .icon { width: 22px; height: 22px; }
.brand-text span { color: var(--accent); }

.main-nav { justify-self: center; }
.main-nav > ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a, .dropdown-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 6px;
  color: #cfd8e3; font: inherit; font-size: .95rem; font-weight: 500;
  background: none; border: 0; cursor: pointer;
}
.main-nav a:hover, .dropdown-toggle:hover,
.main-nav a.active, .dropdown-toggle.active { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.dropdown-toggle svg { transition: transform .2s; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 320px; list-style: none; margin: 0; padding: 8px;
  background: #fff; border-radius: var(--radius); box-shadow: 0 16px 40px rgba(10,22,40,.22);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.dropdown a { display: flex; gap: 10px; color: var(--text); padding: 10px 12px; font-size: .93rem; }
.dropdown a .icon { color: var(--accent); }
.dropdown a:hover { background: var(--accent-soft); color: var(--navy-900); }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.has-dropdown:hover .dropdown-toggle svg,
.has-dropdown.open .dropdown-toggle svg { transform: rotate(180deg); }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 8px;
  font: inherit; font-weight: 600; cursor: pointer; border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* ---------- Hero ---------- */
.hero, .page-hero {
  position: relative; overflow: hidden;
  color: #cfd8e3;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(14,165,198,.25), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(37,99,235,.2), transparent 50%),
    var(--navy-900);
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }
.hero { padding: 110px 0 120px; text-align: center; }
.hero h1, .page-hero h1 { color: #fff; }
.hero h1 span { color: var(--accent); }
.hero .lead { max-width: 720px; margin: 0 auto 2em; }
.lead { font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: .8em; }

.page-hero { padding: 72px 0 64px; }
.page-hero .lead { max-width: 780px; margin: 0; }
.page-hero-title { display: flex; align-items: center; gap: 16px; }
.page-hero-title h1 { margin: 0; }
.hero-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px;
  background: rgba(14,165,198,.15); color: var(--accent); flex-shrink: 0;
}
.hero-icon .icon { width: 30px; height: 30px; }
.page-hero-title + .lead { margin-top: 20px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 1.4em; }
.section-sub { text-align: center; color: var(--muted); max-width: 680px; margin: -1em auto 2.6em; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: -56px; position: relative; z-index: 2;
}
.stat {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; text-align: center;
}
.stat strong { display: block; font-size: 1.9rem; color: var(--navy-900); }
.stat span { color: var(--muted); font-size: .92rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; color: var(--text);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; text-decoration: none; }
.card .card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 18px;
}
.card .card-icon .icon { width: 26px; height: 26px; }
.card p { color: var(--muted); flex: 1; }
.card .more { color: var(--accent-dark); font-weight: 600; font-size: .93rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; margin-bottom: 12px; }
.check-list .icon { color: var(--accent); margin-top: 3px; }

.panel {
  background: var(--navy-900); color: #cfd8e3; border-radius: 14px; padding: 36px;
  background-image: radial-gradient(ellipse at 100% 0%, rgba(14,165,198,.25), transparent 60%);
}
.panel h3 { color: #fff; }
.panel .loc { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.panel .loc .icon { color: var(--accent); margin-top: 4px; }
.panel .loc strong { color: #fff; display: block; }

/* ---------- Service pages ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.offer { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.offer h3 { display: flex; gap: 10px; align-items: flex-start; }
.offer h3 .icon { color: var(--accent); margin-top: 1px; }
.offer p { color: var(--muted); margin: 0; }

.lifecycle {
  list-style: none; padding: 0; margin: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.lifecycle li {
  counter-increment: step; position: relative;
  background: #fff; border-radius: var(--radius); padding: 28px 24px 22px; box-shadow: var(--shadow);
}
.lifecycle li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-weight: 700; color: var(--accent); font-size: .9rem; margin-bottom: 8px;
}
.lifecycle p { color: var(--muted); margin: 0; font-size: .95rem; }

.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tag-list li { background: var(--accent-soft); color: var(--navy-800); border-radius: 999px; padding: 8px 18px; font-weight: 500; font-size: .93rem; }

.cta { background: var(--navy-800); color: #cfd8e3; text-align: center; padding: 72px 0; }
.cta h2 { color: #fff; }
.cta p { max-width: 620px; margin: 0 auto 1.6em; }

/* ---------- Prose (privacy) ---------- */
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy-900); }
.field label .req { color: #d14343; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: 11px 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,165,198,.2);
}
.field-error { color: #d14343; font-size: .85rem; margin-top: 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 8px; padding: 14px 18px; margin-bottom: 22px; }
.alert-success { background: #e7f8ef; color: #17643c; border: 1px solid #b6e5ca; }
.alert-error { background: #fdecec; color: #8f2525; border: 1px solid #f5c2c2; }
.form-note { color: var(--muted); font-size: .85rem; margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #93a1b3; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1.4fr 1fr 1.1fr; gap: 40px; padding-top: 60px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b6c2d1; }
.site-footer a:hover { color: #fff; }
.brand-footer { margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 9px; background: none; border: 0; cursor: pointer; justify-self: end;
  }
  .nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.06);
    display: none; padding: 12px 16px 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 2px; }
  .main-nav a, .dropdown-toggle { width: 100%; padding: 12px; }
  .dropdown {
    position: static; transform: none; min-width: 0; box-shadow: none;
    background: rgba(255,255,255,.04); display: none; opacity: 1; visibility: visible; margin-top: 4px;
  }
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { transform: none; }
  .has-dropdown.open .dropdown { display: block; transform: none; }
  .dropdown a { color: #cfd8e3; }
  .dropdown a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero { padding: 72px 0 96px; }
  .section { padding: 56px 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card, .panel { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .card-grid, .offer-grid { grid-template-columns: 1fr; }
  .page-hero-title { flex-direction: column; align-items: flex-start; }
}
