/* =========================================================
   Xiaomi-style flat premium design system
   Palette, type, surfaces, controls, shared components
   ========================================================= */
:root {
  --orange: #FF6900;
  --orange-ink: #E65C00;
  --orange-soft: rgba(255, 105, 0, 0.08);
  --orange-mid: rgba(255, 105, 0, 0.16);
  --orange-line: rgba(255, 105, 0, 0.35);

  --white: #FFFFFF;
  --bg: #F5F5F5;
  --bg-soft: #FAFAFA;
  --bg-deep: #EEEEEE;
  --ink: #000000;
  --ink-2: #1F1F1F;
  --ink-3: #757575;
  --ink-4: #B0B0B0;
  --line: #E5E5E5;
  --line-soft: #F0F0F0;
  --dark: #141414;

  --q: #FF6900;
  --k: #FF9F0A;
  --v: #30B350;
  --mla: #9B59D0;
  --flash: #E8393A;
  --warn: #FF9F0A;
  --green: #30B350;
  --amber: #FF9F0A;
  --coral: #E8393A;
  --green-soft: rgba(48, 179, 80, 0.12);
  --amber-soft: rgba(255, 159, 10, 0.12);
  --coral-soft: rgba(232, 57, 58, 0.10);
  --orange-soft-flat: rgba(255, 105, 0, 0.10);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 999px;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);

  --sans: "MiSans", "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, ui-monospace, monospace;

  --page: 1080px;
  --page-wide: 1120px;
  --gutter: 24px;
}

/* legacy aliases used by page JS */
:root {
  --paper: #F5F5F5;
  --paper-2: #EEEEEE;
  --white: #FFFFFF;
  --ink-2: #1F1F1F;
  --muted: #757575;
  --line-soft: #F0F0F0;
  --clay: #FF6900;
  --clay-soft: rgba(255, 105, 0, 0.10);
  --clay-mid: #FF9F0A;
  --sand: rgba(255, 105, 0, 0.08);
  --bg: #F5F5F5;
  --bg2: #FFFFFF;
  --panel: #FFFFFF;
  --panel2: #FAFAFA;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--orange-mid); }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--orange); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
code, .mono { font-family: var(--mono); }

/* ---------- layout ---------- */
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.wide { max-width: var(--page-wide); }

/* ---------- progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--orange); z-index: 100; width: 0%;
}

/* ---------- top nav ---------- */
.topnav, .nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.topnav-inner, .nav-inner {
  max-width: var(--page-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}
.nav { margin: 0; }
.nav-inner {
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 4px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.nav-inner::-webkit-scrollbar { display: none; }

.topnav .brand, .nav .brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.topnav .brand span, .nav .brand span { color: var(--orange); }

.topnav nav {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.topnav nav a, .nav a {
  color: var(--ink-3);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.topnav nav a:hover, .nav a:hover,
.topnav nav a:focus-visible, .nav a:focus-visible {
  color: var(--ink);
  background: var(--bg-soft);
  outline: none;
}
.topnav nav a:focus-visible, .nav a:focus-visible {
  box-shadow: 0 0 0 2px var(--orange-mid);
}

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 56px;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
}
main > .hero { margin-bottom: 0; }
.hero-band { background: var(--white); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--ink);
}
h1 em { font-style: normal; color: var(--orange); }
.lead, .lede {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-3);
  max-width: 640px;
  margin-top: 18px;
}
.lead strong, .lede strong, .lead span.hl { color: var(--ink); font-weight: 600; }

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 36px;
  max-width: 720px;
}
.hero-meta strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0 0;
}
@media (max-width: 640px) { .hero-stats { grid-template-columns: 1fr; } }
.stat {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}
.stat .v {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -0.02em;
}
.stat .l { font-size: 12px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.chip, .preset {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.chip:hover, .preset:hover { border-color: var(--orange); color: var(--orange); }
.preset.active, .chip.active {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 600;
}

/* ---------- sections ---------- */
section { padding: 72px 0 8px; scroll-margin-top: 72px; }
.section-band { background: var(--white); }
.section-band + .section-band { border-top: 1px solid var(--line-soft); }
.section-tag, .sec-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
h2, .sec-title {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
}
h3 { font-size: 18px; font-weight: 600; margin: 24px 0 10px; color: var(--ink); }
h4 { font-size: 15px; font-weight: 600; }
p { margin: 12px 0; color: var(--ink-2); }
.sec-intro { color: var(--ink-3); max-width: 680px; margin: 0 0 32px; font-size: 15.5px; }
.sec-intro strong, p strong, li strong { color: var(--ink); font-weight: 600; }

.play-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-soft);
  padding: 3px 10px;
  border-radius: var(--r-full);
  margin-left: 10px;
  vertical-align: 2px;
}

