:root {
  --navy-900: #061a3f;
  --navy-800: #0c2a5e;
  --navy-700: #18407a;
  --blue: #0e9bf0;
  --blue-dark: #0a78c2;
  --blue-light: #5bb8f5;
  --steel: #7d93b4;
  --ink: #122541;
  --muted: #54677f;
  --bg: #ffffff;
  --bg-soft: #f3f8fd;
  --border: #e1e9f2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -24px rgba(17, 34, 54, 0.45);
  --shadow-sm: 0 8px 24px -16px rgba(17, 34, 54, 0.4);
  --maxw: 1120px;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-800);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--navy-800);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-menu a:hover {
  background: var(--bg-soft);
  text-decoration: none;
}

.nav-menu a.nav-cta {
  background: var(--navy-800);
  color: #fff;
}

.nav-menu a.nav-cta:hover {
  background: var(--navy-900);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-800);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--navy-800);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--navy-900);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--steel);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 480px at 78% -10%, rgba(14, 155, 240, 0.16), transparent 60%),
    radial-gradient(900px 420px at 8% 0%, rgba(12, 42, 94, 0.1), transparent 55%),
    var(--bg);
  padding: clamp(64px, 11vw, 128px) 0 clamp(56px, 9vw, 104px);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: var(--maxw);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0 0 20px;
  max-width: 820px;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(56px, 9vw, 104px) 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0;
}

.prose {
  max-width: 720px;
  font-size: 1.1rem;
  color: var(--muted);
}

.prose p {
  margin: 0 0 18px;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ---------- Brand cards ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.brand-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.brand-card-logo {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 22px;
}

.brand-card-logo img {
  max-height: 48px;
  max-width: 100%;
  width: auto;
}

.brand-card-logo--light img {
  max-height: 32px;
}

.brand-card-logo--wordmark img {
  max-height: 30px;
}

.brand-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 8px;
}

.brand-card p {
  color: var(--muted);
  margin: 0 0 22px;
  flex: 1;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--blue-dark);
}

.brand-link span {
  font-size: 0.85em;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 6px;
}

.contact-card p {
  color: var(--muted);
  margin: 0 0 16px;
}

.contact-email {
  font-weight: 600;
  font-size: 1.05rem;
  word-break: break-word;
}

.contact-card address {
  font-style: normal;
  color: var(--ink);
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #cdd8e6;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: #fff;
}

.footer-icon {
  height: 36px;
  width: 36px;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: #cdd8e6;
  font-weight: 500;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  margin: 0;
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: #9fb0c4;
}

/* ---------- Legal pages ---------- */
.legal {
  padding: clamp(48px, 8vw, 88px) 0 clamp(56px, 9vw, 96px);
}

.legal .container {
  max-width: 820px;
}

.legal h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin: 0 0 8px;
}

.legal .updated {
  color: var(--muted);
  margin: 0 0 36px;
}

.legal h2 {
  font-size: 1.4rem;
  color: var(--navy-900);
  margin: 36px 0 12px;
}

.legal p,
.legal li {
  color: var(--ink);
  font-size: 1.02rem;
}

.legal ul {
  padding-left: 22px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 18px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: none;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav-menu a.nav-cta {
    text-align: center;
  }
}

@media (max-width: 760px) {
  .brand-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
