:root {
  --brand-blue-light: #2196F3;
  --brand-blue:       #1A56DB;
  --brand-navy:       #102042;
  --brand-orange:     #FF5722;

  --bg:               #FAFAF6;
  --surface:          #FFFFFF;
  --surface-sunken:   #F4F7FF;
  --ink:              #102042;
  --ink-soft:         #3D5080;
  --ink-faint:        #7A90BC;
  --line:             #DDE3EE;
  --line-cool:        #D6E4FF;
  --accent:           #1A56DB;
  --accent-contrast:  #FFFFFF;
  --chip-bg:          #EBF3FF;
  --success:          #16A34A;

  --urgency-high-fg:   #B3400F;  --urgency-high-bg:   #FFEDE6;
  --urgency-medium-fg: #92610A;  --urgency-medium-bg: #FFF6E5;
  --urgency-low-fg:    #3D5080;  --urgency-low-bg:    #EBF3FF;

  --radius-control: 6px;
  --radius-card:    14px;
  --radius-lg:      22px;

  --shadow-card:    0 1px 4px 0 rgba(16,32,66,0.08);
  --shadow-popover: 0 4px 16px -2px rgba(16,32,66,0.12);
  --shadow-lift:    0 20px 60px -25px rgba(16,32,66,0.35);

  --container: 1280px;

  --fs-hero:    clamp(2.1rem, 5.2vw, 3.5rem);
  --fs-section: clamp(1.6rem, 3.4vw, 2.5rem);
  --fs-title:   1.375rem;
  --fs-lead:    clamp(1rem, 1.9vw, 1.15rem);
  --fs-body:    1rem;
  --fs-label:   0.875rem;
  --fs-caption: 0.8125rem;

  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font: inherit; color: inherit; }

h1 { font-size: var(--fs-hero); line-height: 1.08; max-width: 22ch; text-wrap: balance; }
h2 { font-size: var(--fs-section); line-height: 1.15; text-wrap: balance; }
h3 { font-size: var(--fs-title); line-height: 1.25; }

.lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 58ch;
}

.prose p { max-width: 62ch; line-height: 1.6; color: var(--ink-soft); }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.caption { font-size: var(--fs-caption); color: var(--ink-soft); }
.mono { font-family: var(--font-mono); font-size: var(--fs-caption); }

.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { max-width: 20ch; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center h2 { margin-left: auto; margin-right: auto; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

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

.section { padding: clamp(56px, 9vw, 112px) 0; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--brand-navy); color: #FFFFFF; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }

.section--navy h1,
.section--navy h2,
.section--navy h3 { color: #FFFFFF; }
.section--navy .lead { color: rgba(255,255,255,0.78); }
.section--navy .eyebrow { color: rgba(255,255,255,0.6); }

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s ease, background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-md { padding: 12px 24px; font-size: 0.95rem; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }

.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { opacity: 0.85; }

.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink-soft); }

.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--chip-bg); color: var(--ink); }

.section--navy .btn-secondary,
.site-footer .btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.35);
}
.section--navy .btn-secondary:hover { border-color: #FFFFFF; }

.link-arrow {
  display: inline;
  font-weight: 600;
  font-size: var(--fs-label);
  color: var(--accent);
}
.link-arrow > span { margin-left: 6px; }
.link-arrow:hover { text-decoration: underline; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 3vw, 32px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--ink-soft);
  font-size: var(--fs-caption);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.chip--live { background: #E7F6EC; color: #14713E; }
.chip--soon {
  background: var(--surface-sunken);
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--line-cool);
}
.chip--accent { background: var(--chip-bg); color: var(--accent); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.section--navy :focus-visible,
.site-footer :focus-visible { outline-color: #FFFFFF; }

.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 100;
  transform: translateY(-200%);
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 10px 18px;
  border-radius: var(--radius-control);
  font-size: var(--fs-label);
  font-weight: 600;
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); text-decoration: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,250,246,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.site-logo { flex: none; display: block; }
.site-logo:hover { text-decoration: none; }
.site-logo img { height: 44px; width: auto; }

.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav__list { display: flex; align-items: center; gap: 28px; }

.site-nav__list a {
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  display: inline-block;
}
.site-nav__list a:hover { color: var(--ink); text-decoration: none; }
.site-nav__list a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.site-nav__actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  cursor: pointer;
}
.nav-toggle__box { display: block; width: 18px; height: 12px; position: relative; }
.nav-toggle__box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__box span:nth-child(1) { top: 0; }
.nav-toggle__box span:nth-child(2) { top: 5px; }
.nav-toggle__box span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 859px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-popover);
  }
  .site-nav.is-open { display: flex; }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list a {
    padding: 14px 0;
    font-size: var(--fs-body);
    border-bottom: 1px solid var(--line);
  }
  .site-nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 20px;
  }
  .site-nav__actions .btn { width: 100%; }

  .site-logo img { height: 36px; }
}

.no-js .nav-toggle { display: none; }
@media (max-width: 859px) {
  .no-js .site-nav {
    display: flex;
    position: static;
    padding: 0 0 20px;
    box-shadow: none;
    border-bottom: 0;
  }
  .no-js .site-header { position: static; }
  .no-js .site-header__inner { flex-wrap: wrap; padding-bottom: 8px; }
  .no-js .site-nav { flex-basis: 100%; }
}

.site-footer {
  background: var(--brand-navy);
  color: rgba(255,255,255,0.72);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: clamp(48px, 7vw, 72px) 0 32px;
  font-size: var(--fs-label);
}

.site-footer__top {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
}

.site-footer__brand { max-width: 32ch; }
.site-footer__brand img { height: 40px; width: auto; margin-bottom: 16px; }
.site-footer__brand p { color: rgba(255,255,255,0.6); font-size: var(--fs-label); }

.site-footer__cols {
  display: grid;
  gap: 32px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}

.site-footer__cols > * { min-width: 0; }
.site-footer__cols li { margin-bottom: 10px; }
.site-footer__cols a { color: rgba(255,255,255,0.78); }
.site-footer__cols a:hover { color: #FFFFFF; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: var(--fs-caption);
  color: rgba(255,255,255,0.55);
}

@media (min-width: 720px) {
  .site-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .site-footer__top { grid-template-columns: 1fr 2fr; gap: 64px; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
