/* cdnd.sh, the Chinese main site. Dark, engineered: rails, hairlines, one warm accent. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #07080a;
  --bg-raise: #0b0c0f;
  --panel: rgb(255 255 255 / 0.025);
  --panel-hi: rgb(255 255 255 / 0.05);
  --line: rgb(255 255 255 / 0.075);
  --line-hi: rgb(255 255 255 / 0.14);
  --fg: #ededef;
  --fg-2: #a0a0ab;
  --fg-3: #63636e;
  --accent: #f27d55;
  --accent-hi: #ffad8a;
  --accent-soft: rgb(242 125 85 / 0.12);
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 14px;
  --rail: min(1200px, 100% - 32px);
  --pad: clamp(20px, 4vw, 56px);
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--bg); }
body {
  margin: 0;
  color: var(--fg-2);
  font: 15px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: rgb(242 125 85 / 0.35); color: #fff; }
a { color: var(--fg); text-decoration: none; }
h1, h2, h3 { color: var(--fg); margin: 0; font-weight: 600; }
p { margin: 0; }
code {
  font: 0.88em var(--mono);
  color: var(--fg);
  background: var(--panel-hi);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}
.mono { font-family: var(--mono); }
.dim { color: var(--fg-3); }

/* ── Rails: one column of hairlines down the page, crosshairs where sections meet ── */
.wrap {
  position: relative;
  width: var(--rail);
  margin: 0 auto;
  padding-inline: var(--pad);
  border-inline: 1px solid var(--line);
}
.section { border-top: 1px solid var(--line); }
.section > .wrap { padding-block: clamp(72px, 9vw, 120px); }
.section > .wrap::before,
.section > .wrap::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 11px;
  height: 11px;
  background:
    linear-gradient(var(--line-hi), var(--line-hi)) center / 1px 100% no-repeat,
    linear-gradient(var(--line-hi), var(--line-hi)) center / 100% 1px no-repeat;
}
.section > .wrap::before { left: -6px; }
.section > .wrap::after { right: -6px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 550;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn.primary {
  background: var(--fg);
  color: #0a0a0b;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 8px 24px -8px rgb(255 255 255 / 0.25);
}
.btn.primary:hover { background: #fff; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.2), 0 10px 32px -8px rgb(242 125 85 / 0.55); }
.btn.ghost { color: var(--fg); background: var(--panel); border-color: var(--line-hi); }
.btn.ghost:hover { background: var(--panel-hi); border-color: rgb(255 255 255 / 0.24); }
.btn:active { transform: translateY(1px); }
.link-btn { color: var(--fg-2); font-size: 14px; padding: 0 6px; transition: color 0.2s; }
.link-btn:hover { color: var(--fg); }

/* ── Header ──────────────────────────────────────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}
.top.scrolled { background: rgb(7 8 10 / 0.72); border-color: var(--line); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.top-row {
  width: var(--rail);
  margin: 0 auto;
  padding-inline: var(--pad);
  height: 60px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -0.01em; color: var(--fg); }
.brand img { image-rendering: pixelated; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--fg-2); font-size: 14px; transition: color 0.2s; }
.nav a:hover { color: var(--fg); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; margin-top: -60px; padding-top: 60px; }
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 50% 0%, rgb(242 125 85 / 0.16), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(75% 70% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(72px, 10vw, 128px) clamp(56px, 6vw, 80px);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-hi);
  background: rgb(255 255 255 / 0.03);
  color: var(--fg-2);
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s;
}
.chip:hover { border-color: rgb(255 255 255 / 0.26); background: rgb(255 255 255 / 0.05); }
.chip .mono { color: var(--accent-hi); font-size: 11px; letter-spacing: 0.12em; }
.chip b { color: var(--fg); font: 500 13px var(--mono); }
.chip-arrow { color: var(--fg-3); transition: transform 0.2s; }
.chip:hover .chip-arrow { transform: translateX(2px); color: var(--fg); }
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(3); opacity: 0; } }

.hero-title {
  margin-top: 28px;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 650;
  background: linear-gradient(180deg, #fff 25%, rgb(255 255 255 / 0.58) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}
.lede { margin-top: 26px; max-width: 40em; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.85; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.cmd {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgb(0 0 0 / 0.35);
  color: var(--fg-2);
  font: 13px var(--mono);
  cursor: pointer;
  transition: border-color 0.2s;
  max-width: 100%;
}
.cmd:hover { border-color: var(--line-hi); }
.cmd span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd em { font-style: normal; color: var(--accent-hi); }
.cmd-p { color: var(--fg-3); }
.cmd-copy { flex: none; white-space: nowrap; padding: 3px 9px; border-radius: 6px; background: var(--panel-hi); color: var(--fg-2); font: 12px var(--sans); }
.deco { margin-top: 34px; font: 11px var(--mono); letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-3); }

/* ── Section heads ───────────────────────────────────────────────────────── */
.section-head { max-width: 720px; margin-bottom: 48px; }
.label { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 500 11px var(--mono); letter-spacing: 0.16em; color: var(--fg-3); }
.label span { color: var(--accent); }
.label::after { content: ""; width: 48px; height: 1px; background: linear-gradient(90deg, var(--line-hi), transparent); }
.section-head h2, .cta h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; letter-spacing: -0.03em; text-wrap: balance; }
.section-lede { margin-top: 16px; font-size: 16px; max-width: 40em; }
.hint { margin-top: 22px; font-size: 13.5px; color: var(--fg-3); }
.hint code { white-space: nowrap; }
.hint a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-hi); text-underline-offset: 3px; }

