:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #eef4fb;
  --ink: #111827;
  --ink-soft: #475569;
  --ink-muted: #64748b;
  --line: #dbe4ef;
  --line-strong: #bfd0e4;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #0891b2;
  --teal: #0d9488;
  --indigo: #4f46e5;
  --green: #16a34a;
  --dark: #101827;
  --dark-soft: #1b2638;
  --shadow: 0 18px 48px rgba(15, 23, 42, .10);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, .08);
  --radius: 8px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

code,
pre {
  font-family: var(--mono);
}

pre {
  margin: 0;
  overflow-x: auto;
  white-space: pre;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(820px, calc(100% - 40px));
}

.section {
  padding: 84px 0;
}

.section-muted {
  background: linear-gradient(180deg, #f3f7fc 0%, #edf4fb 100%);
}

.section-dark {
  background: var(--dark);
  color: #f8fafc;
  position: relative;
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, .10) 1px, transparent 1px),
    linear-gradient(180deg, rgba(37, 99, 235, .08) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.section-dark > * {
  position: relative;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, .96);
  border-bottom: 1px solid rgba(219, 228, 239, .86);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 760;
  font-size: 1.05rem;
}

.brand img {
  flex: 0 0 auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-menu a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 650;
  padding: 9px 11px;
  border-radius: 7px;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: #e8f0fb;
  color: var(--blue-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  margin-left: auto;
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}

.nav-toggle-line::before,
.nav-toggle-line::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-line::before {
  top: -6px;
}

.nav-toggle-line::after {
  top: 6px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 7px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 760;
  line-height: 1.1;
  cursor: pointer;
}

.button-small {
  min-height: 38px;
  padding: 9px 14px;
  font-size: .93rem;
}

.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .24);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary {
  background: var(--surface);
  color: var(--blue-dark);
  border-color: var(--line-strong);
}

.button-secondary:hover {
  border-color: var(--blue);
}

.hero {
  min-height: calc(100vh - 76px);
  padding: 92px 0 64px;
  position: relative;
  background: linear-gradient(180deg, #f9fbff 0%, #edf5ff 100%);
  display: grid;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, .09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 145, 178, .08) 1px, transparent 1px),
    radial-gradient(circle at 78% 22%, rgba(20, 184, 166, .18), transparent 30%),
    radial-gradient(circle at 14% 86%, rgba(79, 70, 229, .14), transparent 32%);
  background-size: 54px 54px, 54px 54px, auto, auto;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: 48px;
  align-items: center;
}

.hero h1,
.page-hero h1,
.docs-hero h1,
.legal-hero h1 {
  font-size: clamp(2.4rem, 7vw, 5.3rem);
  line-height: .98;
  margin: 0;
  letter-spacing: 0;
}

.hero-lede,
.page-hero p,
.docs-hero p,
.lead {
  font-size: 1.16rem;
  color: var(--ink-soft);
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.on-dark {
  color: #67e8f9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-visual {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

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

.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.metric-value {
  display: block;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 820;
  line-height: 1;
}

.metric-label {
  display: block;
  margin-top: 12px;
  color: var(--ink-soft);
  font-weight: 650;
}

.demo-note {
  display: inline-flex;
  margin-top: 16px;
  color: var(--ink-muted);
  background: #eef4fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: .76rem;
  font-weight: 760;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading.compact {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.split h2,
.docs-panel h2,
.legal-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p,
.split p,
.feature-card p,
.mini-card p,
.download-card p,
.catalog-card p,
.docs-panel p,
.legal-copy p {
  color: var(--ink-soft);
}

.card-grid {
  display: grid;
  gap: 18px;
}

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

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.mini-card,
.download-card,
.catalog-card,
.values-card,
.docs-panel,
.status-row,
.event-list article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  padding: 24px;
}

.feature-card.large {
  padding: 30px;
}

.feature-card h2,
.feature-card h3,
.download-card h3,
.mini-card h3,
.catalog-card h2,
.region-card h3,
.steps h3,
.event-list h3,
.guideline-grid h3 {
  margin: 16px 0 8px;
  line-height: 1.18;
}

.feature-card p,
.download-card p,
.mini-card p {
  margin: 0;
}

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

.pill-grid span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-weight: 760;
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: start;
}

.muted-dark {
  color: #cbd5e1 !important;
}

.inline-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 9px 12px;
  background: #152238;
  border: 1px solid #2c3b52;
  border-radius: 999px;
  color: #e2e8f0;
  font-size: .9rem;
  font-weight: 760;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .16);
}

.code-stack {
  display: grid;
  gap: 16px;
}

.code-card {
  background: #0b1220;
  border: 1px solid #24314a;
  border-radius: var(--radius);
  color: #dbeafe;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .20);
}

.code-card.light {
  background: #111827;
  color: #e0f2fe;
}

.code-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, .24);
  color: #bfdbfe;
  font-size: .86rem;
  font-weight: 760;
}

.copy-button {
  border: 1px solid rgba(191, 219, 254, .35);
  background: #17243a;
  color: #dbeafe;
  border-radius: 6px;
  padding: 5px 9px;
  cursor: pointer;
  font-weight: 760;
}

.copy-button:hover {
  border-color: #67e8f9;
}

