:root {
  --bg: #0f1729;
  --bg-soft: #111b30;
  --surface: #1e2a45;
  --surface-2: #2a364f;
  --ink: #f8fafc;
  --muted: #cbd5e1;
  --line: rgba(196, 181, 253, 0.16);
  --line-strong: rgba(196, 181, 253, 0.28);
  --brand: #8b5cf6;
  --brand-2: #d946ef;
  --accent: #c4b5fd;
  --accent-2: #22d3ee;
  --danger: #fb7185;
  --shadow: 0 22px 70px rgba(2, 8, 23, 0.28);
  --shadow-soft: 0 12px 34px rgba(2, 8, 23, 0.2);
  --radius: 12px;
  --shell-header-h: 90px;
  --shell-footer-h: 46px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5f9fd;
  --bg-soft: #eaf3fb;
  --surface: #ffffff;
  --surface-2: #f8fbff;
  --ink: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.12);
  --line-strong: rgba(15, 23, 42, 0.2);
  --brand: #7c3aed;
  --brand-2: #d946ef;
  --accent: #8b5cf6;
  --accent-2: #14b8a6;
  --danger: #dc2626;
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 12px 34px rgba(15, 23, 42, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg), var(--bg-soft));
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

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

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.05;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0f172a;
  font-size: 13px;
  box-shadow: 4px 4px 0 var(--ink);
}

.brand-logo {
  width: auto;
  height: 42px;
  border-radius: 10px;
}

.brand-logo + span {
  display: none;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.top-nav a {
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  color: var(--ink);
}

.theme-toggle {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-console-page {
  height: 100vh;
  overflow: hidden;
}

.product-console-page .site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--shell-header-h);
  min-height: var(--shell-header-h);
}

.toc-app {
  position: fixed;
  top: var(--shell-header-h);
  right: 0;
  bottom: var(--shell-footer-h);
  left: 0;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  width: 100%;
  height: auto;
  margin: 0;
  padding: 16px clamp(14px, 2vw, 24px);
  overflow: hidden;
}

.toc-sidebar {
  position: relative;
  top: auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.toc-title {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.toc-title h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.toc-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.toc-search {
  display: grid;
  gap: 8px;
  padding: 12px 18px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.toc-search input,
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.toc-search input,
input,
select {
  min-height: 38px;
  padding: 10px 12px;
}

textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

.toc-accordion {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
  scrollbar-color: color-mix(in srgb, var(--accent) 55%, var(--surface-2)) color-mix(in srgb, var(--surface) 72%, transparent);
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}

.toc-accordion::-webkit-scrollbar,
.product-stage::-webkit-scrollbar {
  width: 10px;
}

.toc-accordion::-webkit-scrollbar-track,
.product-stage::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border-radius: 999px;
}

.toc-accordion::-webkit-scrollbar-thumb,
.product-stage::-webkit-scrollbar-thumb {
  border: 2px solid color-mix(in srgb, var(--surface) 72%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 55%, var(--surface-2));
}

.toc-accordion::-webkit-scrollbar-thumb:hover,
.product-stage::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--accent) 78%, var(--surface-2));
}

.toc-group {
  border-radius: 10px;
}

.toc-group[hidden] {
  display: none;
}

.toc-group + .toc-group {
  margin-top: 4px;
}

.toc-group-button {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 950;
  text-align: left;
  cursor: pointer;
}

.toc-group-button::-webkit-details-marker {
  display: none;
}

.toc-group-button strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--brand);
  font-size: 12px;
}

.toc-group[open] > .toc-group-button,
.toc-group.open > .toc-group-button {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 28%, transparent), color-mix(in srgb, var(--brand-2) 16%, transparent));
}

.toc-panel {
  gap: 5px;
  display: none;
}

.toc-group[open] .toc-panel,
.toc-group.open .toc-panel {
  display: grid;
  padding: 5px 0 7px;
}

