/* =========================================================
   AI Coding Arena — Cursor-inspired light theme
   Design tokens verified against cursor.com production CSS
   ========================================================= */

:root {
  /* --- Surfaces (warm parchment scale) --- */
  --bg: #f7f7f4;
  --card: #f2f1ed;
  --card-01: #f0efeb;
  --card-02: #ebeae5;
  --card-03: #e6e5e0;
  --card-04: #e1e0db;
  --card-warm: #f3ede6;

  /* --- Foreground --- */
  --fg: #26251e;
  --text: #26251e;
  --text-sec: rgba(38, 37, 30, 0.6);
  --text-mid: rgba(38, 37, 30, 0.5);
  --text-ter: rgba(38, 37, 30, 0.4);

  /* --- Borders (all derived from fg) --- */
  --border-01: rgba(38, 37, 30, 0.025);
  --border-02: rgba(38, 37, 30, 0.05);
  --border: rgba(38, 37, 30, 0.1);
  --border-strong: rgba(38, 37, 30, 0.2);

  /* --- Accent --- */
  --accent: #f54e00;
  --accent-soft: rgba(245, 78, 0, 0.08);
  --accent-line: rgba(245, 78, 0, 0.25);

  /* --- AI palette (tuned for parchment) --- */
  --ai-antigravity: #1a6dd9;
  --ai-codex: #7c5cbf;
  --ai-kiro: #f54e00;
  --ai-copilot: #0f7b5a;

  /* --- Radii --- */
  --r-2xs: 2px;
  --r-xs: 4px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-full: 999px;

  /* --- Shadow (nearly invisible, Cursor-style) --- */
  --shadow: 0 0 1rem rgba(0, 0, 0, 0.02), 0 0 0.5rem rgba(0, 0, 0, 0.012);
  --shadow-lift: 0 1px 2px rgba(38, 37, 30, 0.04), 0 8px 24px rgba(38, 37, 30, 0.05);

  /* --- Type --- */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "EB Garamond", "Songti SC", "SimSun", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo,
    Consolas, monospace;

  /* --- Layout --- */
  --wrap: 1180px;
  --nav-h: 60px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.72;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.28;
  color: var(--text);
}

p {
  margin: 0;
}

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

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(245, 78, 0, 0.16);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

/* =========================================================
   Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 247, 244, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-02);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 18px;
  height: 18px;
  flex: none;
  display: block;
  color: var(--fg);
  overflow: visible;
}

.brand-mark .b1 { fill: currentColor; opacity: 0.26; }
.brand-mark .b2 { fill: currentColor; opacity: 0.42; }
.brand-mark .b3 { fill: currentColor; opacity: 0.6; }
.brand-mark .b4 { fill: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  padding: 6px 11px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  color: var(--text-sec);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(38, 37, 30, 0.05);
}

.nav-links a.active {
  color: var(--text);
  background: rgba(38, 37, 30, 0.07);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 450;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.btn:hover {
  background: var(--card-02);
  border-color: var(--border-strong);
}

.btn-dark {
  background: var(--fg);
  border-color: var(--fg);
  color: #f7f7f4;
}

.btn-dark:hover {
  background: #3b3a33;
  border-color: #3b3a33;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: #d94500;
  border-color: #d94500;
}

.btn-sm {
  padding: 5px 11px;
  font-size: 12.5px;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 112px 0 80px;
  border-bottom: 1px solid var(--border-02);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-ter);
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  letter-spacing: -0.018em;
  line-height: 1.25;
  font-weight: 600;
  max-width: 17ch;
}

.hero h1 em {
  font-style: normal;
  font-weight: 600;
  letter-spacing: inherit;
  color: var(--accent);
}

.lede {
  margin-top: 30px;
  max-width: 58ch;
  font-size: 17px;
  line-height: 1.78;
  color: var(--text-sec);
}

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

.hero-stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.hero-stat {
  background: var(--bg);
  padding: 20px 22px;
}

.hero-stat dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-ter);
}

.hero-stat dd {
  margin: 8px 0 0;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.hero-stat dd small {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-ter);
  letter-spacing: 0;
  margin-left: 3px;
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border-02);
}

.section:last-of-type {
  border-bottom: none;
}

.section-head {
  margin-bottom: 44px;
  max-width: 68ch;
}

.section-head h2 {
  font-size: clamp(25px, 2.7vw, 32px);
  letter-spacing: -0.018em;
  line-height: 1.32;
}

.section-head p {
  margin-top: 16px;
  color: var(--text-sec);
  font-size: 15.5px;
  line-height: 1.75;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-ter);
  margin-bottom: 16px;
}

/* =========================================================
   Cards
   ========================================================= */
