﻿@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg: #f4f7fb;
  --bg-soft: rgba(248, 251, 255, 0.92);
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --line: rgba(15, 40, 76, 0.12);
  --line-strong: rgba(40, 88, 160, 0.34);
  --text: #12233d;
  --muted: #4f607a;
  --brand: #2463eb;
  --brand-2: #3f86ff;
  --accent: #0f172a;
  --ok: #138f63;
  --warn: #b7791f;
  --bad: #c2334b;
  --shadow: 0 12px 38px rgba(17, 40, 78, 0.09);
  --mx: 0.5;
  --my: 0.5;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  overflow-x: hidden;
}

h1,
h2,
h3,
.brand {
  font-family: "Manrope", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-weight: 800;
}

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

.site-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 18% -10%, rgba(36, 99, 235, 0.08), transparent 48%),
    radial-gradient(circle at 82% 6%, rgba(63, 134, 255, 0.06), transparent 52%),
    linear-gradient(180deg, #f7f9fd 0%, #eef3fb 100%);
}

.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 40, 76, 0.04), transparent 35%);
  opacity: 1;
  animation: none;
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(15, 40, 76, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 40, 76, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.35;
  animation: none;
}

.mesh {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(36, 99, 235, 0.06), transparent 45%);
  opacity: 0.28;
  animation: none;
}

.beam {
  position: absolute;
  width: 40rem;
  height: 40rem;
  border-radius: 999px;
  filter: blur(54px);
  opacity: 0.12;
  animation: none;
}

.beam-a {
  top: -18rem;
  left: -12rem;
  background: radial-gradient(circle, rgba(36, 99, 235, 0.44), transparent 66%);
}

.beam-b {
  right: -14rem;
  bottom: -20rem;
  background: radial-gradient(circle, rgba(63, 134, 255, 0.42), transparent 62%);
  animation-delay: 0s;
}

.orbital {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(36, 99, 235, 0.08);
  box-shadow: none;
}

.orbital-a {
  width: min(72vw, 840px);
  height: min(72vw, 840px);
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  animation: none;
}

.orbital-b {
  width: min(56vw, 660px);
  height: min(56vw, 660px);
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  border-color: rgba(40, 88, 160, 0.1);
  animation: none;
}

.grid-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(36, 99, 235, 0.05), transparent 66%);
  mask-image: none;
  animation: none;
}

.site-header,
.page-shell,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(1200px, calc(100% - 40px));
  margin: 20px auto 0;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.site-header:hover {
  border-color: rgba(40, 88, 160, 0.24);
  box-shadow: 0 16px 42px rgba(17, 40, 78, 0.12);
}

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

.brand-logo {
  width: 48px;
  height: 48px;
  display: block;
  flex: 0 0 auto;
  image-rendering: auto;
  filter: drop-shadow(0 6px 14px rgba(36, 99, 235, 0.2));
  animation: none;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(36, 99, 235, 0.14);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(36, 99, 235, 0.08);
  box-shadow: inset 0 0 0 1px rgba(40, 88, 160, 0.2);
}

.nav a.active,
.nav a[aria-current="page"],
.nav a[data-active="true"] {
  color: var(--text);
  background: rgba(36, 99, 235, 0.12);
  box-shadow: inset 0 0 0 1px rgba(40, 88, 160, 0.28);
}

.kpi-icon,
.qa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(36, 99, 235, 0.18);
  background: rgba(36, 99, 235, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.copy-icon-btn,
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(40, 88, 160, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.copy-icon-btn:hover,
.action-btn:hover {
  border-color: rgba(36, 99, 235, 0.34);
  background: rgba(36, 99, 235, 0.08);
  transform: translateY(-1px);
}

.action-btn.danger {
  border-color: rgba(194, 51, 75, 0.18);
  color: var(--bad);
}

.action-btn.danger:hover {
  background: rgba(194, 51, 75, 0.08);
  border-color: rgba(194, 51, 75, 0.34);
}

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

.setup-steps {
  display: grid;
  gap: 12px;
}

.setup-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(15, 40, 76, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.setup-step[data-step-state="done"] {
  border-color: rgba(19, 143, 99, 0.22);
  background: rgba(19, 143, 99, 0.06);
}

.setup-step[data-step-state="pending"] {
  border-color: rgba(36, 99, 235, 0.22);
}

.setup-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(36, 99, 235, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.setup-step-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(79, 96, 122, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.setup-step-status[data-state="done"] {
  background: rgba(19, 143, 99, 0.12);
  color: var(--ok);
}

.setup-step-status[data-state="pending"] {
  background: rgba(36, 99, 235, 0.12);
  color: var(--brand);
}

.setup-config {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.setup-config-row,
.inline-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 40, 76, 0.08);
}

.setup-status-card .setup-status-list,
.keys-status-card .setup-status-list {
  display: grid;
  gap: 12px;
}

.setup-status-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 40, 76, 0.08);
}

.setup-actions {
  margin-top: 18px;
}

.keys-toolbar-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.model-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(36, 99, 235, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.created-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  margin-bottom: 20px;
}

.link-detail {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 40, 76, 0.08);
}

.link-detail code,
.setup-config-row code,
.inline-note code {
  overflow-wrap: anywhere;
}

@media (max-width: 960px) {
  .dashboard-setup-grid,
  .keys-guide-grid,
  .created-link-grid {
    grid-template-columns: 1fr;
  }

  .keys-toolbar-grid {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .setup-step {
    grid-template-columns: auto 1fr;
  }

  .setup-step-status {
    grid-column: 2;
    justify-self: flex-start;
  }
}

.nav a.active:hover,
.nav a[aria-current="page"]:hover,
.nav a[data-active="true"]:hover {
  background: rgba(36, 99, 235, 0.14);
}

.page-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 88px;
}

.page-narrow {
  width: min(1080px, calc(100% - 40px));
}

.glass-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent),
    var(--panel);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(130deg, rgba(36, 99, 235, 0.18), transparent 55%, rgba(63, 134, 255, 0.16));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
  animation: none;
}

.glass-panel:hover {
  border-color: rgba(40, 88, 160, 0.2);
  box-shadow: 0 14px 34px rgba(17, 40, 78, 0.12);
}

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

.hero-copy,
.hero-visual,
.page-hero,
.architecture,
.ops-card,
.price-card,
.dashboard-card {
  padding: 34px;
}

.hero h1,
.page-hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 11ch;
  text-shadow: none;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1,
  .page-hero h1 {
    background-image: none;
    background-size: auto;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
    animation: none;
  }
}

.page-hero h1 {
  max-width: 16ch;
  font-size: clamp(30px, 4.6vw, 46px);
}

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

.lede {
  margin: 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 18px rgba(36, 99, 235, 0.22);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.22) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 320ms ease;
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

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

.btn-primary:hover::before {
  transform: translateX(120%);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.status-card,
.feature-card,
.monitor-item,
.metric-row {
  border: 1px solid rgba(15, 40, 76, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.status-card {
  padding: 20px;
}

.status-card .label,
.plan-tag {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.status-card strong,
.price {
  display: block;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.2;
}

.status-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.signal-stack {
  display: grid;
  gap: 12px;
}

.signal-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 40, 76, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
}

.signal-row span:first-child {
  color: var(--text);
  font-weight: 700;
}

.radar-card {
  position: relative;
  min-height: 270px;
  margin-top: 24px;
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(36, 99, 235, 0.08), transparent 56%),
    rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.radar-ring,
.radar-core {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
}

.radar-ring-a {
  width: 240px;
  height: 240px;
  border: 1px solid rgba(36, 99, 235, 0.18);
}

.radar-ring-b {
  width: 360px;
  height: 360px;
  border: 1px solid rgba(63, 134, 255, 0.16);
}

.radar-core {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 0 8px rgba(36, 99, 235, 0.12);
}

.section-block,
.architecture,
.ops-grid,
.pricing-grid,
.dashboard-grid {
  margin-top: 36px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2,
.architecture h2,
.ops-card h3,
.feature-card h3,
.dashboard-card h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3.8vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.compact h2,
.ops-card h3,
.feature-card h3,
.dashboard-card h2 {
  font-size: clamp(22px, 2.8vw, 30px);
}

.card-grid,
.pricing-grid,
.dashboard-grid,
.ops-grid {
  display: grid;
  gap: 20px;
}

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

.feature-card,
.dashboard-card {
  padding: 26px;
}

.feature-card p,
.task-list,
.flow-item small,
.monitor-item span,
.metric-row span {
  color: var(--muted);
  line-height: 1.72;
}

.architecture {
  padding: 30px;
}

.flow-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.flow-line-tight {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.flow-item {
  padding: 20px;
  border: 1px solid rgba(15, 40, 76, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.flow-index {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(36, 99, 235, 0.1);
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.flow-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.3;
}

.flow-arrow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(40, 88, 160, 0.38), transparent);
}

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

.monitor-list,
.metric-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.monitor-item,
.metric-row {
  padding: 14px 16px;
}

.monitor-item strong,
.metric-row strong {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  word-break: break-all;
}

.task-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.task-list li + li {
  margin-top: 8px;
}

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

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

.price-card {
  position: relative;
  overflow: hidden;
}

.price-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(36, 99, 235, 0.14), transparent 70%);
}

.price-card h2 {
  margin: 4px 0 0;
  font-size: 28px;
}

.price span {
  font-size: 16px;
  color: var(--muted);
}

.price-card-featured {
  border-color: rgba(36, 99, 235, 0.32);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(36, 99, 235, 0.16);
  animation: none;
}

.group-card {
  padding: 24px;
}

.group-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.group-top h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
}

.group-risk {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(40, 88, 160, 0.28);
  background: rgba(36, 99, 235, 0.08);
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.group-multiplier {
  margin: 14px 0 8px;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.group-meta {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.group-chip {
  display: inline-flex;
  margin-right: 8px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(36, 99, 235, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.quote-shell {
  margin-top: 34px;
  padding: 30px;
}

.quote-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.quote-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.quote-form input,
.quote-form select {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(15, 40, 76, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  padding: 0 12px;
  font-family: inherit;
}

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

.quote-metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.docs-layout,
.status-layout {
  display: grid;
  gap: 20px;
}

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

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

.doc-section,
.status-panel,
.doc-toc,
.status-event,
.status-service-card {
  border: 1px solid rgba(15, 40, 76, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.doc-section,
.status-panel,
.doc-toc {
  padding: 24px;
}

.doc-section + .doc-section,
.status-panel + .status-panel {
  margin-top: 16px;
}

.doc-section h2,
.status-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.2;
}

.doc-section h3,
.status-panel h3 {
  margin: 16px 0 8px;
  font-size: 18px;
}

.doc-section p,
.doc-section li,
.status-panel p,
.status-panel li {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.doc-section ul,
.doc-section ol,
.status-panel ul {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.doc-steps {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.doc-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 40, 76, 0.1);
  background: rgba(244, 247, 251, 0.9);
}

.doc-step-index {
  min-width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(36, 99, 235, 0.14);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.doc-callout {
  margin-top: 14px;
  padding: 13px 14px;
  border-left: 3px solid rgba(36, 99, 235, 0.42);
  border-radius: 10px;
  background: rgba(36, 99, 235, 0.07);
  color: var(--muted);
}

.doc-toc h3 {
  margin: 0;
  font-size: 16px;
}

.doc-toc ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.doc-toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  transition: background-color 180ms ease, color 180ms ease;
}

.doc-toc a:hover {
  color: var(--text);
  background: rgba(36, 99, 235, 0.08);
}

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

.status-kpi {
  padding: 18px;
  border: 1px solid rgba(15, 40, 76, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.status-kpi .label {
  display: inline-flex;
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.status-kpi strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
}

.status-kpi small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.status-services {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.status-service-card {
  padding: 16px;
}

.status-service-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.status-service-head strong {
  font-size: 16px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-indicator::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--warn);
}

.status-indicator[data-state="online"]::before {
  background: var(--ok);
}

.status-indicator[data-state="degraded"]::before {
  background: var(--warn);
}

.status-indicator[data-state="offline"]::before {
  background: var(--bad);
}

.status-service-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.status-timeline {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.status-event {
  padding: 14px 16px;
}

.status-event time {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.status-event p {
  margin-top: 6px;
}

.site-footer {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto 24px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid rgba(15, 40, 76, 0.12);
}

[data-service-state] {
  color: var(--warn);
}

[data-service-state="online"] {
  color: var(--ok);
}

[data-service-state="offline"] {
  color: var(--bad);
}

.reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.995);
  transition: opacity 380ms ease, transform 380ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lang-toggle {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(15, 40, 76, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.lang-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(40, 88, 160, 0.36);
}

@media (max-width: 980px) {
  .hero,
  .card-grid,
  .pricing-grid,
  .dashboard-grid,
  .ops-grid,
  .flow-line,
  .docs-layout,
  .status-summary,
  .status-services {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    display: none;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .quote-inline,
  .quote-metrics {
    grid-template-columns: 1fr;
  }

  .doc-toc {
    order: -1;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .lang-toggle {
    width: 100%;
  }

  .brand-tagline {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-top: 30px;
  }

  .site-header {
    border-radius: 12px;
  }

  .hero-copy,
  .hero-visual,
  .page-hero,
  .architecture,
  .ops-card,
  .price-card,
  .dashboard-card,
  .feature-card,
  .doc-section,
  .status-panel,
  .doc-toc {
    padding: 20px;
  }

  .doc-step {
    grid-template-columns: 1fr;
  }
}

.header-actions {
  display: flex;
  gap: 10px;
}

.compact-btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.full-width {
  width: 100%;
}

.tiny {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.notice {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(15, 40, 76, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 14px;
}

[data-notice-type="ok"] {
  border-color: rgba(120, 255, 186, 0.38);
  color: var(--ok);
}

[data-notice-type="warn"] {
  border-color: rgba(255, 217, 122, 0.38);
  color: var(--warn);
}

[data-notice-type="bad"] {
  border-color: rgba(255, 125, 141, 0.38);
  color: var(--bad);
}

.status-line,
.monitor-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 16px;
  color: var(--muted);
}

.status-line strong,
.monitor-inline strong {
  color: var(--text);
}

.auth-grid {
  align-items: stretch;
}

.form-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.form-stack label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.form-stack input,
.form-stack select {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(15, 40, 76, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  padding: 0 12px;
  font-family: inherit;
}

.form-stack input:focus,
.form-stack select:focus {
  outline: none;
  border-color: rgba(36, 99, 235, 0.45);
  box-shadow: 0 0 0 2px rgba(36, 99, 235, 0.14);
}

.signed-box {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.mini-cards {
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.table-card {
  margin-top: 24px;
  padding: 26px;
}

.benchmark-sources {
  margin-top: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benchmark-source-link {
  color: var(--brand);
  font-size: 13px;
  text-decoration: none;
}

.benchmark-source-link:hover {
  text-decoration: underline;
}

.table-head h2 {
  margin: 6px 0 0;
  font-size: clamp(22px, 3vw, 30px);
}

.table-wrap {
  margin-top: 14px;
  border: 1px solid rgba(15, 40, 76, 0.12);
  border-radius: 12px;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(15, 40, 76, 0.1);
}

th {
  color: var(--brand);
  letter-spacing: 0.06em;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
}

td {
  color: var(--muted);
  font-size: 14px;
}

.discount-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  color: #ffffff;
  background: linear-gradient(160deg, #2463eb, #3f86ff);
}

.benchmark-note {
  margin-top: 14px;
}

tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 980px) {
  .header-actions {
    width: 100%;
  }

  .header-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes beamFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 18px, 0) scale(1.04);
  }
}

@keyframes starDrift {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(2%, -4%, 0) rotate(360deg);
  }
}

@keyframes scanSweep {
  0%,
  100% {
    transform: translate3d(-12%, -8%, 0) rotate(8deg);
    opacity: 0.16;
  }
  50% {
    transform: translate3d(10%, 10%, 0) rotate(8deg);
    opacity: 0.34;
  }
}

@keyframes edgeShift {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(360deg);
  }
}

@keyframes titleShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes featuredPulse {
  0%,
  100% {
    box-shadow: 0 20px 70px rgba(111, 245, 255, 0.16);
  }
  50% {
    box-shadow: 0 28px 90px rgba(111, 245, 255, 0.28);
  }
}

@keyframes orbitRotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

@keyframes meshSpin {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1.03);
  }
}

@keyframes logoHop {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-3px) scale(1.015);
  }
  65% {
    transform: translateY(-1px) scale(1.005);
  }
}

@keyframes logoGlowPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(110, 245, 255, 0.38));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(143, 130, 255, 0.5));
  }
}
/* Dashboard Console (sub2api-style information architecture) */
body[data-page='dashboard'] {
  --console-bg: #eff3f8;
  --console-panel: #ffffff;
  --console-panel-soft: #f8fafd;
  --console-line: #d8e1ec;
  --console-line-strong: #b9c8dc;
  --console-text: #12233d;
  --console-muted: #5e6f88;
  --console-accent: #2463eb;
}

body[data-page='dashboard'] .site-bg {
  background:
    radial-gradient(circle at 4% 0%, rgba(36, 99, 235, 0.07), transparent 38%),
    linear-gradient(180deg, #f6f9fd 0%, var(--console-bg) 100%);
}

body[data-page='dashboard'] .site-bg .beam,
body[data-page='dashboard'] .site-bg .orbital,
body[data-page='dashboard'] .site-bg .grid-glow {
  display: none;
}

body[data-page='dashboard'] .site-bg::after {
  opacity: 0.14;
}

body[data-page='dashboard'] .page-shell.page-console {
  width: min(1340px, calc(100% - 40px));
  padding-top: 34px;
}

body[data-page='dashboard'] .console-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

body[data-page='dashboard'] .console-sidebar {
  position: sticky;
  top: 24px;
  padding: 22px;
  border-radius: 14px;
  background: var(--console-panel);
  border-color: var(--console-line);
  box-shadow: 0 10px 28px rgba(18, 35, 61, 0.08);
}

body[data-page='dashboard'] .console-sidebar-head h2 {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

body[data-page='dashboard'] .console-status-stack {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

body[data-page='dashboard'] .console-status-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--console-line);
  background: var(--console-panel-soft);
  color: var(--console-muted);
  font-size: 13px;
}

body[data-page='dashboard'] .console-status-row strong {
  color: var(--console-text);
  font-size: 13px;
  font-weight: 700;
}

body[data-page='dashboard'] .console-nav {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

body[data-page='dashboard'] .console-nav-item {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--console-line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--console-muted);
  font-family: "Manrope", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 0 12px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

body[data-page='dashboard'] .console-nav-item:hover {
  border-color: var(--console-line-strong);
  color: var(--console-text);
}

body[data-page='dashboard'] .console-nav-item.is-active,
body[data-page='dashboard'] .console-nav-item[data-active='true'] {
  color: #12418f;
  border-color: rgba(36, 99, 235, 0.34);
  background: rgba(36, 99, 235, 0.09);
}

body[data-page='dashboard'] .console-main {
  display: grid;
  gap: 16px;
}

body[data-page='dashboard'] .console-section {
  scroll-margin-top: 96px;
}

body[data-page='dashboard'] .console-main > .console-section.glass-panel,
body[data-page='dashboard'] .table-card.glass-panel {
  border-radius: 14px;
  border-color: var(--console-line);
  background: var(--console-panel);
  box-shadow: 0 10px 26px rgba(18, 35, 61, 0.07);
}

body[data-page='dashboard'] .console-section-head,
body[data-page='dashboard'] .console-section-title {
  margin-bottom: 14px;
}

body[data-page='dashboard'] .console-section-head h1 {
  margin: 8px 0 8px;
  max-width: none;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
}

body[data-page='dashboard'] .console-section-title h2,
body[data-page='dashboard'] .table-head h2,
body[data-page='dashboard'] .dashboard-card h3 {
  margin: 6px 0 0;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

body[data-page='dashboard'] #console-overview {
  padding: 26px;
}

body[data-page='dashboard'] .console-kpi-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body[data-page='dashboard'] .console-kpi-card {
  padding: 14px 14px 12px;
  border: 1px solid var(--console-line);
  border-radius: 12px;
  background: var(--console-panel-soft);
}

body[data-page='dashboard'] .console-kpi-card p {
  margin: 0;
  color: var(--console-muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

body[data-page='dashboard'] .console-kpi-card strong {
  display: block;
  margin-top: 8px;
  color: var(--console-text);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
}

body[data-page='dashboard'] .console-kpi-card small {
  display: block;
  margin-top: 6px;
  color: var(--console-muted);
  font-size: 12px;
  line-height: 1.45;
}

body[data-page='dashboard'] .console-plans {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page='dashboard'] .console-actions {
  margin-top: 14px;
}

body[data-page='dashboard'] .dashboard-card,
body[data-page='dashboard'] .table-card {
  border-radius: 14px;
  border: 1px solid var(--console-line);
  background: var(--console-panel);
}

body[data-page='dashboard'] .dashboard-card {
  padding: 22px;
}

body[data-page='dashboard'] .table-card {
  margin-top: 0;
}

body[data-page='dashboard'] .table-wrap {
  border-color: var(--console-line);
}

body[data-page='dashboard'] th {
  color: #35517b;
  font-size: 11px;
  letter-spacing: 0.08em;
}

body[data-page='dashboard'] td {
  color: #355070;
}

body[data-page='dashboard'] .form-stack input,
body[data-page='dashboard'] .form-stack select {
  border-color: var(--console-line);
  background: #fff;
}

body[data-page='dashboard'] .btn-secondary {
  border-color: var(--console-line-strong);
  background: #f7faff;
}

@media (max-width: 1200px) {
  body[data-page='dashboard'] .console-layout {
    grid-template-columns: 1fr;
  }

  body[data-page='dashboard'] .console-sidebar {
    position: static;
  }

  body[data-page='dashboard'] .console-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page='dashboard'] .console-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-page='dashboard'] .page-shell.page-console {
    width: min(1340px, calc(100% - 20px));
  }

  body[data-page='dashboard'] .console-nav {
    grid-template-columns: 1fr;
  }

  body[data-page='dashboard'] .console-plans,
  body[data-page='dashboard'] .console-kpi-grid,
  body[data-page='dashboard'] .dashboard-grid {
    grid-template-columns: 1fr;
  }

  body[data-page='dashboard'] #console-overview,
  body[data-page='dashboard'] .dashboard-card,
  body[data-page='dashboard'] .table-card,
  body[data-page='dashboard'] .console-sidebar {
    padding: 16px;
  }
}
/* Home Redesign: light futuristic, restrained premium */
body[data-page='home'] {
  --home-bg: #eef4fb;
  --home-bg-2: #f7fafe;
  --home-panel: rgba(255, 255, 255, 0.86);
  --home-panel-strong: rgba(255, 255, 255, 0.95);
  --home-line: rgba(31, 72, 130, 0.16);
  --home-line-strong: rgba(42, 99, 179, 0.32);
  --home-text: #10243d;
  --home-muted: #4f6685;
  --home-accent: #1f6dff;
  --home-accent-soft: #62a2ff;
  --home-shadow: 0 14px 42px rgba(20, 47, 89, 0.09);
}

body[data-page='home'] .site-bg {
  background:
    radial-gradient(circle at 8% 0%, rgba(31, 109, 255, 0.14), transparent 36%),
    radial-gradient(circle at 88% 12%, rgba(98, 162, 255, 0.12), transparent 42%),
    linear-gradient(180deg, var(--home-bg-2) 0%, var(--home-bg) 100%);
}

body[data-page='home'] .site-bg::after {
  opacity: 0.2;
  background-size: 56px 56px;
}

body[data-page='home'] .mesh {
  opacity: 0.24;
  background:
    radial-gradient(circle at 24% 30%, rgba(36, 104, 205, 0.2), transparent 54%),
    radial-gradient(circle at 74% 62%, rgba(78, 161, 255, 0.22), transparent 56%);
}

body[data-page='home'] .beam {
  opacity: 0.14;
  filter: blur(72px);
}

body[data-page='home'] .orbital {
  border-color: rgba(38, 92, 173, 0.18);
}

body[data-page='home'] .orbital-a {
  animation: homeOrbitA 26s linear infinite;
}

body[data-page='home'] .orbital-b {
  animation: homeOrbitB 40s linear infinite;
}

body[data-page='home'] .grid-glow {
  opacity: 0.72;
}

body[data-page='home'] .page-home {
  width: min(1320px, calc(100% - 40px));
  padding-top: 42px;
}

body[data-page='home'] .glass-panel {
  border-color: var(--home-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), transparent),
    var(--home-panel);
  box-shadow: var(--home-shadow);
}

body[data-page='home'] .glass-panel::before {
  opacity: 0.52;
  background: linear-gradient(128deg, rgba(31, 109, 255, 0.2), transparent 56%, rgba(98, 162, 255, 0.18));
}

body[data-page='home'] .home-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 22px;
}

body[data-page='home'] .home-hero-copy,
body[data-page='home'] .home-hero-visual {
  padding: 36px;
}

body[data-page='home'] .home-hero-copy h1 {
  margin-top: 12px;
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.024em;
  max-width: 10ch;
}

body[data-page='home'] .home-hero-copy .lede {
  max-width: 60ch;
  color: var(--home-muted);
}

body[data-page='home'] .home-signal-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body[data-page='home'] .home-signal-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--home-line-strong);
  background: rgba(255, 255, 255, 0.7);
  color: #184076;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body[data-page='home'] .home-runtime {
  margin-top: 20px;
  color: var(--home-muted);
}

body[data-page='home'] .home-runtime strong {
  color: var(--home-text);
}

body[data-page='home'] .home-hero-visual {
  position: relative;
  overflow: hidden;
}

body[data-page='home'] .flow-stage {
  position: relative;
  margin-top: 14px;
  min-height: 420px;
  border: 1px solid var(--home-line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 248, 255, 0.9));
  overflow: hidden;
}

body[data-page='home'] .flow-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 67, 135, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 67, 135, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.48;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
}

body[data-page='home'] .flow-lane {
  position: absolute;
  left: 30px;
  right: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 109, 255, 0.52), rgba(98, 162, 255, 0.5), transparent);
}

body[data-page='home'] .lane-a {
  top: 82px;
}

body[data-page='home'] .lane-b {
  top: 142px;
}

body[data-page='home'] .lane-c {
  top: 202px;
}

body[data-page='home'] .lane-d {
  top: 262px;
}

body[data-page='home'] .flow-dot {
  position: absolute;
  top: -4px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff 20%, var(--home-accent) 70%);
  box-shadow: 0 0 0 4px rgba(31, 109, 255, 0.17), 0 0 16px rgba(31, 109, 255, 0.52);
  animation: homeFlowDot 6.8s linear infinite;
}

body[data-page='home'] .lane-b .flow-dot {
  animation-delay: 0.9s;
}

body[data-page='home'] .lane-c .flow-dot {
  animation-delay: 1.8s;
}

body[data-page='home'] .lane-d .flow-dot {
  animation-delay: 2.7s;
}

body[data-page='home'] .flow-core {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body[data-page='home'] .flow-node {
  min-height: 86px;
  padding: 12px 14px;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body[data-page='home'] .flow-node span {
  display: block;
  color: var(--home-muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

body[data-page='home'] .flow-node strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
  color: var(--home-text);
}

body[data-page='home'] .home-section {
  margin-top: 30px;
}

body[data-page='home'] .home-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body[data-page='home'] .home-module-card {
  padding: 24px;
  border-radius: 14px;
}

body[data-page='home'] .home-module-tag {
  margin: 0;
  color: #3361a3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page='home'] .home-module-card h3 {
  margin: 10px 0 10px;
  font-size: 26px;
  line-height: 1.2;
}

body[data-page='home'] .home-module-card p:last-child {
  margin: 0;
  color: var(--home-muted);
  line-height: 1.74;
}

body[data-page='home'] .home-pipeline {
  padding: 24px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

body[data-page='home'] .home-pipeline-track {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 54px;
  height: 2px;
  background: linear-gradient(90deg, rgba(31, 109, 255, 0.08), rgba(31, 109, 255, 0.62), rgba(31, 109, 255, 0.08));
}

body[data-page='home'] .home-pipeline-track::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--home-accent);
  box-shadow: 0 0 10px rgba(31, 109, 255, 0.48);
  animation: homeTrackPulse 7s linear infinite;
}

body[data-page='home'] .home-pipeline-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

body[data-page='home'] .home-step {
  padding: 16px;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

body[data-page='home'] .home-step span {
  display: inline-flex;
  color: #2f5f9f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-page='home'] .home-step strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.24;
}

body[data-page='home'] .home-step small {
  display: block;
  margin-top: 9px;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.65;
}

body[data-page='home'] .home-cta {
  padding: 34px;
}

body[data-page='home'] .home-cta .lede {
  max-width: 64ch;
}

@media (max-width: 1140px) {
  body[data-page='home'] .home-hero,
  body[data-page='home'] .home-module-grid,
  body[data-page='home'] .home-pipeline-grid {
    grid-template-columns: 1fr;
  }

  body[data-page='home'] .flow-core {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  body[data-page='home'] .page-home {
    width: min(1320px, calc(100% - 20px));
  }

  body[data-page='home'] .home-hero-copy,
  body[data-page='home'] .home-hero-visual,
  body[data-page='home'] .home-module-card,
  body[data-page='home'] .home-pipeline,
  body[data-page='home'] .home-cta {
    padding: 18px;
  }

  body[data-page='home'] .flow-stage {
    min-height: 470px;
  }

  body[data-page='home'] .home-pipeline-track {
    display: none;
  }
}

@keyframes homeFlowDot {
  0% {
    left: 0%;
    opacity: 0;
    transform: scale(0.65);
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 8px);
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes homeTrackPulse {
  0% {
    left: 0%;
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  86% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 8px);
    opacity: 0;
  }
}

@keyframes homeOrbitA {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes homeOrbitB {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}
/* Home Clarity Pass: control-plane style metric strip and inline actions */
body[data-page='home'] .home-metric-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body[data-page='home'] .home-metric-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--home-line);
  background: var(--home-panel-strong);
}

body[data-page='home'] .home-metric-card p {
  margin: 0;
  font-size: 12px;
  color: var(--home-muted);
  letter-spacing: 0.03em;
}

body[data-page='home'] .home-metric-card strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
  color: var(--home-text);
}

body[data-page='home'] .home-metric-card small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #547096;
}

body[data-page='home'] .home-inline-link {
  display: inline-flex;
  margin-top: 12px;
  color: #1f5fc0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 95, 192, 0.2);
  padding-bottom: 2px;
  transition: color 150ms ease, border-color 150ms ease;
}

body[data-page='home'] .home-inline-link:hover {
  color: #154a9b;
  border-color: rgba(21, 74, 155, 0.42);
}

@media (max-width: 1140px) {
  body[data-page='home'] .home-metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  body[data-page='home'] .home-metric-strip {
    grid-template-columns: 1fr;
  }
}
/* Homepage v3: futuristic light landing, structure-first clarity */
body[data-page='home'] {
  --landing-bg: #edf3fa;
  --landing-bg-2: #f8fbff;
  --landing-panel: rgba(255, 255, 255, 0.88);
  --landing-panel-strong: rgba(255, 255, 255, 0.95);
  --landing-line: rgba(34, 78, 142, 0.17);
  --landing-line-strong: rgba(47, 106, 193, 0.34);
  --landing-text: #12243d;
  --landing-muted: #536784;
  --landing-accent: #256bf2;
  --landing-accent-soft: #65a5ff;
  --landing-shadow: 0 14px 44px rgba(18, 44, 87, 0.1);
}

body[data-page='home'] .site-bg {
  background:
    radial-gradient(circle at 8% -6%, rgba(37, 107, 242, 0.16), transparent 38%),
    radial-gradient(circle at 86% 12%, rgba(101, 165, 255, 0.13), transparent 42%),
    linear-gradient(180deg, var(--landing-bg-2) 0%, var(--landing-bg) 100%);
}

body[data-page='home'] .site-bg::after {
  opacity: 0.2;
  background-size: 54px 54px;
}

body[data-page='home'] .mesh {
  opacity: 0.24;
  background:
    radial-gradient(circle at 24% 32%, rgba(43, 103, 190, 0.22), transparent 55%),
    radial-gradient(circle at 74% 66%, rgba(107, 175, 255, 0.2), transparent 56%);
}

body[data-page='home'] .beam {
  opacity: 0.15;
  filter: blur(72px);
}

body[data-page='home'] .orbital {
  border-color: rgba(43, 103, 190, 0.16);
}

body[data-page='home'] .orbital-a {
  animation: orbitRotate 34s linear infinite;
}

body[data-page='home'] .orbital-b {
  animation: orbitRotate 46s linear infinite reverse;
}

body[data-page='home'] .page-home.home-landing {
  width: min(1320px, calc(100% - 40px));
  padding-top: 40px;
}

body[data-page='home'] .home-landing .glass-panel {
  border-color: var(--landing-line);
  box-shadow: var(--landing-shadow);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent),
    var(--landing-panel);
}

body[data-page='home'] .home-landing .glass-panel::before {
  opacity: 0.5;
  background: linear-gradient(128deg, rgba(37, 107, 242, 0.22), transparent 56%, rgba(101, 165, 255, 0.18));
}

body[data-page='home'] .landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 20px;
  align-items: stretch;
}

