:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --bg-soft: #10151d;
  --panel: #141b25;
  --panel-strong: #182231;
  --line: rgba(184, 198, 218, 0.16);
  --line-strong: rgba(184, 198, 218, 0.28);
  --text: #eef3f8;
  --muted: #9eacbd;
  --quiet: #718096;
  --blue: #7ea7d8;
  --green: #6dd39a;
  --green-bg: rgba(109, 211, 154, 0.13);
  --amber: #d6a85f;
  --amber-bg: rgba(214, 168, 95, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --radius-sm: 6px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% -12%, rgba(126, 167, 216, 0.18), transparent 34rem),
    radial-gradient(circle at 92% 6%, rgba(109, 211, 154, 0.1), transparent 28rem),
    linear-gradient(180deg, #0b0f14 0%, #0e131a 44%, #090d12 100%);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.28;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--text);
}

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

p {
  color: var(--muted);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: #dbe8f5;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.14rem 0.36rem;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(8, 12, 17, 0.74);
  color: var(--text);
  min-height: 48px;
  padding: 0.84rem 0.9rem;
  outline: 0;
}

input:focus {
  border-color: rgba(126, 167, 216, 0.78);
  box-shadow: 0 0 0 3px rgba(126, 167, 216, 0.16);
}

label {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: #c9d4e2;
  font-weight: 700;
  font-size: 0.92rem;
}

:focus-visible {
  outline: 3px solid rgba(126, 167, 216, 0.82);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  transform: translateY(-180%);
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 100;
  font-weight: 800;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(126, 167, 216, 0.42);
  background: linear-gradient(135deg, rgba(126, 167, 216, 0.2), rgba(109, 211, 154, 0.12));
  color: #f7fbff;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.05;
  letter-spacing: 0;
}

.brand small {
  color: var(--quiet);
  font-size: 0.76rem;
  margin-top: 0.12rem;
}

.menu-button {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 0.62rem 0.85rem;
  font-weight: 800;
}

.site-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 1px);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(15, 21, 29, 0.98);
  box-shadow: var(--shadow);
}

.site-nav[data-open="true"] {
  display: flex;
}

.site-nav a {
  color: var(--muted);
  padding: 0.82rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 750;
  min-height: 44px;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero-section {
  padding: 4.3rem 0 3.4rem;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 1rem;
  font-size: 2.45rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: 1.62rem;
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 0.75rem;
}

h3 {
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.hero-subtitle {
  max-width: 670px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  padding: 0.78rem 1.05rem;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button.primary {
  color: #07120d;
  background: linear-gradient(135deg, #8ce3b0, #7ea7d8);
  border-color: rgba(255, 255, 255, 0.18);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.hero-panel,
.status-card,
.feature-card,
.tool-card,
.reference-card,
.policy-card,
.release-card,
.docs-nav,
.status-banner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.035));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.hero-panel {
  padding: 1.1rem;
  align-self: end;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #dce8f4;
  font-weight: 800;
  margin-bottom: 1rem;
}

.status-dot {
  width: 0.72rem;
  height: 0.72rem;
  display: inline-block;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-bg);
  flex: 0 0 auto;
}

.signal-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.signal-stack div {
  min-width: 0;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(10, 15, 21, 0.66);
  border: 1px solid var(--line);
}

.signal-stack span,
.signal-stack strong {
  display: block;
}

.signal-stack span {
  color: var(--quiet);
  font-size: 0.76rem;
}

.signal-stack strong {
  margin-top: 0.2rem;
  font-size: 1.2rem;
}

.line-chart {
  height: 142px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.5rem;
  align-items: end;
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(10, 15, 21, 0.58);
  border: 1px solid var(--line);
}

.line-chart span {
  display: block;
  min-height: 20px;
  border-radius: 99px 99px 4px 4px;
  background: linear-gradient(180deg, rgba(126, 167, 216, 0.96), rgba(109, 211, 154, 0.56));
}

.section {
  padding: 3.25rem 0;
  position: relative;
}

.section-soft {
  background: rgba(255, 255, 255, 0.025);
  border-block: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 1.2rem;
  max-width: 760px;
}

.compact-heading {
  margin-top: 2.2rem;
}

.card-grid {
  display: grid;
  gap: 0.85rem;
}

.status-grid,
.tool-preview-grid,
.policy-grid {
  grid-template-columns: 1fr;
}

.status-card,
.feature-card,
.policy-card {
  padding: 1rem;
}

.status-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 0.75rem;
}

.status-card h3,
.status-card p {
  grid-column: 2;
}

.status-card .status-dot {
  grid-row: 1 / span 2;
  margin-top: 0.34rem;
}

.status-card p,
.feature-card p,
.policy-card p {
  margin-bottom: 0;
}

.region-list {
  display: grid;
  gap: 0.75rem;
}

.region-card,
.component-row {
  display: grid;
  gap: 0.6rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 19, 27, 0.78);
}

.region-card h3,
.region-card p,
.component-row h3,
.component-row p {
  margin-bottom: 0;
}

.region-card span {
  color: #dfeaf5;
  font-weight: 850;
}

.region-card small {
  color: var(--quiet);
  font-weight: 700;
}

.region-card strong,
.component-row strong,
.timeline strong {
  width: fit-content;
  color: #99e6b8;
  background: var(--green-bg);
  border: 1px solid rgba(109, 211, 154, 0.22);
  border-radius: 999px;
  padding: 0.34rem 0.58rem;
  font-size: 0.78rem;
}