/* ---------- cards ---------- */
.card, .lab, .tax-card, .detail-panel, .quiz-card, .refs, .def-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.card { padding: 22px 24px; margin: 20px 0; }
.card.tight { padding: 16px 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
@media (max-width: 720px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.role-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--q);
}
.role-card.q { border-top-color: var(--q); }
.role-card.k { border-top: 3px solid var(--k); }
.role-card.v { border-top: 3px solid var(--v); }
.role-card h4 {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 700;
  background: var(--orange-soft);
  color: var(--orange);
}
.role-card.k .badge { background: var(--amber-soft); color: var(--k); }
.role-card.v .badge { background: var(--green-soft); color: var(--v); }
.role-card p { font-size: 14px; margin: 6px 0; color: var(--ink-3); }
.role-card p strong { color: var(--ink); }

/* ---------- formula / code ---------- */
.formula, pre {
  font-family: var(--mono);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin: 16px 0;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}
pre { border-left-width: 3px; font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }
.hl-q { color: var(--q); }
.hl-k { color: var(--k); }
.hl-v { color: var(--v); }
.hl-m { color: var(--ink-4); font-size: 12px; }
.hl-mla { color: var(--mla); }
.hl-f { color: var(--flash); }
.c { color: var(--ink-4); }
.kw { color: var(--mla); }
.fn { color: var(--q); }
.num { color: var(--k); }
.str { color: var(--v); }

/* ---------- table ---------- */
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; background: var(--white); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
th { color: var(--ink-3); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; background: var(--bg-soft); }
td { color: var(--ink-2); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 105, 0, 0.03); }

/* ---------- lab shell ---------- */
.lab {
  overflow: hidden;
  margin: 24px 0;
  box-shadow: var(--shadow);
  padding: 0 22px 22px;
}
.lab-header, .lab-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0;
  margin: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
}
.lab-title, .lab-head h3 { font-weight: 600; font-size: 15px; color: var(--ink); margin: 0; }
.lab-head p { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); max-width: 680px; line-height: 1.55; }
.lab-hint { font-size: 12px; color: var(--ink-4); font-family: var(--mono); }
.lab-body { padding: 22px 0 0; margin: 0; background: transparent; }
.lab .card.tight, .lab .card { background: var(--bg-soft); box-shadow: none; }

.controls { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 16px; }
.control { display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 1; }
.control label { font-size: 12px; color: var(--ink-3); font-weight: 500; }

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  outline: none;
  accent-color: var(--orange);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ink);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ink);
  cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r-sm);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn:hover { border-color: var(--ink-4); background: var(--bg-soft); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--orange-mid); border-color: var(--orange); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.primary, .btn.accent {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.btn.primary:hover, .btn.accent:hover { background: var(--orange-ink); border-color: var(--orange-ink); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink-4); background: transparent; }
.btn.small { padding: 7px 12px; font-size: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }

/* ---------- callouts ---------- */
.callout {
  border-left: 3px solid var(--orange);
  background: var(--orange-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--ink-2);
}
.callout.mla { border-left-color: var(--mla); background: rgba(155, 89, 208, 0.08); }
.callout.flash { border-left-color: var(--flash); background: rgba(232, 57, 58, 0.07); }
.callout strong { color: var(--ink); }
.deep-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.65;
  padding: 16px 18px;
  background: var(--orange-soft);
  border-radius: var(--r-md);
}
.deep-note strong { color: var(--ink); }
.note-card {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.6;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
}
.note-card strong { color: var(--ink); }

/* ---------- lists ---------- */
ul.clean, ol.clean { margin: 10px 0 10px 1.2em; color: var(--ink-2); }
ul.clean li, ol.clean li { margin: 6px 0; }
ol.clean { list-style: decimal; padding-left: 1.2em; }

/* ---------- QKV interactive pieces ---------- */
.tokens { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.token {
  font-family: var(--mono);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.token:hover { border-color: var(--ink-4); transform: translateY(-1px); }
.token:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--orange-mid); }
.token.active {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange-ink);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(255, 105, 0, 0.12);
}
.token.future {
  opacity: 0.45;
  border-style: dashed;
}

