/* jeai marketing site. Light by default, dark on request; one violet accent,
   cyan for live data. The code window stays dark in both themes. */
@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit/outfit-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #fdfcfe;
  --bg-alt: #f7f5fc;
  --surface: #ffffff;
  --surface-2: #faf9fd;
  --surface-3: #f3f1f9;
  --line: #ebe9f1;
  --line-2: #dedbe8;
  --text: #17151f;
  --text-2: #3d3949;
  --muted: #6b6779;
  --faint: #8f8b9d;
  --violet: #6d4af0;
  --violet-hover: #5c3be0;
  --violet-text: #5b3bd6;
  --violet-soft: #f2eefe;
  --violet-line: #ddd3fc;
  --cyan: #0891b2;
  --green: #059669;
  --green-soft: #e6f6ef;
  --amber: #c2410c;
  --amber-dot: #f59e0b;
  --amber-soft: #fff4e5;
  --red: #dc2626;
  --red-soft: #fdecec;
  --shadow-sm: 0 1px 2px rgba(23, 21, 31, 0.05);
  --shadow-md: 0 1px 2px rgba(23, 21, 31, 0.04), 0 14px 36px -18px rgba(40, 28, 90, 0.2);
  --shadow-lg: 0 2px 6px rgba(23, 21, 31, 0.04), 0 40px 90px -36px rgba(76, 52, 180, 0.34);
  --header-bg: rgba(253, 252, 254, 0.84);
  --grad-a: #6a45ef;
  --grad-b: #a07cf8;
  --grad-c: #1fbfdc;
  --aurora-1: rgba(139, 108, 255, 0.26);
  --aurora-2: rgba(34, 211, 238, 0.18);
  --aurora-3: rgba(232, 121, 249, 0.14);
  --grid-dot: rgba(23, 21, 31, 0.075);
  --code-bg: #100f18;
  --code-line: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --header-h: 64px;
  --sans: 'Geist', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC',
    'Noto Sans CJK SC', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --brand-font: 'Outfit', 'Geist', system-ui, sans-serif;
  color-scheme: light;
}
[data-theme='dark'] {
  --bg: #09080f;
  --bg-alt: #0c0b14;
  --surface: #12111b;
  --surface-2: #161420;
  --surface-3: #1c1a28;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-2: #d4d4d8;
  --muted: #a1a1aa;
  --faint: #85858f;
  --violet: #7350f5;
  --violet-hover: #8462ff;
  --violet-text: #b4a0ff;
  --violet-soft: rgba(115, 80, 245, 0.14);
  --violet-line: rgba(139, 108, 255, 0.36);
  --cyan: #45e3f5;
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.12);
  --amber: #fbbf24;
  --amber-dot: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.12);
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 40px 100px -40px rgba(115, 80, 245, 0.5);
  --header-bg: rgba(9, 8, 15, 0.8);
  --grad-a: #ffffff;
  --grad-b: #c4b5fd;
  --grad-c: #67e8f9;
  --aurora-1: rgba(115, 80, 245, 0.34);
  --aurora-2: rgba(69, 227, 245, 0.16);
  --aurora-3: rgba(192, 38, 211, 0.14);
  --grid-dot: rgba(255, 255, 255, 0.06);
  --code-bg: #0e0d16;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}
img,
svg,
canvas {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
h1,
h2,
h3 {
  color: var(--text);
}
::selection {
  background: rgba(109, 74, 240, 0.22);
}
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--violet);
  color: #fff;
}
.skip-link:focus {
  top: 12px;
}
.container {
  width: min(1200px, 100% - 64px);
  margin-inline: auto;
}
.mono {
  font-family: var(--mono);
  font-feature-settings: 'tnum' 1;
}
.muted {
  color: var(--muted);
}
.faint {
  color: var(--faint);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Wordmark: the name itself is the logo ───────────────────────────── */
.wordmark {
  font-family: var(--brand-font);
  font-size: 31px;
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: lowercase;
  color: #292a2e;
}
[data-theme='dark'] .wordmark {
  color: #f4f4f5;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s, color 0.15s;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn-lg {
  height: 46px;
  padding: 0 24px;
  font-size: 15px;
}
.btn-primary {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}
.btn-primary:hover {
  background: var(--violet-hover);
  border-color: var(--violet-hover);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--text-2);
}
.btn-ghost:hover {
  border-color: var(--violet-line);
  color: var(--text);
}
.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  position: relative;
}
.icon-btn:hover {
  background: var(--surface-3);
  color: var(--text);
}
.icon-btn svg {
  width: 19px;
  height: 19px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--violet-text);
}
.text-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
}
.text-link:hover svg {
  transform: translateX(3px);
}

/* ── Header (as on the original site: name left, links and actions right) */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: var(--header-h);
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 36px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a {
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--violet-text);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-signin {
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-2);
}
.nav-signin:hover {
  color: var(--violet-text);
}
.nav-console {
  height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: var(--violet);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin-right: 6px;
  transition: background 0.15s;
}
.nav-console:hover {
  background: var(--violet-hover);
}
.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--line-2);
  margin: 0 4px;
}
.nav-lang {
  height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
}
.nav-lang svg {
  width: 16px;
  height: 16px;
}
.nav-lang:hover {
  color: var(--text);
  background: var(--surface-3);
}
.theme-toggle .i-sun,
[data-theme='dark'] .theme-toggle .i-moon {
  display: none;
}
[data-theme='dark'] .theme-toggle .i-sun {
  display: inline;
}
.nav-toggle {
  display: none;
}
.nav-panel {
  display: none;
}

