:root {
  --bg: #060a10;
  --bg-2: #0a1018;
  --panel: #0d141d;
  --panel-2: #101a26;
  --line: #1b2837;
  --line-strong: #2b4056;
  --txt: #d8e4ef;
  --muted: #7d8fa3;
  --faint: #4d5f73;
  --cyan: #00d9ff;
  --cyan-soft: rgba(0, 217, 255, 0.12);
  --amber: #ffb020;
  --amber-soft: rgba(255, 176, 32, 0.12);
  --red: #ff4d5e;
  --green: #3ddc84;
  --mono: "JetBrains Mono", "Cascadia Code", "SF Mono", Consolas, "Courier New", monospace;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --radius: 2px;
  --header-h: 64px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --surface: rgba(10, 16, 24, 0.97);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(0, 217, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 45%, transparent 100%);
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.14) 3px,
    rgba(0, 0, 0, 0.14) 4px
  );
  mix-blend-mode: multiply;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #7fe9ff;
}

::selection {
  background: rgba(0, 217, 255, 0.28);
  color: #fff;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ============ Header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-h);
  background: rgba(6, 10, 16, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--amber), transparent);
  opacity: 0.45;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--txt);
}

.logo-mark {
  width: 36px;
  height: 36px;
  position: relative;
  flex: none;
  border: 1px solid var(--cyan);
  background: var(--cyan-soft);
  clip-path: polygon(0 0, 72% 0, 100% 28%, 100% 100%, 28% 100%, 0 72%);
}

.logo-mark::before {
  content: "P";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--cyan);
  font-size: 19px;
  text-shadow: 0 0 12px var(--cyan);
}

.logo-mark::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  right: -2px;
  top: -2px;
  background: var(--amber);
  animation: blink 1.6s steps(2, start) infinite;
}

.logo-img {
  width: auto;
  height: 34px;
  max-width: 220px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.22));
}

/* Logo 随主题切换：暗色主题用白版，亮色主题用黑版 */
.logo-img.on-light {
  display: none;
}

html[data-theme="light"] .logo-img.on-dark {
  display: none;
}

html[data-theme="light"] .logo-img.on-light {
  display: block;
  filter: drop-shadow(0 1px 6px rgba(40, 60, 80, 0.18));
}

/* 亮色主题下页头/页脚的底色与其徽标区分度 */
html[data-theme="light"] .site-footer .logo-img.on-light {
  filter: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-cn {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.logo-en {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  position: relative;
  padding: 8px 15px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-family: var(--mono);
}

.main-nav a::before {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 3px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--txt);
}

.main-nav a:hover::before,
.main-nav a.active::before {
  transform: scaleX(1);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  border: 1px solid rgba(61, 220, 132, 0.35);
  background: rgba(61, 220, 132, 0.06);
  padding: 5px 10px;
  white-space: nowrap;
}

.status-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.8s steps(2, start) infinite;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  background: none;
  border: 1px solid var(--line-strong);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--cyan);
  transition: 0.2s;
}

/* Theme toggle */

.theme-toggle {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  color: var(--amber);
  cursor: pointer;
  transition: 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 217, 255, 0.22);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* ============ Hero ============ */

.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 560px;
  background:
    radial-gradient(ellipse at center, rgba(0, 217, 255, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 40%, rgba(255, 176, 32, 0.07) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.35em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--amber);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.hero h1 .en {
  display: block;
  font-family: var(--mono);
  font-size: 0.52em;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(0, 217, 255, 0.55);
  margin-top: 10px;
}

.hero-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
  margin: 22px 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--txt);
  cursor: pointer;
  transition: 0.2s ease;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  right: -1px;
  top: -1px;
  border-top: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
}

.btn:hover {
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.22), inset 0 0 18px rgba(0, 217, 255, 0.06);
}

.btn.primary {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.16), rgba(0, 217, 255, 0.05));
  color: var(--cyan);
}

.btn.primary:hover {
  background: rgba(0, 217, 255, 0.22);
  box-shadow: 0 0 32px rgba(0, 217, 255, 0.32);
}