.card {
  background: var(--card);
  border: 1px solid var(--border-01);
  border-radius: var(--r-xl);
  padding: 22px;
}

.card-plain {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
}

/* ---------- Verdict / summary ---------- */
.verdict {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: start;
}

.verdict-main {
  background: var(--card);
  border: 1px solid var(--border-01);
  border-radius: var(--r-2xl);
  padding: 38px 40px;
}

.verdict-main .quote {
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1.55;
  letter-spacing: -0.02em;
  font-weight: 450;
  color: var(--text);
}

.verdict-main .quote strong {
  font-weight: 600;
  color: var(--accent);
  font-style: normal;
}

.verdict-notes {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 20px;
}

.verdict-note {
  display: flex;
  gap: 16px;
  font-size: 14.5px;
  color: var(--text-sec);
  line-height: 1.78;
}

.verdict-note b {
  flex: none;
  min-width: 5.5em;
  font-weight: 500;
  color: var(--text);
}

/* ---------- Podium ---------- */
.podium {
  display: grid;
  gap: 10px;
}

.podium-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.podium-row:hover {
  border-color: var(--border-strong);
}

.podium-row.is-first {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.podium-rank {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-ter);
  font-variant-numeric: tabular-nums;
}

.podium-row.is-first .podium-rank {
  color: var(--accent);
}

.podium-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  min-width: 0;
}

.podium-name span.sub {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--text-ter);
  letter-spacing: 0;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.podium-score {
  font-family: var(--mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.podium-score small {
  color: var(--text-ter);
  font-size: 11.5px;
}

/* ---------- Meter bar ---------- */
.meter {
  height: 4px;
  border-radius: var(--r-full);
  background: rgba(38, 37, 30, 0.08);
  overflow: hidden;
}

.meter > i {
  display: block;
  height: 100%;
  border-radius: var(--r-full);
  background: var(--accent);
}

/* =========================================================
   Scenario grid (home)
   ========================================================= */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.scenario-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border-01);
  border-radius: var(--r-xl);
  padding: 24px;
  min-height: 240px;
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}

.scenario-card:hover {
  background: var(--card-02);
  border-color: var(--border);
  transform: translateY(-2px);
}

.scenario-card .idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--text-ter);
}

.scenario-card h3 {
  margin-top: 16px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.scenario-card p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.55;
}

.scenario-card .foot {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.winner-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-sec);
}

.arrow {
  font-size: 15px;
  color: var(--text-ter);
  transition: transform 0.18s ease, color 0.18s ease;
}

.scenario-card:hover .arrow {
  color: var(--accent);
  transform: translateX(3px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-ter);
  background: var(--bg);
}

.badge-live {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

/* =========================================================
   Table
   ========================================================= */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg);
}

.table-scroll {
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.data thead th {
  position: sticky;
  top: 0;
  background: var(--card-02);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-sec);
  text-align: right;
  padding: 12px 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

table.data thead th:first-child,
table.data tbody td:first-child {
  text-align: left;
}

table.data tbody td {
  padding: 13px 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--border-02);
  color: var(--text-sec);
  white-space: nowrap;
}

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

table.data tbody tr:hover td {
  background: rgba(38, 37, 30, 0.022);
}

table.data tbody td.name {
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.015em;
}

table.data tbody td.total {
  color: var(--text);
  font-weight: 600;
  font-family: var(--mono);
}

table.data tbody tr.is-first td {
  background: var(--accent-soft);
}

table.data tbody tr.is-first:hover td {
  background: rgba(245, 78, 0, 0.11);
}

table.data tbody tr.is-first td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}

table.data tbody tr.is-first td.total {
  color: var(--accent);
}

.cell-name {
  display: flex;
  align-items: center;
  gap: 9px;
}

.rank-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-ter);
  width: 1.4em;
  display: inline-block;
}