.toc-product {
  display: grid;
  gap: 3px;
  width: calc(100% - 12px);
  margin-left: 12px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.toc-product span {
  font-size: 13px;
  font-weight: 900;
}

.toc-product small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.toc-product:hover,
.toc-product.active {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: inset 3px 0 0 var(--accent);
}

.toc-empty {
  margin: 6px 12px 10px 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-stage {
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

.catalog-index-stage {
  display: grid;
  gap: 18px;
}

.stage-hero,
.catalog-intro,
.product-list-section,
.product-card,
.panel-card,
.link-tile,
.empty-state,
.admin-panel,
.doc-section,
.docs-hero,
.docs-hero-card,
.product-detail-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
}

.catalog-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  padding: clamp(20px, 4vw, 34px);
}

.catalog-intro h2 {
  max-width: 720px;
  margin-bottom: 10px;
  font-size: clamp(34px, 3.45vw, 52px);
  line-height: 1.08;
}

.catalog-intro p:not(.eyebrow) {
  max-width: 760px;
  font-size: 17px;
}

.catalog-metrics,
.catalog-route-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.catalog-metrics span,
.catalog-route-row a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.catalog-metrics strong {
  margin-right: 7px;
  color: var(--accent);
  font-size: 17px;
}

.catalog-route-row a {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-2));
}

.catalog-route-row a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.catalog-showcase-card {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-2) 90%, transparent);
  box-shadow: 0 22px 48px rgba(2, 8, 23, 0.28);
}

.showcase-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.browser-dots {
  display: inline-flex;
  gap: 6px;
}

.browser-dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.browser-dots i:nth-child(1) {
  background: #fb7185;
}

.browser-dots i:nth-child(2) {
  background: #fbbf24;
}

.browser-dots i:nth-child(3) {
  background: #34d399;
}

.showcase-language-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.showcase-language-tabs button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 950;
  cursor: pointer;
}

.showcase-language-tabs button.active {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  background: color-mix(in srgb, var(--accent) 18%, var(--surface-2));
  color: var(--text);
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 18%, transparent);
}

.showcase-video-frame {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #050b18;
  overflow: hidden;
}

.showcase-video-frame video,
.showcase-video-frame iframe,
.showcase-reel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.showcase-video-frame video,
.showcase-video-frame iframe {
  display: block;
  border: 0;
  background: #050b18;
  z-index: 3;
}

.showcase-video-frame > [hidden] {
  display: none !important;
}

.showcase-reel {
  display: grid;
  align-items: end;
  z-index: 1;
  overflow: hidden;
}

.showcase-reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.showcase-reel-copy {
  display: none;
}

.showcase-reel-copy span {
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.showcase-reel-copy strong {
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.1;
}

.showcase-reel-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

.showcase-reel.is-playing img {
  animation: showcaseDrift 6s ease-in-out infinite alternate;
}

.showcase-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(196, 181, 253, 0.08), rgba(2, 8, 23, 0.36));
  pointer-events: none;
  z-index: 2;
}

.showcase-video-frame:hover .showcase-reel img {
  transform: scale(1.035);
}

.showcase-play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 84%, white);
  color: #0f172a;
  box-shadow: 0 0 42px color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.showcase-play.is-playing {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}

.catalog-showcase-card p {
  margin: 0;
  font-size: 13px;
}

.showcase-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.showcase-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.showcase-open-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.showcase-open-link:hover {
  color: var(--accent);
}

.showcase-status span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 14px var(--accent-2);
}

@keyframes showcaseDrift {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.055) translateY(-4px);
  }
}

.roadmap-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.roadmap-summary-grid div {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.roadmap-summary-grid strong {
  font-size: 18px;
}

.roadmap-summary-grid span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.pro-page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(26px, 4vw, 54px) 0 70px;
}

.pro-hero,
.pro-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
}

.pro-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(22px, 4vw, 42px);
  align-items: stretch;
  padding: clamp(24px, 5vw, 48px);
  overflow: hidden;
}

.pro-hero h1 {
  max-width: 870px;
  margin-bottom: 16px;
  font-size: clamp(38px, 6vw, 72px);
}

.pro-hero p:not(.eyebrow) {
  max-width: 760px;
  font-size: 18px;
}

.pro-video-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: center;
}