body[data-page='home'] .landing-hero-copy,
body[data-page='home'] .landing-hero-visual {
  padding: 34px;
}

body[data-page='home'] .landing-hero-copy h1 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.01;
  letter-spacing: -0.025em;
  max-width: 9.4ch;
  color: var(--landing-text);
}

body[data-page='home'] .landing-subline {
  margin: 0;
  color: #2c5390;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

body[data-page='home'] .landing-hero-copy .lede {
  margin-top: 14px;
  max-width: 60ch;
  color: var(--landing-muted);
}

body[data-page='home'] .landing-runtime {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--landing-muted);
  font-size: 13px;
}

body[data-page='home'] .landing-runtime span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--landing-line);
  background: rgba(255, 255, 255, 0.74);
}

body[data-page='home'] .landing-runtime strong {
  color: var(--landing-text);
}

body[data-page='home'] .landing-inline-metrics {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body[data-page='home'] .landing-inline-metrics article {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--landing-line);
  background: var(--landing-panel-strong);
}

body[data-page='home'] .landing-inline-metrics small {
  display: block;
  margin: 0;
  color: var(--landing-muted);
  font-size: 12px;
}

body[data-page='home'] .landing-inline-metrics strong {
  display: block;
  margin-top: 6px;
  color: var(--landing-text);
  font-size: 16px;
  line-height: 1.2;
}

body[data-page='home'] .landing-hero-visual .eyebrow {
  margin-bottom: 10px;
}

body[data-page='home'] .chip-stage {
  position: relative;
  min-height: 432px;
  border-radius: 18px;
  border: 1px solid var(--landing-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 248, 255, 0.86));
  overflow: hidden;
}

body[data-page='home'] .chip-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 68, 139, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 68, 139, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.96), transparent 96%);
  opacity: 0.56;
}

body[data-page='home'] .chip-stream-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

body[data-page='home'] .chip-stream {
  position: absolute;
  inset: 0;
}

body[data-page='home'] .chip-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 24%, rgba(88, 156, 246, 0.92) 55%, rgba(88, 156, 246, 0) 76%);
  filter: drop-shadow(0 0 12px rgba(80, 147, 236, 0.46));
  offset-rotate: auto;
}

body[data-page='home'] .chip-stream--in-1 .chip-dot {
  offset-path: path("M -48 84 C 152 122, 288 210, 486 308");
  animation: chipFlowIn 2.9s cubic-bezier(.22, .61, .36, 1) infinite;
}

body[data-page='home'] .chip-stream--in-2 .chip-dot {
  offset-path: path("M 1040 96 C 822 138, 694 224, 486 308");
  animation: chipFlowIn 2.75s cubic-bezier(.22, .61, .36, 1) .32s infinite;
}

body[data-page='home'] .chip-stream--in-3 .chip-dot {
  offset-path: path("M 520 -44 C 548 118, 530 186, 486 308");
  animation: chipFlowIn 2.62s cubic-bezier(.22, .61, .36, 1) .62s infinite;
}

body[data-page='home'] .chip-stream--in-4 .chip-dot {
  offset-path: path("M 516 780 C 482 598, 484 468, 486 308");
  animation: chipFlowIn 2.95s cubic-bezier(.22, .61, .36, 1) .94s infinite;
}

body[data-page='home'] .chip-stream--out-1 .chip-dot {
  offset-path: path("M 486 308 C 664 218, 830 164, 1044 100");
  animation: chipFlowOut 3.08s cubic-bezier(.22, .61, .36, 1) .18s infinite;
}

body[data-page='home'] .chip-stream--out-2 .chip-dot {
  offset-path: path("M 486 308 C 322 240, 174 188, -58 126");
  animation: chipFlowOut 2.92s cubic-bezier(.22, .61, .36, 1) .58s infinite;
}

body[data-page='home'] .chip-stream--out-3 .chip-dot {
  offset-path: path("M 486 308 C 566 424, 700 526, 950 704");
  animation: chipFlowOut 3.04s cubic-bezier(.22, .61, .36, 1) .92s infinite;
}

body[data-page='home'] .chip-stream--out-4 .chip-dot {
  offset-path: path("M 486 308 C 388 432, 246 552, 26 706");
  animation: chipFlowOut 3.2s cubic-bezier(.22, .61, .36, 1) 1.2s infinite;
}

body[data-page='home'] .chip-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1200px;
  z-index: 3;
}

body[data-page='home'] .chip-shell {
  position: relative;
  width: clamp(172px, 24vw, 252px);
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transform: rotateX(17deg) rotateZ(-4deg);
}

body[data-page='home'] .chip-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(224, 237, 255, 0.8));
  border: 1px solid rgba(47, 104, 193, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -12px 26px rgba(28, 73, 149, 0.12),
    0 16px 42px rgba(20, 56, 120, 0.2);
}

body[data-page='home'] .chip-shell::after {
  content: "";
  position: absolute;
  inset: auto 12% -16% 12%;
  height: 22%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 107, 242, 0.3), transparent 70%);
  filter: blur(18px);
  opacity: 0.45;
}

body[data-page='home'] .chip-edge-glow {
  position: absolute;
  inset: -6px;
  border-radius: 28px;
  border: 1px solid rgba(104, 165, 255, 0.42);
  opacity: 0.8;
  animation: chipEdgePulse 2.2s ease-in-out infinite;
}

body[data-page='home'] .chip-circuit {
  position: absolute;
  inset: -22%;
  border-radius: 30px;
  background:
    repeating-linear-gradient(90deg, rgba(53, 104, 188, 0.1) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(0deg, rgba(53, 104, 188, 0.08) 0 1px, transparent 1px 20px);
  mask: radial-gradient(circle at center, transparent 24%, #000 25%, #000 73%, transparent 74%);
  opacity: 0.38;
  animation: chipCircuitShift 7.5s linear infinite;
}

body[data-page='home'] .chip-core {
  position: absolute;
  inset: 24%;
  border-radius: 17px;
  transform: translateZ(18px);
  background:
    radial-gradient(circle at 45% 36%, rgba(255, 255, 255, 0.96), rgba(121, 174, 255, 0.58) 62%, rgba(83, 142, 232, 0.2));
  box-shadow: 0 0 0 1px rgba(80, 134, 223, 0.42), 0 0 24px rgba(81, 139, 229, 0.34);
  animation: chipBeat 1.85s cubic-bezier(.4, 0, .2, 1) infinite;
}

body[data-page='home'] .chip-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: 1px solid rgba(73, 134, 227, 0.44);
  transform: translate(-50%, -50%) scale(0.66);
  opacity: 0;
}

body[data-page='home'] .chip-pulse-a {
  animation: chipPulse 2.25s ease-out infinite;
}

body[data-page='home'] .chip-pulse-b {
  animation: chipPulse 2.25s ease-out .72s infinite;
}

body[data-page='home'] .chip-pulse-c {
  animation: chipPulse 2.25s ease-out 1.44s infinite;
}

body[data-page='home'] .landing-section {
  margin-top: 30px;
}

body[data-page='home'] .landing-position {
  padding: 30px;
  text-align: left;
}

body[data-page='home'] .landing-position h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

body[data-page='home'] .landing-adv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body[data-page='home'] .landing-adv-card {
  padding: 22px;
  border-radius: 14px;
}

body[data-page='home'] .landing-adv-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.22;
}