/* ── Spotlight: a soft light that follows the pointer over a panel ───────── */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / 0.05), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: -1;
}
.spot:hover::after { opacity: 1; }

/* ── 01 Console ──────────────────────────────────────────────────────────── */
.console {
  border: 1px solid var(--line-hi);
  border-radius: 16px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.035), rgb(255 255 255 / 0.01));
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.6), 0 50px 120px -40px rgb(242 125 85 / 0.22), inset 0 1px 0 rgb(255 255 255 / 0.06);
  overflow: hidden;
}
.console::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-hi), transparent);
  opacity: 0.7;
}
.console-bar { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--fg-3); }
.console-bar-right { margin-left: auto; }
.console-bar b { color: var(--fg); font-weight: 500; }
.console-body { display: grid; grid-template-columns: 1.45fr 1fr; }
.pane { padding: 20px 22px 22px; min-width: 0; }
.pane-side { border-left: 1px solid var(--line); }
.pane-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; font-size: 13px; color: var(--fg); }
.pane-head .dim { font-size: 11px; }
.pane-head-gap { margin-top: 28px; }

.stream { width: 100%; border-collapse: collapse; font: 12.5px/1 var(--mono); table-layout: fixed; }
.stream th { text-align: left; font: 500 11px var(--mono); color: var(--fg-3); padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.stream td { padding: 0; height: 36px; border-bottom: 1px solid rgb(255 255 255 / 0.04); color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stream tr:last-child td { border-bottom: 0; }
.stream th:nth-child(1) { width: 22%; }
.stream th:nth-child(2) { width: 24%; }
.stream th:nth-child(4), .stream th:nth-child(5) { width: 14%; }
.stream .num, .num { text-align: right; }
.stream .model { color: var(--fg); }
.stream .io b { color: var(--fg); font-weight: 400; }
.stream .cache { color: var(--accent-hi); }
.stream .st-ok { color: var(--ok); }
.stream .st-bad { color: var(--bad); }
.stream tr.fresh td { animation: fresh 1.6s ease-out; }
@keyframes fresh { from { background: rgb(242 125 85 / 0.14); } to { background: transparent; } }
.skel td i { display: block; height: 8px; width: 80%; border-radius: 4px; background: linear-gradient(90deg, var(--panel), var(--panel-hi), var(--panel)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.skel:nth-child(even) td i { width: 62%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.bars { display: block; width: 100%; height: 140px; }
.bars rect { fill: rgb(255 255 255 / 0.16); }
.bars rect.hot { fill: var(--accent); }
.bars line { stroke: var(--line); stroke-dasharray: 2 4; }
.axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10.5px; color: var(--fg-3); }

.mix { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; background: var(--panel); }
.mix i { display: block; height: 100%; background: var(--panel-hi); }
.mix-legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 12px; }
.mix-legend li { display: flex; align-items: center; gap: 10px; color: var(--fg-2); }
.mix-legend li i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.mix-legend li span:last-child { margin-left: auto; color: var(--fg); }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.kpi { padding: 20px 22px 18px; min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi-label { font-size: 12.5px; color: var(--fg-3); }
.kpi-value { margin-top: 6px; font: 500 clamp(22px, 2.4vw, 30px)/1.2 var(--mono); letter-spacing: -0.03em; color: var(--fg); white-space: nowrap; }
.kpi-value.ok { color: var(--ok); }
.kpi-value.accent { color: var(--accent-hi); }
.spark { display: block; width: 100%; height: 40px; margin-top: 14px; overflow: visible; }
.spark .line { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.kpi-foot { margin-top: 6px; font-size: 10.5px; color: var(--fg-3); }
.more { margin-top: 18px; text-align: right; font-size: 13.5px; }
.more a { color: var(--fg-2); transition: color 0.2s; }
.more a span { display: inline-block; margin-left: 6px; transition: transform 0.2s; }
.more a:hover { color: var(--fg); }
.more a:hover span { transform: translateX(3px); }

/* ── 02 Diagram ──────────────────────────────────────────────────────────── */
.diagram-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg-raise);
  background-blend-mode: normal;
  padding: clamp(16px, 3vw, 36px);
  overflow-x: auto;
}
.swipe { display: none; margin-top: 10px; text-align: center; font-size: 11px; color: var(--fg-3); }
.diagram { display: block; width: 100%; min-width: 760px; height: auto; font-family: var(--sans); }
.wires path { fill: none; stroke: rgb(255 255 255 / 0.16); stroke-width: 1.2; }
.wires .wire-off { stroke: rgb(251 191 36 / 0.35); stroke-dasharray: 3 5; }
.packets .pk-a { fill: var(--accent-hi); filter: drop-shadow(0 0 6px rgb(242 125 85 / 0.9)); }
.packets .pk-b { fill: #fff; filter: drop-shadow(0 0 5px rgb(255 255 255 / 0.7)); }
.node rect { fill: #0e0f13; stroke: var(--line-hi); stroke-width: 1; }
.node-gw rect { fill: #120e0d; stroke-width: 1.4; }
.node-off rect { stroke: rgb(251 191 36 / 0.35); stroke-dasharray: 3 4; fill: #0b0b0d; }
.t-title { fill: var(--fg); font-size: 16px; font-weight: 600; }
.t-mono { fill: var(--fg-2); font: 12px var(--mono); }
.t-small { fill: var(--fg-3); font-size: 12px; }
.t-label { fill: var(--fg-3); font: 11px var(--mono); letter-spacing: 0.14em; }
.t-accent { fill: var(--accent-hi); }
.t-dim { fill: var(--fg-3); font-size: 11px; }
.t-warn { fill: var(--warn); font-size: 11px; }
.dot-ok { fill: var(--ok); }
.dot-off { fill: var(--warn); }
.callout circle { fill: var(--bg); stroke: var(--accent); stroke-width: 1.2; }
.callout text { fill: var(--accent-hi); font: 600 11px var(--mono); }

.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border-top: 1px solid var(--line); }
.feature { padding: 28px 24px 0 0; }
.feature + .feature { padding-left: 24px; border-left: 1px solid var(--line); }
.feature-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent-hi); font-size: 11px; }
.feature h3 { margin-top: 16px; font-size: 16.5px; line-height: 1.45; letter-spacing: -0.01em; }
.feature p { margin-top: 10px; font-size: 14px; line-height: 1.8; }

/* ── 03 Quickstart ───────────────────────────────────────────────────────── */
.start-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { position: relative; display: flex; gap: 18px; padding-bottom: 26px; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 1px; background: linear-gradient(var(--line-hi), transparent); }
.step-n { flex: none; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line-hi); border-radius: 8px; background: var(--panel); color: var(--fg); font-size: 11.5px; }
.steps b { color: var(--fg); font-weight: 550; font-size: 15.5px; }
.steps p { margin-top: 4px; font-size: 14px; }
.steps a { text-decoration: underline; text-decoration-color: var(--line-hi); text-underline-offset: 3px; }

.term {
  border: 1px solid var(--line-hi);
  border-radius: var(--radius);
  background: #050607;
  box-shadow: 0 40px 100px -40px rgb(0 0 0 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.05);
  overflow: hidden;
}
.term-bar { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.term-dots { display: flex; gap: 7px; margin-right: 14px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2b31; }
.tab { height: 28px; padding: 0 12px; border: 1px solid transparent; border-radius: 7px; background: none; color: var(--fg-3); font: 12.5px var(--sans); cursor: pointer; transition: color 0.2s, background 0.2s; }
.tab:hover { color: var(--fg); }
.tab.active { color: var(--fg); background: var(--panel-hi); border-color: var(--line); }
.term-panel[hidden] { display: none; }
.term-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 0 22px; }
.term-head h3 { font: 500 11px var(--mono); letter-spacing: 0.12em; color: var(--fg-3); text-transform: uppercase; }
.copy { height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--fg-2); font: 12px var(--sans); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.copy:hover { color: var(--fg); border-color: var(--line-hi); }
.term pre { margin: 0; padding: 14px 22px 6px; font: 13.5px/2 var(--mono); color: var(--fg); overflow-x: auto; }
.c-k { color: #c792ea; }
.c-s { color: var(--accent-hi); }
.c-ok { color: var(--accent); }
.term-out { padding: 6px 22px 22px; font-size: 13px; color: var(--fg-2); }
.cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── 04 Matrix ───────────────────────────────────────────────────────────── */
.matrix { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.matrix li { display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto auto; column-gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); background: var(--panel); transition: background 0.2s; }
.matrix li:hover { background: var(--panel-hi); }
.matrix li:nth-child(odd) { border-right: 1px solid var(--line); }
.matrix li:nth-last-child(-n + 2) { border-bottom: 0; }
.matrix b { color: var(--fg); font-weight: 550; }
.m-desc { grid-column: 2; font-size: 13.5px; color: var(--fg-3); }
.tag { grid-row: span 2; align-self: center; justify-self: start; padding: 3px 8px; border-radius: 6px; font-size: 11px; letter-spacing: 0.04em; }
.tag.ok { color: var(--ok); background: rgb(74 222 128 / 0.08); border: 1px solid rgb(74 222 128 / 0.22); }
.tag.no { color: var(--fg-3); background: transparent; border: 1px solid var(--line-hi); }
.m-no b { color: var(--fg-2); }

/* ── 05 Pricing ──────────────────────────────────────────────────────────── */
.rate { display: grid; gap: 14px; padding: 24px 26px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.rate-row { display: grid; grid-template-columns: 84px 1fr 110px; align-items: center; gap: 18px; font-size: 13.5px; }
.rate-name { color: var(--fg-2); }
.rate-bar { height: 10px; border-radius: 5px; background: rgb(255 255 255 / 0.04); overflow: hidden; }
.rate-bar i { display: block; height: 100%; border-radius: 5px; background: rgb(255 255 255 / 0.22); }
.rate-us .rate-name { color: var(--fg); font-weight: 550; }
.rate-us .rate-bar i { background: linear-gradient(90deg, var(--accent), var(--accent-hi)); box-shadow: 0 0 18px rgb(242 125 85 / 0.55); }
.rate-val { text-align: right; color: var(--fg-2); }
.rate-us .rate-val { color: var(--accent-hi); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; }
.price-table, .compare-table { width: 100%; min-width: 640px; }
.price-table th, .price-table td, .compare-table th, .compare-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.price-table tbody tr:last-child > *, .compare-table tbody tr:last-child > * { border-bottom: 0; }
.price-table thead th, .compare-table thead th { font: 500 12px var(--sans); color: var(--fg-3); background: rgb(255 255 255 / 0.02); }
.price-table thead th span { display: block; font: 10.5px var(--mono); color: var(--fg-3); margin-top: 2px; }
.price-table .num { text-align: right; }
.price-table tbody tr { transition: background 0.2s; }
.price-table tbody tr:hover { background: var(--panel); }
.price-table td b { color: var(--fg); font-weight: 550; }
.price-table td.num b { font: 500 17px var(--mono); letter-spacing: -0.02em; }
.price-table td > span { display: block; margin-top: 2px; font-size: 13px; color: var(--fg-3); }
.price-table s { display: block; margin-top: 2px; font: 12px var(--mono); color: var(--fg-3); }

.compare-table tbody th { color: var(--fg); font-weight: 500; font-size: 14px; white-space: nowrap; }
.compare-table td { font-size: 14px; }
.compare-table .us { position: relative; color: var(--fg); background: linear-gradient(180deg, rgb(242 125 85 / 0.09), rgb(242 125 85 / 0.04)); box-shadow: inset 1px 0 0 rgb(242 125 85 / 0.35), inset -1px 0 0 rgb(242 125 85 / 0.35); }
.compare-table thead .us { color: var(--accent-hi); box-shadow: inset 1px 0 0 rgb(242 125 85 / 0.35), inset -1px 0 0 rgb(242 125 85 / 0.35), inset 0 2px 0 var(--accent); }

/* ── 06 Plans ────────────────────────────────────────────────────────────── */
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.plan { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-hi), var(--panel) 40%); overflow: hidden; }
.plan::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-hi), transparent); }
.plan:first-child::before { background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.plan-tag { font-size: 11px; letter-spacing: 0.16em; color: var(--fg-3); }
.plan:first-child .plan-tag { color: var(--accent-hi); }
.plan h3 { margin-top: 12px; font-size: 21px; letter-spacing: -0.02em; }
.plan ul { list-style: none; margin: 22px 0 30px; padding: 0; display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 24px; font-size: 14.5px; }
.plan li::before { content: "→"; position: absolute; left: 0; color: var(--fg-3); font-family: var(--mono); }

/* ── 08 FAQ ──────────────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 16.5px; font-weight: 550; letter-spacing: -0.01em; transition: color 0.2s; }
.faq summary:hover h3 { color: #fff; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--fg-2), var(--fg-2)) center / 100% 1px no-repeat, linear-gradient(var(--fg-2), var(--fg-2)) center / 1px 100% no-repeat; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; font-size: 14.5px; line-height: 1.9; }

/* ── CTA ─────────────────────────────────────────────────────────────────── */
.cta { position: relative; overflow: hidden; }
.cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 70% at 50% 100%, rgb(242 125 85 / 0.18), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 100%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 80% at 50% 100%, #000 20%, transparent 75%);
  pointer-events: none;
}
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-prompt { margin-bottom: 24px; padding: 8px 16px; border: 1px solid var(--line-hi); border-radius: 10px; background: rgb(0 0 0 / 0.45); color: var(--fg); font-size: 15px; }
.cta-prompt span:first-child { color: var(--fg-3); margin-right: 8px; }
.cta-inner > p:not(.cta-prompt) { margin-top: 16px; font-size: 16px; }
.cta-inner .cta-row { margin-top: 32px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-block: 56px 40px; }
.foot-brand p { margin-top: 8px; font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px !important; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-2); font-size: 11.5px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-col b { color: var(--fg); font-weight: 550; font-size: 13px; margin-bottom: 4px; }
.foot-col a { color: var(--fg-3); transition: color 0.2s; }
.foot-col a:hover { color: var(--fg); }
.legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--fg-3); }