.pro-video-hero h1 {
  max-width: 760px;
  font-size: clamp(32px, 3.35vw, 50px);
  line-height: 1.08;
}

.pro-hero-video-card {
  align-self: center;
}

.investor-hero {
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--brand) 14%, transparent), transparent 55%),
    color-mix(in srgb, var(--surface) 92%, transparent);
}

.pro-hero-panel {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.pro-hero-panel strong {
  margin-bottom: 4px;
  font-size: 18px;
}

.pro-hero-panel span {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.pro-section {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.pro-section h2 {
  max-width: 860px;
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
}

.pro-section > p:not(.eyebrow) {
  max-width: 900px;
  font-size: 17px;
}

.pro-card-grid,
.pro-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pro-card,
.pro-callout {
  display: grid;
  gap: 9px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
}

.pro-card strong,
.pro-callout strong {
  font-size: 18px;
}

.pro-card span,
.pro-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

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

.pro-check-list li {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 800;
}

.pro-warning {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    color-mix(in srgb, var(--surface) 92%, transparent);
}

.legal-page .pro-section h2 {
  font-size: clamp(24px, 3.2vw, 34px);
}

.product-list-section {
  padding: clamp(18px, 3vw, 28px);
}

.count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.product-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.product-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  overflow: hidden;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.product-card h3 {
  margin: 0;
  font-size: 22px;
}

.product-card h3 a {
  text-decoration: none;
}

.product-card p {
  margin: 0;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-self: end;
}

.stage-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  min-height: 245px;
  padding: clamp(18px, 3vw, 28px);
  overflow: hidden;
}

.stage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 48%);
  pointer-events: none;
}

.stage-copy,
.stage-graphic {
  position: relative;
}

.stage-meta,
.tag-row,
.stage-actions,
.workbench-meta,
.workbench-actions,
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.stage-meta {
  margin-bottom: 12px;
}

.workbench-meta,
.workbench-actions {
  margin-top: 18px;
}

.stage-meta span,
.workbench-meta span,
.tag-chip,
.tag-row span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.stage-copy h2 {
  max-width: 820px;
  margin: 0 0 10px;
  font-size: clamp(32px, 4.5vw, 54px);
}

.stage-copy > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
}

.stage-action-bar,
.stage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 18px;
}

.glow-button,
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.glow-button::after {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--brand-2));
  opacity: 0;
  filter: blur(12px);
  transition: opacity 180ms ease;
}

.glow-button:hover,
.button:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: var(--shadow-soft);
}

.glow-button:hover::after {
  opacity: 0.45;
}

.glow-button.primary,
.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
}

.glow-button.subtle,
.button.secondary {
  background: var(--surface-2);
}

.stage-graphic {
  display: grid;
  place-items: center;
}

.orbital-card {
  position: relative;
  width: min(100%, 250px);
  aspect-ratio: 1.18;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.orbital-card::before,
.orbital-card::after {
  display: none;
}

.orbital-card img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
  mix-blend-mode: normal;
}

.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 18px 0;
}

.stage-tabs button,
.product-tabs button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}

.stage-tabs button.active,
.stage-tabs button:hover,
.product-tabs button.active,
.product-tabs button:hover {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0f172a;
}

.stage-panel {
  display: none;
  min-height: 220px;
}

.stage-panel.active {
  display: block;
}

.panel-card {
  padding: clamp(22px, 4vw, 38px);
}

.panel-card h3,
.link-tile strong {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
}

.feature-pills {
  margin-top: 16px;
}

.feature-chip {
  flex: 1 1 220px;
  min-height: 74px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  font-weight: 900;
}

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

.link-tile {
  display: grid;
  min-height: 170px;
  padding: 22px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.link-tile span {
  color: var(--muted);
}

.link-tile:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
}

.console-dl,
.version-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.console-dl div,
.version-list div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.console-dl dt,
.version-list dt {
  color: var(--muted);
  font-weight: 950;
}

.console-dl dd,
.version-list dd {
  margin: 0;
}

.muted-note {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 28px clamp(16px, 4vw, 44px);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  color: var(--muted);
  font-size: 14px;
}