.attn-row {
  display: grid;
  grid-template-columns: 96px 1fr 56px;
  gap: 10px;
  align-items: center;
  margin: 6px 0;
  font-family: var(--mono);
  font-size: 12.5px;
}
.bar-track {
  height: 18px;
  background: var(--bg-deep);
  border-radius: 6px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 105, 0, 0.45), var(--orange));
  transition: width 0.35s ease;
}
.attn-row .score { text-align: right; color: var(--ink-3); }

.step-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.step-dot {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.step-dot:hover { border-color: var(--ink-4); color: var(--ink); }
.step-dot.on {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 700;
}
.step-stage {
  min-height: 280px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  overflow-x: auto;
}
.step-desc { font-size: 14px; color: var(--ink-3); margin-top: 12px; }

.mx { display: grid; gap: 2px; font-family: var(--mono); font-size: 10px; }
.mx-cell {
  aspect-ratio: 1;
  min-height: 22px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.55);
  background: var(--bg-deep);
}
.mx-cell.masked {
  background: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(0, 0, 0, 0.04) 3px, rgba(0, 0, 0, 0.04) 6px);
  color: rgba(0, 0, 0, 0.2);
}
.mx-cell.qc { background: rgba(255, 105, 0, 0.35); color: #fff; }
.mx-cell.kc { background: rgba(255, 159, 10, 0.4); color: #fff; }
.mx-cell.vc { background: rgba(48, 179, 80, 0.35); color: #fff; }
.mx-cell.hot { outline: 2px solid var(--orange); outline-offset: 1px; }

.vec-row { display: flex; gap: 4px; align-items: center; margin: 6px 0; }
.vec-tag { font-family: var(--mono); font-size: 12px; width: 28px; text-align: right; color: var(--ink-3); }
.vec-cells { display: flex; gap: 2px; }
.vec-cell {
  width: 28px;
  height: 22px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(0, 0, 0, 0.65);
}

.head-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0; }
@media (max-width: 700px) { .head-grid { grid-template-columns: 1fr 1fr; } }
.head-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px;
}
.head-card h5 { font-size: 12px; font-family: var(--mono); color: var(--ink-3); margin-bottom: 8px; font-weight: 500; }
.head-mx { display: grid; gap: 2px; }
.head-cell { aspect-ratio: 1; border-radius: 2px; background: var(--bg-deep); }

.arch-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 600px) { .arch-row { grid-template-columns: 1fr; gap: 6px; } }
.arch-name { font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--orange); }
.arch-name span { display: block; font-size: 11px; color: var(--ink-4); font-weight: 400; margin-top: 2px; font-family: var(--sans); }
.arch-body { font-size: 14px; color: var(--ink-3); }
.arch-body code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg-deep);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink-2);
}

.fa-wrap { position: relative; background: var(--bg-soft); border-radius: var(--r-md); padding: 14px; border: 1px solid var(--line); }
.fa-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--mono);
  margin-top: 10px;
}
.fa-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

.funnel-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}
@media (max-width: 700px) { .funnel-stage { grid-template-columns: 1fr; text-align: center; } }
.funnel-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  text-align: center;
}
.funnel-box .big { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--ink); }
.funnel-box .sm { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.funnel-arrow { color: var(--ink-4); font-size: 22px; }

.code-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .code-compare { grid-template-columns: 1fr; } }

.viz-svg { width: 100%; height: auto; display: block; margin: 12px 0; }
.viz-label { font-family: var(--mono); font-size: 11px; fill: var(--ink-3); }
.viz-token { font-size: 13px; fill: var(--ink); font-family: var(--sans); }

/* ---------- AI hallucination pieces ---------- */
.def-card {
  background: var(--dark);
  color: #EDEAE3;
  border-radius: var(--r-xl);
  padding: 32px 36px;
  margin-top: 48px;
  border-color: #222;
}
.def-card h2 {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
}
.def-card p { margin: 0; font-size: 16px; line-height: 1.75; color: #EDEAE3; }
.def-card .hl { color: #fff; font-weight: 600; }
.def-card .src { margin-top: 16px; font-size: 12px; color: #888; }

.tax-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .tax-grid { grid-template-columns: 1fr; } }
.tax-card { padding: 28px; box-shadow: var(--shadow); }
.tax-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-full);
  margin-bottom: 14px;
}
.tax-tag.fact { background: var(--coral-soft); color: var(--coral); }
.tax-tag.faith { background: var(--orange-soft); color: var(--orange); }
.tax-card h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; }
.tax-card > p { margin: 0 0 18px; color: var(--ink-3); font-size: 14px; }
.tax-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tax-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 13px;
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}
.tax-list .k { font-weight: 600; color: var(--ink); font-size: 12.5px; }
.tax-list .v { color: var(--ink-3); }