.code-card pre {
  padding: 18px;
  font-size: .9rem;
  line-height: 1.6;
}

.small-code {
  margin-left: 48px;
}

.region-layout {
  display: grid;
  grid-template-columns: minmax(280px, .88fr) minmax(0, 1.12fr);
  gap: 28px;
  align-items: center;
}

.region-map {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

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

.region-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.region-card h3 {
  margin-top: 0;
}

.region-card span,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .8rem;
  font-weight: 820;
}

.region-card span,
.badge.success {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

.region-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.download-card {
  padding: 22px;
}

.download-card img,
.catalog-card img {
  width: 36px;
  height: 36px;
}

.download-card a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blue-dark);
  font-weight: 820;
  text-decoration: none;
}

.page-hero,
.docs-hero,
.legal-hero {
  padding: 92px 0 68px;
  background: linear-gradient(180deg, #f9fbff 0%, #edf5ff 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 44px;
  align-items: center;
}

.page-hero-grid > img {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.status-hero .timestamp {
  margin-top: 20px;
  color: var(--ink-muted);
  font-weight: 760;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--ink);
  background: #f2f6fb;
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

td {
  color: var(--ink-soft);
}

td code,
.docs-panel code {
  background: #eef4fb;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #1e3a8a;
  padding: 2px 5px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.steps article {
  border-top: 4px solid var(--blue);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.steps span {
  color: var(--cyan);
  font-weight: 860;
}

.docs-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.docs-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.docs-aside a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 720;
  padding: 9px 10px;
  border-radius: 6px;
}

.docs-aside a:hover {
  background: #eef4fb;
  color: var(--blue-dark);
}

.docs-content {
  display: grid;
  gap: 22px;
}

.docs-panel {
  padding: 28px;
}

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

.guideline-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #f8fafc;
}

.status-list {
  display: grid;
  gap: 14px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}

.status-row h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.status-row p {
  margin: 0;
  color: var(--ink-soft);
}

.event-list {
  display: grid;
  gap: 14px;
}

.event-list article {
  padding: 18px;
}

.event-list span {
  color: var(--ink-muted);
  font-size: .84rem;
  font-weight: 760;
}

.event-list h3 {
  margin-top: 8px;
}

.event-list p {
  margin-bottom: 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.catalog-card {
  padding: 22px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px 16px;
  align-items: start;
}

.catalog-card dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 6px 0 0;
}

.catalog-card dt {
  color: var(--ink-muted);
  font-size: .8rem;
  font-weight: 760;
}

.catalog-card dd {
  margin: 2px 0 0;
  font-weight: 820;
}

.catalog-card .button {
  grid-column: 1 / -1;
}

.values-card {
  padding: 30px;
}

.check-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--ink-soft);
  font-weight: 720;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: inset 0 0 0 4px #ccfbf1;
}

.mini-card {
  padding: 20px;
}

.legal-copy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 42px;
  box-shadow: var(--shadow-soft);
  margin-top: 64px;
  margin-bottom: 64px;
}

.legal-copy h2 {
  font-size: 1.45rem;
  margin-top: 28px;
}

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

.legal-copy a {
  color: var(--blue-dark);
  font-weight: 760;
}

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 36px;
  align-items: start;
}

.footer-brand {
  color: #fff;
}

.footer-grid p {
  max-width: 420px;
  margin: 14px 0 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 18px;
}

.footer-links a {
  color: #dbeafe;
  text-decoration: none;
  font-weight: 720;
}

.footer-links a:hover {
  color: #67e8f9;
}

.footer-meta {
  display: grid;
  gap: 8px;
  text-align: right;
  color: #94a3b8;
  font-size: .9rem;
}

.not-found-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 145, 178, .08) 1px, transparent 1px),
    linear-gradient(180deg, #f9fbff 0%, #eaf3ff 100%);
  background-size: 54px 54px, 54px 54px, auto;
}

.not-found {
  min-height: 100vh;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 28px;
}

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

.not-found-card h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1;
}

.not-found-card p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 520px;
}

@media (max-width: 980px) {
  .hero-grid,
  .page-hero-grid,
  .split,
  .region-layout,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .pill-grid,
  .card-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid.three,
  .download-grid,
  .steps,
  .guideline-grid {
    grid-template-columns: 1fr;
  }

  .small-code {
    margin-left: 0;
  }

  .docs-aside {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .shell,
  .narrow {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 58px 0;
  }

  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 68px;
    display: none;
    margin: 0;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: grid;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 72px 0 48px;
  }

  .hero h1,
  .page-hero h1,
  .docs-hero h1,
  .legal-hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.8rem);
  }

  .hero-visual {
    padding: 8px;
  }

  .metric-grid,
  .pill-grid,
  .card-grid.two,
  .catalog-grid,
  .region-grid {
    grid-template-columns: 1fr;
  }

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

  .catalog-card dl {
    grid-template-columns: 1fr;
  }

  .docs-aside {
    grid-template-columns: 1fr 1fr;
  }

  .legal-copy {
    padding: 26px;
    margin-top: 42px;
    margin-bottom: 42px;
  }
}

@media (max-width: 460px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .docs-aside {
    grid-template-columns: 1fr;
  }

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