:root {
  --bg: #0b1220;
  --bg-elevated: rgba(17, 23, 36, 0.88);
  --bg-panel: rgba(22, 33, 51, 0.86);
  --bg-soft: rgba(80, 113, 170, 0.12);
  --line: rgba(122, 161, 224, 0.18);
  --line-strong: rgba(122, 161, 224, 0.32);
  --text: #ecf4ff;
  --muted: #9fb2d1;
  --accent: #4eb4ff;
  --accent-strong: #1d7ed1;
  --accent-soft: rgba(78, 180, 255, 0.14);
  --success: #49d3a8;
  --warning: #f6c15f;
  --danger: #ff7b7b;
  --shadow: 0 30px 80px rgba(1, 7, 18, 0.45);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(78, 180, 255, 0.16), transparent 28%),
    radial-gradient(circle at top left, rgba(100, 134, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #0b1220 0%, #0f1728 52%, #09101a 100%);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.56), transparent 88%);
  pointer-events: none;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(8, 12, 20, 0.72);
  border-bottom: 1px solid rgba(122, 161, 224, 0.12);
}

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

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(78, 180, 255, 0.3));
}

.brand-wordmark {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-subline {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.topbar-menu-button .close-icon {
  display: none;
}

.topbar-menu-button[aria-expanded="true"] .burger-icon {
  display: none;
}

.topbar-menu-button[aria-expanded="true"] .close-icon {
  display: block;
}

/* ── Docs mobile nav ─────────────────────────────────────── */

.docs-mobile-nav {
  display: none;
}

.docs-mobile-nav-inner {
  position: relative;
  padding: 8px 0;
}

.docs-mobile-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.docs-toggle-plus {
  margin-left: auto;
  width: 18px;
  height: 18px;
  transition: transform 220ms ease;
  flex-shrink: 0;
}

.docs-mobile-toggle[aria-expanded="true"] .docs-toggle-plus {
  transform: rotate(45deg);
}

#app-mobile-nav .docs-mobile-toggle {
  width: 95%;
  margin: 0 auto;
}

.docs-mobile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  right: 0;
  z-index: 35;
  padding: 16px;
  background: #0b1220;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.docs-mobile-dropdown.is-open {
  display: block;
}

.docs-mobile-dropdown .sidebar-stack {
  flex-direction: column;
  overflow-x: unset;
  gap: 4px;
}

.docs-mobile-dropdown .sidebar-link {
  min-width: unset;
  white-space: normal;
  padding: 10px 14px;
}

.nav-link,
.pill-link,
.sidebar-link {
  transition: 180ms ease;
}

.nav-link {
  padding: 10px 14px;
  color: var(--muted);
  border-radius: 999px;
}

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

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
}

