:root {
  --bg: #111315;
  --surface: #171a1d;
  --surface-2: #1d2125;
  --surface-3: #24292e;
  --panel: #181c20;
  --line: #30363d;
  --line-strong: #4b5560;
  --text: #edf0f2;
  --muted: #9aa3ad;
  --muted-2: #717b86;
  --accent: #38bdf8;
  --accent-strong: #7dd3fc;
  --accent-soft: rgba(56, 189, 248, 0.13);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.13);
  --ok: #22c55e;
  --ok-soft: rgba(34, 197, 94, 0.13);
  --maxw: 1120px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0 !important;
  letter-spacing: 0;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.52;
  text-rendering: optimizeLegibility;
}

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

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

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar-inner,
.page,
.footer-inner {
  width: min(var(--maxw), calc(100vw - 32px));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: cover;
}

.brand-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: color-mix(in srgb, var(--accent-strong) 72%, var(--accent) 28%);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.1;
}

.nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: visible;
  white-space: nowrap;
}

.nav a,
.nav-trigger,
.button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  padding: 5px 9px;
  white-space: nowrap;
  cursor: pointer;
}

.nav a:hover,
.nav a:focus-visible,
.nav-trigger:hover,
.nav-trigger:focus-visible,
.button:hover,
.button:focus-visible {
  border-color: var(--accent);
  background: var(--surface);
  color: var(--accent-strong);
  outline: none;
}

.nav-menu {
  position: relative;
  display: inline-flex;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  min-width: 170px;
  display: none;
  gap: 2px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 4px;
}

.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  display: grid;
}

.nav-dropdown a {
  width: 100%;
  justify-content: flex-start;
}

.page {
  padding: 0 0 42px;
}

.page-hero {
  padding: 42px 0 26px;
  border-bottom: 1px solid var(--line);
}

.page-hero.compact {
  padding-bottom: 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 18px;
  align-items: start;
}

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

.pathline {
  margin: 0 0 10px;
  color: var(--muted-2);
  font-size: 12px;
}

.pathline a {
  color: var(--muted);
}

.pathline a:hover {
  color: var(--accent-strong);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  font-weight: 650;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 21px;
}

h3 {
  font-size: 15px;
}

.lede {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.share-label {
  color: var(--muted);
  font-size: 12px;
}

.icon-link {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--accent-strong);
}

.icon-link:hover,
.icon-link:focus-visible {
  border-color: var(--accent);
  background: var(--surface);
  color: var(--accent-strong);
  outline: none;
}

.icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.section {
  padding: 26px 0 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 10px;
}

.section-header p {
  margin: 10px 0 0;
  color: var(--muted);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 10px;
}

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

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

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

.card,
.product-card,
.notice,
.screen-frame,
.doc-content,
.side-nav {
  border: 1px solid var(--line);
  background: var(--panel);
}

.card,
.product-card,
.notice {
  padding: 10px;
}

.card p,
.product-card p,
.notice p {
  margin: 12px 0 0;
  color: var(--muted);
}

.product-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.card-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.product-title img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
}

.status-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  padding: 3px 7px;
  text-transform: uppercase;
}

.status-badge.available {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.screen-frame {
  overflow: hidden;
}

.section-screen {
  margin-top: 10px;
}

.screen-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
}

.button-row.compact {
  margin-top: 0;
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.bullet-list li + li {
  margin-top: 6px;
}

pre {
  margin: 12px 0 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  background: #0b0d0f;
  color: var(--text);
}

.doc-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 10px;
  padding-top: 26px;
}

.side-nav {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow: auto;
  align-self: start;
  padding: 10px;
}

.side-nav h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
}

.side-nav a {
  display: block;
  border: 1px solid transparent;
  color: var(--accent-strong);
  font-size: 12px;
  padding: 6px 7px;
}

.side-nav a:hover,
.side-nav a:focus-visible {
  border-color: var(--accent);
  background: var(--surface);
  color: var(--accent-strong);
  outline: none;
}

.doc-content {
  padding: 16px;
}

.doc-content h1 {
  font-size: 26px;
}

.doc-content h2 {
  margin-top: 30px;
  font-size: 19px;
}

.doc-content h3 {
  margin-top: 20px;
  font-size: 15px;
}

.doc-content p,
.doc-content li {
  color: var(--muted);
}

.doc-content p {
  margin-top: 12px;
  margin-bottom: 0;
}

.doc-content p + p {
  margin-top: 17px;
}

.doc-content a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-underline-offset: 3px;
}

.doc-image {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.doc-image img {
  width: 100%;
  aspect-ratio: 16 / 8.8;
  object-fit: cover;
  object-position: top left;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer a {
  color: var(--text);
}

.footer a:hover {
  color: var(--accent-strong);
}

@media (max-width: 900px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
  }

  .nav {
    width: 100%;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-top: 32px;
  }

  h1 {
    font-size: 29px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 12px 0;
  }
}

@media (max-width: 560px) {
  .topbar-inner,
  .page,
  .footer-inner {
    width: min(var(--maxw), calc(100vw - 24px));
  }

  h1 {
    font-size: 26px;
  }

  .lede {
    font-size: 14px;
  }

  .button,
  .nav a,
  .nav-trigger {
    width: auto;
  }

}