.table-note {
  padding: 11px 14px;
  border-top: 1px solid var(--border-02);
  background: var(--card);
  font-size: 12.5px;
  color: var(--text-ter);
}

/* =========================================================
   Chart
   ========================================================= */
.chart-panel {
  background: var(--card);
  border: 1px solid var(--border-01);
  border-radius: var(--r-xl);
  padding: 24px;
}

.chart-panel h3 {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.chart-panel .hint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-ter);
}

.chart-panel-wide {
  margin-top: 16px;
}

.chart-panel-wide .chart-box {
  max-width: 760px;
  margin-inline: auto;
  height: 440px;
}

.chart-box {
  position: relative;
  margin-top: 18px;
  height: 430px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

/* =========================================================
   Demo cards (scenario pages)
   ========================================================= */
.demo-list {
  display: grid;
  gap: 18px;
}

.demo {
  background: var(--card);
  border: 1px solid var(--border-01);
  border-radius: var(--r-2xl);
  overflow: hidden;
}

.demo.is-first {
  border-color: var(--accent-line);
}

.demo-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-02);
}

.demo-head .rank {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-ter);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  background: var(--bg);
}

.demo.is-first .demo-head .rank {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.demo-head h3 {
  font-size: 17px;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.demo-head .vendor {
  font-size: 12.5px;
  color: var(--text-ter);
}

.demo-head .spacer {
  flex: 1;
}

.demo-metrics {
  display: flex;
  gap: 22px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-02);
  flex-wrap: wrap;
}

.metric {
  min-width: 76px;
}

.metric .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-ter);
}

.metric .v {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.metric .v small {
  font-size: 11.5px;
  color: var(--text-ter);
  font-weight: 400;
}

.demo-body {
  display: grid;
  /* minmax(0,…) 避免 .demo-frame 的 aspect-ratio 在被拉伸时
     反推出巨大的自动最小宽度，从而挤压右侧点评栏 */
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  gap: 0;
}

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

.demo-frame {
  position: relative;
  background: var(--card-03);
  border-right: 1px solid var(--border-02);
  min-height: 320px;
}

/* 用伪元素撑出 16:10 的最小高度。
   不用 aspect-ratio 是因为它在 grid 里会反推出巨大的自动最小宽度，
   把右侧点评栏挤成竖排；伪元素只定下限，右栏更高时 frame 可跟随拉伸。 */
.demo-frame::before {
  content: "";
  display: block;
  padding-top: 62.5%;
}

/* 版本切换（原始产出 / 修复版） */
.demo-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 11px 22px;
  background: var(--card-03);
  border-bottom: 1px solid var(--border-02);
}

.ds-btn {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-sec);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ds-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.ds-btn.is-on {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.ds-note {
  flex: 1;
  min-width: 220px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-mid);
  letter-spacing: 0;
}

@media (max-width: 720px) {
  .demo-switch {
    padding: 11px 16px;
  }
  .ds-note {
    min-width: 100%;
  }
}

.demo-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.demo-side {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-side .review {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-sec);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  color: var(--text-sec);
  background: var(--bg);
}

.pill.good {
  color: #0f7b5a;
  border-color: rgba(15, 123, 90, 0.3);
  background: rgba(15, 123, 90, 0.07);
}

.pill.bad {
  color: #b23c17;
  border-color: rgba(178, 60, 23, 0.28);
  background: rgba(178, 60, 23, 0.06);
}

.score-rows {
  display: grid;
  gap: 9px;
  margin-top: auto;
}

.score-row {
  display: grid;
  grid-template-columns: 5.5em 1fr 2.4em;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-sec);
}

.score-row b {
  font-family: var(--mono);
  font-weight: 500;
  text-align: right;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ---------- Empty state ---------- */
.empty {
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-2xl);
  background: var(--card);
  padding: 56px 32px;
  text-align: center;
}

.empty .glyph {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-ter);
}

.empty h3 {
  margin-top: 14px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.empty p {
  margin: 12px auto 0;
  max-width: 46ch;
  color: var(--text-sec);
  font-size: 14.5px;
}

/* =========================================================
   Method / criteria
   ========================================================= */
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.criterion {
  background: var(--bg);
  padding: 20px 22px;
}

.criterion .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-ter);
}