/* ── Docs ────────────────────────────────────────────────────────────────── */
.doc { position: relative; }
.doc-bg {
  position: absolute;
  inset: -60px 0 auto;
  height: 520px;
  background:
    radial-gradient(50% 60% at 30% 0%, rgb(242 125 85 / 0.1), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 30% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 80% at 30% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}
.doc-wrap { padding-block: 40px clamp(72px, 9vw, 112px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--fg-3); }
.crumbs a { color: var(--fg-2); transition: color 0.2s; }
.crumbs a:hover { color: var(--fg); }
.crumbs [aria-current] { color: var(--fg-3); }
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: clamp(40px, 6vw, 88px); margin-top: 40px; align-items: start; }

.prose { min-width: 0; max-width: 760px; font-size: 15.5px; line-height: 1.9; color: var(--fg-2); }
.prose h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.15; letter-spacing: -0.035em; text-wrap: balance; }
.doc-meta { margin-top: 16px; font-size: 12px; color: var(--fg-3); }
.prose > p:first-of-type { margin-top: 28px; font-size: 17px; color: var(--fg-2); }
.prose h2 { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; letter-spacing: -0.025em; scroll-margin-top: 80px; }
.prose h3 { margin-top: 40px; font-size: 17.5px; letter-spacing: -0.01em; scroll-margin-top: 80px; }
.prose h2 + p, .prose h3 + p { margin-top: 14px; }
.prose p { margin-top: 16px; }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 0.2s; }
.prose a:hover { color: var(--accent-hi); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul, .prose ol { margin: 16px 0 0; padding-left: 1.3em; }
.prose li { margin-top: 8px; padding-left: 4px; }
.prose li::marker { color: var(--fg-3); font-family: var(--mono); font-size: 0.9em; }
.prose code { font-size: 0.86em; }
.prose .code { margin-top: 18px; border: 1px solid var(--line-hi); border-radius: 12px; background: #050607; overflow: hidden; }
.prose li .code { margin-left: -4px; }
.code-head { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--line); }
.code-head span { font: 500 10.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.prose .code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 13.5px/1.85 var(--mono); color: var(--fg); }
.prose .code pre code { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
.prose .table-wrap { margin-top: 18px; }
.doc-table { width: 100%; min-width: 520px; font-size: 14px; }
.doc-table th, .doc-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table thead th { font: 500 12px var(--sans); color: var(--fg-3); background: rgb(255 255 255 / 0.02); }
.doc-table tbody tr:last-child td { border-bottom: 0; }
.doc-table td { color: var(--fg-2); }
.doc-table td:first-child { color: var(--fg); white-space: nowrap; }
.callout { margin: 20px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--accent-soft); font-size: 14.5px; }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }

