:root {
  --bg: #f5f5f7;
  --bg-elev: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --radius: 18px;
  --nav-h: 48px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

/* ===== Nav (frosted glass) ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav-logo {
  font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.nav-logo span { color: var(--blue); margin: 0 2px; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a {
  font-size: 13px; color: var(--ink-soft); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--blue); color: #fff !important;
  padding: 5px 14px; border-radius: 980px; font-size: 12px !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--blue-hover); }

/* ===== Layout ===== */
main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.section { padding: 88px 0; }
.section.dark {
  background: #000; color: #f5f5f7;
  max-width: none; margin: 0; padding: 88px 24px;
}
.section.dark .section-sub { color: rgba(255,255,255,0.6); }
.section.dark .section { max-width: 1080px; margin: 0 auto; }
.section.dark { max-width: 1080px; margin: 0 auto; padding: 88px 0; }

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700; letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.section-sub {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--ink-soft); font-weight: 400;
  max-width: 640px;
}

/* ===== Hero ===== */
.hero {
  padding: 110px 0 70px;
  text-align: center;
}
.hero-eyebrow {
  font-size: 15px; font-weight: 600; color: var(--blue);
  letter-spacing: 0.02em; margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.02;
}
.hero-title .grad {
  background: linear-gradient(90deg, #0071e3 0%, #8e54e9 50%, #ff5c8a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--ink-soft);
  max-width: 560px; margin: 22px auto 0;
}
.hero-meta {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 30px;
}
.meta-pill {
  font-size: 13px; font-weight: 500;
  padding: 7px 16px; border-radius: 980px;
  background: var(--bg-elev);
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--ink);
}

/* ===== Dimension cards ===== */
.dim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.dim-card {
  background: var(--bg-elev);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.dim-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}
.dim-num {
  font-size: 12px; font-weight: 700; color: var(--blue);
  letter-spacing: 0.08em;
}
.dim-card h3 {
  font-size: 17px; font-weight: 600; margin: 8px 0 6px;
}
.dim-card p { font-size: 13.5px; color: var(--ink-soft); }

/* ===== Candidates ===== */
.candidate-list {
  display: flex; flex-direction: column; gap: 20px;
  margin-top: 40px;
}
.cand-card {
  background: var(--bg-elev);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 22px;
  padding: 30px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
}
.cand-left h3 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  word-break: break-word;
}
.cand-role {
  font-size: 13px; color: var(--ink-soft);
  margin: 8px 0 18px; line-height: 1.5;
}
.radar-wrap { display: flex; justify-content: center; }
.cand-right { min-width: 0; }
.bars { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 36px; align-items: center; gap: 10px; }
.bar-label { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.bar-track {
  height: 8px; border-radius: 980px;
  background: rgba(0,0,0,0.06);
  overflow: hidden;
}
.bar-fill {
  height: 100%; border-radius: 980px;
  background: linear-gradient(90deg, var(--blue), #64d2ff);
  transition: width 1s cubic-bezier(.2,.8,.2,1);
}
.bar-val { font-size: 13px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.cand-block-label {
  font-size: 12px; font-weight: 700; color: var(--blue);
  letter-spacing: 0.08em; margin: 18px 0 10px;
}
.cand-block p {
  font-size: 14.5px; line-height: 1.7; color: var(--ink);
}
.mirror-line { font-size: 14px; color: var(--ink-soft); }
.mirror-line strong { color: var(--ink); }
.cand-failed {
  padding: 26px;
  background: rgba(255,90,90,0.06);
  border: 1px solid rgba(255,90,90,0.25);
  border-radius: 16px;
  font-size: 14px; color: #c0392b;
}

/* ===== History ===== */
.history-list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 40px;
}
.hist-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 24px;
}
.hist-card h3 { font-size: 17px; font-weight: 600; color: #f5f5f7; }
.hist-card .hist-scores {
  font-size: 12px; color: rgba(255,255,255,0.5);
  font-family: "SF Mono", ui-monospace, monospace;
  margin: 10px 0; line-height: 1.8;
}
.hist-card p { font-size: 13.5px; color: rgba(255,255,255,0.65); line-height: 1.6; }

/* ===== Pipeline ===== */
.pipeline {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 40px;
}
.pipe-step {
  background: var(--bg-elev);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 26px;
}
.pipe-num {
  font-size: 13px; font-weight: 800; color: var(--blue);
  font-family: "SF Mono", ui-monospace, monospace;
  letter-spacing: 0.1em;
}
.pipe-step h3 { font-size: 17px; font-weight: 600; margin: 10px 0 8px; }
.pipe-step p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 60px;
  padding: 34px 24px;
  text-align: center;
  font-size: 12.5px; color: var(--ink-soft);
  background: var(--bg-elev);
}
.footer-note { margin-top: 8px; font-size: 11.5px; color: rgba(0,0,0,0.35); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .dim-grid, .history-list, .pipeline { grid-template-columns: repeat(2, 1fr); }
  .cand-card { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .radar-wrap { justify-content: flex-start; }
  .section { padding: 60px 0; }
  .hero { padding: 70px 0 50px; }
}

@media (max-width: 540px) {
  .dim-grid, .history-list, .pipeline { grid-template-columns: 1fr; }
  .nav-links { gap: 12px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .bar-row { grid-template-columns: 96px 1fr 32px; }
  .bar-label { font-size: 12px; }
  .hero-meta { flex-direction: column; align-items: center; }
}