body[data-page='home'] .landing-adv-card p {
  margin-top: 10px;
  color: var(--landing-muted);
  line-height: 1.72;
}

body[data-page='home'] .landing-deep {
  padding: 30px;
}

body[data-page='home'] .landing-highlight {
  margin-top: 14px;
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--landing-line-strong);
  background: rgba(37, 107, 242, 0.08);
  color: #1f4e97;
  font-size: 13px;
  font-weight: 700;
}

body[data-page='home'] .landing-deep-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-page='home'] .landing-deep-grid article {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--landing-line);
  background: var(--landing-panel-strong);
}

body[data-page='home'] .landing-deep-grid h3 {
  margin: 0;
  font-size: 20px;
}

body[data-page='home'] .landing-deep-grid p {
  margin-top: 8px;
  color: var(--landing-muted);
}

body[data-page='home'] .landing-security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body[data-page='home'] .landing-security-card {
  padding: 22px;
  border-radius: 14px;
}

body[data-page='home'] .landing-security-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.24;
}

body[data-page='home'] .landing-security-card p {
  margin-top: 10px;
  color: var(--landing-muted);
  line-height: 1.72;
}

body[data-page='home'] .landing-access {
  padding: 30px;
}

body[data-page='home'] .landing-access-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 16px;
}

body[data-page='home'] .landing-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 10px;
}

body[data-page='home'] .landing-steps li {
  counter-increment: step;
  min-height: 66px;
  display: grid;
  align-items: center;
  gap: 10px;
  grid-template-columns: auto 1fr;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--landing-line);
  background: var(--landing-panel-strong);
  color: var(--landing-muted);
  line-height: 1.5;
}

body[data-page='home'] .landing-steps li::before {
  content: counter(step);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 107, 242, 0.14);
  color: #1f4e97;
  font-size: 12px;
  font-weight: 800;
}

body[data-page='home'] .landing-code {
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(23, 61, 122, 0.18);
  background: linear-gradient(180deg, #0f213a, #142947);
  color: #dbeafe;
  padding: 18px;
  overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-page='home'] .landing-code code {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.65;
}

body[data-page='home'] .landing-models {
  padding: 30px;
}

body[data-page='home'] .landing-model-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

body[data-page='home'] .landing-model-card {
  padding: 13px 12px;
  border-radius: 12px;
  border: 1px solid var(--landing-line);
  background: var(--landing-panel-strong);
  text-align: center;
}

body[data-page='home'] .landing-model-card strong {
  display: block;
  font-size: 15px;
  color: var(--landing-text);
}

body[data-page='home'] .landing-model-card small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--landing-muted);
}

body[data-page='home'] .landing-model-more {
  margin-top: 12px;
  color: var(--landing-muted);
}

body[data-page='home'] .landing-pricing,
body[data-page='home'] .landing-final-cta {
  padding: 34px;
}

body[data-page='home'] .landing-final-cta {
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(236, 244, 255, 0.86));
}

@media (max-width: 1140px) {
  body[data-page='home'] .landing-hero {
    grid-template-columns: 1fr;
  }

  body[data-page='home'] .landing-adv-grid,
  body[data-page='home'] .landing-security-grid,
  body[data-page='home'] .landing-deep-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page='home'] .landing-access-layout {
    grid-template-columns: 1fr;
  }

  body[data-page='home'] .landing-model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page='home'] .chip-stream--out-4,
  body[data-page='home'] .chip-stream--in-4 {
    display: none;
  }
}

@media (max-width: 760px) {
  body[data-page='home'] .page-home.home-landing {
    width: min(1320px, calc(100% - 20px));
  }

  body[data-page='home'] .landing-hero-copy,
  body[data-page='home'] .landing-hero-visual,
  body[data-page='home'] .landing-position,
  body[data-page='home'] .landing-access,
  body[data-page='home'] .landing-deep,
  body[data-page='home'] .landing-pricing,
  body[data-page='home'] .landing-final-cta,
  body[data-page='home'] .landing-models {
    padding: 18px;
  }

  body[data-page='home'] .landing-inline-metrics,
  body[data-page='home'] .landing-adv-grid,
  body[data-page='home'] .landing-security-grid,
  body[data-page='home'] .landing-deep-grid,
  body[data-page='home'] .landing-model-grid {
    grid-template-columns: 1fr;
  }

  body[data-page='home'] .landing-hero-copy h1 {
    font-size: clamp(34px, 10vw, 50px);
  }

  body[data-page='home'] .chip-stage {
    min-height: 340px;
  }

  body[data-page='home'] .chip-shell {
    width: clamp(146px, 47vw, 186px);
  }

  body[data-page='home'] .chip-stream:nth-child(n + 7) {
    display: none;
  }

  body[data-page='home'] .chip-dot {
    width: 6px;
    height: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page='home'] .orbital,
  body[data-page='home'] .chip-edge-glow,
  body[data-page='home'] .chip-circuit,
  body[data-page='home'] .chip-core,
  body[data-page='home'] .chip-pulse,
  body[data-page='home'] .chip-dot {
    animation: none !important;
  }

  body[data-page='home'] .chip-pulse {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1.24);
  }

  body[data-page='home'] .chip-dot {
    opacity: 0.26;
  }
}

@keyframes chipPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.66);
    opacity: 0;
  }
  18% {
    opacity: 0.44;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.42);
    opacity: 0;
  }
}

@keyframes chipBeat {
  0%,
  100% {
    transform: translateZ(18px) scale(1);
  }
  35% {
    transform: translateZ(18px) scale(1.04);
  }
  58% {
    transform: translateZ(18px) scale(0.99);
  }
}

@keyframes chipEdgePulse {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

@keyframes chipCircuitShift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-20px, -12px, 0);
  }
}

@keyframes chipFlowIn {
  0% {
    offset-distance: 0%;
    opacity: 0;
    transform: scale(0.22);
  }
  18% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
    transform: scale(0.8);
  }
}

@keyframes chipFlowOut {
  0% {
    offset-distance: 0%;
    opacity: 0;
    transform: scale(0.26);
  }
  15% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
    transform: scale(0.7);
  }
}

body[data-page='home'] .skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 9;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid var(--landing-line-strong);
  color: #1f4e97;
  font-size: 13px;
  font-weight: 700;
}

body[data-page='home'] .skip-link:focus {
  left: 16px;
}


/* Homepage v4 Premium Override: high-end futuristic light */
body[data-page='home'] {
  --premium-bg: #eef4fb;
  --premium-bg-2: #f8fbff;
  --premium-panel: rgba(255, 255, 255, 0.84);
  --premium-panel-strong: rgba(255, 255, 255, 0.94);
  --premium-line: rgba(29, 69, 128, 0.16);
  --premium-line-strong: rgba(30, 97, 189, 0.34);
  --premium-text: #0f223c;
  --premium-muted: #526784;
  --premium-accent: #1a67ea;
  --premium-accent-soft: #80b6ff;
  --premium-shadow: 0 16px 48px rgba(17, 41, 83, 0.1);
}

body[data-page='home'] h1,
body[data-page='home'] h2,
body[data-page='home'] h3,
body[data-page='home'] .eyebrow,
body[data-page='home'] .btn,
body[data-page='home'] .brand-name {
  font-family: "Sora", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

body[data-page='home'] .site-bg {
  background:
    radial-gradient(circle at 8% -8%, rgba(26, 103, 234, 0.2), transparent 38%),
    radial-gradient(circle at 88% 10%, rgba(128, 182, 255, 0.16), transparent 42%),
    linear-gradient(180deg, var(--premium-bg-2) 0%, var(--premium-bg) 100%);
}

body[data-page='home'] .site-bg::before {
  background:
    radial-gradient(circle at 50% -30%, rgba(26, 103, 234, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(15, 34, 60, 0.02), transparent 46%);
}

body[data-page='home'] .site-bg::after {
  opacity: 0.22;
  background-size: 48px 48px;
}

body[data-page='home'] .orbital {
  border-color: rgba(35, 90, 173, 0.16);
}

body[data-page='home'] .orbital-a {
  animation: orbitRotate 42s linear infinite;
}

body[data-page='home'] .orbital-b {
  animation: orbitRotate 58s linear infinite reverse;
}

body[data-page='home'] .site-header {
  margin-top: 16px;
  border-radius: 16px;
  border-color: var(--premium-line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 34px rgba(16, 38, 74, 0.09);
}

body[data-page='home'] .site-header:hover {
  border-color: rgba(30, 97, 189, 0.3);
  box-shadow: 0 18px 42px rgba(16, 38, 74, 0.13);
}

body[data-page='home'] .brand-tagline {
  color: #4f6583;
}

body[data-page='home'] .nav {
  color: #4e6484;
}

body[data-page='home'] .nav a {
  border-radius: 10px;
}

body[data-page='home'] .nav a:hover {
  background: rgba(26, 103, 234, 0.09);
}

body[data-page='home'] .page-home.home-landing {
  width: min(1320px, calc(100% - 42px));
  padding-top: 42px;
  padding-bottom: 96px;
}

body[data-page='home'] .home-landing .glass-panel {
  border-color: var(--premium-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent),
    var(--premium-panel);
  box-shadow: var(--premium-shadow);
}

body[data-page='home'] .home-landing .glass-panel::before {
  opacity: 0.42;
  background: linear-gradient(132deg, rgba(26, 103, 234, 0.18), transparent 56%, rgba(128, 182, 255, 0.16));
}

body[data-page='home'] .landing-hero {
  grid-template-columns: minmax(0, 1.03fr) minmax(400px, 0.97fr);
  gap: 24px;
}

body[data-page='home'] .landing-hero-copy,
body[data-page='home'] .landing-hero-visual {
  padding: 42px;
  border-radius: 24px;
}

body[data-page='home'] .landing-hero-copy {
  background:
    radial-gradient(circle at 8% 16%, rgba(26, 103, 234, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 253, 255, 0.82));
}

body[data-page='home'] .landing-hero-copy .eyebrow {
  color: #1f59b8;
  letter-spacing: 0.18em;
}

body[data-page='home'] .landing-hero-copy h1 {
  margin-top: 14px;
  margin-bottom: 10px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 9ch;
  color: var(--premium-text);
  text-wrap: balance;
}

body[data-page='home'] .landing-subline {
  margin-top: 4px;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: #325c99;
}

body[data-page='home'] .landing-hero-copy .lede {
  margin-top: 16px;
  max-width: 56ch;
  color: var(--premium-muted);
  font-size: 16px;
  line-height: 1.82;
}

body[data-page='home'] .landing-trust-band {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body[data-page='home'] .landing-trust-band span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--premium-line-strong);
  background: rgba(255, 255, 255, 0.84);
  color: #234a86;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body[data-page='home'] .landing-runtime,
body[data-page='home'] .landing-inline-metrics {
  display: none !important;
}

body[data-page='home'] .btn {
  min-height: 48px;
  border-radius: 12px;
  font-size: 14px;
  letter-spacing: 0.01em;
}

body[data-page='home'] .btn-primary {
  background: linear-gradient(140deg, #165cd8, #2d82ff);
  box-shadow: 0 10px 24px rgba(26, 103, 234, 0.22);
}

body[data-page='home'] .btn-primary:hover {
  box-shadow: 0 14px 32px rgba(26, 103, 234, 0.3);
}

body[data-page='home'] .btn-secondary {
  border-color: rgba(30, 97, 189, 0.28);
  background: rgba(255, 255, 255, 0.78);
}

body[data-page='home'] .landing-hero-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 12%, rgba(26, 103, 234, 0.12), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.86));
}

body[data-page='home'] .landing-hero-visual .eyebrow {
  color: #285597;
  margin-bottom: 12px;
}

body[data-page='home'] .chip-stage {
  min-height: 446px;
  border-radius: 20px;
  border: 1px solid var(--premium-line);
  background:
    radial-gradient(circle at 50% 46%, rgba(26, 103, 234, 0.08), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(236, 245, 255, 0.84));
}

body[data-page='home'] .chip-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 28%, rgba(26, 103, 234, 0.1) 50%, transparent 72%);
  transform: translateX(-120%);
  animation: premiumSweep 7.2s linear infinite;
  opacity: 0.46;
}

body[data-page='home'] .chip-stage::after {
  content: "";
  position: absolute;
  inset: 8% 10% auto 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43, 103, 189, 0.4), transparent);
  opacity: 0.55;
}

body[data-page='home'] .chip-grid {
  opacity: 0.5;
  background-size: 36px 36px;
}

body[data-page='home'] .chip-dot {
  width: 7px;
  height: 7px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 24%, rgba(95, 160, 245, 0.94) 56%, rgba(95, 160, 245, 0) 76%);
  filter: drop-shadow(0 0 11px rgba(68, 136, 229, 0.44));
}

body[data-page='home'] .chip-shell {
  width: clamp(184px, 25vw, 274px);
  transform: rotateX(18deg) rotateZ(-3deg);
}

body[data-page='home'] .chip-shell::before {
  border-radius: 25px;
  border: 1px solid rgba(34, 94, 184, 0.33);
  background: linear-gradient(146deg, rgba(255, 255, 255, 0.95), rgba(221, 236, 255, 0.8));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -14px 30px rgba(22, 71, 149, 0.15),
    0 18px 46px rgba(16, 52, 115, 0.22);
}

body[data-page='home'] .chip-shell::after {
  opacity: 0.58;
}

body[data-page='home'] .chip-edge-glow {
  border: 1px solid rgba(101, 165, 255, 0.42);
  animation: chipEdgePulse 2.2s ease-in-out infinite;
}

body[data-page='home'] .chip-circuit {
  inset: -24%;
  opacity: 0.44;
}

body[data-page='home'] .chip-core {
  inset: 25%;
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(84, 140, 231, 0.45),
    0 0 34px rgba(83, 143, 234, 0.38);
}

body[data-page='home'] .chip-pulse {
  border-color: rgba(75, 133, 224, 0.46);
}

body[data-page='home'] .section-block {
  margin-top: 42px;
}

body[data-page='home'] .section-head .eyebrow {
  color: #2a5ea8;
}

body[data-page='home'] .section-head h2 {
  color: var(--premium-text);
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 16ch;
}

body[data-page='home'] .landing-position {
  padding: 36px;
}

body[data-page='home'] .landing-position h2 {
  font-size: clamp(34px, 4.3vw, 54px);
  letter-spacing: -0.025em;
  max-width: 20ch;
}

body[data-page='home'] .landing-adv-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

body[data-page='home'] .landing-adv-card {
  border-radius: 16px;
  padding: 24px;
  background:
    radial-gradient(circle at 84% 14%, rgba(32, 104, 206, 0.08), transparent 42%),
    var(--premium-panel-strong);
}

body[data-page='home'] .landing-adv-card:nth-child(1),
body[data-page='home'] .landing-adv-card:nth-child(2),
body[data-page='home'] .landing-adv-card:nth-child(3) {
  grid-column: span 4;
}

body[data-page='home'] .landing-adv-card:nth-child(4) {
  grid-column: span 5;
}

body[data-page='home'] .landing-adv-card:nth-child(5) {
  grid-column: span 4;
}

body[data-page='home'] .landing-adv-card:nth-child(6) {
  grid-column: span 3;
}

body[data-page='home'] .landing-adv-card h3 {
  font-size: 25px;
}

body[data-page='home'] .landing-adv-card p {
  color: var(--premium-muted);
}

body[data-page='home'] .landing-deep {
  padding: 34px;
}

body[data-page='home'] .landing-highlight {
  margin-top: 16px;
  padding: 10px 14px;
  border-color: var(--premium-line-strong);
  background: rgba(26, 103, 234, 0.09);
  color: #1f4f97;
  font-size: 13px;
}

body[data-page='home'] .landing-deep-grid {
  gap: 14px;
}

body[data-page='home'] .landing-deep-grid article {
  border-radius: 14px;
  padding: 18px;
  background: var(--premium-panel-strong);
}

body[data-page='home'] .landing-security-grid {
  grid-template-columns: 1.16fr 1fr 1fr;
  gap: 14px;
}

body[data-page='home'] .landing-security-card {
  border-radius: 16px;
  padding: 25px;
}

body[data-page='home'] .landing-security-card h3 {
  font-size: 25px;
}

body[data-page='home'] .landing-access {
  padding: 34px;
}

body[data-page='home'] .landing-access-layout {
  grid-template-columns: minmax(284px, 0.84fr) minmax(0, 1.16fr);
  gap: 18px;
}

body[data-page='home'] .landing-steps li {
  border-radius: 13px;
  min-height: 70px;
}

body[data-page='home'] .landing-code {
  border: 1px solid rgba(24, 65, 131, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 10% 10%, rgba(61, 125, 218, 0.18), transparent 40%),
    linear-gradient(180deg, #0f1f35, #142946);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-page='home'] .landing-models {
  padding: 34px;
}

body[data-page='home'] .landing-model-grid {
  gap: 12px;
}

body[data-page='home'] .landing-model-card {
  border-radius: 13px;
  padding: 14px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.88));
}

body[data-page='home'] .landing-pricing,
body[data-page='home'] .landing-final-cta {
  padding: 38px;
}

body[data-page='home'] .landing-final-cta {
  background:
    radial-gradient(circle at 100% 0%, rgba(26, 103, 234, 0.14), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 244, 255, 0.88));
}

body[data-page='home'] .site-footer {
  border-top-color: rgba(30, 78, 146, 0.15);
}

@media (max-width: 1200px) {
  body[data-page='home'] .landing-hero {
    grid-template-columns: 1fr;
  }

  body[data-page='home'] .landing-adv-card:nth-child(n) {
    grid-column: span 6;
  }

  body[data-page='home'] .landing-security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page='home'] .landing-model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body[data-page='home'] .page-home.home-landing {
    width: min(1320px, calc(100% - 22px));
  }

  body[data-page='home'] .landing-hero-copy,
  body[data-page='home'] .landing-hero-visual,
  body[data-page='home'] .landing-position,
  body[data-page='home'] .landing-access,
  body[data-page='home'] .landing-deep,
  body[data-page='home'] .landing-pricing,
  body[data-page='home'] .landing-final-cta,
  body[data-page='home'] .landing-models {
    padding: 20px;
  }

  body[data-page='home'] .landing-adv-card:nth-child(n) {
    grid-column: span 12;
  }

  body[data-page='home'] .landing-security-grid,
  body[data-page='home'] .landing-deep-grid,
  body[data-page='home'] .landing-model-grid {
    grid-template-columns: 1fr;
  }

  body[data-page='home'] .landing-access-layout {
    grid-template-columns: 1fr;
  }

  body[data-page='home'] .landing-hero-copy h1 {
    font-size: clamp(36px, 11vw, 58px);
  }

  body[data-page='home'] .chip-stage {
    min-height: 360px;
  }

  body[data-page='home'] .chip-shell {
    width: clamp(150px, 50vw, 196px);
  }

  body[data-page='home'] .chip-stream:nth-child(n + 7) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page='home'] .chip-stage::before {
    animation: none !important;
    transform: none;
    opacity: 0.18;
  }
}

@keyframes premiumSweep {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

/* Homepage v5 cinematic: full-screen hero, premium chip, image-rich storytelling */
body[data-page='home'] .home-v5 {
  --v5-bg: #eef4fb;
  --v5-bg-2: #f9fbff;
  --v5-panel: rgba(255, 255, 255, 0.86);
  --v5-panel-strong: rgba(255, 255, 255, 0.96);
  --v5-line: rgba(22, 66, 129, 0.16);
  --v5-line-strong: rgba(34, 97, 188, 0.34);
  --v5-text: #0f223b;
  --v5-muted: #4f6787;
  --v5-accent: #1f69e7;
  --v5-accent-soft: #7fb6ff;
  --v5-shadow: 0 18px 54px rgba(16, 42, 85, 0.1);
  width: min(1360px, calc(100% - 40px));
  padding-top: 28px;
  padding-bottom: 100px;
}

body[data-page='home'] .home-v5,
body[data-page='home'] .home-v5 h1,
body[data-page='home'] .home-v5 h2,
body[data-page='home'] .home-v5 h3,
body[data-page='home'] .home-v5 .btn {
  font-family: "Sora", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

body[data-page='home'] .home-v5 .eyebrow,
body[data-page='home'] .home-v5 .v5-kicker {
  margin: 0;
  color: #2457a3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body[data-page='home'] .v5-hero {
  position: relative;
  min-height: calc(100dvh - 120px);
  border: 1px solid var(--v5-line);
  border-radius: 30px;
  overflow: hidden;
  padding: clamp(28px, 4.8vw, 62px);
  background:
    radial-gradient(circle at 78% 10%, rgba(31, 105, 231, 0.16), transparent 42%),
    radial-gradient(circle at 18% 0%, rgba(127, 182, 255, 0.14), transparent 44%),
    linear-gradient(180deg, #fdfefe, #eff5ff 64%, #ebf2fc 100%);
  box-shadow: 0 24px 70px rgba(16, 42, 85, 0.13);
}

body[data-page='home'] .v5-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 71, 138, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 71, 138, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.76), transparent 96%);
  pointer-events: none;
}