.pipe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 18px; }
@media (max-width: 720px) { .pipe { grid-template-columns: 1fr; } }
.pipe-node {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  padding: 18px 16px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.pipe-node:hover { border-color: var(--ink-4); box-shadow: var(--shadow); }
.pipe-node.active {
  border-color: var(--orange);
  background: var(--orange-soft);
  box-shadow: 0 4px 16px rgba(255, 105, 0, 0.1);
}
.pipe-node .step {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 8px;
}
.pipe-node h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.pipe-node p { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

.detail-panel { padding: 28px; box-shadow: var(--shadow); }
.detail-panel h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.detail-panel .sub { color: var(--ink-3); font-size: 13px; margin: 0 0 20px; }
.cause-items { display: flex; flex-direction: column; gap: 12px; }
.cause-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: var(--r-md);
}
.cause-item .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
}
.cause-item h4 { margin: 0 0 4px; font-size: 14.5px; font-weight: 600; }
.cause-item p { margin: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.6; }
.mech {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--orange-soft);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.mech strong { color: var(--ink); }

.lab-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .lab-grid-2 { grid-template-columns: 1fr; } }
.lab-grid-slider { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; }
@media (max-width: 800px) { .lab-grid-slider { grid-template-columns: 1fr; } }

.prompt-box {
  background: var(--dark);
  color: #EDEAE3;
  border-radius: var(--r-md);
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
}
.prompt-box .label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 10px;
}
.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--orange);
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.ctrl { margin-bottom: 18px; }
.ctrl label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.ctrl label .val { color: var(--orange); font-family: var(--mono); }
.ctrl .hint { font-size: 12px; color: var(--ink-3); margin-top: 8px; line-height: 1.5; }

.tok {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  margin: 1px 2px 1px 0;
  font-size: 14px;
  font-family: var(--mono);
}
.tok.ok { background: var(--green-soft); color: var(--green); }
.tok.mid { background: var(--amber-soft); color: var(--amber); }
.tok.bad { background: var(--coral-soft); color: var(--coral); font-weight: 600; }