.criterion h4 {
  margin-top: 9px;
  font-size: 15.5px;
  letter-spacing: -0.02em;
}

.criterion p {
  margin-top: 7px;
  font-size: 13.5px;
  color: var(--text-sec);
  line-height: 1.5;
}

/* =========================================================
   Scenario page header
   ========================================================= */
.page-head {
  padding: 66px 0 44px;
  border-bottom: 1px solid var(--border-02);
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-ter);
  margin-bottom: 20px;
}

.crumb a:hover {
  color: var(--accent);
}

.page-head h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  letter-spacing: -0.035em;
}

.prompt-box {
  margin-top: 26px;
  background: var(--card);
  border: 1px solid var(--border-01);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-md);
  padding: 16px 20px;
  max-width: 74ch;
}

.prompt-box .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-ter);
}

.prompt-box p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

/* ---------- Disclaimer ---------- */
.disclaimer {
  margin-top: 26px;
  max-width: 78ch;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 22px;
  border: 1px solid rgba(180, 60, 0, 0.22);
  border-radius: var(--r-md);
  background: rgba(245, 78, 0, 0.045);
}

.dc-mark {
  flex: none;
  margin-top: 1px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  white-space: nowrap;
}

.disclaimer p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-sec);
}

.disclaimer p b {
  font-weight: 600;
  color: var(--text);
}

/* ---------- Demo-level disclaimer ---------- */
.demo-disclaimer {
  padding: 11px 22px;
  border-top: 1px solid var(--border-02);
  background: rgba(245, 78, 0, 0.045);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-ter);
}

.demo-disclaimer::before {
  content: "⚠ ";
  color: var(--accent);
}

.demo-disclaimer b {
  font-weight: 600;
  color: var(--text-sec);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border-02);
  padding: 40px 0;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-ter);
}

.footer-inner a:hover {
  color: var(--accent);
}

/* =========================================================
   Scenario recap (三场总结)
   ========================================================= */
.recap {
  display: grid;
  gap: 20px;
}

.recap-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 32px;
  padding: 30px 32px;
  background: var(--card);
  border: 1px solid var(--border-01);
  border-radius: var(--r-2xl);
  align-items: start;
}

.recap-aside .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-ter);
}

.recap-aside h3 {
  margin-top: 10px;
  font-size: 18px;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.recap-aside .winner {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-sec);
  background: var(--bg);
}

.recap-aside .rank-mini {
  margin-top: 14px;
  display: grid;
  gap: 7px;
}

.recap-aside .rank-mini span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-ter);
  font-variant-numeric: tabular-nums;
}

.recap-aside .rank-mini span b {
  font-weight: 500;
  color: var(--text-sec);
}

.recap-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sec);
}

.recap-body p + p {
  margin-top: 14px;
}

.recap-body strong {
  font-weight: 600;
  color: var(--text);
}

.recap-body .tag {
  display: inline-block;
  margin-top: 18px;
  padding: 4px 10px;
  border-radius: var(--r-sm, 6px);
  background: rgba(245, 78, 0, 0.07);
  border: 1px solid rgba(245, 78, 0, 0.16);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.6;
}

/* =========================================================
   Deep dive (Kiro 为什么慢)
   ========================================================= */
.dive {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.dive-main {
  background: var(--card);
  border: 1px solid var(--border-01);
  border-radius: var(--r-2xl);
  padding: 36px 40px;
}

.dive-main > p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-sec);
}

.dive-main > p + p {
  margin-top: 18px;
}

.dive-main strong {
  font-weight: 600;
  color: var(--text);
}

.dive-steps {
  margin: 26px 0;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.dive-step {
  background: var(--bg);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: start;
}

.dive-step i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  color: var(--text-ter);
  padding-top: 3px;
}

.dive-step b {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.dive-step span {
  display: block;
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--text-sec);
}

.dive-step em {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}

.dive-side {
  display: grid;
  gap: 14px;
}

.dive-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px 24px;
}

.dive-card .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-ter);
  margin-bottom: 12px;
}

.dive-card h4 {
  font-size: 15px;
  letter-spacing: -0.012em;
  margin-bottom: 10px;
}

.dive-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--text-sec);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-02);
  font-size: 13.5px;
}

.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-row dt {
  color: var(--text-ter);
  flex: none;
}