body[data-page='home'] .v5-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(54px, 10vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--v5-text);
  text-wrap: balance;
  max-width: 11ch;
}

body[data-page='home'] .v5-model-line {
  margin: 10px 0 0;
  font-size: clamp(15px, 2vw, 20px);
  color: #2d5d9d;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}

body[data-page='home'] .v5-tagline {
  margin: 10px 0 0;
  color: var(--v5-muted);
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: 0.01em;
}

body[data-page='home'] .v5-hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body[data-page='home'] .home-v5 .btn {
  min-height: 50px;
  border-radius: 12px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
}

body[data-page='home'] .home-v5 .btn-primary {
  background: linear-gradient(140deg, #1a63dc, #2d84ff);
  box-shadow: 0 10px 24px rgba(31, 105, 231, 0.25);
}

body[data-page='home'] .home-v5 .btn-secondary {
  border: 1px solid rgba(36, 97, 186, 0.3);
  background: rgba(255, 255, 255, 0.78);
}

body[data-page='home'] .v5-chip-scene {
  position: relative;
  margin-top: clamp(24px, 4vw, 42px);
  min-height: clamp(360px, 50vw, 620px);
  border-radius: 24px;
  border: 1px solid var(--v5-line);
  background:
    radial-gradient(circle at 50% 56%, rgba(31, 105, 231, 0.11), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(236, 245, 255, 0.9));
  overflow: hidden;
}

body[data-page='home'] .v5-chip-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, transparent 30%, rgba(44, 114, 214, 0.16) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: v5Sweep 6.8s linear infinite;
  pointer-events: none;
}

body[data-page='home'] .v5-chip-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29, 84, 156, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 84, 156, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.74;
}

body[data-page='home'] .v5-chip-glow {
  position: absolute;
  inset: 12% 18% 16% 18%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(31, 105, 231, 0.28), transparent 72%);
  filter: blur(28px);
}

body[data-page='home'] .v5-stream-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

body[data-page='home'] .v5-stream {
  position: absolute;
  inset: 0;
}

body[data-page='home'] .v5-stream span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 25%, rgba(96, 164, 255, 0.92) 56%, rgba(96, 164, 255, 0) 76%);
  filter: drop-shadow(0 0 14px rgba(89, 151, 239, 0.48));
  offset-rotate: auto;
}

body[data-page='home'] .v5-stream-in-1 span {
  offset-path: path("M -80 120 C 180 160, 380 290, 700 430");
  animation: v5FlowIn 2.8s cubic-bezier(.22, .61, .36, 1) infinite;
}

body[data-page='home'] .v5-stream-in-2 span {
  offset-path: path("M 1700 120 C 1410 160, 1210 280, 900 430");
  animation: v5FlowIn 2.74s cubic-bezier(.22, .61, .36, 1) .34s infinite;
}

body[data-page='home'] .v5-stream-in-3 span {
  offset-path: path("M 800 -120 C 820 120, 816 210, 804 432");
  animation: v5FlowIn 2.62s cubic-bezier(.22, .61, .36, 1) .66s infinite;
}

body[data-page='home'] .v5-stream-in-4 span {
  offset-path: path("M 800 980 C 792 760, 798 620, 804 432");
  animation: v5FlowIn 2.92s cubic-bezier(.22, .61, .36, 1) .98s infinite;
}

body[data-page='home'] .v5-stream-out-1 span {
  offset-path: path("M 804 432 C 1110 294, 1300 180, 1700 124");
  animation: v5FlowOut 3.1s cubic-bezier(.22, .61, .36, 1) .2s infinite;
}

body[data-page='home'] .v5-stream-out-2 span {
  offset-path: path("M 804 432 C 504 300, 290 220, -90 132");
  animation: v5FlowOut 2.9s cubic-bezier(.22, .61, .36, 1) .56s infinite;
}

body[data-page='home'] .v5-stream-out-3 span {
  offset-path: path("M 804 432 C 1050 588, 1280 748, 1700 900");
  animation: v5FlowOut 3.2s cubic-bezier(.22, .61, .36, 1) .92s infinite;
}

body[data-page='home'] .v5-stream-out-4 span {
  offset-path: path("M 804 432 C 560 590, 300 748, -90 910");
  animation: v5FlowOut 3.16s cubic-bezier(.22, .61, .36, 1) 1.18s infinite;
}

body[data-page='home'] .v5-chip-wrap {
  position: absolute;
  left: 50%;
  top: 52%;
  width: clamp(190px, 28vw, 360px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) rotateX(16deg) rotateZ(-4deg);
  transform-style: preserve-3d;
  z-index: 3;
}

body[data-page='home'] .v5-chip-shadow {
  position: absolute;
  inset: auto 10% -16% 10%;
  height: 22%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(31, 105, 231, 0.34), transparent 72%);
  filter: blur(22px);
}

body[data-page='home'] .v5-chip-base {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 1px solid rgba(42, 104, 196, 0.34);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(221, 236, 255, 0.8));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -14px 30px rgba(22, 70, 147, 0.15),
    0 20px 54px rgba(16, 52, 118, 0.26);
}

body[data-page='home'] .v5-chip-layer {
  position: absolute;
  inset: 10%;
  border-radius: 22px;
  border: 1px solid rgba(70, 131, 220, 0.34);
  background: linear-gradient(152deg, rgba(241, 248, 255, 0.86), rgba(203, 225, 255, 0.64));
}

body[data-page='home'] .v5-chip-core {
  position: absolute;
  inset: 30%;
  border-radius: 16px;
  border: 1px solid rgba(90, 147, 232, 0.4);
  background: radial-gradient(circle at 45% 34%, rgba(255, 255, 255, 0.97), rgba(124, 178, 255, 0.62) 58%, rgba(83, 143, 232, 0.26));
  box-shadow: 0 0 34px rgba(80, 142, 235, 0.4);
  animation: v5CoreBeat 1.86s cubic-bezier(.4, 0, .2, 1) infinite;
}

body[data-page='home'] .v5-chip-pin {
  position: absolute;
  width: 14px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(177, 210, 250, 0.96), rgba(87, 141, 222, 0.82));
  box-shadow: 0 0 8px rgba(99, 157, 241, 0.35);
}

body[data-page='home'] .v5-chip-pin.p1 { left: -10px; top: 16%; }
body[data-page='home'] .v5-chip-pin.p2 { left: -10px; top: 30%; }
body[data-page='home'] .v5-chip-pin.p3 { left: -10px; top: 44%; }
body[data-page='home'] .v5-chip-pin.p4 { left: -10px; top: 58%; }
body[data-page='home'] .v5-chip-pin.p5 { left: -10px; top: 72%; }
body[data-page='home'] .v5-chip-pin.p6 { left: -10px; top: 86%; }
body[data-page='home'] .v5-chip-pin.p7 { right: -10px; top: 16%; }
body[data-page='home'] .v5-chip-pin.p8 { right: -10px; top: 30%; }
body[data-page='home'] .v5-chip-pin.p9 { right: -10px; top: 44%; }
body[data-page='home'] .v5-chip-pin.p10 { right: -10px; top: 58%; }
body[data-page='home'] .v5-chip-pin.p11 { right: -10px; top: 72%; }
body[data-page='home'] .v5-chip-pin.p12 { right: -10px; top: 86%; }

body[data-page='home'] .v5-chip-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: 1px solid rgba(77, 138, 228, 0.48);
  transform: translate(-50%, -50%) scale(0.62);
  opacity: 0;
}

body[data-page='home'] .v5-chip-pulse.r1 { animation: v5Pulse 2.2s ease-out infinite; }
body[data-page='home'] .v5-chip-pulse.r2 { animation: v5Pulse 2.2s ease-out .72s infinite; }
body[data-page='home'] .v5-chip-pulse.r3 { animation: v5Pulse 2.2s ease-out 1.44s infinite; }

body[data-page='home'] .v5-section {
  margin-top: 36px;
  border: 1px solid var(--v5-line);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), transparent),
    var(--v5-panel);
  box-shadow: var(--v5-shadow);
}

body[data-page='home'] .v5-section-head h2 {
  margin: 10px 0 0;
  color: var(--v5-text);
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

body[data-page='home'] .v5-lede {
  margin-top: 14px;
  color: var(--v5-muted);
  font-size: 16px;
  line-height: 1.78;
}

body[data-page='home'] .v5-highlight {
  margin-top: 14px;
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--v5-line-strong);
  color: #1f4f97;
  background: rgba(31, 105, 231, 0.08);
  font-size: 13px;
  font-weight: 700;
}

body[data-page='home'] .v5-media {
  margin: 18px 0 0;
  border-radius: 16px;
  border: 1px solid var(--v5-line);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
}

body[data-page='home'] .v5-media img {
  display: block;
  width: 100%;
  height: auto;
}

body[data-page='home'] .v5-adv-grid,
body[data-page='home'] .v5-trio,
body[data-page='home'] .v5-model-grid {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

body[data-page='home'] .v5-adv-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-page='home'] .v5-trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-page='home'] .v5-card {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--v5-line);
  background: var(--v5-panel-strong);
}

body[data-page='home'] .v5-card.soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 247, 255, 0.88));
}

body[data-page='home'] .v5-card h3 {
  margin: 0;
  color: var(--v5-text);
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.2;
}

body[data-page='home'] .v5-card p {
  margin-top: 8px;
  color: var(--v5-muted);
  line-height: 1.7;
}

body[data-page='home'] .v5-access-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 14px;
  align-items: stretch;
}

body[data-page='home'] .v5-media.side {
  margin-top: 0;
}

body[data-page='home'] .v5-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 10px;
}

body[data-page='home'] .v5-steps li {
  counter-increment: step;
  min-height: 66px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--v5-line);
  background: var(--v5-panel-strong);
  color: var(--v5-muted);
}

body[data-page='home'] .v5-steps li::before {
  content: counter(step);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 105, 231, 0.16);
  color: #1d4f98;
  font-size: 12px;
  font-weight: 800;
}

body[data-page='home'] .v5-code {
  margin: 12px 0 0;
  border-radius: 14px;
  border: 1px solid rgba(24, 64, 126, 0.22);
  background:
    radial-gradient(circle at 14% 14%, rgba(63, 126, 217, 0.2), transparent 40%),
    linear-gradient(180deg, #0f2138, #162a47);
  color: #dbeafe;
  padding: 18px;
  overflow-x: auto;
}

body[data-page='home'] .v5-code code {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.66;
}

body[data-page='home'] .v5-model-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body[data-page='home'] .v5-model {
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--v5-line);
  background: var(--v5-panel-strong);
  text-align: center;
}

body[data-page='home'] .v5-model strong {
  display: block;
  color: var(--v5-text);
  font-size: 15px;
}

body[data-page='home'] .v5-model small,
body[data-page='home'] .v5-model-more {
  display: block;
  margin-top: 6px;
  color: var(--v5-muted);
}

body[data-page='home'] .v5-final {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1.08fr);
  gap: 14px;
  align-items: center;
}

@media (max-width: 1180px) {
  body[data-page='home'] .home-v5 {
    width: min(1360px, calc(100% - 24px));
  }

  body[data-page='home'] .v5-adv-grid,
  body[data-page='home'] .v5-trio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page='home'] .v5-model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body[data-page='home'] .v5-hero {
    min-height: auto;
    padding: 20px;
    border-radius: 20px;
  }

  body[data-page='home'] .v5-hero h1 {
    font-size: clamp(42px, 12vw, 76px);
    line-height: 0.94;
  }

  body[data-page='home'] .v5-chip-scene {
    min-height: 320px;
    border-radius: 16px;
  }

  body[data-page='home'] .v5-chip-wrap {
    width: clamp(154px, 48vw, 212px);
  }

  body[data-page='home'] .v5-stream:nth-child(n + 7) {
    display: none;
  }

  body[data-page='home'] .v5-section {
    padding: 16px;
    border-radius: 18px;
  }

  body[data-page='home'] .v5-section-head h2 {
    font-size: clamp(28px, 8vw, 44px);
  }

  body[data-page='home'] .v5-adv-grid,
  body[data-page='home'] .v5-trio,
  body[data-page='home'] .v5-model-grid,
  body[data-page='home'] .v5-access-layout,
  body[data-page='home'] .v5-final {
    grid-template-columns: 1fr;
  }

  body[data-page='home'] .v5-media.side {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page='home'] .v5-chip-scene::before,
  body[data-page='home'] .v5-stream span,
  body[data-page='home'] .v5-chip-core,
  body[data-page='home'] .v5-chip-pulse {
    animation: none !important;
  }

  body[data-page='home'] .v5-chip-pulse {
    opacity: 0.24;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

@keyframes v5Sweep {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@keyframes v5FlowIn {
  0% {
    offset-distance: 0%;
    opacity: 0;
    transform: scale(0.2);
  }
  16% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
    transform: scale(0.82);
  }
}

@keyframes v5FlowOut {
  0% {
    offset-distance: 0%;
    opacity: 0;
    transform: scale(0.26);
  }
  14% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
    transform: scale(0.7);
  }
}

@keyframes v5CoreBeat {
  0%,
  100% { transform: scale(1); }
  35% { transform: scale(1.05); }
  58% { transform: scale(0.99); }
}

@keyframes v5Pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.62);
    opacity: 0;
  }
  18% { opacity: 0.46; }
  100% {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}