/* Announcements popover */
.ann {
  position: relative;
}
.ann-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 2px var(--bg);
}
.ann-dot[hidden] {
  display: none;
}
.ann-panel {
  position: absolute;
  right: -8px;
  top: calc(100% + 12px);
  width: 340px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.ann-panel[hidden] {
  display: none;
}
.ann-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 6px 10px;
  font-size: 14px;
}
.ann-head .icon-btn {
  width: 30px;
  height: 30px;
}
.ann-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 10px;
}
.ann-item:hover {
  background: var(--surface-2);
}
.ann-item + .ann-item {
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
}
.ann-tag {
  justify-self: start;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 99px;
  background: var(--violet-soft);
  color: var(--violet-text);
}
.ann-item b {
  font-size: 15px;
  font-weight: 600;
}
.ann-item span:not(.ann-tag) {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.ann-item em {
  font-style: normal;
  font-size: 13px;
  color: var(--violet-text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ann-item em svg {
  width: 13px;
  height: 13px;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 72px) 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
/* Soft colour fields. Kept still and unblurred: a moving blur filter dropped
   the hero to ~15 fps without GPU compositing; the dot wave carries motion. */
.hero-aurora i {
  position: absolute;
  border-radius: 50%;
}
.hero-aurora i:nth-child(1) {
  width: 46vw;
  height: 34vw;
  left: 14%;
  top: -6%;
  background: radial-gradient(closest-side, var(--aurora-1), transparent);
}
.hero-aurora i:nth-child(2) {
  width: 40vw;
  height: 30vw;
  right: 8%;
  top: 4%;
  background: radial-gradient(closest-side, var(--aurora-2), transparent);
}
.hero-aurora i:nth-child(3) {
  width: 30vw;
  height: 24vw;
  left: 38%;
  top: 30%;
  background: radial-gradient(closest-side, var(--aurora-3), transparent);
}
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  width: 100%;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 38%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 38%, #000 82%, transparent 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 30%, transparent 78%);
}
.hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 8px 0 14px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  color: var(--text-2);
  transition: border-color 0.2s;
}
.status-chip:hover {
  border-color: var(--violet-line);
}
.status-chip .more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 4px 3px 10px;
  border-left: 1px solid var(--line);
  color: var(--violet-text);
}
.status-chip .more svg {
  width: 14px;
  height: 14px;
}
.dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
  flex: none;
}
.dot[data-state='operational'] {
  background: var(--green);
}
.dot[data-state='degraded'] {
  background: var(--amber-dot);
}
.dot[data-state='outage'] {
  background: var(--red);
}
.dot.ping::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  75%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}
.hero h1 {
  margin: 28px 0 0;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.hero h1 .line {
  display: block;
}
.grad {
  background: linear-gradient(90deg, var(--grad-a) 0%, var(--grad-b) 48%, var(--grad-c) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}
.hero-sub {
  margin: 26px auto 0;
  max-width: 700px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.api-chip {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 6px 0 14px;
  border-radius: 10px;
  border: 1px dashed var(--line-2);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 13px;
}
.api-k {
  color: var(--faint);
}
.api-chip code {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--text);
}
.api-copy {
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 7px;
  border: 0;
  background: var(--violet-soft);
  color: var(--violet-text);
  font-size: 12px;
}
.api-copy svg {
  width: 14px;
  height: 14px;
}
.api-copy:hover {
  filter: brightness(0.97);
}

/* Model marquee */
.marquee {
  margin: 72px auto 0;
  width: min(1200px, 100% - 64px);
}
.marquee-title {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--faint);
  margin-bottom: 22px;
}
.marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-viewport:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-group {
  display: flex;
  gap: 64px;
  padding: 0 32px;
  margin: 0;
  list-style: none;
}
.marquee-group li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-2);
  white-space: nowrap;
}
.marquee-group svg {
  width: 32px;
  height: 32px;
  color: var(--text);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ── Section pager (desktop) ─────────────────────────────────────────── */
.pager {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 40;
  transform: translateY(-50%);
  display: grid;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.pager.is-on {
  opacity: 1;
  pointer-events: auto;
}
.pager a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  height: 26px;
  padding-right: 14px;
  font-size: 12px;
  color: var(--faint);
}
.pager .l {
  order: -1;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text-2);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.pager .n {
  font-size: 0;
  width: 0;
  position: relative;
}
.pager .n::after {
  content: '';
  position: absolute;
  right: -14px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--line-2);
  transition: background 0.2s, transform 0.2s;
}
.pager a:hover .l,
.pager a:focus-visible .l {
  opacity: 1;
  transform: none;
}
.pager a[aria-current='true'] {
  color: var(--violet-text);
}
.pager a[aria-current='true'] .n::after {
  background: var(--violet);
  transform: scale(1.4);
}

/* ── Selling-point pages: one idea per screen ────────────────────────── */
.page {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  padding: 72px 0;
  display: flex;
  align-items: center;
  background: var(--bg);
}
.page.alt {
  background: var(--bg-alt);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--violet-text);
}
.eyebrow span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--violet-soft);
}
.page h2,
.page-head h1 {
  margin: 16px 0 0;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.lead {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 560px;
}
.sec-head.center {
  text-align: center;
}
.sec-head.center .lead {
  margin-inline: auto;
  max-width: 740px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: center;
}
.split.reverse .sec-copy {
  order: 2;
}
.sec-copy,
.sec-visual {
  min-width: 0;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 14px;
}
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-2);
}
.checklist svg {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet);
  margin-top: 1px;
}

