/* 3SAPI public palette: near-black, quiet gray and one restrained blue. */

:root {
  --void: #020303;
  --panel: rgba(7, 14, 35, 0.78);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);

  --text: #f5f7fb;
  --muted: #b9b9b9;
  --dim: #737985;

  --magenta: #0c56cf;
  --cyan: #7ea9f4;
  --violet: #093196;

  --radius: 12px;
  --radius-lg: 16px;
  --shell: 1180px;
  --gutter: 32px;

  --font-sans: "Kumbh Sans", "Geist", -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
::selection { background: #8d245e; color: #fff; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Static CSS backdrop: no canvas, WebGL, timers or pointer listeners. */
.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 50% at 78% 22%, rgba(12, 86, 207, 0.22), transparent 72%),
    linear-gradient(135deg, #020303 0%, #030711 54%, #071d6f 140%);
}

/* ---------------------------------------------------------------------- nav */
/* 结构与 New API 控制台顶栏一致：品牌 / 菜单 / 语言·主题·通知·登录。
   顶栏常驻深色毛玻璃：首屏压在黑洞上，滚下去压在亮色内容区上，两种背景都可读，
   所以它不跟随亮色主题（黑洞本身就是深色主视觉，首屏刻意保持深色）。 */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 180ms ease, border-color 180ms ease;
  border-bottom: 0.5px solid transparent;
}

.topbar.scrolled {
  background: rgba(8, 10, 16, 0.72);
  border-bottom-color: var(--line);
}

.topbar-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: -0.01em;
  flex: none;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--magenta), var(--violet) 55%, var(--cyan));
  box-shadow: 0 0 14px rgba(252, 115, 191, 0.5);
  flex: none;
}