/* v5 Title Refinement: elegant Chinese hero typography */
body[data-page='home'] .v5-hero h1 {
  margin: 18px 0 0;
  display: grid;
  gap: 0.04em;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-weight: 600;
  font-size: clamp(50px, 8.5vw, 118px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 11ch;
  color: #102641;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

body[data-page='home'] .v5-title-main {
  display: block;
}

body[data-page='home'] .v5-title-main:last-child {
  padding-left: 0.06em;
}

body[data-page='home'] .v5-model-line {
  margin-top: 14px;
  font-size: clamp(13px, 1.35vw, 18px);
  letter-spacing: 0.18em;
}

body[data-page='home'] .v5-tagline {
  margin-top: 12px;
  font-size: clamp(16px, 1.8vw, 24px);
  color: #5b6d8b;
}

@media (max-width: 860px) {
  body[data-page='home'] .v5-hero h1 {
    font-size: clamp(40px, 12vw, 68px);
    line-height: 1.02;
  }

  body[data-page='home'] .v5-title-main:last-child {
    padding-left: 0;
  }
}

/* v5 Hero Reframe: future magazine impact */
body[data-page='home'] .v5-hero {
  min-height: calc(100dvh - 92px);
  padding: clamp(26px, 4.2vw, 58px);
  border-radius: 34px;
  border: 1px solid rgba(19, 63, 124, 0.2);
  background:
    radial-gradient(circle at 76% 12%, rgba(26, 101, 222, 0.24), transparent 42%),
    radial-gradient(circle at 14% -4%, rgba(132, 188, 255, 0.18), transparent 46%),
    linear-gradient(180deg, #fcfdff 0%, #edf4ff 66%, #e7effc 100%);
  box-shadow:
    0 30px 80px rgba(17, 47, 94, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  isolation: isolate;
}

body[data-page='home'] .v5-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -26% 48%;
  height: 52%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(32, 105, 227, 0.22), transparent 72%);
  filter: blur(26px);
  z-index: 0;
}

body[data-page='home'] .v5-hero .v5-kicker,
body[data-page='home'] .v5-hero .v5-model-line,
body[data-page='home'] .v5-hero .v5-tagline,
body[data-page='home'] .v5-hero .v5-hero-actions,
body[data-page='home'] .v5-hero h1 {
  position: relative;
  z-index: 4;
}

body[data-page='home'] .v5-hero .v5-kicker {
  color: #1f58ac;
  letter-spacing: 0.22em;
  font-size: 11px;
}

body[data-page='home'] .v5-hero h1 {
  margin-top: 18px;
  margin-bottom: 0;
  position: relative;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  font-family: "Noto Sans SC", "Sora", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  font-size: clamp(54px, 8.7vw, 142px);
  line-height: 0.88;
  letter-spacing: -0.048em;
  color: #0e223b;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 36px rgba(13, 45, 94, 0.18);
}

body[data-page='home'] .v5-hero h1::before {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1.1px rgba(53, 112, 197, 0.54);
  text-stroke: 1.1px rgba(53, 112, 197, 0.54);
  transform: translate(0.05em, 0.06em);
  opacity: 0.56;
  pointer-events: none;
  z-index: -1;
}

body[data-page='home'] .v5-hero .v5-model-line {
  margin-top: 16px;
  font-size: clamp(14px, 1.4vw, 19px);
  letter-spacing: 0.2em;
  color: #2c5e9f;
}

body[data-page='home'] .v5-hero .v5-tagline {
  margin-top: 10px;
  font-size: clamp(17px, 2vw, 25px);
  color: #4f6686;
}

body[data-page='home'] .v5-hero .v5-hero-actions {
  margin-top: 24px;
}

body[data-page='home'] .v5-hero .v5-chip-scene {
  position: absolute;
  right: clamp(18px, 3vw, 34px);
  top: clamp(120px, 18vw, 220px);
  width: min(62%, 900px);
  height: clamp(340px, 43vw, 610px);
  margin-top: 0;
  border-radius: 28px;
  border: 1px solid rgba(34, 90, 177, 0.25);
  background:
    radial-gradient(circle at 50% 52%, rgba(24, 102, 225, 0.14), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(232, 243, 255, 0.88));
  box-shadow:
    0 24px 58px rgba(14, 51, 112, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  z-index: 2;
}

body[data-page='home'] .v5-hero .v5-chip-scene::before {
  animation-duration: 5.8s;
  opacity: 0.68;
}

body[data-page='home'] .v5-hero .v5-chip-grid {
  opacity: 0.64;
  background-size: 32px 32px;
}

body[data-page='home'] .v5-hero .v5-chip-wrap {
  width: clamp(220px, 34vw, 420px);
  top: 54%;
}

body[data-page='home'] .v5-hero .v5-chip-base {
  border-radius: 32px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -16px 34px rgba(18, 65, 141, 0.2),
    0 24px 64px rgba(13, 50, 114, 0.3);
}

body[data-page='home'] .v5-hero .v5-chip-layer {
  border-radius: 24px;
}

body[data-page='home'] .v5-hero .v5-chip-core {
  box-shadow:
    0 0 44px rgba(79, 145, 238, 0.48),
    0 0 0 1px rgba(84, 142, 230, 0.52);
}

body[data-page='home'] .v5-hero .v5-stream span {
  width: 10px;
  height: 10px;
  filter: drop-shadow(0 0 16px rgba(80, 145, 239, 0.56));
}

body[data-page='home'] .v5-hero .v5-stream-in-1 span {
  offset-path: path("M -120 120 C 210 170, 430 300, 740 440");
}

body[data-page='home'] .v5-hero .v5-stream-in-2 span {
  offset-path: path("M 1800 120 C 1430 170, 1220 300, 860 440");
}

body[data-page='home'] .v5-hero .v5-stream-in-3 span {
  offset-path: path("M 820 -140 C 838 140, 834 230, 820 442");
}

body[data-page='home'] .v5-hero .v5-stream-in-4 span {
  offset-path: path("M 820 980 C 806 760, 812 620, 820 442");
}

body[data-page='home'] .v5-hero .v5-stream-out-1 span {
  offset-path: path("M 820 442 C 1130 290, 1350 190, 1800 130");
}

body[data-page='home'] .v5-hero .v5-stream-out-2 span {
  offset-path: path("M 820 442 C 500 300, 280 220, -130 138");
}

body[data-page='home'] .v5-hero .v5-stream-out-3 span {
  offset-path: path("M 820 442 C 1090 610, 1320 760, 1800 900");
}

body[data-page='home'] .v5-hero .v5-stream-out-4 span {
  offset-path: path("M 820 442 C 560 610, 300 760, -130 900");
}

@media (max-width: 1120px) {
  body[data-page='home'] .v5-hero {
    min-height: auto;
    padding-bottom: 20px;
  }

  body[data-page='home'] .v5-hero h1 {
    white-space: normal;
    max-width: 10ch;
    font-size: clamp(48px, 10vw, 92px);
    line-height: 0.94;
  }

  body[data-page='home'] .v5-hero .v5-chip-scene {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: clamp(300px, 50vw, 440px);
    margin-top: 22px;
  }

  body[data-page='home'] .v5-hero .v5-chip-wrap {
    width: clamp(182px, 44vw, 280px);
  }
}

@media (max-width: 720px) {
  body[data-page='home'] .v5-hero {
    border-radius: 22px;
  }

  body[data-page='home'] .v5-hero h1 {
    font-size: clamp(40px, 12vw, 62px);
    letter-spacing: -0.04em;
  }

  body[data-page='home'] .v5-hero .v5-model-line {
    letter-spacing: 0.14em;
  }

  body[data-page='home'] .v5-hero .v5-chip-scene {
    border-radius: 18px;
  }
}


/* Homepage v6 */
body[data-page='home'] {
  --v6-bg-0: #0b0b0c;
  --v6-bg-1: #111112;
  --v6-bg-2: #18181b;
  --v6-panel: rgba(255, 255, 255, 0.03);
  --v6-panel-hover: rgba(255, 255, 255, 0.06);
  --v6-line: rgba(255, 255, 255, 0.08);
  --v6-line-strong: rgba(255, 255, 255, 0.14);
  --v6-text: #f5f5f4;
  --v6-subtext: #a8a29e;
  --v6-muted: #78716c;
  --v6-accent: #d97706;
  --v6-accent-2: #ea580c;
  --v6-glow: rgba(217, 119, 6, 0.15);
  --v6-ease: cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--v6-bg-0);
  color: var(--v6-text);
  font-family: "Source Serif 4", "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
}

body[data-page='home'] h1,
body[data-page='home'] h2,
body[data-page='home'] h3,
body[data-page='home'] .brand-name {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-weight: 600;
}

body[data-page='home'] .site-bg {
  background:
    radial-gradient(circle at 15% -5%, rgba(217, 119, 6, 0.12), transparent 42%),
    radial-gradient(circle at 82% 5%, rgba(234, 88, 12, 0.1), transparent 44%),
    radial-gradient(circle at 50% 120%, rgba(217, 119, 6, 0.08), transparent 50%),
    linear-gradient(180deg, var(--v6-bg-1) 0%, var(--v6-bg-0) 46%, #090909 100%);
}

body[data-page='home'] .site-bg::before {
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.1), transparent 30%);
}

body[data-page='home'] .site-bg::after {
  background-image:
    linear-gradient(rgba(231, 229, 228, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 229, 228, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.22;
}

body[data-page='home'] .mesh {
  background: linear-gradient(130deg, rgba(217, 119, 6, 0.15), transparent 52%);
  opacity: 0.22;
}

body[data-page='home'] .beam {
  opacity: 0.18;
}

body[data-page='home'] .beam-a {
  background: radial-gradient(circle, rgba(217, 119, 6, 0.26), transparent 68%);
}

body[data-page='home'] .beam-b {
  background: radial-gradient(circle, rgba(194, 65, 12, 0.24), transparent 64%);
}

body[data-page='home'] .orbital {
  border-color: rgba(231, 229, 228, 0.06);
}

body[data-page='home'] .orbital-b {
  border-color: rgba(217, 119, 6, 0.09);
}

body[data-page='home'] .grid-glow {
  background: radial-gradient(circle at center, rgba(217, 119, 6, 0.11), transparent 70%);
}

html {
  scroll-behavior: smooth;
}

body[data-page='home'] .v6-header {
  position: sticky;
  top: 12px;
  width: min(1200px, calc(100% - 36px));
  min-height: 64px;
  margin: 14px auto 0;
  padding: 12px 18px;
  border-radius: 18px;
  border: 1px solid var(--v6-line);
  background: rgba(13, 13, 14, 0.64);
  backdrop-filter: blur(14px) saturate(122%);
  box-shadow:
    0 20px 38px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 40;
}

body[data-page='home'] .v6-header:hover {
  border-color: rgba(217, 119, 6, 0.3);
  box-shadow:
    0 24px 44px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body[data-page='home'] .v6-header .brand {
  gap: 11px;
}

body[data-page='home'] .v6-header .brand-logo {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 8px 18px rgba(217, 119, 6, 0.28));
}

body[data-page='home'] .v6-header .brand-name {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 52%, #ea580c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-page='home'] .v6-header .brand-tagline {
  color: rgba(168, 162, 158, 0.86);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body[data-page='home'] .v6-header .v6-nav {
  gap: 6px;
}

body[data-page='home'] .v6-header .v6-nav a {
  font-family: "Source Serif 4", "Noto Serif SC", serif;
  font-size: 14px;
  color: var(--v6-subtext);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 16px;
  transition:
    color 220ms var(--v6-ease),
    border-color 220ms var(--v6-ease),
    background-color 220ms var(--v6-ease),
    transform 220ms var(--v6-ease);
}

body[data-page='home'] .v6-header .v6-nav a:hover {
  color: var(--v6-text);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

body[data-page='home'] .v6-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 10px;
  border: 1px solid var(--v6-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--v6-text);
  cursor: pointer;
}

body[data-page='home'] .v6-nav-toggle span {
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 99px;
}

body[data-page='home'] .home-v6 {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0 132px;
}

body[data-page='home'] .home-v6 .v6-hero {
  position: relative;
  text-align: center;
  padding: 20px 0 16px;
}

body[data-page='home'] .home-v6 .v6-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  width: min(900px, 85vw);
  height: min(500px, 56vw);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--v6-glow), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

body[data-page='home'] .home-v6 .v6-kicker {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(231, 229, 228, 0.78);
}

body[data-page='home'] .home-v6 #hero-title {
  margin: 18px auto 0;
  max-width: 16ch;
  white-space: nowrap;
  font-size: clamp(52px, 6.7vw, 92px);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.1;
  color: var(--v6-text);
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.42),
    0 0 1px rgba(245, 245, 244, 0.35);
}

body[data-page='home'] .home-v6 .v6-models {
  margin: 22px 0 0;
  font-family: "Source Serif 4", "Noto Serif SC", serif;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--v6-subtext);
  letter-spacing: 0.04em;
}

body[data-page='home'] .home-v6 .v6-subtitle {
  margin: 12px auto 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.74;
  color: var(--v6-subtext);
}

body[data-page='home'] .home-v6 .v6-actions {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

body[data-page='home'] .home-v6 .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 30px;
  min-width: 152px;
  font-family: "Source Serif 4", "Noto Serif SC", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  border: 1px solid transparent;
  transition:
    transform 230ms var(--v6-ease),
    border-color 230ms var(--v6-ease),
    background 230ms var(--v6-ease),
    color 230ms var(--v6-ease),
    box-shadow 230ms var(--v6-ease);
}

body[data-page='home'] .home-v6 .btn:active {
  transform: translateY(0) scale(0.985);
}

body[data-page='home'] .home-v6 .btn-primary {
  color: #fff7ed;
  background: linear-gradient(135deg, var(--v6-accent) 0%, var(--v6-accent-2) 100%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px rgba(194, 65, 12, 0.32);
}

body[data-page='home'] .home-v6 .btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 34px rgba(194, 65, 12, 0.42);
}

body[data-page='home'] .home-v6 .btn-secondary {
  color: var(--v6-subtext);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

body[data-page='home'] .home-v6 .btn-secondary:hover {
  color: var(--v6-text);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

body[data-page='home'] .home-v6 .v6-canvas-wrap {
  margin: 42px auto 0;
  width: min(1000px, 100%);
  min-height: clamp(400px, 44vw, 500px);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 50% 50%, rgba(217, 119, 6, 0.1), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 26px 60px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

body[data-page='home'] .home-v6 #chip-canvas {
  display: block;
  width: 100%;
  height: clamp(400px, 44vw, 500px);
}

body[data-page='home'] .home-v6 .v6-position {
  padding: 58px 0 18px;
  text-align: center;
  font-size: 20px;
  line-height: 1.7;
  color: var(--v6-muted);
  font-style: italic;
}

body[data-page='home'] .home-v6 .v6-section {
  position: relative;
  padding: 96px 0;
}

body[data-page='home'] .home-v6 .v6-head {
  margin: 0 auto 34px;
  text-align: center;
}

body[data-page='home'] .home-v6 .v6-head-kicker {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #d6ab7a;
}

body[data-page='home'] .home-v6 .v6-head h2 {
  margin: 12px auto 0;
  max-width: 18ch;
  font-size: clamp(34px, 4.2vw, 46px);
  font-weight: 600;
  line-height: 1.24;
  color: var(--v6-text);
}

body[data-page='home'] .home-v6 .v6-lede {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
  font-size: 17px;
  line-height: 1.8;
  color: var(--v6-subtext);
}

body[data-page='home'] .home-v6 .v6-accent {
  color: var(--v6-accent);
}

body[data-page='home'] .home-v6 .v6-adv-grid,
body[data-page='home'] .home-v6 .v6-triple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

body[data-page='home'] .home-v6 .v6-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--v6-line);
  background: var(--v6-panel);
  padding: 38px 26px;
  text-align: center;
  transition:
    transform 300ms var(--v6-ease),
    border-color 300ms var(--v6-ease),
    background-color 300ms var(--v6-ease),
    box-shadow 300ms var(--v6-ease);
}

body[data-page='home'] .home-v6 .v6-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at center, rgba(217, 119, 6, 0.12), transparent 70%);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 320ms var(--v6-ease), transform 320ms var(--v6-ease);
  pointer-events: none;
}

body[data-page='home'] .home-v6 .v6-card > * {
  position: relative;
  z-index: 1;
}

body[data-page='home'] .home-v6 .v6-card:hover {
  background: var(--v6-panel-hover);
  border-color: rgba(217, 119, 6, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 34px rgba(217, 119, 6, 0.12);
}

body[data-page='home'] .home-v6 .v6-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

body[data-page='home'] .home-v6 .v6-adv-card {
  background:
    radial-gradient(
      280px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(217, 119, 6, 0.1),
      transparent 65%
    ),
    var(--v6-panel);
}

body[data-page='home'] .home-v6 .v6-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1px solid rgba(217, 119, 6, 0.28);
  background: rgba(217, 119, 6, 0.08);
}

body[data-page='home'] .home-v6 .v6-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--v6-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page='home'] .home-v6 .v6-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  color: var(--v6-text);
}

body[data-page='home'] .home-v6 .v6-card p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--v6-muted);
}

body[data-page='home'] .home-v6 .v6-card p strong {
  color: #f0d5a7;
  font-weight: 600;
}

body[data-page='home'] .home-v6 .v6-diff {
  border-radius: 26px;
  padding: 98px 34px;
  background:
    radial-gradient(ellipse at top, rgba(217, 119, 6, 0.08), transparent 62%),
    rgba(10, 10, 10, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body[data-page='home'] .home-v6 .v6-diff::after {
  content: "";
  position: absolute;
  inset: 40% 7% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.42), transparent);
  opacity: 0.56;
  pointer-events: none;
}

body[data-page='home'] .home-v6 #security::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  width: min(900px, 90vw);
  height: 260px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(217, 119, 6, 0.08), transparent 70%);
  pointer-events: none;
}

body[data-page='home'] .home-v6 .v6-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: 28px;
  align-items: stretch;
}

body[data-page='home'] .home-v6 .v6-access-grid > article {
  border-radius: 16px;
  border: 1px solid var(--v6-line);
  background: var(--v6-panel);
  padding: 34px 28px;
}

body[data-page='home'] .home-v6 .v6-steps {
  margin: 28px 0 0;
  padding: 0 0 0 22px;
  list-style: none;
  border-left: 1px solid rgba(217, 119, 6, 0.34);
  display: grid;
  gap: 16px;
  counter-reset: step;
}

body[data-page='home'] .home-v6 .v6-steps li {
  position: relative;
  padding-left: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--v6-subtext);
  counter-increment: step;
}

body[data-page='home'] .home-v6 .v6-steps li::before {
  content: counter(step);
  position: absolute;
  left: -36px;
  top: 2px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(217, 119, 6, 0.44);
  background: rgba(217, 119, 6, 0.18);
  color: #fbbf24;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1;
}

body[data-page='home'] .home-v6 .v6-code {
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    #1a1a1a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 22px;
  overflow: auto;
}

body[data-page='home'] .home-v6 .v6-code code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  color: #abb2bf;
}

body[data-page='home'] .home-v6 .v6-code .kw {
  color: #c678dd;
}

body[data-page='home'] .home-v6 .v6-code .str {
  color: #98c379;
}

body[data-page='home'] .home-v6 .v6-model-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  flex-wrap: wrap;
}

body[data-page='home'] .home-v6 .v6-model {
  width: 148px;
  min-height: 112px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  padding: 18px 14px;
  text-align: center;
  transition:
    opacity 240ms var(--v6-ease),
    border-color 240ms var(--v6-ease),
    transform 240ms var(--v6-ease),
    box-shadow 240ms var(--v6-ease);
}

body[data-page='home'] .home-v6 .v6-model strong {
  display: block;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 18px;
  line-height: 1.2;
  color: var(--v6-text);
}

body[data-page='home'] .home-v6 .v6-model small {
  display: block;
  margin-top: 9px;
  font-family: "Source Serif 4", "Noto Serif SC", serif;
  font-size: 14px;
  color: var(--v6-muted);
}

body[data-page='home'] .home-v6 .v6-model-grid:hover .v6-model {
  opacity: 0.42;
}

body[data-page='home'] .home-v6 .v6-model-grid:hover .v6-model:hover {
  opacity: 1;
}

body[data-page='home'] .home-v6 .v6-model:hover {
  border-color: rgba(217, 119, 6, 0.34);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(217, 119, 6, 0.14);
}

body[data-page='home'] .home-v6 .v6-note {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--v6-muted);
  font-style: italic;
}

body[data-page='home'] .home-v6 .v6-pricing {
  text-align: center;
}

body[data-page='home'] .home-v6 .v6-bottom-cta {
  margin-top: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse at center, rgba(217, 119, 6, 0.09), transparent 66%),
    rgba(255, 255, 255, 0.02);
  padding: 76px 24px;
  text-align: center;
}

body[data-page='home'] .home-v6 .v6-bottom-cta h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.24;
}

body[data-page='home'] .home-v6 .v6-bottom-cta p {
  margin: 14px auto 0;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--v6-subtext);
}

body[data-page='home'] .v6-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 44px;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  color: var(--v6-muted);
  font-size: 14px;
  font-family: "Source Serif 4", "Noto Serif SC", serif;
}

body[data-page='home'] .v6-footer nav {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

body[data-page='home'] .v6-footer nav a {
  color: var(--v6-muted);
  transition: color 180ms var(--v6-ease);
}

body[data-page='home'] .v6-footer nav a:hover {
  color: var(--v6-subtext);
}

body[data-page='home'] .animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s var(--v6-ease) var(--delay, 0s),
    transform 0.7s var(--v6-ease) var(--delay, 0s);
  will-change: transform, opacity;
}

body[data-page='home'] .animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  body[data-page='home'] .home-v6 {
    width: min(1120px, calc(100% - 32px));
    padding-top: 96px;
  }

  body[data-page='home'] .home-v6 #hero-title {
    font-size: clamp(48px, 8vw, 74px);
  }
}

@media (max-width: 1023px) {
  body[data-page='home'] .home-v6 .v6-adv-grid,
  body[data-page='home'] .home-v6 .v6-triple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page='home'] .home-v6 .v6-access-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body[data-page='home'] .v6-header {
    top: 8px;
    width: calc(100% - 20px);
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  body[data-page='home'] .v6-header .brand-name {
    font-size: 18px;
  }

  body[data-page='home'] .v6-header .brand-tagline {
    display: none;
  }

  body[data-page='home'] .v6-nav-toggle {
    display: inline-flex;
  }

  body[data-page='home'] .v6-header .v6-nav {
    display: none;
    position: absolute;
    right: 12px;
    top: calc(100% + 10px);
    min-width: 168px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--v6-line);
    background: rgba(13, 13, 14, 0.95);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.4);
    flex-direction: column;
    gap: 6px;
  }

  body[data-page='home'] .v6-header .v6-nav.is-open {
    display: flex;
  }

  body[data-page='home'] .v6-header .v6-nav a {
    width: 100%;
    justify-content: flex-start;
  }

  body[data-page='home'] .home-v6 {
    width: calc(100% - 20px);
    padding: 84px 0 78px;
  }

  body[data-page='home'] .home-v6 #hero-title {
    white-space: normal;
    font-size: clamp(36px, 11vw, 50px);
    line-height: 1.16;
  }

  body[data-page='home'] .home-v6 .v6-models {
    margin-top: 16px;
    font-size: 16px;
    letter-spacing: 0.02em;
  }

  body[data-page='home'] .home-v6 .v6-subtitle {
    font-size: 16px;
    margin-top: 10px;
  }

  body[data-page='home'] .home-v6 .v6-actions {
    margin-top: 24px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-page='home'] .home-v6 .btn {
    width: 100%;
    min-width: 0;
  }

  body[data-page='home'] .home-v6 .v6-canvas-wrap {
    margin-top: 28px;
    min-height: 220px;
    border-radius: 18px;
  }

  body[data-page='home'] .home-v6 #chip-canvas {
    height: 220px;
  }

  body[data-page='home'] .home-v6 .v6-position {
    padding: 36px 0 8px;
    font-size: 17px;
  }

  body[data-page='home'] .home-v6 .v6-section {
    padding: 62px 0;
  }

  body[data-page='home'] .home-v6 .v6-head h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  body[data-page='home'] .home-v6 .v6-adv-grid,
  body[data-page='home'] .home-v6 .v6-triple {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body[data-page='home'] .home-v6 .v6-card,
  body[data-page='home'] .home-v6 .v6-access-grid > article {
    padding: 28px 20px;
  }

  body[data-page='home'] .home-v6 .v6-diff {
    padding: 62px 16px;
    border-radius: 18px;
  }

  body[data-page='home'] .home-v6 .v6-model-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 0 8px;
    scroll-snap-type: x proximity;
  }

  body[data-page='home'] .home-v6 .v6-model {
    flex: 0 0 146px;
    scroll-snap-align: start;
  }

  body[data-page='home'] .home-v6 .v6-bottom-cta {
    padding: 58px 16px;
    border-radius: 18px;
  }

  body[data-page='home'] .v6-footer {
    width: calc(100% - 20px);
    margin-bottom: 30px;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page='home'] .animate-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  body[data-page='home'] .home-v6 .btn,
  body[data-page='home'] .home-v6 .v6-card,
  body[data-page='home'] .home-v6 .v6-model {
    transition: none;
  }

  body[data-page='home'] .home-v6 .v6-model-grid:hover .v6-model {
    opacity: 1;
  }
}