.console-footer {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: var(--shell-footer-h);
  padding: 0 clamp(16px, 4vw, 44px);
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(18px);
}

.console-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a {
  font-weight: 900;
  text-decoration: none;
}

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

/* Direct product pages */
.product-detail-shell,
.docs-shell,
.admin-shell {
  width: min(1360px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.product-detail-app {
  grid-template-columns: 310px minmax(0, 1fr);
}

.product-detail-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
}

.market-sidebar,
.product-detail-sidebar,
.doc-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.sidebar-heading {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.sidebar-heading h2 {
  margin: 0;
  font-size: 24px;
}

.sidebar-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sidebar-filter {
  display: flex;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.accordion-list {
  padding: 8px;
}

.category-accordion {
  border-radius: 10px;
}

.category-accordion summary {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border-radius: 10px;
  font-weight: 950;
  cursor: pointer;
}

.category-accordion[open] summary {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, transparent), color-mix(in srgb, var(--accent) 18%, transparent));
}

.category-links {
  display: grid;
  gap: 4px;
  padding: 0 0 8px;
}

.category-links a {
  padding: 9px 12px 9px 22px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.category-links a:hover,
.category-links a.active {
  background: var(--surface-2);
  color: var(--ink);
}

.product-detail-main,
.doc-article {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.product-detail-main {
  align-content: start;
}

.product-detail-hero,
.docs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 230px);
  gap: clamp(16px, 2.5vw, 26px);
  align-items: center;
  padding: clamp(16px, 2.4vw, 24px);
}

.product-detail-hero h1,
.docs-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 3.4vw, 46px);
}

.product-detail-visual,
.docs-hero-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  overflow: hidden;
}

.product-detail-visual {
  aspect-ratio: 16 / 10;
}

.docs-hero-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 16px;
}

.docs-hero-card img {
  width: 100%;
  min-height: 170px;
  object-fit: cover;
}

.docs-hero-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.docs-hero-card dt {
  color: var(--muted);
  font-weight: 900;
}

.docs-hero-card dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.product-detail-visual img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

.breadcrumb,
.hero-actions,
.section-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.breadcrumb a,
.text-link {
  color: var(--brand);
  font-weight: 950;
  text-decoration: none;
}

.text-link:hover,
.breadcrumb a:hover {
  text-decoration: underline;
}

.hero-actions {
  margin-top: 22px;
}

.section-heading-row {
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-heading-row h2 {
  margin-bottom: 0;
}

.media-section {
  overflow: hidden;
}

.embed-frame,
.embed-placeholder {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.embed-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg);
}

.demo-embed {
  aspect-ratio: 16 / 10;
  min-height: 440px;
}

.video-embed {
  aspect-ratio: 16 / 9;
}

.embed-placeholder {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 24px;
  text-align: center;
}

.embed-placeholder strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 24px;
}

.embed-placeholder span {
  color: var(--muted);
}

.compact-dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.compact-dl div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.compact-dl div:last-child {
  border-bottom: 0;
}

.compact-dl dt {
  color: var(--muted);
  font-weight: 950;
}

.compact-dl dd {
  margin: 0;
}

.product-tabs,
.tabs,
.doc-top-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.product-detail-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.product-tabs a,
.product-tabs button,
.tabs a {
  min-height: 38px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.product-tabs a:hover,
.product-tabs button:hover,
.product-tabs button.active,
.product-tabs button[aria-selected="true"],
.tabs a:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
}

.product-tab-panels {
  min-height: 360px;
}

.product-tab-panel {
  display: none;
}

.product-tab-panel.active {
  display: block;
}

.product-tab-panel[hidden] {
  display: none;
}

.product-hero,
.content-section {
  width: min(1360px, calc(100% - 28px));
  margin: 18px auto;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
}

.product-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(32px, 4.5vw, 54px);
}

.product-showcase {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  overflow: hidden;
}

.product-showcase img {
  width: 100%;
  min-height: 190px;
  object-fit: cover;
}

.content-section {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-soft);
}

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

