:root {
  --ink: #13201c;
  --muted: #5f6d67;
  --paper: #f4f7f5;
  --white: #ffffff;
  --forest: #123b2f;
  --forest-2: #1f5b47;
  --lime: #dbe648;
  --yellow: #edbd45;
  --coral: #e56a54;
  --line: #ccd7d1;
  --header-height: 72px;
  --content: min(1180px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--forest);
  border-radius: 4px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 0 max(24px, calc((100% - 1280px) / 2));
  border-bottom: 1px solid rgba(19, 32, 28, 0.1);
  background: rgba(244, 247, 245, 0.96);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--forest);
  background: var(--lime);
  border: 1px solid var(--forest);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
}

.brand-name {
  font-size: 20px;
  font-weight: 850;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 34px);
}

.site-nav a,
.site-footer nav a {
  color: #33443d;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--forest-2);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switcher {
  display: inline-flex;
  padding: 2px;
  border: 1px solid #b8c6bf;
  border-radius: 5px;
}

.language-switcher button {
  min-width: 34px;
  height: 28px;
  padding: 0 7px;
  color: #50615a;
  background: transparent;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--white);
  background: var(--forest);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 12px;
}

.button-dark {
  color: var(--white);
  background: var(--forest);
}

.button-primary {
  color: var(--forest);
  background: var(--lime);
  border-color: var(--lime);
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  background: transparent;
  border: 1px solid #acbbb4;
  border-radius: 4px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--forest);
}

.hero {
  position: relative;
  min-height: max(560px, 76svh);
  display: flex;
  align-items: center;
  color: var(--white);
  background-image: url("assets/hero.jpg");
  background-position: center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 19, 15, 0.68);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: var(--content);
  margin: 0 auto;
  padding: 62px 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--forest-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

.eyebrow {
  color: var(--lime);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(64px, 10vw, 142px);
  line-height: 0.82;
  letter-spacing: 0;
}

.legal-name {
  margin: 26px 0 0;
  color: #d5ded9;
  font-size: clamp(14px, 1.5vw, 19px);
  font-weight: 700;
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 0;
  color: #f4f7f5;
  font-size: clamp(18px, 2.1vw, 28px);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.text-link-light {
  color: var(--white);
}

.image-credit {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 10px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.image-credit a {
  color: inherit;
}

.identity-strip {
  width: var(--content);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.identity-strip > div {
  min-width: 0;
  padding: 30px 24px;
  border-left: 1px solid var(--line);
}

.identity-strip > div:last-child {
  border-right: 1px solid var(--line);
}

.identity-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.identity-strip strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.section {
  padding: 104px max(24px, calc((100% - 1180px) / 2));
}

.section-heading {
  max-width: 820px;
  margin-bottom: 54px;
}

.section-heading h2,
.api-intro h2,
.contact-band h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

.heading-row {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 64px;
  align-items: end;
}

.heading-row > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 16px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: clamp(60px, 9vw, 120px);
}

.about-copy {
  max-width: 670px;
  color: var(--muted);
  font-size: 17px;
}

.about-copy .lead {
  margin-top: 0;
  color: var(--ink);
  font-size: clamp(21px, 2.5vw, 31px);
  line-height: 1.42;
}

.facts {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.facts > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  min-height: 116px;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--forest);
  font-size: 30px;
  font-weight: 900;
}

.facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-capabilities {
  background: var(--white);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.capability-card {
  min-height: 238px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.card-index {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
}

.capability-card h3 {
  margin: 46px 0 12px;
  font-size: 19px;
  line-height: 1.25;
}

.capability-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.product-view {
  margin-top: 54px;
  overflow: hidden;
  border: 1px solid #aab8b1;
  border-radius: 6px;
  background: #f7f9f8;
  box-shadow: 0 26px 70px rgba(18, 59, 47, 0.12);
}

.product-topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  color: var(--white);
  background: #14261f;
}

.product-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 850;
}

.product-logo > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--forest);
  background: var(--lime);
  border-radius: 3px;
  font-size: 9px;
}

.product-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #cbd7d2;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.product-body {
  min-height: 470px;
  display: grid;
  grid-template-columns: 190px 1fr;
}

.product-sidebar {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 28px 16px;
  border-right: 1px solid var(--line);
  background: #edf2ef;
}

.product-sidebar span {
  padding: 10px 12px;
  color: #66746e;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.product-sidebar .active {
  color: var(--forest);
  background: var(--white);
}

.product-main {
  min-width: 0;
  padding: 30px;
}

.product-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.product-title-row small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.product-title-row strong {
  display: block;
  margin-top: 2px;
  font-size: 23px;
}

.date-chip {
  padding: 8px 10px;
  color: var(--forest);
  background: #e2e9e5;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 850;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.metric-row > div {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
}

.metric-row small,
.metric-row strong,
.metric-row em {
  display: block;
}

.metric-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-row strong {
  margin: 8px 0 3px;
  font-size: 25px;
}

.metric-row em {
  color: var(--forest-2);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.chart-panel {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  font-weight: 800;
}

.chart-head small {
  color: var(--muted);
  font-size: 9px;
}

.bar-chart {
  height: 145px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 10px;
  margin-top: 24px;
  border-bottom: 1px solid #cfd9d4;
}

.bar-chart i {
  height: var(--h);
  min-height: 10px;
  background: var(--forest-2);
  border-radius: 2px 2px 0 0;
}

.bar-chart i:nth-child(3n) {
  background: var(--yellow);
}

.section-api {
  color: var(--white);
  background: var(--forest);
}

.section-kicker-light {
  color: var(--lime);
}

.api-intro {
  max-width: 900px;
}

.api-intro > p:last-child {
  max-width: 720px;
  margin: 26px 0 0;
  color: #c5d2cd;
  font-size: 18px;
}

.api-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 68px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.api-flow > div {
  min-height: 220px;
  padding: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.api-flow > div:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.api-flow span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--forest);
  background: var(--lime);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.api-flow strong {
  display: block;
  margin-top: 26px;
  font-size: 20px;
}

.api-flow p {
  margin: 10px 0 0;
  color: #c5d2cd;
  font-size: 14px;
}

.api-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  margin-top: 64px;
}

