
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&family=Sora:wght@600;700;800&display=swap');

:root {
  --navy: #0B1F33;
  --navy-2: #12304C;
  --teal: #0A6B67;
  --mint: #7FD6CF;
  --ink: #0B1F33;
  --muted: #526779;
  --line: #D5DEE6;
  --paper: #F4F7F9;
  --white: #FFFFFF;
  --container: 1200px;
  --header-height: 82px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(11,31,51,.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-is-open { overflow: hidden; }

img,
svg,
video,
canvas { max-width: 100%; }

img { height: auto; }

a,
button,
input,
select,
textarea { -webkit-tap-highlight-color: transparent; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(127,214,207,.75);
  outline-offset: 3px;
}

/* ---------- Shared responsive header ---------- */

.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000;
  width: 100%;
  background: rgba(244,247,249,.96) !important;
  border-bottom: 1px solid var(--line) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header-inner {
  width: min(100% - 40px, var(--container));
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
  color: var(--ink) !important;
  text-decoration: none !important;
}

.site-brand img {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px;
  object-fit: contain;
}

.site-brand-name {
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  white-space: nowrap;
  font-family: 'Sora', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  letter-spacing: -.01em !important;
}

.site-brand-name span:last-child {
  margin-top: 2px !important;
  font-size: 16px !important;
}

.site-nav {
  display: flex !important;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 2px 20px !important;
  flex-wrap: nowrap !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

.site-nav a {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  min-height: 44px;
  padding: 10px 0 !important;
  color: var(--ink) !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .18s ease, opacity .18s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.site-nav a:hover::after,
.site-nav a.is-current::after { transform: scaleX(1); }

.site-nav a:hover { opacity: .82; }

.site-nav a.nav-cta {
  padding: 11px 18px !important;
  border-radius: 7px;
  background: var(--teal) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
}

.site-nav a.nav-cta::after { display: none; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Shared page geometry ---------- */

.page-content { min-height: calc(100vh - var(--header-height)); }

main > section > div {
  max-width: var(--container);
}

main > section > div,
footer > div {
  width: min(100% - 48px, var(--container));
}

/* Prevent long inline rows from forcing horizontal scrolling. */
main a,
main p,
main li,
footer a,
footer span { overflow-wrap: anywhere; }

/* ---------- Responsive content rules ---------- */

@media (max-width: 1199px) {
  .site-header-inner {
    width: min(100% - 36px, var(--container));
  }

  .site-nav { gap: 2px 14px !important; }

  main > section > div {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
}

@media (max-width: 980px) {
  .site-header-inner {
    width: min(100% - 32px, var(--container));
  }

  .menu-toggle { display: inline-flex; }

  .site-nav {
    display: none !important;
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    max-height: calc(100vh - var(--header-height) - 24px);
    overflow-y: auto;
    padding: 10px;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 2px !important;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 18px 45px rgba(11,31,51,.16);
  }

  .site-header.menu-open .site-nav {
    display: flex !important;
  }

  .site-nav a {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px !important;
    border-radius: 8px;
  }

  .site-nav a:hover,
  .site-nav a.is-current {
    background: #EAF3F4;
  }

  .site-nav a::after { display: none; }

  .site-nav a.nav-cta {
    margin-top: 5px;
    justify-content: center;
  }

  /* Row layouts become stacked before they become cramped. */
  main > section > div {
    gap: 38px !important;
  }

  /* Common flex cards/columns become fluid. */
  main [style*="flex: 1 1"] {
    min-width: 0 !important;
  }

  /* Large fixed widths become fluid. */
  main [style*="width: 900px"],
  main [style*="width: 720px"],
  main [style*="width: 700px"],
  main [style*="width: 560px"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Footer columns stay readable. */
  footer > div {
    gap: 32px !important;
  }
}

@media (max-width: 760px) {
  :root { --header-height: 72px; }

  body { font-size: 16px; }

  .site-header-inner {
    width: calc(100% - 28px);
    min-height: var(--header-height);
    padding: 9px 0;
  }

  .site-brand img {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px;
  }

  .site-brand-name {
    font-size: 16px !important;
  }

  .site-brand-name span:last-child {
    font-size: 14px !important;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .site-nav {
    left: 10px;
    right: 10px;
  }

  main > section > div,
  footer > div {
    width: calc(100% - 32px) !important;
  }

  main > section > div {
    padding-top: 58px !important;
    padding-bottom: 58px !important;
    gap: 32px !important;
  }

  /* Hero and other large headings */
  main h1 {
    font-size: clamp(34px, 10vw, 44px) !important;
    line-height: 1.06 !important;
  }

  main h2 {
    font-size: clamp(28px, 8vw, 36px) !important;
    line-height: 1.12 !important;
  }

  main h3 {
    font-size: clamp(20px, 5.5vw, 24px) !important;
    line-height: 1.2 !important;
  }

  /* Any two-column row with flex-basis children stacks cleanly. */
  main > section > div[style*="display: flex"][style*="flex-wrap"] {
    flex-direction: column !important;
  }

  main [style*="flex: 1 1"] {
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  /* Buttons and CTA groups */
  main a[style*="padding: 15px 26px"],
  main a[style*="padding: 14px 26px"],
  main a[style*="padding: 12px 20px"] {
    min-height: 48px;
  }

  /* Keep CTA groups from becoming cramped. */
  main div[style*="display: flex"][style*="gap: 12px"] > a,
  main div[style*="display: flex"][style*="gap: 14px"] > a {
    max-width: 100%;
  }

  /* Hero visual/card */
  main svg {
    max-width: 100%;
  }

  /* Long labels and progress rows */
  main [style*="flex: 0 0 150px"] {
    flex: 0 0 auto !important;
    width: 100% !important;
  }

  /* Forms */
  input,
  select,
  textarea,
  button {
    max-width: 100%;
  }

  input,
  select,
  textarea {
    font: inherit;
  }

  /* Footer */
  footer > div {
    width: calc(100% - 32px) !important;
    padding-top: 42px !important;
    padding-bottom: 42px !important;
    flex-direction: column !important;
  }

  footer nav {
    width: 100%;
    flex-direction: column !important;
    gap: 18px !important;
  }

  footer nav > div {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .site-brand-name {
    font-size: 15px !important;
  }

  .site-brand-name span:last-child {
    font-size: 13px !important;
  }

  main > section > div {
    width: calc(100% - 24px) !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  footer > div {
    width: calc(100% - 24px) !important;
  }

  main h1 {
    font-size: clamp(32px, 10vw, 39px) !important;
  }

  main h2 {
    font-size: clamp(27px, 8.5vw, 33px) !important;
  }

  /* Stack button rows on very narrow screens. */
  main div[style*="display: flex"][style*="gap: 12px"] > a,
  main div[style*="display: flex"][style*="gap: 14px"] > a {
    width: 100% !important;
    justify-content: center;
    text-align: center;
  }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