.pill-link.primary {
  background: linear-gradient(135deg, var(--accent), #7cc9ff);
  color: #03111f;
  box-shadow: 0 12px 30px rgba(78, 180, 255, 0.24);
}

.pill-link.secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.topbar-inline-form {
  display: inline-flex;
  margin: 0;
}

button.pill-link {
  cursor: pointer;
}

.nav-link:focus-visible,
.pill-link:focus-visible,
.sidebar-link:focus-visible,
.topbar-menu-button:focus-visible,
.button:focus-visible,
.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible,
.auth-button:focus-visible,
.auth-field input:focus-visible,
.auth-field textarea:focus-visible,
.auth-field select:focus-visible,
.auth-check:focus-within {
  outline: none;
  box-shadow: 0 0 0 3px rgba(78, 180, 255, 0.28);
}

.hero {
  padding: 88px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 32px;
  align-items: stretch;
}

.panel,
.hero-panel,
.stats-card,
.content-panel,
.sidebar-panel,
.composer,
.message {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  padding: 42px;
  border-radius: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #91d7ff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 0.97;
}

.hero-copy {
  max-width: 60ch;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-em {
  font-style: normal;
  font-weight: 600;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.hero-actions,
.inline-actions,
.quick-prompts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats,
.stats-grid,
.info-grid,
.detail-grid {
  display: grid;
  gap: 16px;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.stats-card {
  padding: 18px 20px;
  border-radius: 22px;
}

.stats-card strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.stats-card span,
.meta-text,
.section-intro,
.empty-state,
.table-cell-muted {
  color: var(--muted);
}

.flash-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.flash-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(93, 225, 168, 0.28);
  border-radius: 18px;
  background: rgba(49, 102, 80, 0.22);
  color: var(--text);
  transition: opacity 0.35s ease;
}

.flash-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 120ms ease;
}

.flash-close:hover {
  color: var(--text);
}

.orbit-card {
  position: relative;
  min-height: 100%;
  padding: 34px;
  border-radius: 34px;
  overflow: hidden;
}

.orbit-card::before,
.orbit-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(139, 193, 255, 0.2);
}

.orbit-card::before {
  inset: 40px 70px auto 40px;
  height: 220px;
}

.orbit-card::after {
  inset: auto 50px 36px 94px;
  height: 180px;
}

.orbit-core {
  position: absolute;
  inset: 60px auto auto 56px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #9fe3ff 0%, #4eb4ff 42%, #14446e 100%);
  box-shadow: 0 0 80px rgba(78, 180, 255, 0.32);
}

.orbit-label {
  position: absolute;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(9, 18, 33, 0.76);
  border: 1px solid rgba(151, 204, 255, 0.18);
  color: #dcefff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orbit-label.api {
  top: 28px;
  right: 42px;
}

.orbit-label.billing {
  bottom: 100px;
  right: 18px;
}

.orbit-label.usage {
  bottom: 24px;
  left: 36px;
}

.orbit-copy {
  position: absolute;
  right: 36px;
  bottom: 32px;
  width: min(280px, 58%);
}

.orbit-copy h2 {
  margin: 0 0 12px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.55rem;
}

.orbit-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.orbit-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.app-shell {
  padding: 28px 0 40px;
}

.app-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.sidebar-panel,
.content-panel {
  border-radius: var(--radius-lg);
}

.sidebar-panel {
  position: sticky;
  top: 108px;
  padding: 18px;
}

.sidebar-title {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sidebar-section-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--muted);
}

.sidebar-link:hover,
.sidebar-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-link small {
  opacity: 0.74;
}