.spec-row dd {
  margin: 0;
  text-align: right;
  color: var(--text);
  font-weight: 500;
}

.spec-row dd.same {
  color: var(--accent);
}

/* =========================================================
   One more thing
   ========================================================= */
.omt-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 46px;
}

.omt-head .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.omt-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.3;
  font-weight: 600;
}

.omt-head p {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.82;
  color: var(--text-sec);
}

.omt-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 26px;
}

.omt-meta div {
  background: var(--bg);
  padding: 18px 20px;
}

.omt-meta dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-ter);
}

.omt-meta dd {
  margin: 8px 0 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.omt-stage {
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--bg);
}

.omt-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-02);
  background: var(--card);
}

.omt-bar .dots {
  display: flex;
  gap: 6px;
  flex: none;
}

.omt-bar .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.omt-bar .addr {
  flex: 1;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-ter);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.omt-frame {
  width: 100%;
  height: 620px;
  border: 0;
  display: block;
  background: #fff;
}

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

.omt-note {
  background: var(--card);
  border: 1px solid var(--border-01);
  border-radius: var(--r-xl);
  padding: 22px 24px;
}

.omt-note b {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.012em;
  margin-bottom: 9px;
}

.omt-note p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--text-sec);
}

.omt-closing {
  margin-top: 34px;
  padding: 30px 36px;
  border: 1px solid rgba(245, 78, 0, 0.2);
  background: rgba(245, 78, 0, 0.04);
  border-radius: var(--r-2xl);
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-sec);
}

.omt-closing strong {
  color: var(--text);
  font-weight: 600;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .verdict,
  .demo-body {
    grid-template-columns: 1fr;
  }

  .demo-frame {
    border-right: none;
    border-bottom: 1px solid var(--border-02);
  }

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

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

@media (max-width: 720px) {
  .wrap {
    padding-inline: 18px;
  }

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

  .section {
    padding: 52px 0;
  }

  .scenario-grid,
  .criteria-grid {
    grid-template-columns: 1fr;
  }

  .verdict-main {
    padding: 24px;
  }

  .verdict-main .quote {
    font-size: 21px;
  }

  .chart-box {
    height: 320px;
  }

  .chart-panel-wide .chart-box {
    height: 340px;
  }

  .demo-frame {
    min-height: 260px;
    aspect-ratio: 4 / 3;
  }

  .nav {
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .nav .btn-dark {
    display: none;
  }

  .nav-links {
    margin-left: 4px;
  }

  .nav-links a {
    padding: 6px 8px;
  }
}

/* =========================================================
   Responsive: 新增板块（recap / dive / one more thing）
   放在文件末尾，确保覆盖上面的基础规则
   ========================================================= */
@media (max-width: 1000px) {
  .dive {
    grid-template-columns: 1fr;
  }

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

  .recap-item {
    grid-template-columns: 170px 1fr;
    gap: 24px;
  }

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

  .omt-notes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .recap-item {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }

  .recap-aside .rank-mini {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 18px;
  }

  .dive-main {
    padding: 26px 24px;
  }

  .dive-side {
    grid-template-columns: 1fr;
  }

  .omt-frame {
    height: 420px;
  }

  .omt-head h2 {
    font-size: 26px;
  }

  .omt-closing {
    padding: 24px;
    font-size: 14.5px;
  }

  .disclaimer {
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
  }
}
/* =========================================================
   Scoreboard split — 表格必须完整显示，不出现横向滚动
   低于内容宽度上限（--wrap 1180）时改为上下堆叠，
   表格独占整行，雷达图移到下方并居中收窄。
   ========================================================= */
@media (max-width: 1179px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split .chart-panel .chart-box {
    max-width: 560px;
    margin-inline: auto;
  }
}
/* 平板宽度收紧表格，避免为了几十像素出现横向滚动 */
@media (max-width: 900px) {
  table.data {
    font-size: 13px;
  }

  table.data thead th {
    padding: 11px 8px;
  }

  table.data tbody td {
    padding: 12px 8px;
  }
}
@media (max-width: 820px) {
  table.data {
    font-size: 12.5px;
  }

  table.data thead th,
  table.data tbody td {
    padding-inline: 6px;
  }

  table.data thead th {
    letter-spacing: 0.04em;
  }
}