:root {
  --ink: #102a33;
  --ink-soft: #405b63;
  --deep: #082f3a;
  --deep-2: #0b4655;
  --brand: #1289af;
  --brand-dark: #086783;
  --brand-pale: #e6f5f9;
  --mint: #dff3ec;
  --sand: #fff3df;
  --surface: #f5f8f8;
  --white: #fff;
  --line: #cfdbde;
  --focus: #f5a623;
  --shadow: 0 24px 60px rgba(8, 47, 58, .12);
  --radius: 1rem;
  --radius-large: 1.5rem;
  --container: 74rem;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

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

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

button,
input,
select,
textarea { font: inherit; }

button,
summary { cursor: pointer; }

a { color: var(--brand-dark); text-underline-offset: .2em; }
a:hover { color: var(--deep); }

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

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 {
  color: var(--deep);
  font-weight: 720;
  letter-spacing: -.035em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.7rem, 7vw, 5.5rem); max-width: 14ch; }
h2 { font-size: clamp(2rem, 4.4vw, 3.35rem); max-width: 20ch; }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }

.container {
  width: min(calc(100% - 2.5rem), var(--container));
  margin-inline: auto;
}

.narrow { max-width: 50rem; }

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  background: var(--white);
  border: 2px solid var(--deep);
  border-radius: .5rem;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(207, 219, 222, .8);
}

.header-inner {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--deep);
  font-size: 1.25rem;
  font-weight: 780;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand img { flex: 0 0 auto; }

[data-primary-nav],
[data-primary-nav] > ul {
  display: flex;
  align-items: center;
  gap: .25rem;
}

[data-primary-nav] > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

[data-primary-nav] > ul > li > a,
.nav-group > summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: .55rem .7rem;
  color: var(--ink);
  border-radius: .5rem;
  font-size: .93rem;
  font-weight: 650;
  text-decoration: none;
}

[data-primary-nav] a[aria-current="page"],
[data-primary-nav] > ul > li > a:hover,
.nav-group > summary:hover { background: var(--brand-pale); color: var(--deep); }

.nav-group { position: relative; }
.nav-group > summary { list-style: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: ""; width: .45rem; height: .45rem; margin: -.2rem 0 0 .55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }

.nav-panel {
  position: absolute;
  z-index: 5;
  top: calc(100% + .5rem);
  left: 0;
  width: 21rem;
  padding: .6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: .85rem;
  box-shadow: var(--shadow);
}