/* Unified Dark Gold Theme for Docs/Pricing/Status */
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) {
  --bg: #0f0e0d;
  --bg-soft: rgba(18, 15, 12, 0.92);
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(217, 119, 6, 0.38);
  --text: #f5f5f4;
  --muted: #b7ada3;
  --brand: #d97706;
  --brand-2: #ea580c;
  --accent: #fbbf24;
  --ok: #34d399;
  --warn: #f59e0b;
  --bad: #fb7185;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  background: var(--bg);
  color: var(--text);
  font-family: "Source Serif 4", "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) h1,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) h2,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) h3,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .brand {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .site-bg {
  background:
    radial-gradient(circle at 16% -10%, rgba(217, 119, 6, 0.14), transparent 46%),
    radial-gradient(circle at 86% 4%, rgba(234, 88, 12, 0.12), transparent 52%),
    linear-gradient(180deg, #151211 0%, #0f0e0d 56%, #0b0a09 100%);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .site-bg::before {
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.08), transparent 36%);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .site-bg::after {
  background-image:
    linear-gradient(rgba(231, 229, 228, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 229, 228, 0.04) 1px, transparent 1px);
  opacity: 0.2;
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .mesh {
  background: linear-gradient(140deg, rgba(217, 119, 6, 0.14), transparent 48%);
  opacity: 0.25;
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .beam-a {
  background: radial-gradient(circle, rgba(217, 119, 6, 0.36), transparent 64%);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .beam-b {
  background: radial-gradient(circle, rgba(194, 65, 12, 0.32), transparent 62%);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .orbital {
  border-color: rgba(255, 255, 255, 0.08);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .orbital-b {
  border-color: rgba(217, 119, 6, 0.12);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .grid-glow {
  background: radial-gradient(circle at center, rgba(217, 119, 6, 0.1), transparent 66%);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .site-header {
  border-color: var(--line);
  background: rgba(17, 14, 12, 0.74);
  backdrop-filter: blur(12px) saturate(122%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .site-header:hover {
  border-color: rgba(217, 119, 6, 0.34);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .brand-logo {
  filter: drop-shadow(0 8px 18px rgba(217, 119, 6, 0.26));
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .brand-name {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 58%, #ea580c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .brand-tagline,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .nav,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .tiny,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .lede,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .feature-card p,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .task-list,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .flow-item small,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .metric-row span,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .status-line,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) td,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .site-footer {
  color: var(--muted);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .nav a:hover,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .nav a.active,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .nav a[aria-current="page"],
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .nav a[data-active="true"] {
  color: var(--text);
  background: rgba(217, 119, 6, 0.14);
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.3);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .glass-panel,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .status-card,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .feature-card,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .monitor-item,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .metric-row,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .flow-item,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .doc-section,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .status-panel,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .doc-toc,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .status-event,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .status-service-card,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .status-kpi,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .notice,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .table-wrap {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .glass-panel::before {
  background: linear-gradient(130deg, rgba(217, 119, 6, 0.28), transparent 55%, rgba(234, 88, 12, 0.24));
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .glass-panel:hover {
  border-color: rgba(217, 119, 6, 0.36);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .btn-secondary,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .lang-toggle,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .quote-form input,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .quote-form select,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .form-stack input,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .form-stack select {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(21, 17, 14, 0.7);
  color: var(--text);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .form-stack input:focus,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .form-stack select:focus,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .quote-form input:focus,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .quote-form select:focus {
  outline: none;
  border-color: rgba(217, 119, 6, 0.48);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.16);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .eyebrow,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) th,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .status-card .label,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .plan-tag,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .flow-index,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .doc-step-index,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .status-event time,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .benchmark-source-link {
  color: #fbbf24;
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .flow-index,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .doc-step-index,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .group-risk,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .group-chip {
  background: rgba(217, 119, 6, 0.16);
  border-color: rgba(217, 119, 6, 0.32);
  color: #f7d7a8;
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .doc-step {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .doc-callout {
  border-left-color: rgba(217, 119, 6, 0.55);
  background: rgba(217, 119, 6, 0.1);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .doc-toc a:hover {
  color: var(--text);
  background: rgba(217, 119, 6, 0.12);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .table-wrap,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) th,
body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) td {
  border-color: rgba(255, 255, 255, 0.1);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .price-card::after {
  background: radial-gradient(circle, rgba(217, 119, 6, 0.2), transparent 70%);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .price-card-featured {
  border-color: rgba(217, 119, 6, 0.42);
  box-shadow: 0 16px 38px rgba(217, 119, 6, 0.14);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .site-footer {
  border-top-color: rgba(255, 255, 255, 0.12);
}

body[data-page='home'] .v6-header .brand-name {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body[data-page='home'] .home-v6 .v6-subtitle-strike {
  margin-top: 6px;
  font-size: 16px;
  color: rgba(190, 176, 160, 0.72);
}

body[data-page='home'] .home-v6 .v6-subtitle-strike .v6-subtitle-strike-only {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(234, 88, 12, 0.86);
}
/* End Unified Dark Gold Theme */

/* Home V6 Lang Toggle */
body[data-page='home'] .v6-header {
  justify-content: flex-start;
}

body[data-page='home'] .v6-header .v6-nav {
  margin-left: auto;
}

body[data-page='home'] .v6-header .v6-header-actions {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
}

body[data-page='home'] .v6-header .v6-lang-toggle {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--v6-subtext);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    border-color 220ms var(--v6-ease),
    color 220ms var(--v6-ease),
    background-color 220ms var(--v6-ease),
    transform 220ms var(--v6-ease);
}

body[data-page='home'] .v6-header .v6-lang-toggle:hover {
  color: var(--v6-text);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  body[data-page='home'] .v6-header .v6-nav-toggle {
    margin-left: auto;
  }

  body[data-page='home'] .v6-header .v6-header-actions {
    margin-left: 8px;
  }

  body[data-page='home'] .v6-header .v6-lang-toggle {
    min-height: 36px;
    padding: 0 11px;
    border-radius: 10px;
  }
}


/* Docs Page: BOBOTOKEN VitePress-style Dark Gold Override */
body[data-page='docs'] {
  --vp-doc-bg: #0f0f0f;
  --vp-doc-bg-soft: #0c0c0c;
  --vp-doc-panel: #161616;
  --vp-doc-panel-up: #1c1c1c;
  --vp-doc-line: rgba(255, 255, 255, 0.08);
  --vp-doc-line-soft: rgba(255, 255, 255, 0.05);
  --vp-doc-text: #f5f5f4;
  --vp-doc-text-soft: #a8a29e;
  --vp-doc-text-dim: #78716c;
  --vp-doc-brand-1: #d97706;
  --vp-doc-brand-2: #ea580c;
  --vp-doc-brand-3: #b45309;
  --vp-doc-brand-soft: rgba(217, 119, 6, 0.12);
  --bg: var(--vp-doc-bg);
  --bg-soft: rgba(12, 12, 12, 0.92);
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: var(--vp-doc-line);
  --line-strong: rgba(217, 119, 6, 0.36);
  --text: var(--vp-doc-text);
  --muted: var(--vp-doc-text-soft);
  --brand: var(--vp-doc-brand-1);
  --brand-2: var(--vp-doc-brand-2);
  --accent: #fbbf24;
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
  color: var(--vp-doc-text);
  font-family: 'Source Serif 4', 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', serif;
}

body[data-page='docs'] h1,
body[data-page='docs'] h2,
body[data-page='docs'] h3,
body[data-page='docs'] h4,
body[data-page='docs'] .brand-name,
body[data-page='docs'] .brand {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', serif;
}

body[data-page='docs'] .site-bg {
  background:
    radial-gradient(circle at 14% -12%, rgba(217, 119, 6, 0.14), transparent 45%),
    radial-gradient(circle at 84% 5%, rgba(234, 88, 12, 0.12), transparent 52%),
    linear-gradient(180deg, #141211 0%, #0f0f0f 58%, #0a0a0a 100%);
}

body[data-page='docs'] .site-bg::before {
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.08), transparent 36%);
}

body[data-page='docs'] .site-bg::after {
  background-image:
    linear-gradient(rgba(231, 229, 228, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 229, 228, 0.04) 1px, transparent 1px);
  opacity: 0.2;
}

body[data-page='docs'] .mesh {
  background: linear-gradient(140deg, rgba(217, 119, 6, 0.14), transparent 48%);
  opacity: 0.26;
}

body[data-page='docs'] .beam-a {
  background: radial-gradient(circle, rgba(217, 119, 6, 0.34), transparent 64%);
}

body[data-page='docs'] .beam-b {
  background: radial-gradient(circle, rgba(194, 65, 12, 0.3), transparent 62%);
}

body[data-page='docs'] .orbital {
  border-color: var(--vp-doc-line);
}

body[data-page='docs'] .orbital-b {
  border-color: rgba(217, 119, 6, 0.12);
}

body[data-page='docs'] .grid-glow {
  background: radial-gradient(circle at center, rgba(217, 119, 6, 0.1), transparent 66%);
}

body[data-page='docs'] .site-header {
  border-color: var(--vp-doc-line);
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(18px) saturate(125%);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-page='docs'] .site-header:hover {
  border-color: rgba(217, 119, 6, 0.36);
}

body[data-page='docs'] .brand-name {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 58%, #ea580c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-page='docs'] .brand-tagline,
body[data-page='docs'] .nav,
body[data-page='docs'] .lede,
body[data-page='docs'] .site-footer {
  color: var(--vp-doc-text-soft);
}

body[data-page='docs'] .nav a:hover,
body[data-page='docs'] .nav a.active,
body[data-page='docs'] .nav a[aria-current='page'],
body[data-page='docs'] .nav a[data-active='true'] {
  color: var(--vp-doc-text);
  background: var(--vp-doc-brand-soft);
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.28);
}

body[data-page='docs'] .btn-secondary,
body[data-page='docs'] .lang-toggle {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(21, 17, 14, 0.7);
  color: var(--vp-doc-text);
}

body[data-page='docs'] .page-shell.docs-vp-shell {
  width: min(1280px, calc(100% - 40px));
  padding-top: 34px;
}

body[data-page='docs'] .docs-vp-intro {
  padding: 34px;
  border-radius: 22px;
  border-color: rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(circle at 90% 0%, rgba(217, 119, 6, 0.12), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(234, 88, 12, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.03);
}

body[data-page='docs'] .docs-vp-intro h1 {
  margin: 14px 0 16px;
  max-width: 20ch;
  font-size: clamp(30px, 4.8vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

body[data-page='docs'] .docs-vp-intro .lede {
  max-width: 76ch;
  font-size: 17px;
  line-height: 1.8;
}

body[data-page='docs'] .docs-vp-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(220px, 0.66fr) minmax(0, 1.55fr) minmax(220px, 0.68fr);
  gap: 16px;
  align-items: start;
}

body[data-page='docs'] .docs-vp-sidebar,
body[data-page='docs'] .docs-vp-outline,
body[data-page='docs'] .docs-vp-doc {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(17, 17, 17, 0.92);
}

body[data-page='docs'] .docs-vp-sidebar,
body[data-page='docs'] .docs-vp-outline {
  position: sticky;
  top: 94px;
  padding: 18px;
  border-radius: 16px;
}

body[data-page='docs'] .docs-vp-group-title {
  margin: 0;
  color: #57534e;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

body[data-page='docs'] .docs-vp-sidebar nav,
body[data-page='docs'] .docs-vp-outline nav {
  margin-top: 12px;
  display: grid;
  gap: 7px;
}

body[data-page='docs'] .docs-vp-sidebar a,
body[data-page='docs'] .docs-vp-outline a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--vp-doc-text-dim);
  border: 1px solid transparent;
  font-size: 14px;
  transition: all 180ms ease;
}

body[data-page='docs'] .docs-vp-sidebar a:hover,
body[data-page='docs'] .docs-vp-outline a:hover {
  color: #d6d3d1;
  background: rgba(255, 255, 255, 0.05);
}

body[data-page='docs'] .docs-vp-sidebar a.active {
  color: var(--vp-doc-brand-1);
  font-weight: 600;
  background: rgba(217, 119, 6, 0.1);
  border-left: 3px solid var(--vp-doc-brand-1);
  border-radius: 0 8px 8px 0;
}

body[data-page='docs'] .docs-vp-sidebar-note,
body[data-page='docs'] .docs-vp-outline-note {
  margin-top: 16px;
  padding: 12px;
  border-left: 3px solid rgba(217, 119, 6, 0.58);
  border-radius: 0 8px 8px 0;
  background: rgba(217, 119, 6, 0.08);
}

body[data-page='docs'] .docs-vp-sidebar-note strong,
body[data-page='docs'] .docs-vp-outline-note strong {
  display: block;
  color: #f0d2a3;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body[data-page='docs'] .docs-vp-sidebar-note p,
body[data-page='docs'] .docs-vp-outline-note p {
  margin: 8px 0 0;
  color: var(--vp-doc-text-soft);
  font-size: 13px;
  line-height: 1.65;
}

body[data-page='docs'] .docs-vp-outline h3 {
  margin: 0;
  font-size: 15px;
  color: #d6d3d1;
}

body[data-page='docs'] .docs-vp-doc {
  padding: 30px;
  border-radius: 18px;
  line-height: 1.85;
}

body[data-page='docs'] .docs-vp-doc [id],
body[data-page='docs'] #delivery-playbook {
  scroll-margin-top: 110px;
}

body[data-page='docs'] .docs-vp-doc-hero {
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--vp-doc-line);
}

body[data-page='docs'] .docs-vp-kicker {
  margin: 0;
  color: #fbbf24;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

body[data-page='docs'] .docs-vp-doc h2 {
  margin: 0 0 12px;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--vp-doc-line);
  font-size: clamp(27px, 3vw, 34px);
  line-height: 1.2;
}

body[data-page='docs'] .docs-vp-doc section h2 {
  margin-top: 34px;
  font-size: clamp(23px, 2.2vw, 30px);
}

body[data-page='docs'] .docs-vp-doc h3 {
  margin: 0;
  font-size: 19px;
  color: #f1efed;
}

body[data-page='docs'] .docs-vp-doc p,
body[data-page='docs'] .docs-vp-doc li {
  color: var(--vp-doc-text-soft);
}

body[data-page='docs'] .docs-vp-doc ul,
body[data-page='docs'] .docs-vp-doc ol {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
}

body[data-page='docs'] .docs-vp-doc ul > li::marker,
body[data-page='docs'] .docs-vp-doc ol > li::marker {
  color: var(--vp-doc-brand-1);
}

body[data-page='docs'] .docs-vp-badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-page='docs'] .docs-vp-badges span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid rgba(217, 119, 6, 0.35);
  background: rgba(217, 119, 6, 0.14);
  color: #f5d8aa;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-page='docs'] .docs-vp-step-grid {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

body[data-page='docs'] .docs-vp-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

body[data-page='docs'] .docs-vp-step > span {
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 6, 0.38);
  background: rgba(217, 119, 6, 0.12);
  color: #f7d7a9;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 600;
}

body[data-page='docs'] .docs-vp-step p {
  margin: 6px 0 0;
}

body[data-page='docs'] .docs-vp-code {
  margin: 12px 0;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #161616;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  overflow-x: auto;
}

body[data-page='docs'] .docs-vp-code code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #e7e5e4;
}

body[data-page='docs'] .docs-vp-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

body[data-page='docs'] .docs-vp-table-wrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
}

body[data-page='docs'] .docs-vp-table-wrap th {
  padding: 12px 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  color: #d6d3d1;
  border-bottom: 2px solid rgba(217, 119, 6, 0.25);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page='docs'] .docs-vp-table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--vp-doc-text-soft);
  vertical-align: top;
}

body[data-page='docs'] .docs-vp-table-wrap tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

body[data-page='docs'] .docs-vp-callout {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border-left: 3px solid #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

body[data-page='docs'] .docs-vp-callout.warning {
  border-left-color: #ca8a04;
  background: rgba(202, 138, 4, 0.08);
}

body[data-page='docs'] .docs-vp-callout.danger {
  border-left-color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

body[data-page='docs'] .docs-vp-callout strong {
  color: #f1efed;
}

body[data-page='docs'] .docs-vp-callout p {
  margin: 6px 0 0;
}

body[data-page='docs'] hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 34px 0;
}

body[data-page='docs'] .site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1180px) {
  body[data-page='docs'] .docs-vp-layout {
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  }

  body[data-page='docs'] .docs-vp-outline {
    grid-column: 1 / -1;
    position: static;
  }

  body[data-page='docs'] .docs-vp-outline nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body[data-page='docs'] .docs-vp-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page='docs'] .docs-vp-sidebar,
  body[data-page='docs'] .docs-vp-outline {
    position: static;
  }

  body[data-page='docs'] .docs-vp-sidebar nav,
  body[data-page='docs'] .docs-vp-outline nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page='docs'] .docs-vp-doc {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  body[data-page='docs'] .page-shell.docs-vp-shell {
    width: min(1280px, calc(100% - 24px));
  }

  body[data-page='docs'] .docs-vp-intro,
  body[data-page='docs'] .docs-vp-doc,
  body[data-page='docs'] .docs-vp-sidebar,
  body[data-page='docs'] .docs-vp-outline {
    padding: 18px;
  }

  body[data-page='docs'] .docs-vp-sidebar nav,
  body[data-page='docs'] .docs-vp-outline nav {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================================
   Models Page - Dark Gold Theme
   Reuse docs dark variable system for consistency
   ============================================ */
body[data-page='models'] {
  --vp-doc-bg: #0f0f0f;
  --vp-doc-bg-soft: #0c0c0c;
  --vp-doc-panel: #161616;
  --vp-doc-panel-up: #1c1c1c;
  --vp-doc-line: rgba(255, 255, 255, 0.08);
  --vp-doc-line-soft: rgba(255, 255, 255, 0.05);
  --vp-doc-text: #f5f5f4;
  --vp-doc-text-soft: #a8a29e;
  --vp-doc-text-dim: #78716c;
  --vp-doc-brand-1: #d97706;
  --vp-doc-brand-2: #ea580c;
  --vp-doc-brand-3: #b45309;
  --vp-doc-brand-soft: rgba(217, 119, 6, 0.12);

  --bg: var(--vp-doc-bg);
  --bg-soft: rgba(12, 12, 12, 0.92);
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: var(--vp-doc-line);
  --line-strong: rgba(217, 119, 6, 0.36);
  --text: var(--vp-doc-text);
  --muted: var(--vp-doc-text-soft);
  --brand: var(--vp-doc-brand-1);
  --brand-2: var(--vp-doc-brand-2);
  --accent: #fbbf24;
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.4);

  color: var(--vp-doc-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body[data-page='models'] .site-bg {
  background:
    radial-gradient(circle at 14% -12%, rgba(217, 119, 6, 0.14), transparent 45%),
    radial-gradient(circle at 84% 5%, rgba(234, 88, 12, 0.12), transparent 52%),
    linear-gradient(180deg, #141211 0%, #0f0f0f 58%, #0a0a0a 100%);
}

body[data-page='models'] .site-bg::before {
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.08), transparent 36%);
}

body[data-page='models'] .site-bg::after {
  background-image:
    linear-gradient(rgba(231, 229, 228, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 229, 228, 0.04) 1px, transparent 1px);
  opacity: 0.2;
}

body[data-page='models'] .mesh {
  background: linear-gradient(140deg, rgba(217, 119, 6, 0.14), transparent 48%);
  opacity: 0.26;
}

body[data-page='models'] .beam-a {
  background: radial-gradient(circle, rgba(217, 119, 6, 0.34), transparent 64%);
}

body[data-page='models'] .beam-b {
  background: radial-gradient(circle, rgba(194, 65, 12, 0.3), transparent 62%);
}

body[data-page='models'] .orbital {
  border-color: var(--vp-doc-line);
}

body[data-page='models'] .orbital-b {
  border-color: rgba(217, 119, 6, 0.12);
}

body[data-page='models'] .grid-glow {
  background: radial-gradient(circle at center, rgba(217, 119, 6, 0.1), transparent 66%);
}

body[data-page='models'] .site-header {
  border-color: var(--vp-doc-line);
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(18px) saturate(125%);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-page='models'] .site-header:hover {
  border-color: rgba(217, 119, 6, 0.36);
}

body[data-page='models'] .brand-name {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 58%, #ea580c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-page='models'] .brand-tagline,
body[data-page='models'] .nav,
body[data-page='models'] .lede,
body[data-page='models'] .site-footer {
  color: var(--vp-doc-text-soft);
}

body[data-page='models'] .nav a:hover,
body[data-page='models'] .nav a.active,
body[data-page='models'] .nav a[aria-current='page'],
body[data-page='models'] .nav a[data-active='true'] {
  color: var(--vp-doc-text);
  background: var(--vp-doc-brand-soft);
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.28);
}

body[data-page='models'] .btn-secondary,
body[data-page='models'] .lang-toggle {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(21, 17, 14, 0.7);
  color: var(--vp-doc-text);
}
/* Language Switch (Segmented zh/en) */
.lang-switch {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(15, 40, 76, 0.16);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 8px 24px rgba(17, 24, 39, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.lang-option {
  min-height: 34px;
  min-width: 56px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.lang-option:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.lang-option.is-active {
  color: #ffffff;
  background: linear-gradient(160deg, #d97706, #ea580c);
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.24);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .lang-switch,
body[data-page='dashboard'] .lang-switch {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(21, 17, 14, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .lang-option,
body[data-page='dashboard'] .lang-option {
  color: rgba(245, 245, 244, 0.72);
}

body:is([data-page='docs'], [data-page='pricing'], [data-page='status']) .lang-option:hover,
body[data-page='dashboard'] .lang-option:hover {
  color: rgba(245, 245, 244, 0.95);
}

body[data-page='home'] .v6-header .v6-lang-switch {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-page='home'] .v6-header .v6-lang-option {
  min-height: 32px;
  min-width: 54px;
  color: var(--v6-subtext);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
}

body[data-page='home'] .v6-header .v6-lang-option:hover {
  color: var(--v6-text);
}

body[data-page='home'] .v6-header .v6-lang-option.is-active {
  color: #ffffff;
  background: linear-gradient(150deg, rgba(217, 119, 6, 0.94), rgba(234, 88, 12, 0.92));
  box-shadow: 0 8px 16px rgba(234, 88, 12, 0.24);
}

@media (max-width: 980px) {
  .header-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  body[data-page='home'] .v6-header .v6-lang-switch {
    gap: 3px;
    padding: 3px;
  }

  body[data-page='home'] .v6-header .v6-lang-option {
    min-height: 30px;
    min-width: 50px;
    padding: 0 10px;
  }
}

/* Build Phase Lock: keep non-doc pages Chinese-only until final bilingual pass */
body[data-lang-mode='locked-zh'] .lang-switch,
body[data-lang-mode='locked-zh'] [data-action='toggle-lang'] {
  display: none !important;
}

body[data-lang-mode='locked-zh'] .v6-header .v6-header-actions {
  display: none;
}

/* Docs fallback: keep content visible even if site.js fails */
body[data-page='docs'] .reveal {
  opacity: 1 !important;
  transform: none !important;
}


/* Models fallback: keep content visible even if site.js fails */
body[data-page='models'] .reveal {
  opacity: 1 !important;
  transform: none !important;
}


/* ===== Console Refresh 2026 ===== */
body[data-console-page] {
  --console-bg: #161311;
  --console-bg-soft: #1f1a17;
  --console-surface: rgba(34, 28, 24, 0.88);
  --console-surface-strong: rgba(46, 38, 32, 0.96);
  --console-surface-soft: rgba(255, 247, 238, 0.06);
  --console-line: rgba(255, 226, 197, 0.12);
  --console-line-strong: rgba(240, 177, 106, 0.34);
  --console-text: #f5eee7;
  --console-muted: #c9b9aa;
  --console-accent: #e29a52;
  --console-accent-2: #f0bc7d;
  --console-good: #6fbe8f;
  --console-warn: #f0bc7d;
  --console-bad: #d86c62;
  --bg: var(--console-bg);
  --panel: var(--console-surface);
  --panel-strong: var(--console-surface-strong);
  --line: var(--console-line);
  --line-strong: var(--console-line-strong);
  --text: var(--console-text);
  --muted: var(--console-muted);
  --brand: var(--console-accent);
  --brand-2: var(--console-accent-2);
  --accent: var(--console-accent-2);
  --shadow: 0 28px 64px rgba(0, 0, 0, 0.34);
  color: var(--console-text);
}

body[data-console-page] .site-bg {
  background:
    radial-gradient(circle at 12% -8%, rgba(226, 154, 82, 0.16), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(240, 188, 125, 0.1), transparent 30%),
    linear-gradient(180deg, #1c1714 0%, #15120f 52%, #100d0b 100%);
}

body[data-console-page] .site-bg::before {
  background: linear-gradient(180deg, rgba(226, 154, 82, 0.08), transparent 34%);
}

body[data-console-page] .site-bg::after {
  background-image:
    linear-gradient(rgba(255, 236, 216, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 236, 216, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.26;
}

body[data-console-page] .mesh {
  background: linear-gradient(140deg, rgba(226, 154, 82, 0.14), transparent 48%);
  opacity: 0.22;
}

body[data-console-page] .beam-a {
  background: radial-gradient(circle, rgba(226, 154, 82, 0.28), transparent 64%);
}

body[data-console-page] .beam-b {
  background: radial-gradient(circle, rgba(189, 116, 52, 0.24), transparent 62%);
}

body[data-console-page] .orbital {
  border-color: rgba(255, 220, 186, 0.08);
}

body[data-console-page] .orbital-b {
  border-color: rgba(226, 154, 82, 0.12);
}

body[data-console-page] .grid-glow {
  background: radial-gradient(circle at center, rgba(226, 154, 82, 0.08), transparent 66%);
}

body[data-console-page] .site-header {
  width: min(1360px, calc(100% - 40px));
  margin-top: 18px;
  border-color: rgba(255, 224, 192, 0.14);
  background: rgba(22, 18, 15, 0.82);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-console-page] .site-header:hover {
  border-color: rgba(240, 188, 125, 0.24);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-console-page] .brand-name {
  color: #fff5ea;
  letter-spacing: 0.08em;
}

body[data-console-page] .brand-tagline,
body[data-console-page] .nav,
body[data-console-page] .site-footer {
  color: rgba(245, 238, 231, 0.7);
}

body[data-console-page] .nav a:hover,
body[data-console-page] .nav a[aria-current='page'] {
  color: #fff5ea;
  background: rgba(240, 188, 125, 0.12);
  box-shadow: inset 0 0 0 1px rgba(240, 188, 125, 0.18);
}

body[data-console-page] .page-shell.console-page-shell {
  width: min(1360px, calc(100% - 40px));
  padding-top: 34px;
}

body[data-console-page] .console-app {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* 新增：控制台下所有 glass-panel 的背景统一用暗底 */
body[data-console-page] .glass-panel {
  background: var(--console-surface);
}
body[data-console-page] .console-side,
body[data-console-page] .console-hero,
body[data-console-page] .dashboard-card,
body[data-console-page] .console-kpi-card,
body[data-console-page] .console-gate-card {
  border-color: rgba(255, 224, 192, 0.12);
  background: var(--console-surface);
  box-shadow: var(--shadow);
}

body[data-console-page] .console-side {
  position: sticky;
  top: 24px;
  padding: 24px;
  border-radius: 24px;
}

body[data-console-page] .console-side-head h2 {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.1;
}

body[data-console-page] .console-side-head p:last-child {
  margin: 12px 0 0;
  color: var(--console-muted);
  font-size: 14px;
  line-height: 1.75;
}

body[data-console-page] .console-menu {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

body[data-console-page] .console-menu-link {
  display: block;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 224, 192, 0.08);
  background: rgba(255, 247, 238, 0.03);
  color: rgba(245, 238, 231, 0.72);
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

body[data-console-page] .console-menu-link:hover,
body[data-console-page] .console-menu-link.is-active,
body[data-console-page] .console-menu-link[aria-current='page'] {
  color: #fff5ea;
  border-color: rgba(240, 188, 125, 0.22);
  background: linear-gradient(135deg, rgba(226, 154, 82, 0.16), rgba(255, 247, 238, 0.04));
  transform: translateY(-1px);
}

body[data-console-page] .console-side-note {
  margin-top: 22px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(240, 188, 125, 0.12);
  background: rgba(240, 188, 125, 0.08);
}

body[data-console-page] .console-side-note strong {
  display: block;
  color: #fff5ea;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-console-page] .console-side-note p {
  margin: 8px 0 0;
  color: rgba(245, 238, 231, 0.76);
  font-size: 13px;
  line-height: 1.7;
}

body[data-console-page] .console-stage {
  display: grid;
  gap: 18px;
}

body[data-console-page] .console-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 18px;
  align-items: end;
  padding: 32px;
  border-radius: 28px;
}

body[data-console-page] .console-hero h1 {
  margin: 10px 0 0;
  max-width: 12ch;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff8f1;
}

body[data-console-page] .console-hero .lede,
body[data-console-page] .tiny {
  color: var(--console-muted);
}

body[data-console-page] .console-hero-actions,
body[data-console-page] .header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

body[data-console-page] .header-actions {
  justify-content: flex-end;
}

body[data-console-page] .console-user-chip {
  min-width: 140px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 224, 192, 0.08);
  background: rgba(255, 247, 238, 0.04);
}

body[data-console-page] .console-user-label {
  display: block;
  color: rgba(245, 238, 231, 0.56);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body[data-console-page] .console-user-chip strong {
  display: block;
  margin-top: 4px;
  color: #fff5ea;
  font-size: 15px;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

body[data-console-page] .console-notice,
body[data-console-page] .inline-status {
  border: 1px solid rgba(255, 224, 192, 0.12);
  border-radius: 16px;
  background: rgba(255, 247, 238, 0.04);
  color: #f5eee7;
}
body[data-console-page] .console-grid {
  display: grid;
  gap: 18px;
}

body[data-console-page] .dashboard-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-console-page] .dashboard-main,
body[data-console-page] .dashboard-secondary,
body[data-console-page] .dashboard-auth-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-console-page] .dashboard-card,
body[data-console-page] .console-gate-card,
body[data-console-page] .console-kpi-card {
  padding: 24px;
  border-radius: 24px;
}

body[data-console-page] .console-kpi-card {
  position: relative;
  overflow: hidden;
}

body[data-console-page] .console-kpi-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -36px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(240, 188, 125, 0.14), transparent 68%);
}

body[data-console-page] .console-kpi-card .label {
  display: inline-flex;
  color: rgba(245, 238, 231, 0.58);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

body[data-console-page] .console-kpi-card strong {
  display: block;
  margin-top: 10px;
  color: #fff8f1;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

body[data-console-page] .console-kpi-card small,
body[data-console-page] .dashboard-card p,
body[data-console-page] .dashboard-card .tiny,
body[data-console-page] .dashboard-card .lede {
  color: var(--console-muted);
}

body[data-console-page] .panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

body[data-console-page] .panel-head h2,
body[data-console-page] .dashboard-card h2,
body[data-console-page] .console-gate-card h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #fff8f1;
}

body[data-console-page] .form-stack {
  display: grid;
  gap: 14px;
}

body[data-console-page] .form-stack label {
  display: grid;
  gap: 7px;
}

body[data-console-page] .form-stack span {
  color: rgba(245, 238, 231, 0.78);
  font-size: 13px;
  font-weight: 600;
}

body[data-console-page] .form-stack input,
body[data-console-page] .form-stack select {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 224, 192, 0.14);
  background: rgba(255, 247, 238, 0.05);
  color: #fff5ea;
  padding: 0 14px;
}

body[data-console-page] .form-stack input::placeholder {
  color: rgba(245, 238, 231, 0.34);
}

body[data-console-page] .btn-secondary {
  border-color: rgba(255, 224, 192, 0.14);
  background: rgba(255, 247, 238, 0.05);
  color: #fff5ea;
}

body[data-console-page] .btn-primary {
  color: #1b140f;
  background: linear-gradient(135deg, #f0bc7d, #e29a52);
  box-shadow: 0 14px 28px rgba(226, 154, 82, 0.18);
}

body[data-console-page] .btn:active {
  transform: translateY(1px) scale(0.99);
}

body[data-console-page] .text-link {
  color: var(--console-accent-2);
  font-size: 13px;
  font-weight: 700;
}

body[data-console-page] .console-secret-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(240, 188, 125, 0.28);
  background: rgba(240, 188, 125, 0.06);
}

body[data-console-page] .console-secret-box span {
  display: block;
  color: rgba(245, 238, 231, 0.58);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-console-page] .console-secret-box strong {
  display: block;
  margin-top: 8px;
  color: #fff8f1;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 14px;
  line-height: 1.7;
  word-break: break-all;
}

body[data-console-page] .console-inline-list,
body[data-console-page] .quick-action-list,
body[data-console-page] .activity-list,
body[data-console-page] .console-timeline,
body[data-console-page] .console-route-grid {
  display: grid;
  gap: 12px;
}

body[data-console-page] .console-inline-list div,
body[data-console-page] .activity-item,
body[data-console-page] .timeline-item,
body[data-console-page] .quick-action-card,
body[data-console-page] .console-route-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 224, 192, 0.08);
  background: rgba(255, 247, 238, 0.04);
}

body[data-console-page] .console-inline-list strong,
body[data-console-page] .activity-item strong,
body[data-console-page] .timeline-item strong,
body[data-console-page] .quick-action-card strong,
body[data-console-page] .console-route-top strong {
  display: block;
  color: #fff5ea;
  font-size: 15px;
}

body[data-console-page] .console-inline-list span,
body[data-console-page] .activity-item span,
body[data-console-page] .timeline-item span,
body[data-console-page] .quick-action-card span,
body[data-console-page] .console-route-card p,
body[data-console-page] .console-route-card small {
  display: block;
  margin-top: 6px;
  color: var(--console-muted);
  font-size: 13px;
  line-height: 1.7;
}

body[data-console-page] .activity-item,
body[data-console-page] .timeline-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

body[data-console-page] .activity-item time,
body[data-console-page] .timeline-item time {
  color: rgba(245, 238, 231, 0.48);
  font-size: 12px;
  white-space: nowrap;
}

body[data-console-page] .console-route-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-console-page] .console-route-card.is-featured {
  border-color: rgba(240, 188, 125, 0.22);
  background: linear-gradient(135deg, rgba(240, 188, 125, 0.1), rgba(255, 247, 238, 0.04));
}

body[data-console-page] .console-route-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

body[data-console-page] .console-route-top span {
  color: var(--console-accent-2);
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 13px;
  font-weight: 700;
}

body[data-console-page] .console-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 224, 192, 0.08);
  background: rgba(255, 247, 238, 0.03);
}

body[data-console-page] .console-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
}

body[data-console-page] .console-table th {
  padding: 14px 16px;
  text-align: left;
  color: rgba(245, 238, 231, 0.56);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 224, 192, 0.08);
}

body[data-console-page] .console-table td {
  padding: 15px 16px;
  color: #f7efe8;
  border-bottom: 1px solid rgba(255, 224, 192, 0.06);
  vertical-align: top;
}

body[data-console-page] .console-table tr:last-child td {
  border-bottom: none;
}

body[data-console-page] .console-table code {
  color: var(--console-accent-2);
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 12px;
}

body[data-console-page] .state-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

body[data-console-page] .state-pill[data-state='success'] {
  color: #d7f6df;
  background: rgba(111, 190, 143, 0.12);
  border-color: rgba(111, 190, 143, 0.16);
}

body[data-console-page] .state-pill[data-state='warn'] {
  color: #fff0d7;
  background: rgba(240, 188, 125, 0.12);
  border-color: rgba(240, 188, 125, 0.16);
}

body[data-console-page] .state-pill[data-state='danger'] {
  color: #ffd9d5;
  background: rgba(216, 108, 98, 0.12);
  border-color: rgba(216, 108, 98, 0.16);
}

body[data-console-page] .state-pill[data-state='muted'] {
  color: rgba(245, 238, 231, 0.72);
  background: rgba(255, 247, 238, 0.06);
  border-color: rgba(255, 224, 192, 0.12);
}

body[data-console-page] .console-empty-hint,
body[data-console-page] .empty {
  color: rgba(245, 238, 231, 0.56);
}
body[data-console-page] .console-gate-card {
  text-align: left;
}

body[data-console-page] .site-footer {
  width: min(1360px, calc(100% - 40px));
  padding-top: 24px;
  margin-top: 48px;
  border-top: 1px solid var(--console-line);
  color: var(--console-muted);
  background: linear-gradient(180deg, transparent 0%, rgba(22, 18, 15, 0.6) 100%);
}

body[data-console-page] .glass-panel::before {
  background: linear-gradient(130deg, rgba(240, 188, 125, 0.08), transparent 55%, rgba(255, 247, 238, 0.03));
  opacity: 0.4;
}

body[data-console-page] .notice[data-notice-type='success'],
body[data-console-page] .inline-status[data-notice-type='success'] {
  border-color: rgba(111, 190, 143, 0.2);
  background: rgba(111, 190, 143, 0.1);
  color: #dff6e6;
}

body[data-console-page] .notice[data-notice-type='warn'],
body[data-console-page] .inline-status[data-notice-type='warn'] {
  border-color: rgba(240, 188, 125, 0.2);
  background: rgba(240, 188, 125, 0.08);
  color: #fff0d7;
}

body[data-console-page] .notice[data-notice-type='error'],
body[data-console-page] .inline-status[data-notice-type='error'] {
  border-color: rgba(216, 108, 98, 0.22);
  background: rgba(216, 108, 98, 0.1);
  color: #ffd9d5;
}

body[data-console-page] .notice,
body[data-console-page] .inline-status {
  padding: 14px 16px;
}

body[data-console-page] .reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 1180px) {
  body[data-console-page] .console-app {
    grid-template-columns: 1fr;
  }

  body[data-console-page] .console-side {
    position: static;
  }

  body[data-console-page] .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body[data-console-page] .site-header,
  body[data-console-page] .page-shell.console-page-shell,
  body[data-console-page] .site-footer {
    width: min(1360px, calc(100% - 24px));
  }

  body[data-console-page] .site-header {
    padding: 14px 16px;
    align-items: flex-start;
  }

  body[data-console-page] .console-hero,
  body[data-console-page] .dashboard-main,
  body[data-console-page] .dashboard-secondary,
  body[data-console-page] .dashboard-auth-grid,
  body[data-console-page] .console-route-grid {
    grid-template-columns: 1fr;
  }

  body[data-console-page] .console-hero {
    padding: 24px;
  }

  body[data-console-page] .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  body[data-console-page] .console-user-chip {
    min-width: 0;
    flex: 1 1 180px;
  }
}

@media (max-width: 640px) {
  body[data-console-page] .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  body[data-console-page] .console-side,
  body[data-console-page] .dashboard-card,
  body[data-console-page] .console-kpi-card,
  body[data-console-page] .console-gate-card,
  body[data-console-page] .console-hero {
    padding: 18px;
    border-radius: 20px;
  }

  body[data-console-page] .console-menu-link,
  body[data-console-page] .activity-item,
  body[data-console-page] .timeline-item {
    padding: 12px 14px;
  }

  body[data-console-page] .activity-item,
  body[data-console-page] .timeline-item,
  body[data-console-page] .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  body[data-console-page] .console-hero h1 {
    font-size: clamp(28px, 9vw, 38px);
  }
}

/* ===== Console V2 Rebuild ===== */
body[data-console-page] .hero-compact {
  grid-template-columns: 1fr;
  align-items: center;
  padding: 24px 28px;
}

body[data-console-page] .hero-compact h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.06;
}

body[data-console-page] .hero-sub {
  margin: 8px 0 0;
  color: var(--console-muted);
  font-size: 14px;
}

body[data-console-page] .page-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

body[data-console-page] .page-title-bar h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  color: #fff8f1;
}

body[data-console-page] .dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

body[data-console-page] .kpi-item {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
}

body[data-console-page] .kpi-icon {
  font-size: 24px;
  flex-shrink: 0;
}

body[data-console-page] .kpi-body {
  min-width: 0;
}

body[data-console-page] .kpi-label {
  display: block;
  font-size: 11px;
  color: rgba(245, 238, 231, 0.56);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body[data-console-page] .kpi-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #fff8f1;
  line-height: 1.2;
  margin-top: 2px;
}

body[data-console-page] .kpi-value.kpi-cost {
  color: #f0bc7d;
}

body[data-console-page] .kpi-body small {
  display: block;
  margin-top: 2px;
  color: rgba(245, 238, 231, 0.52);
  font-size: 11px;
}

body[data-console-page] .dashboard-charts-section {
  margin-bottom: 6px;
}

body[data-console-page] .charts-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

body[data-console-page] .chart-select,
body[data-console-page] .filter-select,
body[data-console-page] .filter-search {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 224, 192, 0.14);
  background: rgba(255, 247, 238, 0.04);
  color: #fff5ea;
  font-size: 13px;
  outline: none;
}

body[data-console-page] .chart-select,
body[data-console-page] .filter-select {
  padding: 0 32px 0 12px;
}

body[data-console-page] .filter-search {
  flex: 1;
  max-width: 240px;
  padding: 0 12px;
}

body[data-console-page] .filter-search::placeholder {
  color: rgba(245, 238, 231, 0.46);
}

body[data-console-page] .chart-select:focus,
body[data-console-page] .filter-select:focus,
body[data-console-page] .filter-search:focus {
  border-color: rgba(240, 188, 125, 0.46);
}

body[data-console-page] .charts-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
}

body[data-console-page] .chart-card {
  padding: 18px;
  border-radius: 20px;
  position: relative;
  min-height: 286px;
}

body[data-console-page] .chart-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: rgba(245, 238, 231, 0.72);
  font-weight: 700;
}

body[data-console-page] .chart-card canvas {
  width: 100% !important;
  height: 220px !important;
}

body[data-console-page] .chart-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 238, 231, 0.62);
  font-size: 13px;
}

body[data-console-page] .dashboard-main {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
}

body[data-console-page] .recent-usage-list {
  display: grid;
  gap: 10px;
}

body[data-console-page] .recent-usage-item {
  display: grid;
  grid-template-columns: 1.1fr auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 224, 192, 0.08);
  border-radius: 14px;
  background: rgba(255, 247, 238, 0.03);
}

body[data-console-page] .ru-model {
  color: #fff8f1;
  font-weight: 700;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-console-page] .ru-tokens {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

body[data-console-page] .ru-in {
  color: #6fbe8f;
}

body[data-console-page] .ru-out {
  color: #c084fc;
}

body[data-console-page] .ru-cost {
  color: #f0bc7d;
  font-weight: 700;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

body[data-console-page] .ru-time {
  color: rgba(245, 238, 231, 0.5);
  font-size: 12px;
  white-space: nowrap;
}

body[data-console-page] .quick-actions-panel {
  display: grid;
  gap: 10px;
}

body[data-console-page] .quick-actions-panel .quick-action-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

body[data-console-page] .qa-icon {
  font-size: 18px;
}

body[data-console-page] .qa-arrow {
  color: rgba(245, 238, 231, 0.5);
}

body[data-console-page] .table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
}

body[data-console-page] .toolbar-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

body[data-console-page] .toolbar-actions {
  display: flex;
  gap: 8px;
}

body[data-console-page] .table-container {
  position: relative;
}

body[data-console-page] .keys-table,
body[data-console-page] .usage-table {
  min-width: 760px;
}

body[data-console-page] .td-key {
  white-space: nowrap;
}

body[data-console-page] .key-masked {
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 224, 192, 0.16);
  background: rgba(255, 247, 238, 0.04);
}

body[data-console-page] .key-masked.copied {
  color: #6fbe8f;
  border-color: rgba(111, 190, 143, 0.36);
}

body[data-console-page] .copy-icon-btn,
body[data-console-page] .action-btn {
  border: none;
  background: transparent;
  color: #fff5ea;
  cursor: pointer;
  opacity: 0.68;
  transition: opacity 180ms ease;
}

body[data-console-page] .copy-icon-btn {
  margin-left: 5px;
  font-size: 14px;
}

body[data-console-page] .action-btn {
  padding: 4px 6px;
  font-size: 14px;
}

body[data-console-page] .copy-icon-btn:hover,
body[data-console-page] .action-btn:hover {
  opacity: 1;
}

body[data-console-page] .status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

body[data-console-page] .status-active {
  color: #d7f6df;
  background: rgba(111, 190, 143, 0.14);
  border: 1px solid rgba(111, 190, 143, 0.24);
}

body[data-console-page] .status-inactive {
  color: rgba(245, 238, 231, 0.74);
  background: rgba(255, 247, 238, 0.08);
  border: 1px solid rgba(255, 224, 192, 0.16);
}

body[data-console-page] .pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 4px 2px;
}

body[data-console-page] .pagination-info {
  color: rgba(245, 238, 231, 0.6);
  font-size: 13px;
}

body[data-console-page] .pagination-controls {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

body[data-console-page] .page-btn {
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 224, 192, 0.14);
  background: rgba(255, 247, 238, 0.04);
  color: #fff5ea;
  cursor: pointer;
  font-size: 13px;
}

body[data-console-page] .page-btn.active {
  border-color: rgba(240, 188, 125, 0.5);
  background: rgba(240, 188, 125, 0.14);
}

body[data-console-page] .page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

body[data-console-page] .page-ellipsis {
  color: rgba(245, 238, 231, 0.5);
  font-size: 13px;
  padding: 0 2px;
}

body[data-console-page] .table-loading,
body[data-console-page] .empty-state {
  text-align: center;
  padding: 36px 16px;
  color: rgba(245, 238, 231, 0.6);
}

body[data-console-page] .spinner,
body[data-console-page] .spinner-inline {
  display: inline-block;
  border-style: solid;
  border-color: rgba(255, 224, 192, 0.2);
  border-top-color: #f0bc7d;
  border-radius: 999px;
  animation: console-spin 0.7s linear infinite;
}

body[data-console-page] .spinner {
  width: 18px;
  height: 18px;
  border-width: 2px;
  margin-right: 6px;
  vertical-align: -3px;
}

body[data-console-page] .spinner-inline {
  width: 14px;
  height: 14px;
  border-width: 2px;
  margin-right: 5px;
  vertical-align: -2px;
}

@keyframes console-spin {
  to {
    transform: rotate(360deg);
  }
}

body[data-console-page] .required {
  color: #d86c62;
}

body[data-console-page] .advanced-options {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 224, 192, 0.1);
  background: rgba(255, 247, 238, 0.03);
}

body[data-console-page] .advanced-options summary {
  cursor: pointer;
  color: rgba(245, 238, 231, 0.72);
  font-size: 13px;
  font-weight: 700;
}

body[data-console-page] .toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

body[data-console-page] .toggle-content {
  padding: 8px 0 0 22px;
}

body[data-console-page] .toggle-content small {
  display: block;
  margin-top: 6px;
  color: rgba(245, 238, 231, 0.56);
}

body[data-console-page] .key-result-area {
  padding: 22px;
  text-align: center;
}

body[data-console-page] .result-alert {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

body[data-console-page] .result-success {
  background: rgba(111, 190, 143, 0.14);
  border: 1px solid rgba(111, 190, 143, 0.24);
  color: #d7f6df;
}

body[data-console-page] .secret-display {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin: 14px 0;
}

body[data-console-page] .secret-display code {
  max-width: 100%;
  overflow-wrap: anywhere;
  border-radius: 10px;
  background: rgba(255, 247, 238, 0.05);
  border: 1px dashed rgba(240, 188, 125, 0.26);
  padding: 10px 12px;
  color: #6fbe8f;
}

body[data-console-page] .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 10, 0.66);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

body[data-console-page] .modal-dialog {
  width: min(94vw, 420px);
  max-height: min(88vh, 760px);
  overflow: auto;
  border-radius: 20px;
  padding: 0;
}

body[data-console-page] .modal-lg {
  width: min(94vw, 520px);
}

body[data-console-page] .modal-sm {
  width: min(92vw, 360px);
}

body[data-console-page] .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255, 224, 192, 0.08);
}

body[data-console-page] .modal-header h2 {
  margin: 0;
  color: #fff8f1;
  font-size: 18px;
}

body[data-console-page] .modal-close {
  border: none;
  background: transparent;
  color: rgba(245, 238, 231, 0.6);
  font-size: 24px;
  cursor: pointer;
}

body[data-console-page] .modal-close:hover {
  color: #fff5ea;
}

body[data-console-page] .modal-body {
  padding: 20px;
}

body[data-console-page] .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

body[data-console-page] .modal-actions-center {
  justify-content: center;
}

body[data-console-page] .modal-footer {
  margin: 0 20px 18px;
}

body[data-console-page] .payment-modal-body {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

body[data-console-page] .payment-summary {
  margin: 0;
  display: grid;
  gap: 4px;
  color: rgba(245, 238, 231, 0.82);
  font-size: 13px;
}

body[data-console-page] .payment-qr-wrap {
  width: 228px;
  height: 228px;
  border-radius: 18px;
  border: 1px solid rgba(255, 224, 192, 0.18);
  background: rgba(255, 255, 255, 0.98);
  display: grid;
  place-items: center;
  padding: 10px;
}

body[data-console-page] .payment-qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

body[data-console-page] .payment-hint {
  margin: 0;
  color: rgba(245, 238, 231, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

body[data-console-page] .payment-open-link {
  width: 100%;
  justify-content: center;
}

body[data-console-page] .confirm-dialog .text-center {
  text-align: center;
}

body[data-console-page] .confirm-icon {
  font-size: 32px;
  margin: 0 0 10px;
}

body[data-console-page] .btn-danger {
  color: #ffe0dc;
  border: 1px solid rgba(216, 108, 98, 0.34);
  background: rgba(216, 108, 98, 0.18);
}

body[data-console-page] .btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

body[data-console-page] .btn-lg {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

body[data-console-page] .usage-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body[data-console-page] .stat-card {
  padding: 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

body[data-console-page] .stat-icon {
  font-size: 22px;
}

body[data-console-page] .stat-label {
  display: block;
  color: rgba(245, 238, 231, 0.56);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body[data-console-page] .stat-value {
  display: block;
  margin-top: 2px;
  color: #fff8f1;
  font-size: 20px;
  font-weight: 700;
}

body[data-console-page] .stat-value.stat-cost {
  color: #f0bc7d;
}

body[data-console-page] .stat-sub {
  display: block;
  margin-top: 2px;
  color: rgba(245, 238, 231, 0.56);
  font-size: 11px;
}

body[data-console-page] .date-range-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body[data-console-page] .date-range-label {
  color: rgba(245, 238, 231, 0.6);
  font-size: 13px;
}

body[data-console-page] .type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

body[data-console-page] .type-stream {
  color: #cfe2ff;
  background: rgba(96, 165, 250, 0.2);
}

body[data-console-page] .type-sync {
  color: rgba(245, 238, 231, 0.78);
  background: rgba(255, 247, 238, 0.08);
}

body[data-console-page] .token-cell {
  white-space: nowrap;
}

body[data-console-page] .token-in {
  color: #6fbe8f;
  margin-right: 6px;
}

body[data-console-page] .token-out {
  color: #c084fc;
}

body[data-console-page] .cost-cell {
  color: #f0bc7d;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

body[data-console-page] .time-cell {
  color: rgba(245, 238, 231, 0.58);
  font-size: 13px;
}

body[data-console-page] .redeem-view {
  display: grid;
  gap: 16px;
}

body[data-console-page] .balance-hero {
  text-align: center;
  padding: 34px 20px;
}

body[data-console-page] .balance-gradient {
  border-color: rgba(240, 188, 125, 0.3);
  background: linear-gradient(140deg, rgba(240, 188, 125, 0.2), rgba(255, 247, 238, 0.03));
}

body[data-console-page] .balance-icon {
  display: block;
  font-size: 34px;
  margin-bottom: 8px;
}

body[data-console-page] .balance-label {
  margin: 0;
  color: rgba(245, 238, 231, 0.58);
  font-size: 14px;
}

body[data-console-page] .balance-amount {
  margin: 2px 0 4px;
  font-size: clamp(34px, 6vw, 44px);
  line-height: 1.06;
  color: #f0bc7d;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

body[data-console-page] .balance-total {
  margin: 0;
  color: rgba(245, 238, 231, 0.56);
  font-size: 13px;
}

body[data-console-page] .redeem-form-card,
body[data-console-page] .redeem-info-card,
body[data-console-page] .redeem-history-card {
  padding: 20px;
  border-radius: 18px;
}

body[data-console-page] .redeem-form-label {
  display: block;
  margin-bottom: 10px;
  color: #fff8f1;
  font-size: 14px;
  font-weight: 700;
}

body[data-console-page] .redeem-input-wrap {
  position: relative;
}

body[data-console-page] .redeem-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
}

body[data-console-page] .redeem-input-wrap input {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 224, 192, 0.14);
  background: rgba(255, 247, 238, 0.04);
  color: #fff5ea;
  padding: 0 14px 0 38px;
}

body[data-console-page] .redeem-input-wrap input:focus {
  outline: none;
  border-color: rgba(240, 188, 125, 0.46);
}

body[data-console-page] .redeem-hint {
  margin: 8px 0 12px;
  color: rgba(245, 238, 231, 0.56);
  font-size: 12px;
}

body[data-console-page] .redeem-submit-btn {
  width: 100%;
}

body[data-console-page] .redeem-result {
  margin-top: 14px;
  border-radius: 10px;
  padding: 12px;
}

body[data-console-page] .redeem-success {
  background: rgba(111, 190, 143, 0.12);
  border: 1px solid rgba(111, 190, 143, 0.24);
}

body[data-console-page] .redeem-error {
  background: rgba(216, 108, 98, 0.14);
  border: 1px solid rgba(216, 108, 98, 0.28);
}

body[data-console-page] .result-icon {
  display: block;
  margin-bottom: 4px;
}

body[data-console-page] .redeem-result p {
  margin: 0;
  font-size: 14px;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body[data-console-page] .info-title,
body[data-console-page] .history-title {
  margin: 0 0 12px;
  color: #fff8f1;
  font-size: 15px;
}

body[data-console-page] .info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-console-page] .info-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  color: rgba(245, 238, 231, 0.62);
  font-size: 14px;
}

body[data-console-page] .info-list li::before {
  content: "?";
  position: absolute;
  left: 0;
  color: #f0bc7d;
}

body[data-console-page] .history-list {
  display: grid;
  gap: 4px;
}

body[data-console-page] .history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 224, 192, 0.06);
}

body[data-console-page] .history-item:last-child {
  border-bottom: none;
}

body[data-console-page] .history-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body[data-console-page] .bg-positive {
  background: rgba(111, 190, 143, 0.16);
}

body[data-console-page] .bg-negative {
  background: rgba(216, 108, 98, 0.16);
}

body[data-console-page] .bg-neutral {
  background: rgba(96, 165, 250, 0.14);
}

body[data-console-page] .history-info {
  flex: 1;
  min-width: 0;
}

body[data-console-page] .history-info .history-title {
  margin: 0;
  font-size: 14px;
}

body[data-console-page] .history-time {
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(245, 238, 231, 0.52);
}

body[data-console-page] .history-value {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

body[data-console-page] .val-positive {
  color: #6fbe8f;
}

body[data-console-page] .val-negative {
  color: #d86c62;
}

body[data-console-page] .val-neutral {
  color: #60a5fa;
}

body[data-console-page] .history-empty {
  text-align: center;
  color: rgba(245, 238, 231, 0.56);
  padding: 18px 0;
}

body[data-console-page] .toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: grid;
  gap: 8px;
  z-index: 11000;
}

body[data-console-page] .toast {
  min-width: 180px;
  max-width: 360px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  animation: toast-in 180ms ease-out;
}

body[data-console-page] .toast-success {
  background: #23754a;
}

body[data-console-page] .toast-error {
  background: #a3362f;
}

body[data-console-page] .toast-info {
  background: #2f5ba3;
}

body[data-console-page] .toast-leaving {
  opacity: 0;
  transform: translateX(14px);
  transition: all 220ms ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1200px) {
  body[data-console-page] .dashboard-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body[data-console-page] .charts-grid,
  body[data-console-page] .dashboard-main,
  body[data-console-page] .usage-stats-grid {
    grid-template-columns: 1fr;
  }

  body[data-console-page] .recent-usage-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body[data-console-page] .toolbar-filters {
    flex-wrap: wrap;
  }

  body[data-console-page] .filter-search {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 760px) {
  body[data-console-page] .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-console-page] .table-toolbar,
  body[data-console-page] .pagination-bar,
  body[data-console-page] .page-title-bar {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-console-page] .toolbar-actions,
  body[data-console-page] .pagination-controls {
    justify-content: flex-start;
  }

  body[data-console-page] .toast-container {
    right: 12px;
    left: 12px;
  }

  body[data-console-page] .toast {
    max-width: none;
  }
}

@media (max-width: 560px) {
  body[data-console-page] .dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }

  body[data-console-page] .modal-dialog,
  body[data-console-page] .modal-lg,
  body[data-console-page] .modal-sm {
    width: min(100vw - 20px, 520px);
  }
}

/* ===== 按量计费充值套餐页面 ===== */

.pricing-hero .lede strong {
  color: var(--brand, #d97706);
}

.recharge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1100px) {
  .recharge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .recharge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .recharge-grid { grid-template-columns: 1fr; }
}

.recharge-card {
  position: relative;
  padding: 28px 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.recharge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(217, 119, 6, 0.12);
}

body[data-page='pricing'] .recharge-card::after {
  content: "";
  position: absolute;
  inset: auto -15% -40% auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.10), transparent 70%);
  pointer-events: none;
}

.recharge-card.is-featured {
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: 0 18px 42px rgba(217, 119, 6, 0.14);
}

.recharge-card.is-featured::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand, #d97706), var(--accent, #f59e0b), transparent);
  border-radius: 0 0 4px 4px;
}

/* 标签 */
.recharge-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-gold {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #fff;
}

.tag-blue {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.tag-green {
  background: rgba(111, 190, 143, 0.15);
  color: #6fbe8f;
  border: 1px solid rgba(111, 190, 143, 0.25);
}

.tag-purple {
  background: rgba(192, 132, 252, 0.15);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.25);
}

.tag-red {
  background: rgba(216, 108, 98, 0.15);
  color: #d86c62;
  border: 1px solid rgba(216, 108, 98, 0.25);
}

/* 套餐名 */
.rc-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text, #f5eee7);
}