.toc { position: sticky; top: 92px; padding-left: 20px; border-left: 1px solid var(--line); }
.toc-title { font-size: 11px; letter-spacing: 0.16em; color: var(--fg-3); }
.toc ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.toc a { position: relative; display: block; padding: 5px 0; font-size: 13px; line-height: 1.5; color: var(--fg-3); transition: color 0.2s; }
.toc a:hover { color: var(--fg); }
.toc a.active { color: var(--fg); }
.toc a.active::before { content: ""; position: absolute; left: -21px; top: 6px; bottom: 6px; width: 1px; background: var(--accent); }
.toc code { font-size: 0.92em; padding: 0 4px; background: none; border: 0; color: inherit; }
.faq details p a, .hint a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-hi); text-underline-offset: 3px; }
.faq details p a:hover { color: var(--fg); }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.page-hero .hero-inner { padding-block: 40px clamp(56px, 6vw, 80px); }
.page-hero .crumbs { justify-content: center; }
.page-hero .hero-title { margin-top: 40px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); width: min(100%, 720px); margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: rgb(0 0 0 / 0.35); }
.facts > div { padding: 18px 20px; text-align: left; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: 12px; color: var(--fg-3); }
.facts dd { margin: 6px 0 0; font-size: 20px; letter-spacing: -0.02em; color: var(--fg); }
.facts > div:first-child dd { color: var(--accent-hi); }