.nav-panel a {
  display: block;
  padding: .75rem;
  border-radius: .55rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-panel a:hover { background: var(--surface); }
.nav-panel span { display: block; font-weight: 700; }
.nav-panel small { display: block; margin-top: .15rem; color: var(--ink-soft); line-height: 1.35; }

.nav-toggle { display: none; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.1rem;
  border: 2px solid transparent;
  border-radius: .65rem;
  font-weight: 730;
  line-height: 1.2;
  text-decoration: none;
}

.button-primary { background: var(--brand-dark); color: var(--white); }
.button-primary:hover { background: var(--deep); color: var(--white); }
.button-secondary { background: transparent; border-color: var(--brand-dark); color: var(--brand-dark); }
.button-secondary:hover { background: var(--brand-pale); color: var(--deep); }
.button-small { min-height: 42px; padding: .55rem .85rem; margin-left: .65rem; font-size: .9rem; background: var(--deep); color: var(--white); }
.button-small:hover { background: var(--brand-dark); color: var(--white); }

.breadcrumbs { padding-top: 1rem; font-size: .88rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: #73888e; }
.breadcrumbs li[aria-current="page"] { color: var(--ink-soft); }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
  background: linear-gradient(135deg, #fff 0%, #f1f9fa 62%, #e5f4f7 100%);
}

.hero::before {
  position: absolute;
  width: 30rem;
  height: 30rem;
  right: -12rem;
  bottom: -17rem;
  border: 1px solid rgba(18, 137, 175, .18);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, .85fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}

.eyebrow {
  margin-bottom: .8rem;
  color: var(--brand-dark);
  font-size: .78rem;
  font-weight: 820;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-intro,
.section-intro {
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.rich-text > :last-child { margin-bottom: 0; }
.rich-text ul,
.rich-text ol { padding-left: 1.35rem; }
.rich-text blockquote { margin: 1rem 0; padding: .2rem 0 .2rem 1rem; border-left: 3px solid var(--brand); color: var(--ink-soft); }
.rich-text code { padding: .08rem .28rem; background: rgba(18, 137, 175, .1); border-radius: .2rem; font-size: .9em; }

.system-map {
  position: relative;
  min-height: 23rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 2rem;
  background: var(--deep);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
  color: var(--white);
}

.system-map::before,
.system-map::after { position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; content: ""; }
.system-map::before { inset: 1.5rem 7rem; }
.system-map::after { inset: 4.5rem 3rem; }

.system-node {
  position: relative;
  z-index: 1;
  width: min(100%, 17rem);
  padding: .85rem 1rem;
  background: #fff;
  border-radius: .7rem;
  color: var(--deep);
  font-weight: 760;
  text-align: center;
}

.system-node-2 { background: var(--brand-dark); color: var(--white); }
.system-connector { position: relative; z-index: 1; color: #8ad9eb; font-size: 1.3rem; transform: rotate(90deg); }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
#request-demo { scroll-margin-top: 5.5rem; }
.section:nth-of-type(even) { background: var(--surface); }
.section .section-intro { margin-bottom: 2.5rem; }

.card-grid,
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  height: 100%;
  padding: clamp(1.3rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card-accent { border-top: 4px solid var(--brand); }
.card h3 { margin-bottom: .7rem; }
.card p { color: var(--ink-soft); }
.card-meta { font-size: .88rem; font-weight: 700; }
.text-link { display: inline-block; margin-top: .4rem; font-weight: 760; }

.section-proof { background: var(--deep) !important; }
.section-proof h2,
.section-proof .section-intro { color: var(--white); }
.section-proof .eyebrow { color: #8ad9eb; }
.proof-grid .card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }
.proof-grid .card h3 { color: var(--white); }
.proof-grid .card p { color: #d5e7eb; }

.split-grid,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 7vw, 6rem);
}

.stacked-cards { display: grid; gap: .9rem; }
.stacked-cards .card { height: auto; }

.steps,
.workflow-rail {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.steps { border-top: 1px solid var(--line); }
.steps li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.step-number { color: var(--brand); font-size: 1.35rem; font-weight: 780; }
.steps p { max-width: 64ch; color: var(--ink-soft); }

.section-workflow { background: var(--deep) !important; color: var(--white); }
.section-workflow h2,
.section-workflow h3,
.section-workflow .section-intro { color: var(--white); }
.section-workflow .eyebrow { color: #8ad9eb; }

.workflow-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.workflow-rail li { position: relative; min-height: 15rem; padding: 1.25rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.17); border-radius: .85rem; }
.workflow-rail li:not(:last-child)::after { position: absolute; top: 2rem; right: -.73rem; z-index: 2; width: 1.4rem; color: #8ad9eb; content: "→"; text-align: center; }
.workflow-index { display: inline-grid; width: 2.1rem; height: 2.1rem; margin-bottom: 1.5rem; place-items: center; background: var(--brand-dark); border-radius: 50%; font-weight: 800; }
.workflow-rail p { color: #d5e7eb; }
.workflow-meta { display: inline-block; color: #8ad9eb; font-size: .85rem; font-weight: 760; }

.tour {
  display: grid;
  grid-template-columns: minmax(15rem, .72fr) minmax(0, 1.28fr);
  min-height: 27rem;
  margin-top: 2.5rem;
  overflow: hidden;
  background: var(--deep);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.tour-tabs { display: none; padding: 1rem; background: rgba(0,0,0,.12); }
.js .tour-tabs { display: block; }
.tour-tabs button {
  width: 100%;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #d5e7eb;
  text-align: left;
}

.tour-tabs button span { color: #8ad9eb; font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.tour-tabs button[aria-selected="true"] { background: rgba(255,255,255,.1); color: var(--white); border-radius: .55rem; }

.tour-panels { display: block; }
.js .tour-panels { display: grid; }
.tour-panels article { grid-area: 1 / 1; padding: clamp(2rem, 6vw, 4.5rem); color: #d5e7eb; }
.tour-panels article + article { border-top: 1px solid rgba(255,255,255,.14); }
.js .tour-panels article + article { border-top: 0; }
.tour-panels article[hidden] { display: none; }
.tour-panels h3 { max-width: 20ch; color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); }
.tour-panels .eyebrow { color: #8ad9eb; }
.tour-copy p,
.tour-copy li,
.tour-copy blockquote { color: #d5e7eb; }
.tour-output { margin-top: 2rem; padding: 1.2rem; background: rgba(255,255,255,.08); border-left: 4px solid var(--brand); border-radius: .4rem; }
.tour-output span { display: block; margin-bottom: .3rem; color: #8ad9eb; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tour-output p { margin: 0; color: var(--white); }

.table-wrap { margin-top: 2rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: var(--white); text-align: left; }
caption { padding: 1rem; font-weight: 700; text-align: left; }
th,
td { min-width: 10rem; padding: 1rem; border-top: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--deep); color: var(--white); border-color: var(--deep); }
tbody th { color: var(--deep); }

.section-faq details { border-bottom: 1px solid var(--line); }
.section-faq summary { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; color: var(--deep); font-size: 1.13rem; font-weight: 730; list-style: none; }
.section-faq summary::-webkit-details-marker { display: none; }
.section-faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; }
.section-faq details[open] summary::after { content: "−"; }
.section-faq details > div { padding: 0 0 1.2rem; }
.section-faq details p { color: var(--ink-soft); }

.section-prose p { color: var(--ink-soft); }
.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; padding: .65rem 0 .65rem 2rem; border-bottom: 1px solid var(--line); }
.check-list li::before { position: absolute; left: 0; color: var(--brand-dark); content: "✓"; font-weight: 900; }

.section-code { background: var(--deep) !important; color: #d5e7eb; }
.section-code h2 { color: var(--white); }
.section-code .eyebrow { color: #8ad9eb; }
pre { margin: 0; padding: 1.5rem; overflow-x: auto; background: #061e25; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); color: #dff3ec; font-size: .9rem; line-height: 1.6; }
.code-sample { margin: 0; }
.code-sample figcaption { margin-bottom: .6rem; color: #d5e7eb; font-size: .86rem; font-weight: 700; }

.section-cta { background: var(--white) !important; }
.cta-panel { padding: clamp(2rem, 6vw, 4rem); background: var(--brand-pale); border: 1px solid #bfdee7; border-radius: var(--radius-large); }

.form-grid form {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

form label { display: block; margin-bottom: 1rem; color: var(--deep); font-weight: 700; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
input,
select,
textarea { width: 100%; min-height: 48px; display: block; margin-top: .35rem; padding: .7rem .8rem; background: var(--white); border: 1px solid #8ba0a6; border-radius: .45rem; color: var(--ink); }
textarea { resize: vertical; }
input:focus,
select:focus,
textarea:focus { border-color: var(--brand-dark); outline: 3px solid rgba(245,166,35,.45); outline-offset: 1px; }
.field-help { margin: -.5rem 0 1rem; color: var(--ink-soft); font-size: .86rem; }
.checkbox { display: grid; grid-template-columns: 1.3rem 1fr; gap: .7rem; align-items: start; }
.checkbox input { width: 1.25rem; min-height: 1.25rem; margin: .15rem 0 0; }
.contact-details { margin-top: 2rem; padding: 1.2rem; background: var(--brand-pale); border-left: 4px solid var(--brand); }

.site-footer { padding: 4rem 0 1.5rem; background: var(--deep); color: #d5e7eb; }
.site-footer a { color: #d5e7eb; }
.site-footer a:hover { color: var(--white); }
.footer-main { display: grid; grid-template-columns: 1.6fr repeat(3, .75fr) 1.2fr; gap: 2rem; }
.brand-footer { margin-bottom: 1rem; color: var(--white) !important; }
.footer-main h2 { color: var(--white); font-size: .9rem; letter-spacing: .02em; }
.footer-main ul { margin: 0; padding: 0; list-style: none; }
.footer-main li { margin: .55rem 0; }
.footer-main address { font-style: normal; }
.pronunciation { font-size: .9rem; }
.footer-legal { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.16); font-size: .85rem; }
.footer-legal p { margin: 0; }
.footer-legal div { display: flex; gap: 1rem; }

.footer-link-button {
  appearance: none;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
  background: transparent;
  border: 0;
}
.footer-link-button:hover { color: var(--white); }

.analytics-consent {
  position: fixed;
  z-index: 100;
  bottom: 1rem;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 2rem);
  max-width: 72rem;
  padding: 1.25rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(11, 53, 66, .2);
  border-radius: 1rem;
  box-shadow: 0 1.25rem 3rem rgba(4, 31, 40, .24);
  transform: translateX(-50%);
  gap: 2rem;
}
.analytics-consent[hidden] { display: none; }
.analytics-consent h2 { margin: 0 0 .3rem; font-size: 1.1rem; }
.analytics-consent p { max-width: 48rem; margin: 0; font-size: .95rem; }
.analytics-consent-actions { display: flex; flex: 0 0 auto; gap: .7rem; }

@media (max-width: 68rem) {
  .js .nav-toggle {
    width: 46px;
    height: 46px;
    display: grid;
    place-content: center;
    gap: 5px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: .55rem;
  }
  .nav-toggle span[aria-hidden="true"] { width: 20px; height: 2px; background: var(--deep); }
  .js [data-primary-nav] {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: calc(100vh - 4.75rem);
    display: none;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    overflow-y: auto;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .js [data-primary-nav][data-open="true"] { display: block; }
  [data-primary-nav] > ul { display: block; }
  [data-primary-nav] > ul > li > a,
  .nav-group > summary { width: 100%; }
  .nav-panel { position: static; width: auto; margin: .2rem 0 .7rem; box-shadow: none; }
  .button-small { margin: .8rem 0 0; }
  .footer-main { grid-template-columns: repeat(3, 1fr); }
  .footer-main > div:first-child { grid-column: 1 / -1; }
  .workflow-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-rail li:not(:last-child)::after { display: none; }
}

@media (max-width: 52rem) {
  .hero-grid,
  .split-grid,
  .form-grid { grid-template-columns: 1fr; }
  .system-map { min-height: 19rem; }
  .card-grid,
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour { grid-template-columns: 1fr; }
  .js .tour-tabs { display: flex; overflow-x: auto; }
  .tour-tabs button { min-width: 13rem; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 0; }
  .analytics-consent { align-items: stretch; flex-direction: column; gap: 1rem; }
  .analytics-consent-actions { flex-direction: column-reverse; }
}

@media (max-width: 38rem) {
  .container { width: min(calc(100% - 1.5rem), var(--container)); }
  h1 { font-size: clamp(2.45rem, 13vw, 3.65rem); }
  .card-grid,
  .proof-grid,
  .workflow-rail,
  .field-row,
  .footer-main { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 3.2rem 1fr; }
  .footer-main > div:first-child { grid-column: auto; }
  .footer-legal { display: block; }
  .footer-legal div { margin-top: .8rem; }
}

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

@media (forced-colors: active) {
  .button,
  .card,
  .system-map,
  .tour { border: 1px solid CanvasText; }
}