.split-section {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.delivery-section {
  padding-bottom: 4.5rem;
}

.delivery-section p:last-child {
  max-width: 660px;
  margin-bottom: 0;
  font-size: 1.05rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 10, 14, 0.9);
  padding: 1.6rem 0;
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-inner p {
  margin-bottom: 0;
  color: var(--text);
  font-weight: 850;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.footer-inner a {
  color: var(--muted);
  font-weight: 700;
}

.page-hero {
  padding: 3.6rem 0 2.3rem;
  border-bottom: 1px solid var(--line);
}

.page-hero .wrap {
  max-width: 900px;
}

.page-hero h1 {
  font-size: 2.25rem;
}

.page-hero p:last-child {
  max-width: 720px;
  font-size: 1.07rem;
}

.status-banner {
  padding: 1.1rem;
  display: flex;
  gap: 0.85rem;
  align-items: start;
}

.status-banner h2 {
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}

.status-banner p {
  margin-bottom: 0;
}

.component-list {
  display: grid;
  gap: 0.75rem;
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
}

.metric-list div {
  min-width: 0;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(8, 12, 17, 0.48);
}

.metric-list dt {
  color: var(--quiet);
  font-size: 0.74rem;
  font-weight: 800;
}

.metric-list dd {
  margin: 0.08rem 0 0;
  color: var(--text);
  font-weight: 850;
}

.two-column,
.docs-layout,
.tool-layout {
  display: grid;
  gap: 1rem;
}

.timeline {
  display: grid;
  gap: 0.8rem;
}

.timeline article {
  border-left: 2px solid rgba(126, 167, 216, 0.34);
  padding: 0.25rem 0 0.45rem 1rem;
}

.timeline time,
.release-meta time {
  color: var(--quiet);
  font-size: 0.88rem;
  font-weight: 750;
}

.timeline p {
  margin-bottom: 0.7rem;
}

.reference-card {
  padding: 1rem;
}

.reference-card h2 {
  font-size: 1.35rem;
}

.link-list,
.code-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.link-list a {
  display: block;
  padding: 0.72rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(8, 12, 17, 0.58);
}

.tool-card {
  padding: 1rem;
}

.tool-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tool-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0;
}

.tool-tag {
  color: #d9e6f1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.34rem 0.58rem;
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.055);
}

.input-row {
  display: grid;
  gap: 0.7rem;
}

.result-box {
  min-height: 168px;
  margin: 1rem 0 0;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(5, 8, 12, 0.78);
  color: #dbe8f5;
  white-space: pre-wrap;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.55;
}

.tool-copy {
  margin-bottom: 1rem;
}

.tool-note {
  margin: 0.75rem 0 0;
  color: #d7c39b;
  border: 1px solid rgba(214, 168, 95, 0.2);
  border-radius: var(--radius-sm);
  background: var(--amber-bg);
  padding: 0.7rem;
  font-size: 0.9rem;
}

.latency-results {
  display: grid;
  gap: 0.62rem;
  margin-top: 1rem;
}

.latency-results p {
  margin-bottom: 0;
}

.latency-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(8, 12, 17, 0.58);
}

.latency-row strong {
  color: var(--text);
  white-space: nowrap;
}

.download-list {
  display: grid;
  gap: 0.7rem;
}

.download-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(8, 12, 17, 0.58);
}

.download-link span {
  color: #dbe8f5;
  font-weight: 800;
}

.download-link strong {
  color: var(--green);
}

.docs-nav {
  padding: 0.7rem;
  height: fit-content;
  display: grid;
  gap: 0.2rem;
}

.docs-nav a {
  color: var(--muted);
  padding: 0.68rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 760;
}

.docs-nav a:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.docs-content {
  display: grid;
  gap: 1rem;
}

.docs-content section {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 20, 28, 0.68);
}

.docs-content section p:last-child {
  margin-bottom: 0;
}

.code-list li {
  padding: 0.68rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(8, 12, 17, 0.58);
}

.changelog-list {
  display: grid;
  gap: 0.9rem;
}

.release-card {
  padding: 1rem;
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.release-meta span {
  color: #07120d;
  background: linear-gradient(135deg, #8ce3b0, #7ea7d8);
  border-radius: 999px;
  padding: 0.32rem 0.6rem;
  font-weight: 900;
}

.release-card h2 {
  font-size: 1.45rem;
}

.release-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.release-card li + li {
  margin-top: 0.42rem;
}

.policy-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .wrap {
    width: min(100% - 48px, var(--max));
  }

  .status-grid,
  .tool-preview-grid,
  .policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .region-card,
  .component-row {
    grid-template-columns: 1fr auto auto;
  }

  .region-card small {
    grid-column: 1 / -1;
  }

  .input-row {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .wide-card {
    grid-column: span 2;
  }
}

@media (min-width: 840px) {
  .menu-button {
    display: none;
  }

  .site-nav,
  .site-nav[data-open="true"] {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav a {
    padding: 0.6rem 0.75rem;
  }

  .hero-section {
    padding: 6.4rem 0 5rem;
  }

  h1 {
    font-size: 4.7rem;
  }

  h2 {
    font-size: 2.3rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .page-hero h1 {
    font-size: 4rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
    align-items: end;
  }

  .hero-panel {
    padding: 1.25rem;
  }

  .section {
    padding: 4.7rem 0;
  }

  .status-grid,
  .tool-preview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .split-section {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .two-column {
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
    align-items: start;
  }

  .tool-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .docs-nav {
    position: sticky;
    top: 96px;
  }
}

@media (min-width: 1040px) {
  h1 {
    font-size: 5.35rem;
  }

  .component-row {
    padding: 1rem 1.15rem;
  }

  .release-card,
  .tool-card,
  .policy-card,
  .docs-content section {
    padding: 1.2rem;
  }
}