.btn.amber {
  border-color: rgba(255, 176, 32, 0.55);
  color: var(--amber);
}

.btn.amber:hover {
  border-color: var(--amber);
  box-shadow: 0 0 24px rgba(255, 176, 32, 0.25);
}

.btn.small {
  padding: 8px 16px;
  font-size: 12px;
}

/* Terminal */

.terminal {
  position: relative;
  background: #070c12;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 217, 255, 0.06);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid #1b2837;
  background: #0d141d;
}

.term-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.term-dot.r { background: var(--red); }
.term-dot.y { background: var(--amber); }
.term-dot.g { background: var(--green); }

.term-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: #7d8fa3;
  letter-spacing: 0.14em;
}

.term-body {
  padding: 20px 18px;
  min-height: 260px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  color: #b9d7e0;
}

.term-body .ln {
  display: block;
  white-space: pre-wrap;
}

.term-body .p { color: var(--amber); }
.term-body .ok { color: var(--green); }
.term-body .info { color: var(--cyan); }
.term-body .dim { color: var(--faint); }

.cursor {
  display: inline-block;
  width: 9px;
  height: 16px;
  background: var(--cyan);
  vertical-align: -3px;
  animation: blink 1s steps(2, start) infinite;
  box-shadow: 0 0 8px var(--cyan);
}

/* ============ Sections ============ */

.section {
  padding: 84px 0;
  position: relative;
}

.section.alt {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--cyan);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
}

.section h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-top: 10px;
}

.section h2 .accent {
  color: var(--cyan);
}

.section-desc {
  color: var(--muted);
  margin-top: 12px;
  max-width: 640px;
}

/* Stats */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat {
  position: relative;
  padding: 24px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: 0.25s ease;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0.7;
}

.stat:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.stat-num {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 217, 255, 0.4);
}

.stat-num em {
  font-style: normal;
  font-size: 18px;
  color: var(--amber);
}

.stat-label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.stat-code {
  position: absolute;
  right: 10px;
  top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

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

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 30px 26px 26px;
  transition: 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--cyan);
  border-style: solid;
  opacity: 0.55;
  transition: 0.25s ease;
}

.card::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.card::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 217, 255, 0.08);
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
  filter: drop-shadow(0 0 5px var(--cyan));
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(0, 217, 255, 0.35);
  margin-bottom: 18px;
  clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 22% 100%, 0 78%);
}

.card h3 {
  font-size: 19px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

.card-meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

.card-link {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.card-link::after {
  content: " →";
  color: var(--amber);
}

/* Tags */

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.tag.cyan { color: var(--cyan); border-color: rgba(0, 217, 255, 0.4); }
.tag.amber { color: var(--amber); border-color: rgba(255, 176, 32, 0.4); }
.tag.green { color: var(--green); border-color: rgba(61, 220, 132, 0.4); }

/* Pipeline */

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: pipe;
}

.pipe {
  position: relative;
  padding: 24px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  counter-increment: pipe;
}

.pipe::after {
  content: "0" counter(pipe);
  position: absolute;
  right: 14px;
  top: 10px;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: rgba(0, 217, 255, 0.12);
}

.pipe h3 {
  font-size: 16px;
  color: var(--cyan);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.pipe p {
  font-size: 13px;
  color: var(--muted);
}

/* Ticker */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 0;
  position: relative;
}

.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-2), transparent);
}

.ticker::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-2), transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
  padding: 10px 0;
}

.ticker-track span {
  padding: 0 26px;
  white-space: nowrap;
}

.ticker-track .sep {
  color: var(--amber);
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

/* ============ Page hero (subpages) ============ */

.page-hero {
  padding: 74px 0 54px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 217, 255, 0.1), transparent 65%);
  pointer-events: none;
}

.page-hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--faint);
  margin-bottom: 16px;
}

.breadcrumb .cur {
  color: var(--amber);
}