.api-details h3 {
  margin: 0 0 22px;
  font-size: 20px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 13px 0 13px 28px;
  color: #d5ded9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--lime);
  font-weight: 900;
}

.platform-note {
  max-width: 820px;
  margin: 62px 0 0;
  padding-left: 18px;
  color: #aebeb7;
  border-left: 3px solid var(--yellow);
  font-size: 12px;
}

.governance-list {
  border-top: 1px solid var(--ink);
}

.governance-list article {
  display: grid;
  grid-template-columns: 140px 1fr 1.2fr;
  gap: 28px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.governance-list article > span {
  color: var(--coral);
  font-size: 10px;
  font-weight: 900;
}

.governance-list h3,
.governance-list p {
  margin: 0;
}

.governance-list h3 {
  font-size: 20px;
}

.governance-list p {
  color: var(--muted);
  font-size: 14px;
}

.contact-band {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 70px;
  padding: 82px max(24px, calc((100% - 1180px) / 2));
  color: var(--white);
  background: #c94f3f;
}

.contact-band h2 {
  font-size: clamp(38px, 5vw, 64px);
}

.contact-band p:last-child {
  max-width: 620px;
  margin: 18px 0 0;
  color: #ffe3dd;
}

.contact-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}

.contact-details a {
  color: var(--white);
  font-size: clamp(20px, 2.3vw, 31px);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.contact-details span {
  color: #ffe3dd;
  font-size: 14px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 44px;
  align-items: end;
  padding: 52px max(24px, calc((100% - 1180px) / 2));
  color: #b8c5c0;
  background: #14261f;
}

.brand-footer {
  color: var(--white);
}

.site-footer p {
  margin: 12px 0 0;
  max-width: 430px;
  font-size: 11px;
}

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

.site-footer nav a {
  color: #d2dcd8;
  font-size: 11px;
}

/* Legal pages */
.legal-page {
  background: var(--white);
}

.legal-header {
  position: static;
}

.legal-header-spacer {
  min-width: 1px;
}

.legal-main {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 110px;
}

.legal-main .section-kicker {
  margin-bottom: 14px;
}

.legal-main h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
}

.legal-meta {
  margin: 0 0 60px;
  color: var(--muted);
  font-size: 13px;
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  margin: 42px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 23px;
  line-height: 1.25;
}

.legal-content p,
.legal-content li {
  color: #4e5e57;
  font-size: 15px;
}

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

.legal-content a {
  color: var(--forest-2);
  font-weight: 750;
}

.request-box {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--coral);
  border-radius: 5px;
  background: var(--paper);
}

.request-box p {
  margin: 0;
}

@media (max-width: 1040px) {
  .site-header {
    gap: 18px;
  }

  .site-nav {
    gap: 16px;
  }

  .button-small {
    display: none;
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer > p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: 64px;
    --content: calc(100% - 32px);
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    padding-inline: 16px;
  }

  .menu-button {
    display: block;
    grid-column: 3;
    grid-row: 1;
  }

  .header-actions {
    justify-self: end;
    margin-right: 50px;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    z-index: 60;
    width: 100%;
    height: calc(100svh - var(--header-height));
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 28px 24px;
    overflow-y: auto;
    background: var(--paper);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }

  .hero {
    min-height: max(560px, 78svh);
    background-position: 40% center;
  }

  .hero-inner {
    padding: 54px 0;
  }

  .hero h1 {
    font-size: clamp(62px, 22vw, 98px);
  }

  .hero-copy {
    font-size: 19px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .identity-strip {
    grid-template-columns: 1fr 1fr;
  }

  .identity-strip > div:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .identity-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 76px 20px;
  }

  .heading-row,
  .about-layout,
  .api-details,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .heading-row,
  .about-layout,
  .api-details {
    gap: 38px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-card {
    min-height: 190px;
  }

  .capability-card h3 {
    margin-top: 30px;
  }

  .product-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .product-sidebar {
    display: none;
  }

  .product-main {
    padding: 20px;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .metric-row small {
    white-space: normal;
  }

  .bar-chart {
    gap: 5px;
  }

  .api-flow {
    grid-template-columns: 1fr;
  }

  .api-flow > div,
  .api-flow > div:first-child {
    min-height: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.24);
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  }

  .api-flow > div:last-child {
    border-bottom: 0;
  }

  .governance-list article {
    grid-template-columns: 90px 1fr;
    gap: 12px 20px;
  }

  .governance-list p {
    grid-column: 2;
  }

  .contact-band {
    gap: 34px;
    padding: 70px 20px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 30px;
    padding: 46px 20px;
  }

  .site-footer nav {
    flex-direction: column;
    gap: 12px;
  }

  .site-footer > p {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .brand-name {
    display: none;
  }

  .header-actions {
    margin-right: 48px;
  }

  .language-switcher button {
    min-width: 30px;
    padding-inline: 5px;
  }

  .identity-strip {
    grid-template-columns: 1fr;
  }

  .identity-strip > div {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .product-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .governance-list article {
    grid-template-columns: 1fr;
  }

  .governance-list p {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
