:root {
  color-scheme: light dark;
  --background: #f5f8fc;
  --surface: #ffffff;
  --surface-subtle: #edf3f9;
  --text: #152033;
  --muted: #526276;
  --border: #cbd6e2;
  --accent: #087ea4;
  --accent-strong: #075d7a;
  --focus: #b54708;
  --button: #075d7a;
  --button-hover: #064a61;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --background: #0b1220;
  --surface: #111c2c;
  --surface-subtle: #172438;
  --text: #e8eef6;
  --muted: #a8b5c6;
  --border: #33445a;
  --accent: #38bdf8;
  --accent-strong: #7dd3fc;
  --focus: #fbbf24;
}

html[data-theme="light"] {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]),
  html[data-theme="auto"] {
    color-scheme: dark;
    --background: #0b1220;
    --surface: #111c2c;
    --surface-subtle: #172438;
    --text: #e8eef6;
    --muted: #a8b5c6;
    --border: #33445a;
    --accent: #38bdf8;
    --accent-strong: #7dd3fc;
    --focus: #fbbf24;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body:has(dialog[open]) {
  overflow: hidden;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

button,
a {
  touch-action: manipulation;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 2rem), 73.75rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-inner {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 2.75rem;
  align-items: center;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.desktop-nav {
  margin-left: auto;
}

.desktop-nav ul,
.footer-nav ul,
.mobile-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav ul {
  align-items: center;
  gap: 0.25rem;
}

.desktop-nav a,
.header-action {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 650;
  text-decoration: none;
}

.desktop-nav a:hover,
.header-action:hover {
  background: var(--surface-subtle);
}

.desktop-nav a[aria-current="page"] {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45rem;
}

.theme-toggle {
  white-space: nowrap;
}

.menu-toggle:not([hidden]) {
  display: none;
}

.mobile-menu {
  width: min(100%, 22rem);
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: -0.5rem 0 1.5rem rgb(0 0 0 / 18%);
}

.mobile-menu:not([open]) {
  display: none;
}

.mobile-menu::backdrop {
  background: rgb(11 18 32 / 66%);
}

.mobile-menu-inner {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 1rem;
}

.mobile-menu-header {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-title {
  margin: 0;
  font-weight: 720;
}

.mobile-nav {
  padding-block: 1rem;
}

.mobile-nav ul {
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-radius: 4px;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  background: var(--surface-subtle);
  color: var(--accent-strong);
}

main {
  display: block;
}

.hero,
.page-hero {
  padding-block: 6rem;
}

.hero-copy,
.page-hero-copy {
  max-width: 45rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-strong);
  font-size: 0.8125rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  font-weight: 720;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 50rem;
  margin-bottom: 1.5rem;
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1.125;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.18;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  line-height: 1.35;
}

p,
ul,
ol {
  margin-top: 0;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

.lede {
  max-width: 45rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--button);
  border-radius: 6px;
  background: var(--button);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 720;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  border-color: var(--button-hover);
  background: var(--button-hover);
  text-decoration: none;
}

.button-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent-strong);
  background: var(--surface-subtle);
  color: var(--accent-strong);
}

.section {
  padding-block: 4.5rem;
  border-top: 1px solid var(--border);
}

.section-subtle {
  background: var(--surface-subtle);
}

.section-heading {
  max-width: 45rem;
  margin-bottom: 2rem;
}

.section-heading p:not(.eyebrow),
.section-intro {
  color: var(--muted);
}

.capability-list {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--border);
}

.capability-item {
  display: grid;
  grid-template-columns: minmax(10rem, 0.7fr) minmax(0, 1.3fr);
  gap: 2rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.capability-item h3,
.capability-item p {
  margin: 0;
}

.capability-item p {
  max-width: 45rem;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.fact-list,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.fact-list li,
.check-list li {
  padding: 1rem 0 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.fact-list li::before,
.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent-strong);
  content: "—";
}

.status-note,
.callout {
  padding: 1rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  background: var(--surface);
}

.status-note strong,
.callout strong {
  display: block;
  margin-bottom: 0.25rem;
}

.callout-warning {
  border-left-color: var(--focus);
}

.prose {
  max-width: 45rem;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose li + li {
  margin-top: 0.5rem;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 4.5rem;
}

.section > .final-cta {
  padding-block: 0;
}

.final-cta h2 {
  margin-bottom: 0.5rem;
}

.final-cta p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer p {
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-nav ul {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1rem;
}

.footer-nav a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.not-found {
  display: grid;
  min-height: 65vh;
  place-items: center;
  padding-block: 4.5rem;
}

.not-found-inner {
  max-width: 38rem;
}

.not-found-code {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-weight: 760;
}

@media (max-width: 45rem) {
  .shell {
    width: min(calc(100% - 2rem), 73.75rem);
  }

  .header-inner {
    gap: 0.5rem;
  }

  .desktop-nav {
    display: none;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .menu-toggle:not([hidden]) {
    display: inline-flex;
  }

  .hero,
  .page-hero {
    padding-block: 4.5rem;
  }

  h1 {
    font-size: 2.25rem;
    line-height: 1.17;
  }

  .section {
    padding-block: 3rem;
  }

  .capability-item,
  .split {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .final-cta,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .final-cta {
    padding-block: 3rem;
  }

  .final-cta .button {
    align-self: flex-start;
  }

  .footer-nav ul {
    justify-content: flex-start;
  }
}

@media (max-width: 22rem) {
  .header-action {
    padding-inline: 0.5rem;
    font-size: 0.875rem;
  }
}

@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;
  }
}

@media (forced-colors: active) {
  .button,
  .status-note,
  .callout,
  .mobile-menu {
    border: 1px solid CanvasText;
  }

  .button {
    forced-color-adjust: auto;
  }
}