/* Seedance 2.5 · coverflow: the current key visual faces the viewer, two on
   each side turn away in perspective with a soft reflection; the ring turns
   one step every few seconds. Visuals are shown whole (their titles are part
   of the art). Bounded: six items, one timer, paused off-screen; only
   transform/opacity/filter transitions, nothing runs between steps. */
.page-seedance {
  overflow: hidden;
  isolation: isolate;
}
.page-seedance::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 50% at 66% 42%, color-mix(in srgb, var(--violet) 13%, transparent), transparent 70%);
  pointer-events: none;
}
.sd-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
  gap: 56px;
  align-items: center;
}
.sd-copy {
  max-width: 460px;
}
.page-seedance h2 {
  font-size: clamp(32px, 3.4vw, 48px);
}
.sd-tags {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sd-tags li {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--violet-line);
  background: var(--surface);
  color: var(--violet-text);
}
.sd-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.sd-show {
  position: relative;
  min-width: 0;
  /* Side items may reach right, never into the copy column on the left. */
  clip-path: inset(-80px -240px -160px -36px);
}
.sd-flow {
  position: relative;
  width: 74%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto 64px;
  perspective: 1300px;
}
.sd-item {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: none;
  cursor: pointer;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.9s ease, filter 0.9s ease;
}
.sd-item:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}
.sd-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  background: var(--surface-3);
  box-shadow: 0 2px 6px rgba(23, 21, 31, 0.08), 0 30px 70px -30px rgba(23, 21, 31, 0.5);
  -webkit-box-reflect: below 6px linear-gradient(transparent 72%, rgba(255, 255, 255, 0.22));
}
.sd-item.is-active {
  cursor: default;
}
.sd-thumbs {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.sd-thumb {
  position: relative;
  width: 88px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.sd-thumb:hover {
  transform: translateY(-2px);
}
.sd-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: var(--surface-3);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.sd-thumb:hover img,
.sd-thumb.is-active img {
  opacity: 1;
}
.sd-thumb.is-active {
  border-color: var(--violet);
  box-shadow: 0 0 0 1px var(--violet), var(--shadow-md);
}
.sd-thumb span {
  display: block;
  padding: 4px 0 6px;
  text-align: center;
  font-size: 12px;
}
.sd-thumb i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--violet), #22d3ee);
}
.sd-thumb.is-active i {
  animation: sd-progress var(--sd-duration, 6500ms) linear forwards;
}
.page-seedance.is-paused .sd-thumb.is-active i {
  animation-play-state: paused;
}
@keyframes sd-progress {
  to {
    width: 100%;
  }
}

