:root {
  color-scheme: dark;
  --bg: #0b1220;
  --surface: #111827;
  --surface-2: #172033;
  --border: #2a3852;
  --text: #eef2f7;
  --muted: #a9b4c5;
  --accent: #8ab4ff;
  --accent-strong: #b8d0ff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #14213a 0, var(--bg) 42rem);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-strong); }
.shell { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(138, 180, 255, 0.16);
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: blur(14px);
}
.header-inner, .footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.8rem; color: inherit; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand-kicker, .eyebrow, .card-label {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand-name { display: block; font-weight: 750; }
.ecosystem-link { white-space: nowrap; }

.hero { padding-block: clamp(4rem, 8vw, 7rem) 3rem; }
.hero h1 {
  max-width: 900px;
  margin: 0.35rem 0 1rem;
  font-size: clamp(2.3rem, 6vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero-copy { max-width: 800px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }

.section-heading { margin-bottom: 1.4rem; }
.section-heading h2 { margin: 0.25rem 0 0; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.system-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 1.45rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(23, 32, 51, 0.92), rgba(17, 24, 39, 0.96));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
}
.system-card h3 { margin: 0.45rem 0 0.7rem; font-size: 1.35rem; line-height: 1.25; }
.system-card h3 span { color: var(--accent-strong); }
.system-card p:not(.card-label):not(.status) { color: var(--muted); }
.system-card a, .system-card .status { margin-top: auto; font-weight: 700; }
.status { color: #c8d3e3; }

.architecture { padding-block: 5rem; }
.flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}
.flow div { min-height: 132px; padding: 1.15rem; border-right: 1px solid var(--border); }
.flow div:last-child { border-right: 0; }
.flow strong, .flow span { display: block; }
.flow strong { margin-bottom: 0.35rem; color: var(--accent-strong); font-size: 1.05rem; }
.flow span { color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); }
.footer-inner { min-height: 86px; font-size: 0.92rem; }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow div { border-bottom: 1px solid var(--border); }
  .flow div:nth-child(2n) { border-right: 0; }
  .flow div:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 620px) {
  .header-inner, .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 0.8rem; }
  .ecosystem-link { white-space: normal; }
  .card-grid, .flow { grid-template-columns: 1fr; }
  .system-card { min-height: 0; }
  .flow div, .flow div:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--border); }
  .flow div:last-child { border-bottom: 0; }
}

/* Keyboard access and narrow/text-scaled layouts. */
a:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 4px; }
.skip-link { position: absolute; left: 1rem; top: -8rem; z-index: 20; padding: 0.75rem; background: var(--surface); }
.skip-link:focus { top: 0.5rem; }
.brand-mark { flex-shrink: 0; }
.brand, .system-card, .flow div { min-width: 0; overflow-wrap: anywhere; }
.ecosystem-link, .system-card a { display: inline-flex; align-items: center; min-height: 44px; }
.descriptor { font-size: 1.25rem; color: var(--accent-strong); }
main { scroll-margin-top: 10rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