.verdict {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  line-height: 1.65;
  border: 1px solid transparent;
}
.verdict.safe { background: var(--green-soft); color: var(--green); border-color: rgba(48, 179, 80, 0.25); }
.verdict.risk { background: var(--amber-soft); color: #A66500; border-color: rgba(255, 159, 10, 0.3); }
.verdict.hallu { background: var(--coral-soft); color: var(--coral); border-color: rgba(232, 57, 58, 0.22); }
.verdict.neutral { background: var(--bg-soft); color: var(--ink-3); border-color: var(--line); }

.bars { display: flex; flex-direction: column; gap: 6px; }
.bar-row {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-family: var(--mono);
}
.bar-row .bar-track { height: 22px; position: relative; border: 1px solid var(--line-soft); background: var(--bg-soft); }
.bar-fill.top { background: #66C08A; }
.bar-fill.risk { background: #F0B429; }
.bar-fill.danger { background: #E8393A; }
.bar-label {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  z-index: 1;
}
.bar-pct { text-align: right; color: var(--ink-3); font-size: 11px; }
.bar-row.pickable { cursor: pointer; }
.bar-row.pickable:hover .bar-track { border-color: var(--orange); }

.entropy-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 12px;
}
.entropy-meter .track { flex: 1; height: 4px; background: var(--line); border-radius: var(--r-full); overflow: hidden; }
.entropy-meter .fill { height: 100%; background: var(--orange); width: 30%; transition: width 0.4s; }
.entropy-meter .hv { font-family: var(--mono); font-weight: 600; color: var(--ink); min-width: 28px; }

.snow-steps { display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.snow-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.snow-step.bad { border-color: rgba(232, 57, 58, 0.35); background: var(--coral-soft); }
.snow-step.warn { border-color: rgba(255, 159, 10, 0.4); background: var(--amber-soft); }
.snow-step.good { border-color: rgba(48, 179, 80, 0.35); background: var(--green-soft); }
.snow-step .t { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ink-3); padding-top: 2px; }
.snow-step .body { font-size: 13.5px; }
.snow-step .body .why { display: block; font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.choice {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--mono);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.choice:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }

.score-board { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.score-card { background: var(--bg-soft); border-radius: var(--r-md); padding: 16px; text-align: center; border: 1px solid var(--line-soft); }
.score-card .lab-n { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.score-card .score { font-size: 28px; font-weight: 700; margin: 6px 0 0; letter-spacing: -0.02em; }
.score-card .score.good { color: var(--green); }
.score-card .score.bad { color: var(--coral); }
.score-card .score.mid { color: var(--orange); }
.score-card .desc { font-size: 11px; color: var(--ink-4); margin-top: 2px; }

.rlhf-answers { display: flex; flex-direction: column; gap: 10px; }
.rlhf-ans {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.rlhf-ans:hover { border-color: var(--orange); box-shadow: var(--shadow-md); }
.rlhf-ans .who { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 8px; }
.rlhf-ans p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.rlhf-ans .tags { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.rlhf-ans .tag { font-size: 11px; padding: 2px 8px; border-radius: var(--r-full); font-weight: 600; }
.rlhf-ans .tag.truth { background: var(--green-soft); color: var(--green); }
.rlhf-ans .tag.please { background: var(--orange-soft); color: var(--orange); }
.rlhf-ans .tag.wrong { background: var(--coral-soft); color: var(--coral); }

.syc-slider-wrap { background: var(--bg-soft); border-radius: var(--r-md); padding: 18px; margin-top: 18px; border: 1px solid var(--line-soft); }
.syc-title { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.meter-row { display: grid; grid-template-columns: 96px 1fr 40px; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 12px; }
.meter-row .name { color: var(--ink-3); }
.meter-row .mtrack { height: 8px; background: var(--white); border-radius: var(--r-full); overflow: hidden; border: 1px solid var(--line); }
.meter-row .mfill { height: 100%; transition: width 0.4s; }
.meter-row .mfill.truth { background: var(--green); }
.meter-row .mfill.syc { background: var(--orange); }
.meter-row .mfill.conf { background: var(--amber); }
.meter-row .mval { text-align: right; font-family: var(--mono); font-weight: 600; font-size: 11px; color: var(--ink); }

.after-train {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--dark);
  color: #EDEAE3;
  font-size: 14px;
  line-height: 1.7;
}
.after-train .who { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }

.q-list { display: flex; flex-direction: column; gap: 8px; }
.q-btn {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.q-btn:hover { border-color: var(--ink-4); }
.q-btn.active { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 4px 14px rgba(255, 105, 0, 0.1); }
.q-btn .qtext { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.q-btn .qmeta { font-size: 11.5px; color: var(--ink-3); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.risk-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-full);
}
.risk-pill.low { background: var(--green-soft); color: var(--green); }
.risk-pill.mid { background: var(--amber-soft); color: #A66500; }
.risk-pill.high { background: var(--coral-soft); color: var(--coral); }

.kb-stage { position: relative; aspect-ratio: 1; max-width: 340px; margin: 0 auto; width: 100%; }
.kb-circle {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: var(--orange-soft);
  border: 1.5px solid rgba(255, 105, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.kb-circle strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.kb-circle span { font-size: 11.5px; color: var(--ink-3); }
.kb-ring { position: absolute; border-radius: 50%; border: 1px dashed var(--line); pointer-events: none; }
.kb-ring.r1 { inset: 0%; }
.kb-ring.r2 { inset: 5%; }
.kb-probe {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, opacity 0.2s;
  z-index: 2;
}
.kb-probe:hover, .kb-probe.active { transform: translate(-50%, -50%) scale(1.35); z-index: 3; }
.kb-probe.dimmed { opacity: 0.25; }
.kb-probe.low { background: var(--green); }
.kb-probe.mid { background: var(--amber); }
.kb-probe.high { background: var(--coral); }
.kb-glow {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 1.5px solid;
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 1;
}
.kb-glow.on { opacity: 1; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.45; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.q-detail {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  min-height: 160px;
}
.q-detail h4 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.q-detail .sim {
  background: var(--dark);
  color: #EDEAE3;
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.7;
  margin: 12px 0;
}
.q-detail .sim .who { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #888; margin-bottom: 6px; }
.q-detail .analysis { font-size: 13.5px; color: var(--ink-3); line-height: 1.65; }
.q-detail .analysis strong { color: var(--ink); }
.q-detail .empty { color: var(--ink-3); font-size: 14px; padding: 24px 0; text-align: center; }

.risk-gauge {
  background: var(--bg-soft);
  border-radius: var(--r-md);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--line);
}
.gauge-num {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  margin: 10px 0 6px;
  letter-spacing: -0.03em;
  transition: color 0.3s;
}
.gauge-label { font-size: 13px; color: var(--ink-3); }
.gauge-bar {
  height: 8px;
  background: var(--white);
  border-radius: var(--r-full);
  overflow: hidden;
  margin: 18px 0 8px;
  border: 1px solid var(--line);
}
.gauge-fill {
  height: 100%;
  width: 20%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--green), var(--amber), var(--orange), var(--coral));
  transition: width 0.35s;
}
.gauge-scale {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--ink-4);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.chain-visual {
  margin-top: 14px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.chain-visual h5 { margin: 0 0 12px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.chain-nodes { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chain-node {
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--ink-3);
  transition: all 0.3s;
}
.chain-node.hot { background: var(--coral-soft); color: var(--coral); }
.chain-node.warm { background: var(--amber-soft); color: #A66500; }
.chain-node.cool { background: var(--green-soft); color: var(--green); }
.chain-arrow { color: var(--ink-4); font-size: 12px; }

.quiz-card { padding: 28px; }
.quiz-q {
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
}
.quiz-q .mark {
  background: var(--coral-soft);
  color: var(--coral);
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
}
.quiz-choices { display: flex; flex-direction: column; gap: 8px; }
.quiz-choice {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.quiz-choice:hover:not(:disabled) { border-color: var(--ink-4); background: var(--white); }
.quiz-choice:disabled { cursor: default; }
.quiz-choice.right { border-color: var(--green); background: var(--green-soft); font-weight: 600; color: var(--green); }
.quiz-choice.wrong { border-color: var(--coral); background: var(--coral-soft); color: var(--coral); }
.quiz-explain {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  line-height: 1.65;
  background: var(--bg-soft);
  display: none;
  color: var(--ink-2);
}
.quiz-explain.show { display: block; }
.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 600;
}
.quiz-progress-dots { display: flex; gap: 6px; }
.quiz-progress-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.quiz-progress-dots span.done { background: var(--green); }
.quiz-progress-dots span.cur { background: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }

.cases { display: flex; flex-direction: column; gap: 12px; }
.case {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}
@media (max-width: 600px) { .case { grid-template-columns: 1fr; gap: 8px; } }
.case-year {
  font-size: 22px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.case-year small {
  display: block;
  font-size: 10.5px;
  color: var(--ink-4);
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.case h4 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.case p { margin: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.6; }

.mit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 800px) { .mit-grid { grid-template-columns: 1fr; } }
.mit {
  padding: 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}
.mit .n {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 10px;
}
.mit h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.mit p { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.mit .tagline {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  background: var(--orange-soft);
  color: var(--orange-ink);
  padding: 4px 10px;
  border-radius: var(--r-full);
}

.refs { padding: 28px 32px; margin: 32px 0 80px; }
.refs h3 { margin: 0 0 16px; font-size: 18px; font-weight: 600; }
.refs ol { margin: 0; padding-left: 20px; }
.refs li { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; line-height: 1.6; }
.refs a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.refs a:hover { color: var(--orange); text-decoration-color: var(--orange); }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  font-size: 12px;
  color: var(--ink-4);
  text-align: center;
  background: var(--white);
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  .kb-glow.on { animation: none; }
  .token:hover { transform: none; }
}

/* ---------- index hub ---------- */
.hub-hero {
  padding: 88px 0 56px;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
}
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 48px 0 96px;
}
@media (max-width: 800px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  color: inherit;
  text-decoration: none;
}
.hub-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(255, 105, 0, 0.35);
  color: inherit;
}
.hub-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--orange-mid), var(--shadow-lg);
}
.hub-visual {
  height: 160px;
  display: flex;
  align-items: flex-end;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}
.hub-visual.qkv {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 105, 0, 0.22), transparent 40%),
    linear-gradient(145deg, #FFF4EC 0%, #F5F5F5 100%);
}
.hub-visual.hallu {
  background:
    radial-gradient(circle at 20% 80%, rgba(232, 57, 58, 0.14), transparent 42%),
    linear-gradient(145deg, #FFF8F0 0%, #F5F5F5 100%);
}
.hub-visual .tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 105, 0, 0.25);
  padding: 6px 12px;
  border-radius: var(--r-full);
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-top: 4px;
}
.hub-visual .art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hub-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.hub-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hub-body p {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
}
.hub-body .go {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
}
.hub-body .go::after { content: "→"; }
.hub-foot {
  padding: 20px 0 48px;
  color: var(--ink-4);
  font-size: 12px;
  text-align: center;
}