.page-hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.page-hero h1 .en {
  font-family: var(--mono);
  font-size: 0.5em;
  display: block;
  margin-top: 8px;
  letter-spacing: 0.28em;
  color: var(--cyan);
}

.page-hero p {
  color: var(--muted);
  max-width: 640px;
  margin-top: 14px;
}

/* ============ Products ============ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

.product-grid.four .product {
  aspect-ratio: 4 / 3;
}

.product {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: 0.25s ease;
}

.product:hover {
  border-color: var(--line-strong);
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.product:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.product-top {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(0, 217, 255, 0.05), transparent),
    var(--panel-2);
  min-height: 0;
}

.product-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.35;
  pointer-events: none;
}

.product-id {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--faint);
  z-index: 1;
}

.product .logo-mark {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
}

.product-top h3 {
  font-size: 22px;
  letter-spacing: 0.03em;
  z-index: 1;
  position: relative;
}

.product-top .sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 4px;
  z-index: 1;
  position: relative;
}

.product-tags {
  margin-top: 0;
  padding: 14px 18px 10px;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--faint);
}

.product-foot .go {
  color: var(--cyan);
  transition: transform 0.25s ease;
}

.product:hover .product-foot .go {
  transform: translateX(4px);
}

.spec-list {
  list-style: none;
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 12px;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--faint);
}

.spec-list li:last-child {
  border-bottom: none;
}

.spec-list .val {
  color: var(--txt);
}

/* ============ Project Modal ============ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 10, 0.72);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: min(680px, 100%);
  max-height: min(84vh, 760px);
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.22s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
}

.modal-close:hover {
  color: var(--txt);
  border-color: var(--line-strong);
}

.modal-head {
  position: relative;
  padding: 30px 48px 22px 30px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(0, 217, 255, 0.05), transparent),
    var(--panel-2);
}

.modal-id {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--faint);
}

.modal-title {
  font-size: 26px;
  letter-spacing: 0.03em;
  margin-top: 10px;
}

.modal-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 6px;
}

.modal-tags {
  margin-top: 14px;
}

.modal-specs {
  padding: 20px 30px 4px;
}

.modal-specs .spec-list {
  margin-top: 10px;
}

.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 30px;
  border-bottom: 1px dashed var(--line);
}

.modal-desc {
  padding: 22px 30px 30px;
}

.modal-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--cyan);
  margin-bottom: 4px;
}

.modal-desc .modal-label {
  margin-bottom: 12px;
}

.modal-desc p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.modal-desc p + p {
  margin-top: 10px;
}

body.modal-open {
  overflow: hidden;
}

.soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed var(--line-strong);
  background: var(--bg-2);
  padding: 54px 30px;
  color: var(--faint);
  font-family: var(--mono);
}

.soon .big {
  font-size: 26px;
  color: var(--line-strong);
  margin-bottom: 10px;
  animation: pulse 2.4s ease-in-out infinite;
}

/* ============ Repository ============ */

.repo-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 26px;
  margin-bottom: 40px;
}

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 30px 28px;
}

.panel h3 {
  font-size: 17px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.06em;
}

.panel h3::before {
  content: "▮";
  color: var(--amber);
  font-size: 13px;
}

.repo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.repo-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: 0.2s;
}

.repo-item:last-child {
  border-bottom: none;
}

.repo-item:hover {
  padding-left: 6px;
}

.repo-item .repo-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 13px;
}

.repo-item .meta {
  flex: 1;
  min-width: 0;
}

.repo-item .name {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--txt);
  display: block;
}

.repo-item .desc {
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.repo-item .badge {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 7px;
  border: 1px solid rgba(61, 220, 132, 0.4);
  color: var(--green);
  white-space: nowrap;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.platform {
  padding: 22px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  text-align: center;
  transition: 0.2s;
}

.platform:hover {
  border-color: var(--cyan);
}

.platform .pf-icon {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--cyan);
  display: block;
  margin-bottom: 8px;
}

.platform .pf-name {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.platform .pf-state {
  font-size: 11px;
  color: var(--faint);
  margin-top: 4px;
}

.platform .pf-state.on {
  color: var(--green);
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: center;
}

.flow-step {
  text-align: center;
  padding: 16px 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  position: relative;
}

.flow-step .fs-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.2em;
}

.flow-step .fs-name {
  font-size: 13px;
  margin-top: 4px;
}

.flow-arrow {
  color: var(--faint);
  text-align: center;
  font-family: var(--mono);
}

/* ============ Docs ============ */

.docs-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--panel);
  border: 1px solid var(--line);
}