/* 价格 */
.rc-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.rc-yuan {
  font-size: 36px;
  font-weight: 800;
  color: var(--text, #f5eee7);
  letter-spacing: -0.02em;
  line-height: 1;
}

.rc-bonus {
  font-size: 13px;
  font-weight: 600;
  color: #6fbe8f;
  background: rgba(111, 190, 143, 0.10);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* 到账额度 */
.rc-quota {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 10px;
}

.rc-label {
  font-size: 12px;
  color: var(--muted, rgba(245,238,231,0.56));
}

.rc-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand, #d97706);
}

.rc-value strong {
  font-size: 26px;
}

.rc-detail {
  font-size: 11px;
  color: var(--muted, rgba(245,238,231,0.45));
  margin-left: auto;
}

/* 描述 */
.rc-desc {
  font-size: 13px;
  color: var(--muted, rgba(245,238,231,0.60));
  line-height: 1.6;
  margin-bottom: 12px;
  flex-shrink: 0;
}

/* 特性列表 */
.rc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 6px;
  flex-grow: 1;
}

.rc-features li {
  font-size: 13px;
  color: rgba(245,238,231,0.72);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.rc-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6fbe8f;
  font-weight: 700;
  font-size: 12px;
}

/* 按钮 */
.rc-btn {
  width: 100%;
  margin-top: auto;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 10px;
}

/* 优势网格 */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 780px) {
  .advantage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.advantage-card {
  text-align: center;
}

.adv-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.advantage-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.advantage-card p {
  font-size: 13px;
}

/* 模型标签 */
.model-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.model-tag {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(217, 119, 6, 0.08);
  color: var(--brand, #d97706);
  border: 1px solid rgba(217, 119, 6, 0.18);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  padding: 18px 22px;
  cursor: pointer;
  border-radius: 12px;
  transition: background-color 150ms ease;
}

.faq-item:hover {
  background: rgba(217, 119, 6, 0.04);
}

.faq-item summary {
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  outline: none;
  color: var(--text, #f5eee7);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(217, 119, 6, 0.12);
  color: var(--brand, #d97706);
  font-size: 12px;
  font-weight: 800;
  margin-right: 10px;
  flex-shrink: 0;
}

.faq-item[open] summary {
  margin-bottom: 8px;
}

.faq-item p {
  margin: 0;
  padding-left: 32px;
  font-size: 14px;
  color: var(--muted, rgba(245,238,231,0.65));
  line-height: 1.7;
}

/* CTA */
.cta-shell {
  text-align: center;
  padding: 44px 32px !important;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}