/* 01 · Live routing stage */
.route-stage {
  position: relative;
  margin-top: 32px;
  height: 344px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.route-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.route-col {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: 200px;
}
.node {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  color: var(--text-2);
}
.node > svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
  flex: none;
}
.node .logo,
.node .tag {
  flex: none;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.node .logo svg {
  width: 20px;
  height: 20px;
  color: var(--text);
}
.node .tag {
  border-radius: 6px;
  background: var(--surface-3);
  font-size: 12px;
  font-weight: 600;
}
.node .grow {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.node .lat {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}
.core {
  position: relative;
  z-index: 1;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.core .wordmark {
  font-size: 30px;
}
.route-model-badge {
  position: absolute;
  bottom: calc(100% + 36px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border: 1px solid var(--violet-line);
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.route-foot {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.metric {
  padding: 18px 22px;
}
.metric + .metric {
  border-left: 1px solid var(--line);
}
.metric .v {
  font-family: var(--mono);
  font-size: clamp(16px, 1.5vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  overflow-wrap: anywhere;
}
.metric .k {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}
.route-notes .checklist {
  margin: 0 0 18px;
}

/* 02 · Code window + endpoint strip */
.code-card {
  border-radius: 16px;
  border: 1px solid var(--code-line);
  background: var(--code-bg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: #e4e4e7;
}
.code-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--code-line);
  overflow-x: auto;
}
.code-tabs .lights {
  display: flex;
  gap: 6px;
  margin-right: 12px;
}
.code-tabs .lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2c2a36;
}
.code-tab {
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #8a8a94;
  font-size: 13px;
  white-space: nowrap;
}
.code-tab[aria-selected='true'] {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
}
.copy-btn {
  margin-left: auto;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--code-line);
  background: transparent;
  color: #a1a1aa;
  font-size: 12px;
}
.copy-btn:hover {
  color: #fff;
}
.code-card pre {
  margin: 0;
  padding: 22px 22px 26px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.8;
  color: #d4d4d8;
  overflow-x: auto;
}
[data-code-card] pre {
  min-height: 300px;
}
.tok-k {
  color: #c4b5fd;
}
.tok-s {
  color: #a5f3fc;
}
.tok-c {
  color: #6b6b76;
}
.tok-del {
  display: block;
  margin: 0 -22px;
  padding: 0 22px;
  background: rgba(248, 113, 113, 0.09);
  color: #fca5a5;
  text-decoration: line-through;
  text-decoration-color: rgba(252, 165, 165, 0.5);
}
.tok-add {
  display: block;
  margin: 0 -22px;
  padding: 0 22px;
  background: rgba(52, 211, 153, 0.1);
  color: #6ee7b7;
}
.docs-body .tok-del,
.docs-body .tok-add {
  margin: 0 -20px;
  padding: 0 20px;
}
.endpoints {
  margin-top: 18px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.endpoints-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.endpoints ul {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0 5px;
  list-style: none;
}
.endpoints li {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
}

/* Product mock cards (sample UI, labelled as such) */
.mock {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
}
.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mock-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}
.mock-title svg {
  width: 18px;
  height: 18px;
  color: var(--violet);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 10px;
  border-radius: 99px;
  font-size: 12px;
  background: var(--surface-3);
  color: var(--muted);
  white-space: nowrap;
}
.pill svg {
  width: 13px;
  height: 13px;
}
.pill-warn {
  background: var(--amber-soft);
  color: var(--amber);
}
.pill-ok {
  background: var(--green-soft);
  color: var(--green);
}
.mock-sub {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--faint);
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--green);
}
.live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
.ledger-table {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.lr {
  display: grid;
  grid-template-columns: 74px 82px minmax(0, 1fr) 104px 70px;
  gap: 10px;
  align-items: center;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
}
.lr > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lr.lh {
  font-size: 12px;
  color: var(--faint);
  padding: 10px 2px;
}
.lr .r {
  text-align: right;
}
.lr .mono {
  font-size: 12.5px;
}
.lr .model {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
}
.lr .cost {
  color: var(--text);
  font-weight: 500;
}
.ledger .lr:not(.lh) {
  opacity: 0;
  transform: translateY(-6px);
}
.in .ledger .lr:not(.lh) {
  animation: rowIn 0.5s ease forwards;
}
.in .ledger .lr:nth-child(2) {
  animation-delay: 0.15s;
  background: linear-gradient(90deg, var(--violet-soft), transparent 70%);
}
.in .ledger .lr:nth-child(3) {
  animation-delay: 0.3s;
}
.in .ledger .lr:nth-child(4) {
  animation-delay: 0.45s;
}
.in .ledger .lr:nth-child(5) {
  animation-delay: 0.6s;
}
.in .ledger .lr:nth-child(6) {
  animation-delay: 0.75s;
}
@keyframes rowIn {
  to {
    opacity: 1;
    transform: none;
  }
}
.mock-foot {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.mock-foot b {
  margin-left: 6px;
  font-size: 18px;
  color: var(--text);
  font-weight: 500;
}
.btn-mini {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--text-2);
  background: var(--surface);
}

/* 04 · Key card + alert */
.guard-visual {
  position: relative;
  padding-bottom: 128px;
}
.keycard {
  margin-right: 48px;
}
.key-id {
  margin: 18px 0 6px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.key-id b {
  font-size: 18px;
}
.key-id .mono {
  font-size: 13px;
  color: var(--faint);
}
.kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.kv .k {
  color: var(--muted);
}
.kv .v {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text);
}
.kv .v.faint {
  color: var(--faint);
}
.kv .v.ok {
  color: var(--green);
}
.kv .v.ok svg {
  width: 16px;
  height: 16px;
}
.kv .mono {
  font-size: 13px;
}
.bar {
  flex: 1 1 100%;
  height: 6px;
  border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--amber-dot));
  transition: width 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
}
.in .bar i {
  width: 43.2%;
}
.tag {
  font-family: var(--mono);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--text-2);
}
.tag-brand {
  font-family: var(--sans);
  background: var(--violet-soft);
  color: var(--violet-text);
}
.alert-card {
  position: absolute;
  left: 40px;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 18px 20px;
  border-color: color-mix(in srgb, var(--amber-dot) 40%, var(--line));
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.6s ease 1.2s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 1.2s;
}
.in .alert-card {
  opacity: 1;
  transform: none;
}
.alert-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber);
}
.alert-icon svg {
  width: 20px;
  height: 20px;
}
.alert-card b {
  font-size: 15px;
}
.alert-card p {
  margin: 6px 0 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.alert-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--faint);
}
.alert-meta svg {
  width: 18px;
  height: 18px;
}
.alert-meta .btn-mini {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

/* 05 · Enterprise */
.ent-split {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.tiles {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 12px;
  row-gap: 4px;
  padding: 16px 16px 16px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.tile svg {
  grid-row: span 2;
  width: 20px;
  height: 20px;
  color: var(--violet);
  margin-top: 1px;
}
.tile b {
  font-size: 15px;
  font-weight: 600;
}
.tile span {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}
.stepper {
  list-style: none;
  margin: 22px 0 10px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
}
.stepper::before {
  content: '';
  position: absolute;
  left: 16.6%;
  right: 16.6%;
  top: 15px;
  height: 2px;
  background: var(--line);
}
.stepper::after {
  content: '';
  position: absolute;
  left: 16.6%;
  top: 15px;
  height: 2px;
  width: 0;
  background: var(--violet);
  transition: width 1.2s ease 0.4s;
}
.in .stepper::after {
  width: 66.8%;
}
.stepper li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.stepper i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  background: var(--violet);
  color: #fff;
  box-shadow: 0 0 0 5px var(--surface);
}
.ent-cta {
  margin-top: 22px;
}

/* 06 · Get started */
.page-start .container {
  text-align: center;
}
.steps {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}
.step {
  position: relative;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.step .n {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--violet-text);
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--violet-soft);
}
.step h3 {
  margin: 18px 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}
.page-start .hero-cta {
  margin-top: 48px;
}

/* ── Footer (structure of the original site) ─────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 64px 0 36px;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand .wordmark {
  font-size: 28px;
}
.footer-brand p {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--text-2);
}
.footer-brand small {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--faint);
}
.footer-col {
  display: grid;
  align-content: start;
  gap: 0;
}
.footer-col h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}
.footer-col a,
.footer-about {
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  font-size: 15px;
  color: var(--muted);
  justify-self: start;
  overflow-wrap: anywhere;
}
.footer-about {
  margin-top: 8px;
}
.footer-col a:hover,
.footer-about:hover {
  color: var(--violet-text);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.footer-bottom strong {
  font-size: 14px;
  font-weight: 600;
}
.footer-bottom p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--faint);
}
.footer-policies {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: 13px;
  color: var(--muted);
}
.footer-policies a {
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-policies a:hover {
  color: var(--violet-text);
}

/* ── Status and docs pages ───────────────────────────────────────────── */
.page-head {
  padding: calc(var(--header-h) + 72px) 0 36px;
}
.page-head .lead {
  max-width: 640px;
}
.page-head.center {
  text-align: center;
  min-height: 70vh;
  padding-top: calc(var(--header-h) + 140px);
}
.page-head.center .lead {
  margin-inline: auto;
}
.page-head .actions {
  margin-top: 28px;
}
.page-body {
  padding-bottom: 120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.panel {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.overall {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.overall .big {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 600;
}
.overall .dot {
  width: 12px;
  height: 12px;
}
.overall-up {
  text-align: right;
}
.overall-up .k {
  font-size: 13px;
  color: var(--faint);
}
.overall-up .v {
  font-family: var(--mono);
  font-size: 28px;
}
.uptime-strip {
  margin-top: 26px;
  display: flex;
  gap: 3px;
  height: 40px;
  align-items: stretch;
}
.uptime-strip i {
  flex: 1;
  min-width: 0;
  border-radius: 3px;
  background: var(--surface-3);
}
.uptime-strip i[data-tone='ok'] {
  background: var(--green);
  opacity: 0.85;
}
.uptime-strip i[data-tone='warn'] {
  background: var(--amber-dot);
}
.uptime-strip i[data-tone='bad'] {
  background: var(--red);
}
.strip-legend {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--faint);
}
.panel-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--faint);
}
.section-title {
  margin: 24px 0 12px;
  font-size: 20px;
}
.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.models {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.models th {
  text-align: left;
  font-weight: 500;
  color: var(--faint);
  font-size: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.models td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.models tr:last-child td {
  border-bottom: 0;
}
.models .num {
  text-align: right;
  font-family: var(--mono);
}
.table-note {
  font-size: 13px;
  margin: 12px 0 0;
  color: var(--faint);
}
.docs {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  padding-bottom: 120px;
}
.docs-nav {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
  display: grid;
  gap: 2px;
  font-size: 14px;
  max-height: calc(100vh - var(--header-h) - 56px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.docs-nav a {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--muted);
}
.docs-nav a:hover {
  background: var(--surface-3);
  color: var(--text);
}
.docs-body {
  min-width: 0;
}
.docs-body h2 {
  margin: 56px 0 0;
  font-size: 26px;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--header-h) + 28px);
}
.docs-body h2:first-child {
  margin-top: 0;
}
.docs-body p,
.docs-body li {
  color: var(--text-2);
  line-height: 1.8;
}
.docs-body a:not(.btn) {
  color: var(--violet-text);
}
.docs-body code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-3);
  overflow-wrap: anywhere;
}
.docs-body pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}
.docs-body .code-card {
  margin-top: 18px;
  box-shadow: none;
}
.docs-body .code-card pre {
  padding: 16px 20px 18px;
  font-size: 14px;
}
.docs-body .table-wrap {
  margin-top: 16px;
}
.docs-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.docs-body th,
.docs-body td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.docs-body tr:last-child td {
  border-bottom: 0;
}
.docs-body th {
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}
.docs-body .actions {
  margin-top: 28px;
}
.callout {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--violet-line);
  background: var(--violet-soft);
  color: var(--text-2);
  font-size: 15px;
}