.docs-nav-title {
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--cyan);
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.docs-nav ul {
  list-style: none;
  padding: 10px 0;
}

.docs-nav ul.toc {
  max-height: min(56vh, 540px);
  overflow-y: auto;
}

.docs-nav ul.toc::-webkit-scrollbar {
  width: 6px;
}

.docs-nav ul.toc::-webkit-scrollbar-thumb {
  background: var(--line-strong);
}

.docs-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 13.5px;
  color: var(--muted);
  border-left: 2px solid transparent;
}

.docs-nav li a::before {
  content: "▸";
  color: var(--faint);
  font-size: 10px;
}

.docs-nav li a:hover,
.docs-nav li a.active {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(0, 217, 255, 0.04);
}

.doc-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 34px 34px 38px;
}

.doc-panel h2 {
  font-size: 24px;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.doc-panel section > h2 {
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-strong);
}

.doc-panel > section {
  margin-top: 48px;
}

.doc-panel > section:first-of-type {
  margin-top: 0;
}

.doc-panel .doc-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.2em;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line-strong);
}

.doc-panel h3 {
  font-size: 16px;
  margin: 26px 0 10px;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

.doc-panel p,
.doc-panel li {
  color: var(--muted);
  font-size: 14px;
}

.doc-panel ul {
  padding-left: 20px;
}

.doc-panel li {
  margin: 5px 0;
}

.doc-panel code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--amber);
  padding: 2px 7px;
}

.doc-quote {
  border-left: 2px solid var(--amber);
  background: rgba(255, 176, 32, 0.05);
  padding: 12px 16px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.doc-quote code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--amber);
  padding: 1px 6px;
}

.code-block {
  position: relative;
  background: #070c12;
  border: 1px solid var(--line-strong);
  margin: 16px 0;
  overflow-x: auto;
}

.code-block .code-head {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  background: #0d141d;
  border-bottom: 1px solid #1b2837;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #7d8fa3;
  letter-spacing: 0.16em;
}

.code-block pre {
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: #b9d7e0;
  overflow-x: auto;
}

/* 代码块内部的 code 继承代码块样式，避免被行内代码底色/边框覆盖成条状白底 */
.doc-panel .code-block code,
.code-block code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.code-block .k { color: var(--cyan); }
.code-block .s { color: var(--green); }
.code-block .n { color: var(--amber); }

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(61, 220, 132, 0.3);
  background: rgba(61, 220, 132, 0.05);
  color: var(--green);
  margin-bottom: 18px;
}

.status-line.warn {
  border-color: rgba(255, 176, 32, 0.35);
  background: rgba(255, 176, 32, 0.05);
  color: var(--amber);
}

.doc-table-wrap {
  overflow-x: auto;
  margin: 14px 0 22px;
  border: 1px solid var(--line);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 520px;
}

.doc-table th {
  background: var(--panel-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-strong);
}

.doc-table td {
  padding: 11px 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.doc-table tr:hover td {
  background: rgba(0, 217, 255, 0.03);
}

/* Doc index (article list) */

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

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 26px 26px 22px;
  color: var(--txt);
  transition: 0.22s ease;
  overflow: hidden;
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent 70%);
  opacity: 0;
  transition: 0.22s;
}

.article-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.article-card:hover::before {
  opacity: 1;
}

.article-card .ac-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.article-card .ac-num {
  color: var(--cyan);
}

.article-card .ac-state {
  color: var(--amber);
  border: 1px solid rgba(255, 176, 32, 0.35);
  padding: 2px 9px;
}