.rules { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.rule { padding: 26px 26px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule dt { font-size: 15.5px; font-weight: 550; color: var(--fg); }
.rule dt::before { content: "//"; margin-right: 8px; font: 12px var(--mono); color: var(--accent); }
.rule dd { margin: 10px 0 0; font-size: 14px; line-height: 1.85; }

.compare-table .num { text-align: right; }
.compare-table td.mono { font-size: 13.5px; }
.calc-table { min-width: 560px; }
.calc-table .total > * { background: rgb(255 255 255 / 0.02); }
.calc-table .total b { color: var(--accent-hi); font-weight: 500; }
.examples-models { margin-top: 28px; }

.calc { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.calc-in { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 28px; }
.field { display: grid; gap: 8px; font-size: 13px; color: var(--fg-2); }
.field:first-child { grid-column: 1 / -1; }
.field em { margin-left: 8px; font: normal 11px var(--mono); color: var(--fg-3); }
.field select, .field input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line-hi); border-radius: 10px; background: #050607; color: var(--fg); font: 500 15px var(--mono); transition: border-color 0.2s; }
.field select:focus, .field input:focus { outline: none; border-color: var(--accent); }
.calc-out { display: grid; align-content: center; gap: 14px; padding: 28px 32px; border-left: 1px solid var(--line); background: linear-gradient(180deg, rgb(242 125 85 / 0.07), transparent 70%); }
.calc-out p { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 14px; }
.calc-out b, .calc-out s { font-size: 18px; font-weight: 500; color: var(--fg); }
.calc-out s { color: var(--fg-3); }
.calc-out .calc-main b { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.03em; color: var(--accent-hi); }
.calc-out .save { color: var(--ok); }
.calc-out .calc-usd { justify-content: flex-start; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--fg-3); }

.steps { counter-reset: step; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li { counter-increment: step; display: grid; gap: 8px; padding: 24px 22px; font-size: 14px; }
.steps li + li { border-left: 1px solid var(--line); }
.steps li::before { content: "0" counter(step); font: 500 12px var(--mono); color: var(--accent); }
.steps b { font-size: 15.5px; font-weight: 550; color: var(--fg); }
.steps a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.terms { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.terms li { position: relative; padding-left: 24px; }
.terms li::before { content: "→"; position: absolute; left: 0; color: var(--fg-3); font-family: var(--mono); }

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.notfound .wrap { padding-block: 140px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.notfound .code { font: 500 13px var(--mono); letter-spacing: 0.2em; color: var(--accent-hi); }
.notfound h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.03em; }
.notfound p { margin-bottom: 14px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .console-body { grid-template-columns: 1fr; }
  .pane-side { border-left: 0; border-top: 1px solid var(--line); }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3) { padding-left: 0; border-left: 0; }
  .feature { padding-bottom: 28px; }
  .feature:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .start-grid, .faq-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .toc { display: none; }
  .rules { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc-out { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .link-btn { display: none; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .feature-row, .matrix, .plan-grid { grid-template-columns: 1fr; }
  .feature, .feature + .feature { padding: 24px 0; border-left: 0; }
  .feature + .feature { border-top: 1px solid var(--line); }
  .matrix li:nth-child(odd) { border-right: 0; }
  .matrix li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .swipe { display: block; }
  .deco { letter-spacing: 0.16em; }
  .diagram { min-width: 680px; }
  .console-bar .mono:not(.console-bar-right) { display: none; }
  .stream th:nth-child(4), .stream td:nth-child(4) { display: none; }
  .stream th:nth-child(1) { width: 26%; }
  .stream th:nth-child(2) { width: 30%; }
  .rate-row { grid-template-columns: 64px 1fr; }
  .rate-val { grid-column: 2; text-align: left; margin-top: -8px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .plan { padding: 26px 22px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .rules { grid-template-columns: 1fr; }
  .calc-in { grid-template-columns: 1fr; padding: 22px; }
  .calc-out { padding: 22px; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse::after, .cursor, .skel td i, .stream tr.fresh td { animation: none; }
  .packets { display: none; }
}