.doc-sidebar {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.doc-sidebar strong {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.doc-sidebar a {
  padding: 9px 10px;
  border-radius: 9px;
  font-weight: 850;
  text-decoration: none;
}

.doc-sidebar a:hover {
  background: var(--surface-2);
}

.doc-section {
  padding: clamp(22px, 4vw, 38px);
  scroll-margin-top: 100px;
}

.doc-card-grid,
.code-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.doc-card,
.feature-item,
.code-grid > div,
.callout {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.doc-card span,
.feature-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 500;
}

.doc-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.doc-table > div {
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr);
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.doc-table > div:first-child {
  background: var(--surface-2);
}

.doc-table > div:last-child {
  border-bottom: 0;
}

.clean-list,
.steps {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0d1715;
  color: #fff4d0;
}

code {
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
}

/* Admin */
.admin-body {
  background: var(--bg);
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

.admin-panel {
  overflow: visible;
}

.admin-panel-header,
.admin-panel-body {
  padding: 18px;
}

.admin-panel-header {
  border-bottom: 1px solid var(--line);
}

.admin-panel-header h1,
.admin-panel-header h2 {
  margin: 0;
  font-size: 24px;
}

.admin-subtitle {
  margin: 0 0 10px;
  font-size: 18px;
}

.admin-list {
  display: grid;
  gap: 8px;
}

.admin-list a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.admin-list a:hover,
.admin-list a.active {
  background: var(--surface-2);
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.admin-form-actions,
.admin-delete-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.admin-delete-form {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.admin-form-actions .button,
.admin-delete-form .button {
  width: auto;
  min-width: 150px;
}

.form-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 16px 0;
}

.check-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 850;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.notice {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  font-weight: 850;
}

.notice.error,
.danger-button {
  color: var(--danger);
  border-color: var(--danger);
}

.admin-help {
  color: var(--muted);
  font-size: 14px;
}

.admin-divider {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.login-card {
  width: min(520px, calc(100% - 32px));
  margin: 8vh auto;
}

.not-found {
  width: min(820px, calc(100% - 32px));
  margin: 8vh auto;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

@media (max-width: 1040px) {
  .product-console-page {
    height: auto;
    overflow: auto;
  }

  .product-console-page .site-header {
    position: sticky;
    height: auto;
    min-height: 72px;
  }

  .toc-app,
  .product-detail-app,
  .product-detail-shell,
  .doc-layout,
  .admin-grid,
  .stage-hero,
  .catalog-intro,
  .roadmap-summary-grid,
  .pro-hero,
  .pro-card-grid,
  .pro-split,
  .product-hero,
  .product-detail-hero,
  .docs-hero {
    grid-template-columns: 1fr;
  }

  .toc-app {
    position: static;
    height: auto;
    margin: 0;
    overflow: visible;
  }

  .toc-sidebar,
  .market-sidebar,
  .product-detail-sidebar,
  .doc-sidebar {
    position: static;
    height: auto;
  }

  .toc-sidebar {
    height: calc(100vh - var(--shell-header-h) - 24px);
    max-height: none;
    min-height: 360px;
  }

  .toc-accordion {
    overflow-y: auto;
  }

  .product-stage {
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .product-detail-tabs {
    position: static;
  }

  .console-footer {
    position: static;
    height: auto;
    min-height: var(--shell-footer-h);
    flex-wrap: wrap;
    padding-block: 12px;
  }

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

@media (max-width: 640px) {
  .site-header,
  .top-nav,
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
  }

  .toc-app,
  .product-detail-shell,
  .docs-shell,
  .pro-page-shell,
  .admin-shell {
    width: min(100% - 18px, 1500px);
    padding-top: 12px;
  }

  .stage-hero {
    min-height: auto;
  }

  .stage-copy h2 {
    font-size: 42px;
  }

  .glow-button,
  .button {
    width: 100%;
  }

  .stage-actions {
    width: 100%;
  }

  .stage-action-bar {
    width: 100%;
  }

  .console-dl div,
  .compact-dl div,
  .version-list div,
  .doc-table > div {
    grid-template-columns: 1fr;
  }

  .demo-embed {
    min-height: 360px;
  }

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

  .admin-form-actions .button,
  .admin-delete-form .button {
    width: 100%;
  }
}