.article-card .ac-state.live {
  color: var(--green);
  border-color: rgba(61, 220, 132, 0.4);
}

.article-card h3 {
  font-size: 19px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.article-card .ac-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

.article-card p {
  color: var(--muted);
  font-size: 13.5px;
  flex: 1;
}

.article-card .ac-go {
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.article-card .ac-go::after {
  content: " →";
  color: var(--amber);
}

/* ============ Contact ============ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: start;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.channel {
  position: relative;
  display: block;
  padding: 24px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--txt);
  transition: 0.22s ease;
  overflow: hidden;
}

.channel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent 70%);
  opacity: 0;
  transition: 0.22s;
}

.channel:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.channel:hover::before {
  opacity: 1;
}

.channel .ch-icon {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--amber);
  margin-bottom: 12px;
  display: block;
}

.channel .ch-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.channel .ch-desc {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
  word-break: break-all;
}

.channel .ch-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--green);
  border: 1px solid rgba(61, 220, 132, 0.35);
  padding: 2px 8px;
}

.channel .ch-tag.wait {
  color: var(--amber);
  border-color: rgba(255, 176, 32, 0.35);
}

.form-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 30px 28px;
}

.form-panel h3 {
  font-size: 18px;
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}

.form-panel .hint {
  font-size: 12.5px;
  color: var(--faint);
  margin-bottom: 22px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 7px;
}

.form-row label::before {
  content: ">";
  color: var(--amber);
  margin-right: 7px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  color: var(--txt);
  padding: 11px 13px;
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
  transition: 0.2s;
  border-radius: 0;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.08);
}

.form-row textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  line-height: 1.8;
}

.faq {
  margin-top: 60px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 20px 22px;
}

.faq-item .q {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--txt);
}

.faq-item .q::before {
  content: "Q: ";
  color: var(--amber);
  font-family: var(--mono);
}

.faq-item .a {
  font-size: 13px;
  color: var(--muted);
}

.faq-item .a::before {
  content: "A: ";
  color: var(--cyan);
  font-family: var(--mono);
}

/* ============ CTA band ============ */

.cta-band {
  position: relative;
  padding: 64px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(0, 217, 255, 0.12), transparent 60%),
    var(--bg-2);
  overflow: hidden;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.04em;
}

.cta-band p {
  color: var(--muted);
  margin-top: 6px;
}

/* ============ Footer ============ */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 46px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.footer-grid .logo {
  margin-bottom: 12px;
}

.footer-about {
  font-size: 13px;
  color: var(--muted);
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--cyan);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin: 8px 0;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.08em;
}

