:root {
  --navy: #0d1628;
  --navy-2: #13213d;
  --blue: #2a6bd8;
  --blue-dark: #2058b8;
  --blue-light: #4d97f5;
  --ink: #1b2533;
  --muted: #5a6778;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --radius: 12px;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: .8em;
}

/* Accessibility helpers */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: #fff; color: var(--navy); font-weight: 600;
  padding: 12px 18px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.skip-link:focus { top: 12px; }
.visually-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;
}
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.site-header :focus-visible, .hero :focus-visible, .contact :focus-visible, .site-footer :focus-visible { outline-color: var(--blue-light); }
main:focus { outline: none; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid var(--blue);
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--line); }
.btn-small { padding: 9px 18px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13,22,40,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; color: #dbe4f1; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.brand-mark { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 500; }
.nav-links a:not(.btn) { color: #b8c6dc; }
.nav-links a:not(.btn):hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; min-width: 44px; min-height: 44px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }

/* Hero */
.hero {
  padding: 96px 0 0;
  background: radial-gradient(ellipse at 70% 20%, #16274a 0%, var(--navy) 60%, #090f1c 100%);
  color: #fff;
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--blue-light); letter-spacing: .22em; }
.hero .eyebrow span { opacity: .6; margin: 0 .4em; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 1.1rem; color: #b8c6dc; max-width: 560px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
.hero-logo img { width: 100%; height: auto; }
.stats {
  list-style: none; margin-bottom: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin-top: 72px; padding-top: 36px; padding-bottom: 44px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.stat { display: flex; flex-direction: column; border-left: 3px solid var(--blue); padding-left: 18px; }
.stat-num { color: #fff; font-size: 1.5rem; font-weight: 600; }
.stat-label { color: #b8c6dc; font-size: .95rem; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head p:last-child { color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: #fff;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: 0 14px 34px -18px rgba(11,37,69,.3); transform: translateY(-2px); border-color: #cfd8e5; }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: #e8f0fc; display: grid; place-items: center; margin-bottom: 20px;
}
.icon svg, .contact-item svg {
  width: 24px; height: 24px; fill: none; stroke: var(--blue);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.steps p { color: var(--muted); margin: 0; }
.step-num { display: block; font-weight: 700; color: var(--blue); font-size: .9rem; margin-bottom: 14px; }

.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.about-grid > div p { color: var(--muted); }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.values li {
  display: flex; flex-direction: column;
  padding: 20px 22px; border-radius: var(--radius); background: var(--bg-alt);
  border-left: 3px solid var(--blue);
}
.values strong { color: var(--navy); }
.values span { color: var(--muted); }

.about { background: var(--bg-alt); }
.about-inner { text-align: center; max-width: 820px; }
.about-inner h2 { margin: 0; }

/* Contact */
.contact { background: var(--navy); }
.contact-inner { text-align: center; max-width: 720px; }
.contact h2 { color: #fff; }
.headshot {
  width: 168px; height: 168px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 28px; border: 4px solid rgba(255,255,255,.9);
  box-shadow: 0 0 0 6px rgba(77,151,245,.35), 0 18px 40px -14px rgba(0,0,0,.6);
}
.contact p { color: #b8c6dc; font-size: 1.1rem; }
.contact-links { font-style: normal; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.contact-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--navy); font-weight: 600;
  padding: 16px 24px; border-radius: 10px;
  transition: transform .2s;
}
.contact-item:hover { transform: translateY(-2px); }

/* Footer */
.site-footer { background: #071a33; color: #8fa1bb; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.footer-inner p { margin: 0; flex: 1; }
.footer-logo { height: 30px; width: auto; }
.footer-inner nav { display: flex; gap: 22px; }
.footer-inner a { display: inline-block; padding: 6px 0; }
.footer-inner a:hover { color: #fff; }

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .contact-item:hover { transform: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-logo { max-width: 460px; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 8px 16px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-links .btn { text-align: center; margin-top: 8px; }
  .hero { padding: 56px 0 0; }
  .hero-logo { order: -1; max-width: 300px; }
  .stats { grid-template-columns: 1fr; gap: 18px; margin-top: 48px; }
  .section { padding: 72px 0; }
  .card-grid, .steps { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .contact-links { flex-direction: column; align-items: stretch; }
  .contact-item { justify-content: center; padding: 16px; font-size: .92rem; white-space: nowrap; }
  .brand-mark { height: 34px; }
}

/* 404 page */
.not-found {
  min-height: 100vh; display: grid; place-items: center; text-align: center;
  background: radial-gradient(ellipse at 50% 20%, #16274a 0%, var(--navy) 60%, #090f1c 100%);
  color: #b8c6dc; padding: 32px 16px;
}
.not-found-inner { max-width: 520px; }
.not-found-inner img { width: min(360px, 80vw); height: auto; margin: 0 auto 32px; }
.not-found h1 { color: #fff; }
.not-found :focus-visible { outline-color: var(--blue-light); }

/* Very small phones */
@media (max-width: 359px) {
  .contact-item { font-size: .82rem; padding: 14px 12px; gap: 8px; white-space: normal; overflow-wrap: anywhere; }
}