.sidebar-footnote {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.content-panel {
  padding: 28px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.page-title {
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.section-intro {
  margin: 12px 0 0;
  line-height: 1.7;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #8fd3ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-chip[data-state="streaming"] {
  background: rgba(246, 193, 95, 0.18);
  color: #ffd98b;
}

.status-chip[data-state="complete"] {
  background: rgba(73, 211, 168, 0.16);
  color: #9bf1d6;
}

.status-chip[data-state="error"] {
  background: rgba(255, 123, 123, 0.18);
  color: #ffc0c0;
}

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

.info-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

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

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.content-block {
  padding: 24px;
  border-radius: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
}

.content-panel > * + * {
  margin-top: 20px;
}

.content-block h3 {
  margin: 0 0 12px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.15rem;
}

.content-notice {
  margin-bottom: 18px;
  background: rgba(78, 180, 255, 0.08);
}

.content-block p,
.content-block li {
  color: var(--muted);
  line-height: 1.65;
}

.detail-list,
.list-reset {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-label {
  color: var(--muted);
}

.detail-value {
  text-align: right;
  font-weight: 700;
}

.tier-progress {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.tier-progress__label {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 8px;
}

.tier-progress__label strong {
  color: var(--text);
}

.tier-progress__bar-wrap {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.tier-progress__bar {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap {
  overflow-x: auto;
  padding-bottom: 6px;
}

.table-wrap .table {
  min-width: 640px;
}

.table th,
.table td {
  padding: 12px 0;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.table th {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table tr:last-child td {
  border-bottom: 0;
}

.usage-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 700;
}

.chat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.75fr);
  gap: 18px;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}

.chat-panel,
.composer,
.info-panel {
  border-radius: 24px;
}

.chat-panel,
.info-panel {
  padding: 20px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
}

.chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 620px;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  overflow: auto;
  padding-right: 4px;
}

.message {
  border-radius: 24px;
  padding: 18px 20px;
}

.message.user {
  align-self: flex-end;
  width: min(86%, 640px);
  background: linear-gradient(135deg, rgba(78, 180, 255, 0.18), rgba(78, 180, 255, 0.1));
}

.message.assistant {
  width: min(90%, 720px);
  background: rgba(255, 255, 255, 0.04);
}

.message.system {
  align-self: center;
  width: min(86%, 680px);
  background: rgba(255, 195, 90, 0.06);
  border-color: rgba(255, 195, 90, 0.18);
}

.message.system .message-label {
  color: rgba(255, 195, 90, 0.7);
}

.message.tool-call {
  width: min(90%, 720px);
  background: rgba(160, 110, 255, 0.06);
  border-color: rgba(160, 110, 255, 0.18);
}

.message.tool-call .message-label {
  color: rgba(160, 110, 255, 0.75);
}

.message-body.tool-call-args {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  overflow-x: auto;
}

.chat-import-error {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.25);
  color: #ff9090;
  font-size: 0.85rem;
  line-height: 1.5;
}

.message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.message-label {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.message-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 120ms ease;
  flex-shrink: 0;
}

.message:hover .message-actions {
  opacity: 1;
}

.chat-thread.is-streaming .message-actions {
  opacity: 0;
  pointer-events: none;
}

.message-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.message-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.message-edit-textarea {
  width: 100%;
  margin-top: 4px;
  min-height: 80px;
  resize: vertical;
}

.message-edit-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.message-body {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
  white-space: pre-wrap;
}

.composer {
  margin-top: 18px;
  padding: 18px;
  background: rgba(10, 17, 29, 0.88);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.select option {
  background: #111b2e;
  color: var(--text);
}

.textarea {
  min-height: 126px;
  resize: vertical;
}

.chat-title {
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
}

.form-section {
  margin-top: 14px;
}

.form-section--inline {
  display: flex;
  align-items: center;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.button-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.button-cluster {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #89d2ff);
  color: #02131f;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button-small {
  padding: 9px 14px;
  font-size: 0.9rem;
}

.info-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
}

.empty-state {
  padding: 34px 26px;
  border: 1px dashed rgba(151, 204, 255, 0.18);
  border-radius: 24px;
  text-align: center;
}

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

.compact-stack {
  gap: 14px;
}

.notice-text,
.form-error {
  color: #d9efff;
}

.form-error {
  margin-top: 8px;
  font-size: 0.92rem;
}

.secret-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 1080px) {
  .hero-grid,
  .app-layout,
  .info-grid,
  .chat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar-panel {
    position: static;
  }

  .hero-stats,
  .stats-grid,
  .detail-grid,
  .grid-two {
    grid-template-columns: 1fr 1fr;
  }

  .orbit-card {
    min-height: 420px;
  }

  .chat-panel {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .page-head,
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-inner {
    min-height: 64px;
  }

  .topbar-menu-button {
    display: inline-flex;
  }

  .topbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    background: #0b1220;
    border-bottom: 1px solid rgba(122, 161, 224, 0.14);
  }

  .topbar-nav.is-open {
    display: flex;
  }

  .topbar-nav .nav-link,
  .topbar-nav .pill-link,
  .topbar-nav .topbar-inline-form {
    width: 100%;
  }

  .topbar-nav .nav-link,
  .topbar-nav .pill-link {
    justify-content: flex-start;
  }

  .hero,
  .app-shell {
    padding-top: 24px;
  }

  .hero-panel,
  .content-panel {
    padding: 22px;
  }

  .hero-stats,
  .stats-grid,
  .detail-grid,
  .grid-two {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions,
  .inline-actions,
  .quick-prompts {
    flex-direction: column;
  }

  .hero-actions .pill-link,
  .inline-actions .pill-link,
  .quick-prompts .button,
  .button-cluster .button {
    width: 100%;
  }

  .marketing-main {
    padding-top: 12px;
  }

  .marketing-stack {
    gap: 0;
  }

  .docs-mobile-nav {
    display: block;
    position: sticky;
    top: 64px;
    z-index: 38;
    margin-bottom: 24px;
  }

  #docs-mobile-nav {
    margin-bottom: 12px;
  }

  .docs-desktop-sidebar,
  .app-desktop-sidebar {
    display: none;
  }

  .sidebar-panel {
    padding: 14px;
  }

  .sidebar-stack {
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .sidebar-link {
    min-width: 152px;
    white-space: nowrap;
  }

  .sidebar-link small,
  .sidebar-footnote {
    display: none;
  }

  .detail-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-value {
    text-align: left;
  }

  .orbit-card {
    min-height: auto;
    padding-top: 262px;
  }

  .orbit-core {
    inset: 56px auto auto 50%;
    width: 160px;
    height: 160px;
    transform: translateX(-50%);
  }

  .orbit-card::before {
    inset: 34px 24px auto 24px;
    height: 200px;
  }

  .orbit-card::after {
    display: none;
  }

  .orbit-label.api {
    top: 20px;
    right: 20px;
  }

  .orbit-label.billing {
    right: 20px;
    bottom: auto;
    top: 204px;
  }

  .orbit-label.usage {
    left: 20px;
    bottom: auto;
    top: 204px;
  }

  .orbit-copy {
    position: static;
    width: auto;
  }

  .message.user,
  .message.assistant {
    width: 100%;
  }
}

.hero-bust-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
  min-height: 420px;
}

.hero-bust-img {
  width: 80%;
  max-width: 380px;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(78, 180, 255, 0.22));
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-strip h2 {
  margin: 0 0 6px;
  font-family: "Sora", "Segoe UI", sans-serif;
}

.cta-strip p {
  margin: 0;
  color: var(--muted);
}

.marketing-main {
  padding: 34px 0 40px;
}

.marketing-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.section-panel {
  padding: 32px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

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

.copy-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

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

.marketing-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
}

.marketing-card h3,
.section-panel h2 {
  margin: 0 0 12px;
  font-family: "Sora", "Segoe UI", sans-serif;
}

.marketing-card p,
.section-panel p,
.section-panel li {
  color: var(--muted);
  line-height: 1.7;
}

.section-kicker {
  margin: 0 0 10px;
  color: #93d8ff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.price-tag {
  margin: 12px 0 6px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 2.2rem;
}

.footer-shell {
  margin-top: 28px;
  padding: 22px 0 16px;
  color: var(--muted);
}

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

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

.code-block {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(5, 10, 19, 0.9);
  border: 1px solid rgba(151, 204, 255, 0.16);
  color: #dff4ff;
  overflow: auto;
}

.code-block code,
.code-block pre {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  line-height: 1.7;
}

.code-block-wrap {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 12px;
  border: 1px solid rgba(151, 204, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: 160ms ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.copy-btn.copied {
  color: var(--success);
  border-color: rgba(73, 211, 168, 0.32);
}

.docs-tabs-wrap {
  margin-top: 14px;
}

.docs-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.docs-tab {
  padding: 8px 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
  margin-bottom: -1px;
  border-radius: 0;
}

.docs-tab:hover {
  color: var(--text);
}

.docs-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

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

.docs-tab-panel.is-active {
  display: block;
}

.username-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

.edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: 160ms ease;
  flex-shrink: 0;
}

.edit-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.username-edit-form {
  display: none;
}

.username-edit-form.is-open {
  display: block;
}

.username-edit-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.username-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.username-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(78, 180, 255, 0.16);
}

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

.auth-main {
  padding: 44px 0 84px;
}

.auth-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: stretch;
}

.auth-panel {
  width: 100%;
  max-width: 480px;
}

.auth-panel,
.auth-side {
  padding: 32px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.auth-side {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.auth-side::before {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 180, 255, 0.28), transparent 70%);
}

.auth-side h2,
.auth-panel h1 {
  margin: 0 0 12px;
  font-family: "Sora", "Segoe UI", sans-serif;
}

.auth-panel > p:first-of-type,
.auth-copy,
.auth-help,
.auth-muted,
.auth-links {
  color: var(--muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
}

.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-field input:not([type="checkbox"]),
.auth-field textarea,
.auth-field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.auth-field input:not([type="checkbox"])::placeholder,
.auth-field textarea::placeholder {
  color: rgba(210, 225, 247, 0.42);
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 600;
}

.auth-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.auth-button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-button-group .auth-button {
  width: 100%;
}

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: flex-start;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #89d2ff);
  color: #04131f;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.auth-button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-alert,
.auth-errorlist {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 123, 123, 0.12);
  border: 1px solid rgba(255, 123, 123, 0.24);
  color: #ffc0c0;
  transition: opacity 0.35s ease;
}

.auth-errorlist {
  list-style: none;
  margin: 0;
}

.auth-error {
  color: #ffc0c0;
  font-size: 0.92rem;
}

.auth-divider {
  margin: 22px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-divider-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}

.auth-divider--inline {
  flex: 1;
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-divider-text {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Social login buttons */

.social-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.social-login-buttons form {
  margin: 0;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.social-button:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
  text-decoration: none;
}

.social-button__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.auth-panel h2 {
  margin: 0 0 12px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.15rem;
}

.auth-messages {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-links a {
  color: #9eddff;
}

@media (max-width: 1080px) {
  .section-grid,
  .pricing-grid,
  .trust-grid,
  .contact-strip,
  .copy-grid,
  .list-grid,
  .auth-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── New hero layout ──────────────────────────────────────── */

.hero-new {
  padding: 36px 0 64px;
}

.hero-new-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.9fr);
  gap: 56px;
  align-items: center;
}

/* ── Neural graph ─────────────────────────────────────────── */

.neural-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.neural-svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  overflow: visible;
}

.nc {
  stroke: rgba(78, 180, 255, 0.2);
  stroke-width: 1;
  stroke-linecap: round;
}

.nc-bright {
  stroke: rgba(78, 180, 255, 0.42);
  stroke-width: 1.5;
}

.sig {
  fill: #4eb4ff;
  filter: drop-shadow(0 0 5px rgba(78, 180, 255, 0.9));
  animation: sig-appear 0.2s 0.08s both;
}

.sig-faint {
  animation: sig-appear-faint 0.2s 0.08s both;
}

@keyframes sig-appear {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes sig-appear-faint {
  from { opacity: 0; }
  to   { opacity: 0.35; }
}

.nn {
  fill: rgba(78, 180, 255, 0.72);
}

.nn-sm {
  fill: rgba(124, 195, 255, 0.55);
}

.nn-hub {
  fill: #9dd6ff;
}

.nn-hub2 {
  fill: #7cc9ff;
}

.nn-core {
  fill: #c8eaff;
}

/* ── Product cards ────────────────────────────────────────── */

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

.product-card {
  padding: 28px 30px 30px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-card h2 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.product-card > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-list {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.product-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.product-list li::before {
  content: "—";
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
}

/* ── Responsive overrides for new sections ────────────────── */

@media (max-width: 1080px) {
  .hero-new-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .neural-wrap {
    max-height: 300px;
  }
}

@media (max-width: 720px) {
  .hero-new {
    padding-top: 0;
  }

  .neural-wrap {
    max-height: 240px;
  }

  .eyebrow {
    display: none;
  }

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

/* ─── Block header (title + action button in one row) ─── */

.block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.block-header h3 {
  margin: 0;
}

/* ─── Modal ─── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 10, 20, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  width: 100%;
  max-width: 640px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.modal-title {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: 160ms ease;
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