.footer-bottom .ver {
  color: var(--amber);
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Animations */

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* ============ Responsive ============ */

@media (max-width: 1080px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .repo-main,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 10px 6vw 18px;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 8px;
    border-bottom: 1px solid var(--line);
  }

  .status-chip {
    display: none;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero {
    padding: 70px 0 60px;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-nav {
    position: static;
  }

  .docs-nav ul {
    display: flex;
    flex-wrap: wrap;
    padding: 6px;
  }

  .docs-nav li a {
    border-left: none;
    border: 1px solid var(--line);
    margin: 4px;
    padding: 6px 12px;
    font-size: 12.5px;
  }

  .docs-nav li a::before {
    display: none;
  }

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

@media (max-width: 620px) {
  .stats-grid,
  .card-grid,
  .card-grid.two,
  .card-grid.four,
  .product-grid,
  .product-grid.four,
  .pipeline,
  .channel-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

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

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

  .flow-arrow {
    transform: rotate(90deg);
  }

  .doc-panel {
    padding: 24px 18px;
  }

  .section {
    padding: 60px 0;
  }

  .modal-head {
    padding: 26px 44px 20px 20px;
  }

  .modal-specs {
    padding: 18px 20px 2px;
  }

  .modal-links {
    padding: 14px 20px;
  }

  .modal-desc {
    padding: 20px;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

/* ============ Light theme ============ */

html[data-theme="light"] {
  --bg: #eef2f7;
  --bg-2: #e3e9f0;
  --panel: #f8fafc;
  --panel-2: #edf2f7;
  --line: #d4dde6;
  --line-strong: #a9b8c7;
  --txt: #18232f;
  --muted: #4c5f71;
  --faint: #8292a3;
  --cyan: #008aa6;
  --cyan-soft: rgba(0, 138, 166, 0.1);
  --amber: #b97800;
  --amber-soft: rgba(185, 120, 0, 0.1);
  --green: #178a52;
  --red: #cc4350;
  --shadow: 0 16px 46px rgba(40, 60, 80, 0.16);
  --surface: rgba(255, 255, 255, 0.97);
}

html[data-theme="light"] body::before {
  background:
    linear-gradient(rgba(0, 138, 166, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 138, 166, 0.09) 1px, transparent 1px);
}

html[data-theme="light"] .scanlines {
  opacity: 0.28;
}

html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse at center, rgba(0, 138, 166, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 40%, rgba(185, 120, 0, 0.06) 0%, transparent 55%);
}

html[data-theme="light"] .hero h1 .en {
  text-shadow: 0 0 24px rgba(0, 138, 166, 0.3);
}

html[data-theme="light"] .stat-num {
  text-shadow: 0 0 16px rgba(0, 138, 166, 0.22);
}

html[data-theme="light"] .logo-mark::after {
  background: var(--amber);
}

html[data-theme="light"] .ticker,
html[data-theme="light"] .cta-band,
html[data-theme="light"] .site-footer {
  background: var(--bg-2);
}

html[data-theme="light"] .product-top,
html[data-theme="light"] .modal-head {
  background:
    linear-gradient(180deg, rgba(0, 138, 166, 0.05), transparent),
    var(--panel-2);
}

/* 浅色模式下代码块与终端同样使用浅色底、深色文字 */
html[data-theme="light"] .terminal,
html[data-theme="light"] .code-block {
  background: #ffffff;
  border-color: var(--line-strong);
}

html[data-theme="light"] .terminal-head,
html[data-theme="light"] .code-block .code-head {
  background: var(--panel-2);
  border-bottom-color: var(--line);
  color: var(--muted);
}

html[data-theme="light"] .term-title {
  color: var(--muted);
}

html[data-theme="light"] .term-body,
html[data-theme="light"] .code-block pre {
  color: var(--txt);
}

html[data-theme="light"] body,
html[data-theme="light"] .site-footer,
html[data-theme="light"] .ticker,
html[data-theme="light"] .cta-band,
html[data-theme="light"] .panel,
html[data-theme="light"] .doc-panel,
html[data-theme="light"] .form-panel,
html[data-theme="light"] .docs-nav,
html[data-theme="light"] .faq-item,
html[data-theme="light"] .soon {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

/* AI (Guessor) nav entry */

.main-nav a.nav-ai {
  color: var(--amber);
}

.main-nav a.nav-ai::before {
  background: var(--amber);
}

.main-nav a.nav-ai:hover,
.main-nav a.nav-ai.active {
  color: var(--amber);
}

/* Guessor brand band (Nexabox × PullTogether) */

.brand-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 22px;
  padding: 13px 18px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--amber);
  background: linear-gradient(90deg, var(--amber-soft), rgba(0, 0, 0, 0) 78%);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--amber);
}

.brand-band .bb-main {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--txt);
}

.brand-band .bb-sep {
  color: var(--faint);
  letter-spacing: 0;
}

.brand-band .bb-sub {
  color: var(--muted);
}

.brand-band a {
  color: inherit;
  border-bottom: 1px dashed currentColor;
}

.brand-band a:hover {
  color: var(--txt);
  border-bottom-style: solid;
}

.brand-band a.bb-main {
  color: var(--txt);
}

.page-hero .brand-band {
  margin: 22px 0 0;
}

.footer-col li .plain {
  display: inline-block;
  font-size: 13.5px;
  font-family: var(--mono);
  color: var(--faint);
}