.menu {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.menu a {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.menu a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.menu a[data-nav="home"],
.menu a[aria-current] { color: var(--text); }

/* 菜单和右侧动作之间的细分隔线 */
.rule {
  width: 1px;
  height: 16px;
  margin: 0 8px;
  background: var(--line-strong);
  flex: none;
}

.actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

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

.icon-btn svg { width: 19px; height: 19px; }

/* 主题按钮：两个图标叠在一起，靠 data-theme 决定显哪一个 */
.i-sun, .i-moon { grid-area: 1 / 1; transition: opacity 200ms ease, transform 200ms ease; }

html[data-theme="dark"] .i-sun  { opacity: 0; transform: rotate(-90deg) scale(0.7); }
html[data-theme="dark"] .i-moon { opacity: 1; transform: none; }
html[data-theme="light"] .i-sun  { opacity: 1; transform: none; }
html[data-theme="light"] .i-moon { opacity: 0; transform: rotate(90deg) scale(0.7); }

#theme-btn { display: grid; place-items: center; }

.cta {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  padding: 7px 15px;
  border: 0.5px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease;
}

.cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

/* -------------------------------------------------------- 语言下拉 / 窄屏菜单 */

.pop-wrap { position: relative; }

.pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 132px;
  padding: 5px;
  border: 0.5px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(16, 19, 29, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.pop button {
  display: block;
  width: 100%;
  padding: 7px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.pop button:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.pop button[aria-checked="true"] { color: var(--text); }
.pop button[aria-checked="true"]::after { content: " ✓"; color: var(--cyan); }

.more-panel {
  padding: 6px var(--gutter) 14px;
  background: rgba(8, 10, 16, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--line);
}

.more-panel a {
  display: block;
  padding: 10px 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 0.5px solid var(--line);
}

.more-panel a:last-child { border-bottom: none; }
.more-panel a:hover { color: var(--text); }

.only-narrow { display: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------- 亮色主题 */
/* 黑洞是深色主视觉，首屏保持深色；只把内容区与卡片点亮。
   .hero 及其文字强制走浅色，否则深色文字会压在黑洞上读不出来。 */

html[data-theme="light"] {
  --void: #f6f7fb;
  --panel: rgba(255, 255, 255, 0.82);
  --line: rgba(12, 16, 28, 0.10);
  --line-strong: rgba(12, 16, 28, 0.20);

  --text: #14161f;
  --muted: #5a6172;
  --dim: #868da0;
}

/* 内容区的深色衬底换成浅色，并让第一块从透明渐变过去，
   这样从深色首屏过渡到亮色内容不会有硬边。 */
html[data-theme="light"] .section::before {
  background: linear-gradient(180deg, transparent, rgba(246, 247, 251, 0.86) 14%, #f6f7fb);
}

html[data-theme="light"] .section-cta::before { background: rgba(246, 247, 251, 0.94); }

html[data-theme="light"] .card { box-shadow: 0 1px 2px rgba(12, 16, 28, 0.05); }
html[data-theme="light"] .glow { opacity: 0.18; }

html[data-theme="light"] .btn-ghost {
  background: rgba(12, 16, 28, 0.04);
  border-color: rgba(12, 16, 28, 0.18);
}
html[data-theme="light"] .btn-ghost:hover { background: rgba(12, 16, 28, 0.08); }

/* 首屏固定在深色上，文字颜色不跟随主题 */
html[data-theme="light"] .hero { color: #eef1f8; }
html[data-theme="light"] .hero .lede { color: #a9b0c3; }
html[data-theme="light"] .hero .eyebrow { color: #a9b0c3; }
html[data-theme="light"] .hero .stats dt { color: #7e8598; }
html[data-theme="light"] .hero .hint { color: #7e8598; }
html[data-theme="light"] .hero .btn-ghost {
  color: #eef1f8;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.17);
}
html[data-theme="light"] .hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }

/* --------------------------------------------------------------------- hero */

.hero {
  position: relative;
  z-index: 10;
  /* 顶栏是 fixed，不再占据文档流，所以这里自己留出 64px 的高度 */
  min-height: 100vh;
  padding: 64px var(--gutter) 90px;
  display: flex;
  align-items: center;
  max-width: var(--shell);
  margin: 0 auto;
  pointer-events: none;
}

.hero-inner {
  max-width: 560px;
  pointer-events: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 9px var(--magenta);
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 .line { display: block; }

.grad {
  background: linear-gradient(101deg, var(--magenta) 0%, var(--violet) 48%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lede {
  margin: 0 0 30px;
  max-width: 460px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 180ms ease, filter 180ms ease, background 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(110deg, #a849e6, #eb4f9f 62%, #ff7096);
  color: #fff;
  font-weight: 650;
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }

.btn-lg { padding: 13px 30px; font-size: 15px; }

.stats {
  display: flex;
  gap: 40px;
  margin: 52px 0 0;
  padding: 0;
  flex-wrap: wrap;
}

.stats .stat { margin: 0; }

.stats dt {
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.stats dd {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.stats dd span {
  font-size: 17px;
  color: var(--cyan);
  margin-left: 1px;
}

.hint {
  margin: 42px 0 0;
  font-size: 12px;
  color: var(--dim);
}

/* ------------------------------------------------------------------ section */

.section {
  position: relative;
  z-index: 10;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 96px var(--gutter);
}

/* Give the reading sections an opaque-enough plate so the canvas behind
   never fights the copy. */
.section::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  background: linear-gradient(180deg, transparent, rgba(5, 6, 10, 0.82) 12%, rgba(5, 6, 10, 0.94));
  z-index: -1;
}

.section-eyebrow {
  margin: 0 0 14px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-lede {
  margin: 0 0 44px;
  max-width: 560px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------- grid */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card {
  grid-column: span 3;
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 0.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(14px);
  transition: border-color 220ms ease, transform 220ms ease;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.card-wide { grid-column: span 6; }

.card h3 {
  position: relative;
  margin: 0 0 9px;
  font-size: 15px;
  font-weight: 500;
}

.card p {
  position: relative;
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
}

.glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.3;
  top: -62px;
  right: -52px;
  pointer-events: none;
}

.glow-magenta { background: var(--magenta); }
.glow-cyan    { background: var(--cyan); }
.glow-violet  { background: var(--violet); }

.glow-center {
  width: 420px;
  height: 220px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  background: linear-gradient(101deg, var(--magenta), var(--violet) 50%, var(--cyan));
}

.pills {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.pill {
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 0.5px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #b9c0d2;
}

/* -------------------------------------------------------------------- steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: step;
}

.step {
  padding: 24px;
  border: 0.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(14px);
}

.step-no {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.step h3 {
  margin: 0 0 9px;
  font-size: 15px;
  font-weight: 500;
}

.step p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------------------------------------------------------------- cta block */

.section-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
}

.section-cta::before { background: rgba(5, 6, 10, 0.9); }

.section-cta h2 {
  position: relative;
  margin: 0 0 14px;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-cta p {
  position: relative;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 14.5px;
}

.cta-center { justify-content: center; }

/* ------------------------------------------------------------------- footer */

.foot {
  position: relative;
  z-index: 10;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 36px var(--gutter) 48px;
  border-top: 0.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--dim);
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.foot-brand .brand-mark {
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
  .card, .card-wide { grid-column: span 6; }
  .steps { grid-template-columns: 1fr; }

  /* 与 New API 一致：菜单收进汉堡面板，右侧的动作按钮保留 */
  .menu { display: none; }
  .only-narrow { display: inline-flex; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }

  .topbar-inner { height: 58px; gap: 8px; }
  .brand-name { display: none; }

  .hero {
    min-height: auto;
    padding: 96px var(--gutter) 64px;
  }

  .card, .card-wide { grid-column: span 12; }

  .stats { gap: 26px; margin-top: 38px; }
  .stats dd { font-size: 21px; }

  .section { padding: 68px var(--gutter); }

  .foot { padding: 28px var(--gutter) 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
  * { transition-duration: 1ms !important; }
}

/* 官网式首页布局：中置胶囊导航、左侧宣言、右侧黑洞。 */
:root { --shell: 1488px; --gutter: 36px; }

.topbar-inner {
  height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
}

.brand,
.menu,
.account-link {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(18, 18, 21, .67);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
  gap: 11px;
  padding: 8px 20px;
  border-radius: 999px;
  color: #f6f6f8;
  font-size: 16px;
  font-weight: 650;
}

.brand-mark {
  width: 17px;
  height: 17px;
  background: conic-gradient(from 25deg, #fd75c3, #873bff, #59dbee, #fd75c3);
  box-shadow: 0 0 14px rgba(190, 96, 255, .42);
}

.menu {
  justify-self: center;
  gap: 0;
  padding: 5px;
  border-radius: 999px;
}

.menu a {
  padding: 8px 19px;
  border-radius: 999px;
  color: #a5a3aa;
  font-size: 14px;
  font-weight: 550;
}

.menu a[aria-current] {
  background: rgba(141, 36, 94, .5);
  color: #f7f7f8;
}

.pop button[aria-checked="true"] { background: rgba(141, 36, 94, .5); }
.pop button[aria-checked="true"]::after { color: #f7aed7; }
:focus-visible { outline: 2px solid #d65da8; outline-offset: 3px; }

.actions {
  justify-self: end;
  margin: 0;
  gap: 7px;
  color: #dadbe1;
}

.account-link {
  padding: 8px 16px;
  border-radius: 999px;
  color: #f5f5f7;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 550;
}

.account-link:hover { background: rgba(255, 255, 255, .11); }
.account-menu { position: relative; display: flex; align-items: center; }
.account-menu [hidden] { display: none !important; }
.account-avatar {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  padding: 0;
  border: 1px solid rgba(254, 136, 214, .4);
  border-radius: 50%;
  background: linear-gradient(145deg, #8d2e77, #44204e);
  box-shadow: 0 0 25px rgba(184, 48, 139, .24);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.account-avatar:hover { box-shadow: 0 0 31px rgba(235, 73, 164, .4); }
.actions .icon-btn { color: #d1d0d5; }
.actions .icon-btn:hover { color: white; }

.hero {
  min-height: 100svh;
  padding-top: 150px;
  padding-bottom: 80px;
  align-items: flex-start;
}

.hero-inner { max-width: 610px; }

.eyebrow {
  gap: 10px;
  margin-bottom: 30px;
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(22, 22, 28, .7);
  color: #a6a2ab;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: .04em;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  background: linear-gradient(130deg, #59dbee, #fd75c3);
}

.hero h1 {
  margin-bottom: 24px;
  color: #fff;
  font-size: clamp(60px, 6vw, 92px);
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: 1.05;
}

.hero h1 .grad {
  background: linear-gradient(180deg, #fff 3%, #c5c3ca 78%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero .lede {
  max-width: 620px;
  margin-bottom: 32px;
  color: #a1a0a9;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.8;
}

.brand-statement {
  max-width: none;
  margin: -8px 0 14px;
  white-space: nowrap;
}

.brand-highlight {
  background: linear-gradient(110deg, #a849e6, #eb4f9f 62%, #ff7096);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 750;
}

.hero .btn-primary {
  gap: 20px;
  padding: 12px 23px;
  border-radius: 999px;
  background: linear-gradient(110deg, #a849e6, #eb4f9f 62%, #ff7096);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.hero .btn-primary:hover { filter: brightness(1.1); }
.hero .btn-primary::after { content: "↗"; font-size: 17px; font-weight: 400; }

.hero .stats {
  gap: 0;
  margin-top: 80px;
  color: #f5f5f7;
}

.hero .stat {
  min-width: 146px;
  padding: 0 29px;
  border-left: 1px solid rgba(255, 255, 255, .11);
}

.hero .stat:first-child { padding-left: 0; border: 0; }
.hero .stats dd { font-size: 31px; font-weight: 700; line-height: 1.2; }
.hero .stats dt { margin-top: 4px; font-size: 12px; letter-spacing: .04em; color: #777780; }

.hero .hint {
  position: absolute;
  right: var(--gutter);
  bottom: 15px;
  margin: 0;
  color: #76737b;
  font-size: 11px;
}

.section { padding-top: 110px; padding-bottom: 110px; }
.section-title { font-size: clamp(30px, 4vw, 52px); font-weight: 650; }
.section-eyebrow { color: var(--magenta); }

@media (max-width: 1024px) {
  .topbar-inner { grid-template-columns: 1fr auto; }
  .menu { display: flex; grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .topbar-inner { height: auto; min-height: 64px; padding-block: 8px; }
  .hero-inner { max-width: 560px; }
  .hero h1 { font-size: clamp(54px, 7vw, 78px); }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .topbar-inner { height: auto; gap: 8px; }
  .brand { padding: 7px 11px; }
  .brand-name { display: inline; font-size: 13px; }
  .actions { gap: 2px; }
  .actions #theme-btn { display: none; }
  .account-link { padding: 7px 10px; font-size: 11px; }
  .hero { min-height: 100svh; padding-top: 125px; padding-bottom: 65px; }
  .hero h1 { font-size: clamp(46px, 12vw, 70px); }
  .hero .lede { font-size: 15px; }
  .hero .stats { margin-top: 56px; }
  .hero .stat { min-width: 0; padding: 0 14px; }
  .hero .stats dd { font-size: 22px; }
  .hero .stats dt { font-size: 10px; }
  .hero .hint { display: none; }
}

@media (max-width: 420px) {
  .brand-name { display: none; }
  .actions #lang-btn { display: none; }
}

/* Refinements to the hero requested for the integrated New API homepage. */
.hero { padding-top: 195px; }
.hero h1 { font-size: clamp(54px, 5.4vw, 80px); }
.hero .lede { max-width: 580px; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.72; }

/* Keep the 3S brand statement on one desktop line; the regular lede remains responsive. */
.hero .brand-statement {
  max-width: none;
  white-space: nowrap;
}

/* Homepage modules follow the official site's rhythm: ecosystem, trust,
   illustrated features, three steps, final call to action. */
.section-heading { text-align: center; margin-bottom: 46px; }
.section-heading .section-lede { margin: 12px auto 0; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.2; }

.ecosystem {
  position: relative;
  z-index: 10;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 72px var(--gutter) 88px;
}
.ecosystem::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--gutter));
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 10, .9) 20%, #05060a);
}
.ecosystem .section-heading { margin-bottom: 35px; }
.ecosystem .section-heading h2 { font-size: clamp(22px, 2.5vw, 30px); }
.logo-rail {
  display: flex;
  gap: 12px;
  overflow: auto hidden;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
  padding: 12px 20px;
}
.logo-rail::-webkit-scrollbar { display: none; }
.logo-rail { justify-content: center; flex-wrap: wrap; gap: 20px 34px; }
.logo-rail .eco-logo {
  display: block;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #8e8a94;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
  transition: background 200ms ease, transform 200ms ease;
}
.logo-rail .eco-logo:hover { background: #d2cdd6; transform: translateY(-3px); }
.logo-rail span:not(.eco-logo) {
  flex: 0 0 auto;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(23,22,30,.74);
  color: #aaa9b4;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.trust { padding-top: 94px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(19,18,25,.55);
}
.trust-grid > div {
  min-height: 110px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #94929c;
  font-size: clamp(14px, 1.5vw, 19px);
  font-weight: 650;
  text-align: center;
  transition: color 220ms ease, background 220ms ease;
}
.trust-grid > div:nth-child(3n) { border-right: 0; }
.trust-grid > div:nth-last-child(-n+3) { border-bottom: 0; }
.trust-grid > div:hover { color: #f5f0f7; background: rgba(255,255,255,.035); }

.features { padding-top: 115px; }
.feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.feature-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  background: rgba(20,19,28,.72);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}
.feature-api { grid-column: span 4; }
.feature-models { grid-column: span 8; }
.feature-providers { grid-column: span 7; }
.feature-analytics { grid-column: span 5; }
.feature-visual {
  position: relative;
  min-height: 260px;
  margin: 18px 18px 0;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  background: radial-gradient(ellipse at 70% 12%, rgba(160,74,232,.16), transparent 54%), #111119;
}
.feature-copy { padding: 24px 30px 30px; margin-top: auto; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 13px;
  border: 1px solid rgba(251,115,191,.24);
  border-radius: 10px;
  color: #f67bbd;
  background: rgba(251,115,191,.08);
  font-size: 19px;
}
.feature-copy h3 { margin: 0 0 8px; font-size: 20px; font-weight: 650; }
.feature-copy p { max-width: 540px; margin: 0; color: #a5a0ae; font-size: 14px; }
.feature-copy a { display: inline-block; margin-top: 18px; color: #f6a0d0; text-decoration: none; font-size: 13px; }
.feature-copy a:hover { color: #fff; }

.endpoint-visual { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: inherit; text-decoration: none; }
.endpoint-visual:hover { border-color: rgba(252,115,191,.34); }
.visual-kicker { color: #f18ec8; font-size: 11px; letter-spacing: .14em; }
.endpoint-visual strong { font-size: 22px; line-height: 1.3; }
.endpoint-visual > span:nth-of-type(2) { color: #8e8b9b; font-size: 13px; }
.endpoint-visual code {
  max-width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(249,121,190,.22);
  border-radius: 9px;
  background: #201425;
  color: #f2a6d2;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.endpoint-lines { display: flex; gap: 7px; margin-top: auto; opacity: .6; }
.endpoint-lines i { display: block; width: 48px; height: 3px; border-radius: 3px; background: linear-gradient(90deg,#a849e6,#eb4f9f); }
.endpoint-lines i:nth-child(2) { width: 23px; opacity: .65; }
.endpoint-lines i:nth-child(3) { width: 74px; opacity: .3; }

.model-visual { background: radial-gradient(ellipse at 20% 20%, rgba(120,70,210,.15), transparent 58%), #101016; }
.mock-search { display: flex; align-items: center; gap: 8px; max-width: 540px; margin: 0 auto 14px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: #a5a0ae; font-size: 13px; }
.mock-search:focus-within { border-color: rgba(252,115,191,.58); box-shadow: 0 0 0 3px rgba(252,115,191,.1); }
.mock-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #eee8f0; font: inherit; }
.mock-search input::placeholder { color: #85808c; }
.mock-models { display: grid; max-width: 540px; margin: auto; }
.mock-models button,.mock-models span { display: flex; width: 100%; justify-content: space-between; gap: 20px; padding: 9px 12px; border: 0; border-bottom: 1px solid rgba(255,255,255,.05); background: transparent; color: #cbc5d0; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.mock-models button:hover { background: rgba(252,115,191,.08); }
.mock-models em { color: #85808c; font-style: normal; }
.mock-models b { color: #776e80; font-weight: 500; }

.provider-visual { min-height: 280px; display: grid; place-items: center; isolation: isolate; background: radial-gradient(circle at center,rgba(182,66,214,.15),transparent 52%),#101016; }
.provider-core { z-index: 2; display: grid; place-items: center; width: 90px; height: 90px; border: 1px solid rgba(250,109,196,.5); border-radius: 25px; background: linear-gradient(140deg,#2e1740,#201725); color: #fff; text-align: center; line-height: 1.1; font-weight: 750; box-shadow: 0 0 45px rgba(213,69,180,.2); }
.provider-links { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; }
.provider-links path { fill: none; stroke: rgba(101,219,238,.8); stroke-width: .42; }
.provider-node { position: absolute; z-index: 1; width: 42px; height: 42px; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.provider-node::after { content: ""; position: absolute; inset: 22%; background: var(--provider-color); -webkit-mask: var(--provider-logo) center / contain no-repeat; mask: var(--provider-logo) center / contain no-repeat; }
.p1 { top: 22%; left: 20%; }.p2 { top: 14%; left: 50%; animation-delay: -2s; }.p3 { top: 22%; left: 80%; animation-delay: -4s; }.p4 { top: 52%; left: 16%; animation-delay: -3s; }.p5 { top: 52%; left: 84%; animation-delay: -5s; }.p6 { top: 82%; left: 30%; animation-delay: -1s; }.p7 { top: 82%; left: 70%; animation-delay: -6s; }

.analytics-visual { display: flex; flex-direction: column; gap: 10px; background: radial-gradient(ellipse at 50% 100%,rgba(234,81,165,.14),transparent 60%),#101016; }
.mock-chart-head,.mock-chart-foot { display: flex; justify-content: space-between; gap: 12px; color: #958d9b; font-size: 12px; }
.mock-chart-head span:first-child { color: #ddd4e0; font-weight: 650; }
.ranking-wall { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ranking-wall li { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 32px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.06); border-radius: 8px; background: rgba(255,255,255,.035); color: #d9d0da; font-size: 12px; }
.ranking-wall b { color: #f18ec8; font-family: ui-monospace, monospace; font-size: 11px; }
.ranking-wall span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-wall small { color: #948c9c; font-size: 11px; }

@media (max-width: 900px) {
  .feature-api,.feature-models,.feature-providers,.feature-analytics { grid-column: span 6; }
  .feature-visual { min-height: 220px; }
}
@media (max-width: 720px) {
  .hero { padding-top: 158px; }
  .hero h1 { font-size: clamp(42px, 11vw, 62px); }
  .hero .lede { font-size: 14px; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .trust-grid > div:nth-child(2n) { border-right: 0; }
  .trust-grid > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .trust-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
  .trust-grid > div { min-height: 86px; }
  .feature-api,.feature-models,.feature-providers,.feature-analytics { grid-column: span 12; }
  .section-heading { margin-bottom: 32px; }
}
/* Transparent 3SAPI brand artwork; keep the original proportions. */
.brand-mark {
  display: block;
  width: 36px;
  height: 32px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}
.foot-brand .brand-mark { width: 28px; height: 24px; }
@media (max-width: 640px) {
  .brand-mark { width: 30px; height: 26px; }
  .hero .brand-statement { white-space: normal; }
  .glow-center { max-width: 100%; }
}

/* Final minimal system inspired by the selected editorial references. */
.topbar.scrolled {
  background: rgba(2, 3, 3, 0.9);
  border-bottom-color: rgba(185, 185, 185, 0.12);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.brand-mark { filter: none; }

.menu a[aria-current] { background: rgba(12, 86, 207, .34); }
.pop button[aria-checked="true"] { background: rgba(12, 86, 207, .24); }
.pop button[aria-checked="true"]::after { color: #7ea9f4; }

.hero {
  min-height: 88svh;
  padding-top: 150px;
  padding-bottom: 100px;
}

.hero-inner { max-width: 720px; }
.hero h1 { font-size: clamp(58px, 7vw, 92px); letter-spacing: -.055em; }
.hero .lede { max-width: 660px; }
.hero .lede:not(.brand-statement) { opacity: .58; }

.hero h1 .grad {
  background: none;
  color: #7ea9f4;
  -webkit-text-fill-color: currentColor;
}

.hero .btn-primary,
.section-cta .btn-primary {
  border: 1px solid rgba(126, 169, 244, .24);
  border-radius: 999px;
  background: #0c56cf;
  box-shadow: 0 14px 40px -24px rgba(12, 86, 207, .9);
}

.brand-highlight {
  background: none;
  color: #7ea9f4;
  -webkit-text-fill-color: currentColor;
}

.eyebrow .dot { background: #7ea9f4; }

.account-avatar {
  border-color: rgba(126, 169, 244, .4);
  background: #093196;
  box-shadow: 0 0 25px rgba(12, 86, 207, .2);
}

.account-avatar:hover { box-shadow: 0 0 31px rgba(12, 86, 207, .36); }

::selection { background: #0c56cf; color: #fff; }
:focus-visible { outline-color: #7ea9f4; }

.hero .stats { margin-top: 64px; }
.hero .stats dd { font-weight: 600; }

.ecosystem::before,
.section::before,
.section-cta::before {
  background: linear-gradient(180deg, transparent, rgba(2, 3, 3, .92) 14%, #020303);
}

.feature-card {
  border-radius: 16px;
  border-color: rgba(185, 185, 185, .13);
  background: rgba(7, 11, 24, .82);
  box-shadow: none;
  backdrop-filter: none;
}

.feature-visual,
.model-visual,
.provider-visual,
.analytics-visual {
  border-color: rgba(185, 185, 185, .1);
  background: #050915;
}

.feature-icon {
  border-color: rgba(12, 86, 207, .35);
  color: #7ea9f4;
  background: rgba(12, 86, 207, .12);
}

.feature-copy a,
.visual-kicker,
.ranking-wall b { color: #7ea9f4; }
.feature-copy a:hover { color: #d8e5ff; }

.endpoint-visual code {
  border-color: rgba(12, 86, 207, .28);
  background: #07112c;
  color: #b9d0ff;
}

.endpoint-lines i { background: #0c56cf; }
.mock-search:focus-within { border-color: #0c56cf; box-shadow: 0 0 0 3px rgba(12, 86, 207, .12); }
.mock-models button:hover { background: rgba(12, 86, 207, .1); }

.provider-core {
  border-color: rgba(12, 86, 207, .55);
  background: #071d6f;
  box-shadow: 0 0 38px rgba(12, 86, 207, .18);
}

.provider-links path { stroke: rgba(126, 169, 244, .6); }

html[data-theme="light"] .page-backdrop {
  background:
    radial-gradient(50% 46% at 82% 18%, rgba(12, 86, 207, .12), transparent 72%),
    #f4f6fb;
}

html[data-theme="light"] :is(.hero, .ecosystem, .section, .foot) {
  color: #16192f;
}

html[data-theme="light"] .hero .lede { color: #626b82; }
html[data-theme="light"] .hero .stats { color: #16192f; }
html[data-theme="light"] .hero .stats dt { color: #626b82; }
html[data-theme="light"] .feature-card { background: rgba(255, 255, 255, .9); }

/* Skip layout and paint work for off-screen homepage sections. */
.ecosystem,
.section,
.foot {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

@media (max-width: 720px) {
  .hero { min-height: auto; padding-top: 140px; }
  .hero h1 { font-size: clamp(48px, 14vw, 68px); }
}