/* ── Pricing page ────────────────────────────────────────────────────── */
.pz-head {
  padding-bottom: 40px;
}
.pz-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}
.pz-facts > div {
  min-width: 150px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.pz-facts dt {
  font-size: 14px;
  color: var(--muted);
}
.pz-facts dd {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.pz-facts > div:last-child dd {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--violet-text);
}
.pz {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 120px;
}
.pz-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  display: grid;
  gap: 14px;
}
.pz-search {
  position: relative;
  display: block;
}
.pz-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}
.pz-search input {
  width: 100%;
  height: 42px;
  padding: 0 12px 0 36px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pz-search input::placeholder {
  color: var(--faint);
}
.pz-search input:focus {
  border-color: var(--violet-line);
  box-shadow: 0 0 0 3px var(--violet-soft);
}
.pz-nav {
  display: grid;
  gap: 2px;
}
.pz-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.pz-nav a:hover,
.pz-nav a[aria-current='true'] {
  background: var(--surface-3);
  color: var(--text);
}
.pz-nav a[hidden] {
  display: none;
}
.pz-nav em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
}
.pz-logo {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
}
.pz-logo svg {
  width: 18px;
  height: 18px;
}
.pz-unit {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
.pv {
  margin-bottom: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.pv[hidden] {
  display: none;
}
.pv-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.pv-head > div {
  min-width: 0;
}
.pv-head .pz-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.pv-head .pz-logo svg {
  width: 22px;
  height: 22px;
}
.pv-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.pv-head p {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.pv-count {
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.pt-wrap {
  overflow-x: auto;
}
.pt {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.pt th {
  text-align: left;
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
  padding: 14px 24px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.pt td {
  min-width: 0;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.pt tbody tr:last-child td {
  border-bottom: 0;
}
.pt tbody tr {
  transition: background-color 0.15s ease;
}
.pt tbody tr:hover {
  background: var(--surface-2);
}
.pt tr[hidden] {
  display: none;
}
.pt th:first-child {
  width: 44%;
}
.pt .num {
  text-align: right;
  white-space: nowrap;
}
.pt-video th:first-child {
  width: 40%;
}
.pm-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.pm-id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 3px 0 0;
  padding: 0;
  border: 0;
  background: none;
  max-width: 100%;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.pm-id code {
  min-width: 0;
  font-family: var(--mono);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.pm-id svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.pm-id:hover,
.pm-id:focus-visible {
  color: var(--violet-text);
}
.pm-id:hover svg,
.pm-id:focus-visible svg,
.pt tbody tr:hover .pm-id svg {
  opacity: 1;
}
.pm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.pm-tags:empty {
  display: none;
}
.pm-tags span {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
  background: var(--surface-3);
  color: var(--muted);
}
.pm-tags [data-k='flagship'] {
  background: var(--violet-soft);
  color: var(--violet-text);
}
.pm-tags [data-k='tiered'] {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--muted);
}
.pt .ctx {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-2);
}
.pt .num b {
  display: block;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.pt .num s {
  display: block;
  margin-top: 1px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
}
.pz-na {
  color: var(--faint);
}
.pz-reference,
.pz-discount,
.pm-availability {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  white-space: normal;
  color: var(--muted);
}
.pz-discount,
.pm-availability {
  color: var(--violet-text);
}
.pz-sale-pending,
.pz-live-state {
  font-size: 14px;
  color: var(--muted);
}
.pz-live-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pz-live-toolbar .pz-unit { margin: 0; }
.pz-live-toolbar [aria-pressed='true'] { background: var(--violet-soft); color: var(--violet-text); }
.product-empty {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 28px;
}
.product-empty > svg { width: 32px; height: 32px; color: var(--violet-text); }
.product-empty p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.pv-note {
  margin: 0;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.pz-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
}
.pz-notes {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.pm-kind,
.pm-note {
  display: block;
  max-width: 420px;
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  white-space: normal;
}
.pz-special-rates {
  font-size: 14px;
  line-height: 1.8;
  white-space: normal;
}
.pz-special-rates span {
  display: block;
}
.pz-special-rates b {
  font-size: 16px;
  font-weight: 600;
}
.pz-special-rates s {
  color: var(--muted);
  font-size: 14px;
}
.pz-cta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 32px;
  border-radius: 20px;
  border: 1px solid var(--violet-line);
  background:
    radial-gradient(80% 140% at 100% 0%, var(--aurora-2), transparent 60%),
    radial-gradient(70% 120% at 0% 100%, var(--aurora-1), transparent 60%),
    var(--surface);
}
.pz-cta h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.pz-cta p {
  margin: 6px 0 0;
  color: var(--muted);
}
.pz-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 1080px) {
  .pz {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .pz-side {
    position: static;
  }
  .pz-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .pz-nav::-webkit-scrollbar {
    display: none;
  }
  .pz-nav a {
    flex: none;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 999px;
    padding: 6px 12px 6px 8px;
  }
}
@media (max-width: 900px) {
  .pz-facts > div {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 14px;
  }
  .pz-facts dd {
    font-size: 20px;
  }
  .pv-head {
    padding: 16px;
  }
  .pt thead {
    display: none;
  }
  .pt,
  .pt tbody {
    display: block;
  }
  .pt tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }
  .pt tbody tr:last-child {
    border-bottom: 0;
  }
  .pt td {
    padding: 0;
    border: 0;
  }
  .pt td.pm,
  .pt td.ctx {
    grid-column: 1 / -1;
  }
  .pt td.ctx::before,
  .pt td.num::before {
    content: attr(data-label);
    display: block;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--muted);
  }
  .pt td.ctx::before {
    display: inline;
    margin-right: 8px;
  }
  .pt .num {
    text-align: left;
  }
  .pt-video tbody tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pv-note {
    padding: 14px 16px;
  }
  .pz-cta {
    padding: 22px 20px;
  }
}
@media (max-width: 360px) {
  .pt tbody tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Docs: groups, step cards, illustrated walkthroughs, FAQ ─────────── */
.docs-group {
  margin: 18px 0 4px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.docs-group:first-child {
  margin-top: 0;
}
.docs-nav a[aria-current='true'] {
  background: var(--violet-soft);
  color: var(--violet-text);
}
.docs-body h3 {
  margin: 36px 0 0;
  font-size: 19px;
  letter-spacing: -0.01em;
  scroll-margin-top: calc(var(--header-h) + 28px);
}
.docs-body h2 + p,
.docs-body h3 + p {
  margin-top: 10px;
}
.step-cards {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.step-cards li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.step-cards b {
  font-size: 16px;
  color: var(--text);
}
.step-cards span:not(.step-no) {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.step-cards a {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
}
.step-cards a svg {
  width: 14px;
  height: 14px;
}
.step-no,
.fig-n {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 0 0 4px var(--violet-soft);
}
.fig-n {
  margin-left: 8px;
  vertical-align: middle;
}
.fig {
  margin: 18px 0 0;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 90% at 100% 0%, var(--aurora-1), transparent 70%),
    var(--bg-alt);
}
.fig figcaption {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
}
.win {
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-size: 13px;
  color: var(--text-2);
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.win-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-2);
}
.win-bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
}
.win-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 190px;
}
.win-side {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 12px 10px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
}
.win-side span {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
}
.win-side .is-on {
  background: var(--violet-soft);
  color: var(--violet-text);
  font-weight: 600;
}
.win-side .fig-n {
  margin-left: auto;
}
.win-main {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px 18px;
  min-width: 0;
}
.win-form {
  padding: 18px;
  display: grid;
  gap: 12px;
}
.mk-head {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
}
.mk-head b:first-child {
  font-size: 15px;
  color: var(--text);
  margin-right: auto;
}
.mk-btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--violet);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.mk-btn.is-ghost {
  background: transparent;
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.is-target {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}
.mk-table {
  display: grid;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.mk-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.2fr 0.8fr;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
}
.mk-row:last-child {
  border-bottom: 0;
}
.mk-th {
  font-size: 11.5px;
  color: var(--faint);
  background: var(--surface-2);
}
.mk-ok {
  color: var(--green);
}
.mk-field {
  display: grid;
  gap: 6px;
}
.mk-field label {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.mk-input {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
  white-space: nowrap;
}
.mk-input.is-muted {
  color: var(--faint);
}
.fig-readable .win,
.fig-readable .mk-field label,
.fig-readable .mk-note,
.fig-readable figcaption {
  font-size: 14px;
}
.fig-readable .mk-input {
  white-space: normal;
  overflow-wrap: anywhere;
}
.mk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mk-chip {
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--surface-3);
  font-family: var(--mono);
  font-size: 11.5px;
}
.mk-hint {
  margin: 2px 0 0 !important;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--amber) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
}
.mk-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}
.mk-foot .fig-n {
  margin-left: 4px;
}
.win-col {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}
.mk-note {
  margin: 0 !important;
  font-family: var(--mono);
  font-size: 11.5px !important;
  line-height: 1.6 !important;
  color: var(--green) !important;
  overflow-wrap: anywhere;
}
.mk-list {
  display: grid;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  overflow: hidden;
}
.mk-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
}
.mk-list span:last-child {
  border-bottom: 0;
}
.mk-list span::before {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.mk-list .is-checked::before {
  background: var(--violet);
  box-shadow: none;
}
.mk-inline {
  margin-left: auto;
  height: 24px;
  font-size: 12px;
}
.mk-caret {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--faint);
  border-bottom: 1.5px solid var(--faint);
  transform: translateY(-2px) rotate(45deg);
}
.mk-foot .mk-btn.is-ghost {
  margin-right: auto;
}
.fig-steps {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: fig;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.fig-steps li {
  counter-increment: fig;
  position: relative;
  padding-left: 34px;
}
.fig-steps li::before {
  content: counter(fig);
  position: absolute;
  left: 0;
  top: 3px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet-text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}
.dkv {
  margin-top: 16px;
  display: grid;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.dkv > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.dkv > div:last-child {
  border-bottom: 0;
}
.dkv span {
  font-size: 13px;
  color: var(--faint);
}
.dkv code {
  justify-self: start;
  overflow-wrap: anywhere;
}
.dkv-copy {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.dkv-copy svg {
  width: 14px;
  height: 14px;
  color: var(--faint);
}
.dkv-copy:hover svg {
  color: var(--violet-text);
}
.code-name {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.doc-checks {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.doc-checks li {
  position: relative;
  padding: 14px 16px 14px 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.doc-checks li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1.5px var(--green);
}
.doc-checks li::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 22px;
  width: 6px;
  height: 4px;
  border-left: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: rotate(-45deg);
}
.doc-checks b {
  color: var(--text);
}
.faq {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}
.faq details {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.faq summary {
  position: relative;
  padding: 14px 44px 14px 18px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--faint);
  border-bottom: 1.5px solid var(--faint);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq details p {
  margin: 0;
  padding: 0 18px 16px;
}
/* Home FAQ shares the documentation accordion; other home sections stay intact. */
.home-faq {
  padding: 88px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.home-faq h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.home-faq .faq {
  max-width: 880px;
  margin: 32px auto 0;
}
.home-faq summary {
  min-height: 56px;
  font-size: 16px;
  line-height: 1.6;
}
.home-faq details p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.home-faq .faq-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  padding-bottom: 12px;
}
.home-faq .faq-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--violet-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 760px) {
  .home-faq { padding: 64px 0; }
  .home-faq .lead { font-size: 16px; }
}
.err-table td:first-child {
  white-space: nowrap;
  font-weight: 600;
}
@media (max-width: 760px) {
  .step-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .fig {
    padding: 14px;
  }
  .win-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .win-side {
    display: none;
  }
  .mk-row {
    grid-template-columns: 1.2fr 0.9fr 1.3fr;
  }
  .mk-row span:nth-child(4) {
    display: none;
  }
  .mk-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dkv > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

/* ── Enterprise page ─────────────────────────────────────────────────── */
.ent-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 32px;
}
.ent-hero h1 {
  margin: 16px 0 0;
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.ent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.ent-hero-visual .entcard {
  max-width: 460px;
  margin-left: auto;
}
.ent-sec {
  padding-top: 72px;
}
.ent-last {
  padding-bottom: 120px;
}
.ent-h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.03em;
}
.ent-sub {
  margin: 10px 0 0;
  color: var(--muted);
}
.ent-cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ent-card {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.ent-card b {
  display: block;
  margin-top: 16px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.ent-card p {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}
.ent-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--violet-soft);
  color: var(--violet);
}
.ent-ico svg {
  width: 22px;
  height: 22px;
}
.ent-tiers {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.ent-tier {
  position: relative;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.ent-tier.is-hot {
  border-color: var(--violet-line);
  background:
    radial-gradient(90% 70% at 100% 0%, var(--aurora-1), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-md);
}
.ent-tier-k {
  font-size: 13px;
  font-weight: 600;
  color: var(--violet-text);
}
.ent-tier b {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ent-tier p {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.ent-tier ul {
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
}
.ent-tier li {
  position: relative;
  padding-left: 18px;
}
.ent-tier li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 7px;
  width: 7px;
  height: 4px;
  border-left: 1.5px solid var(--violet);
  border-bottom: 1.5px solid var(--violet);
  transform: rotate(-45deg);
}
.ent-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}
.ent-steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: none;
}
.ent-steps li {
  display: grid;
  gap: 6px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.ent-steps i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-style: normal;
  font-family: var(--mono);
  font-weight: 600;
  margin-bottom: 6px;
}
.ent-steps b {
  font-size: 16px;
}
.ent-steps span {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
@media (max-width: 1080px) {
  .ent-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .ent-hero-visual .entcard {
    margin-left: 0;
  }
  .ent-tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ent-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .ent-hero {
    padding-top: calc(var(--header-h) + 40px);
  }
  .ent-actions .btn {
    max-width: 100%;
    min-height: 46px;
    height: auto;
    padding-block: 12px;
    white-space: normal;
    text-align: center;
  }
  .ent-sec {
    padding-top: 52px;
  }
  .ent-cards,
  .ent-tiers,
  .ent-tiles,
  .ent-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .pager {
    display: none;
  }
}
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }
  .nav-actions {
    margin-left: auto;
  }
  .nav-inner {
    padding: 0 24px;
  }
  .split,
  .ent-split,
  .route-foot,
  .sd-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .split.reverse .sec-copy {
    order: 0;
  }
  .route-col {
    width: 170px;
  }
  .node .grow {
    font-size: 13px;
  }
}
@media (max-width: 760px) {
  :root {
    --header-h: 58px;
  }
  .container,
  .marquee {
    width: calc(100% - 32px);
  }
  .nav-inner {
    padding: 0 16px;
    gap: 12px;
  }
  .wordmark {
    font-size: 28px;
  }
  .nav-actions {
    gap: 2px;
  }
  .nav-signin,
  .nav-console,
  .nav-divider,
  .nav-lang span {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .ann {
    position: static;
  }
  .ann-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: calc(var(--header-h) + 8px);
    width: auto;
  }
  .nav.is-open .nav-panel {
    display: grid;
    gap: 2px;
    padding: 8px 16px 18px;
    border-top: 1px solid var(--line);
  }
  .nav-panel > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 4px;
    font-size: 16px;
    color: var(--text-2);
    border-bottom: 1px solid var(--line);
  }
  .nav-panel > a svg {
    width: 16px;
    height: 16px;
    color: var(--faint);
  }
  .nav-panel-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
  }
  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 52px) 0 48px;
  }
  .hero h1 {
    font-size: clamp(36px, 10.4vw, 48px);
    letter-spacing: -0.04em;
  }
  .hero-sub {
    font-size: 16px;
    line-height: 1.75;
  }
  .hero-cta {
    width: 100%;
  }
  .hero-cta .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 16px;
  }
  .api-chip {
    max-width: 100%;
    gap: 8px;
    padding-left: 10px;
  }
  .api-k {
    display: none;
  }
  .api-chip code {
    font-size: 12.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .marquee {
    margin-top: 52px;
  }
  .marquee-group {
    gap: 40px;
    padding: 0 20px;
  }
  .marquee-group li {
    font-size: 18px;
  }
  .marquee-group svg {
    width: 26px;
    height: 26px;
  }
  .page {
    min-height: 0;
    padding: 72px 0;
  }
  .lead {
    font-size: 16px;
  }
  /* Upright stage: clients on top, the gateway, providers below. */
  .route-stage {
    height: auto;
    margin-top: 28px;
    flex-direction: column;
    justify-content: flex-start;
  }
  .route-col {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
  .route-col[data-providers] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
  }
  .route-stage .node {
    height: auto;
    min-height: 62px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px 2px;
    border-radius: 10px;
    text-align: center;
  }
  .route-stage .node .grow {
    flex: none;
    width: 100%;
    font-size: 10.5px;
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
  }
  .route-stage .core {
    margin: 82px 0 58px;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .metric {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
  }
  .metric + .metric {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .metric .v {
    font-size: 22px;
    order: 2;
  }
  .code-tabs .lights {
    display: none;
  }
  .sd-thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }
  .sd-thumb {
    width: auto;
  }
  .lr {
    grid-template-columns: 60px minmax(0, 1fr) 64px;
  }
  .lr > :nth-child(2),
  .lr > :nth-child(4) {
    display: none;
  }
  .keycard {
    margin-right: 0;
  }
  .kv {
    grid-template-columns: 96px 1fr;
  }
  .guard-visual {
    padding-bottom: 0;
  }
  .alert-card {
    position: relative;
    left: auto;
    margin-top: 12px;
  }
  .tiles,
  .steps {
    grid-template-columns: 1fr;
  }
  .mock {
    padding: 18px;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .docs {
    grid-template-columns: minmax(0, 1fr);
  }
  .docs-nav {
    display: none;
  }
  .page-head {
    padding-top: calc(var(--header-h) + 48px);
  }
  .page-head.center {
    padding-top: calc(var(--header-h) + 96px);
  }
}
/* Reduced motion: entrances and smooth scrolling stop; the ambient loops keep
   running slowly, as on the original site (the owner wants them visible). */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .ledger .lr:not(.lh),
  .alert-card {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none !important;
  }
  .bar i {
    width: 43.2%;
    transition: none;
  }
  .stepper::after {
    width: 66.8%;
    transition: none;
  }
  .marquee-track {
    animation-duration: 60s;
  }
  .endpoints-track {
    animation-duration: 50s;
  }
}

@media (max-width: 640px) {
  .uptime-strip { gap: 1px; }
}

.page-body > * { min-width: 0; }
