/* =============================================================
   MM-WebAgent Project Page — Modern, Refined, Rich
   ============================================================= */

:root {
  --bg:        #fbfaf7;
  --bg-alt:    #f3f1ec;
  --bg-dark:   #0f1424;
  --surface:   #ffffff;
  --fg:        #15182a;
  --fg-soft:   #3a3f55;
  --fg-mute:   #6a7088;
  --line:      #e6e2d8;
  --line-soft: #efece4;

  --brand:        #3959ff;
  --brand-2:      #5b7cff;
  --brand-3:      #8aa5ff;
  --accent:       #ff5a8a;
  --accent-2:     #ffb347;
  --teal:         #16b3a3;
  --green:        #2fbf71;
  --red:          #e75c69;
  --amber:        #f6b500;

  --gradient-1: linear-gradient(135deg, #5b7cff 0%, #3959ff 50%, #1d3fd6 100%);
  --gradient-2: linear-gradient(135deg, #ff7ac6 0%, #ff5a8a 50%, #c23f7a 100%);
  --gradient-3: linear-gradient(135deg, #16b3a3 0%, #3959ff 100%);
  --gradient-hero: none;

  --shadow-sm: 0 2px 8px rgba(15,20,36,0.06), 0 1px 2px rgba(15,20,36,0.04);
  --shadow-md: 0 10px 30px rgba(15,20,36,0.08), 0 2px 8px rgba(15,20,36,0.05);
  --shadow-lg: 0 24px 60px rgba(15,20,36,0.14), 0 6px 18px rgba(15,20,36,0.08);

  --font-sans: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', monospace;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;

  --container: 1240px;
  --container-narrow: 860px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-2); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container.narrow { max-width: var(--container-narrow); }

/* =============== Navigation =============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,250,247,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(230,226,216,0.6);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
}
.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--gradient-1);
  position: relative;
  box-shadow: 0 4px 14px rgba(57,89,255,0.35);
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.25);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.nav-links {
  display: flex;
  gap: 26px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-link {
  color: var(--fg-soft);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 2px;
  background: var(--brand);
  transition: right 0.25s ease;
}
.nav-link:hover,
.nav-link.is-active { color: var(--brand); }
.nav-link:hover::after,
.nav-link.is-active::after { right: 0; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15,20,36,0.12);
  background: rgba(255,255,255,0.85);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.mobile-nav {
  display: none;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px 14px;
  gap: 12px 18px;
  flex-wrap: wrap;
}
.mobile-nav .nav-link {
  font-size: 14px;
  font-weight: 500;
}

/* =============== Hero =============== */
.hero {
  position: relative;
  overflow: visible;
  padding: 88px 0 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}
.blob-1 { width: 520px; height: 520px; top: -120px; right: -120px; background: radial-gradient(circle at 30% 30%, #5b7cff, transparent 70%); animation-delay: 0s; }
.blob-2 { width: 420px; height: 420px; top: 160px; left: -100px; background: radial-gradient(circle at 40% 40%, #ff7ac6, transparent 70%); animation-delay: 4s; }
.blob-3 { width: 500px; height: 500px; bottom: -160px; right: 30%; background: radial-gradient(circle at 50% 50%, #16b3a3, transparent 70%); animation-delay: 8s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(28px, -20px) scale(1.04); }
  66% { transform: translate(-18px, 22px) scale(0.98); }
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(15,20,36,0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(15,20,36,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 0%, black 40%, transparent 85%);
}
.hero > .container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(57,89,255,0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-soft);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-badge i { color: var(--brand); }

.hero-title { margin: 0 0 28px; }
.title-logo {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 8px;
}
.title-sub {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 34px);
  color: var(--fg);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 880px;
  margin: 0 auto;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin-top: 22px;
  font-size: 17px;
  color: var(--fg);
  font-weight: 500;
}
.author sup { font-size: 11px; color: var(--brand); font-weight: 600; }
.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin-top: 8px;
  color: var(--fg-mute);
  font-size: 14px;
}
.affiliations sup { color: var(--brand); font-weight: 600; }
.author-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-top: 12px;
  color: var(--fg-mute);
  font-size: 13px;
}
.author-notes sup { color: var(--brand); font-weight: 600; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}
.btn i { font-size: 15px; }
.btn-primary {
  color: #fff;
  background: var(--gradient-1);
  box-shadow: 0 8px 22px rgba(57,89,255,0.32);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(57,89,255,0.42); }
.btn-outline {
  color: var(--fg);
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(15,20,36,0.12);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn-disabled {
  cursor: default;
  color: var(--fg-mute);
  border-color: rgba(15,20,36,0.08);
  background: rgba(255,255,255,0.55);
  box-shadow: none;
}
.btn-disabled:hover {
  color: var(--fg-mute);
  border-color: rgba(15,20,36,0.08);
  transform: none;
  box-shadow: none;
}
.btn-disabled .ai.ai-arxiv::before {
  color: #8f96aa;
  border-color: #8f96aa;
}

.stat-strip {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.stat {
  padding: 22px 16px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(15,20,36,0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.03em;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-mute);
  margin-top: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-visual {
  margin: 72px auto 0;
  max-width: 1120px;
  padding: 14px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15,20,36,0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
.hero-visual img { border-radius: calc(var(--radius-lg) - 8px); }
.hero-caption {
  margin-top: 14px;
  padding: 8px 10px 6px;
  color: var(--fg-mute);
  font-size: 14px;
  text-align: center;
}

/* =============== Section shell =============== */
.section {
  padding: 88px 0;
  position: relative;
}
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: linear-gradient(180deg, #f4f2fb 0%, #eef1ff 55%, #f7f3fd 100%);
  color: var(--fg);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  top: -120px; right: -160px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,124,255,0.18) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.section-dark::after {
  content: '';
  position: absolute;
  bottom: -160px; left: -140px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,198,0.16) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.section-dark > .container { position: relative; z-index: 1; }
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--brand);
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(57,89,255,0.1);
  margin-bottom: 16px;
}
.section-tag.light { color: var(--brand); background: rgba(91,124,255,0.12); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 18px;
  max-width: 920px;
}
.section-title.light { color: var(--fg); }
.section-title em {
  font-style: italic;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.12em;
  margin-right: -0.04em;
}
.hl {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 820px;
  font-size: 18px;
  color: var(--fg-soft);
  line-height: 1.7;
  margin: 0 0 36px;
}
.body-text {
  color: var(--fg-soft);
  line-height: 1.68;
  margin: 0 0 12px;
}
.bullets {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--fg-soft);
  line-height: 1.7;
  font-size: 15.5px;
}

/* =============== Abstract =============== */
.abstract-text {
  font-size: 17px;
  color: var(--fg-soft);
  line-height: 1.68;
  margin: 0 0 14px;
}
.abstract-text strong { color: var(--fg); }

.highlights {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.highlight {
  padding: 20px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.25s;
}
.highlight:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(57,89,255,0.35);
}
.h-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gradient-1);
  color: #fff;
  font-size: 19px;
  box-shadow: 0 8px 20px rgba(57,89,255,0.3);
  margin-bottom: 14px;
}
.h-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 4px;
}
.h-text { color: var(--fg-mute); font-size: 14px; line-height: 1.5; }

/* =============== Two col =============== */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}
.ablation-col { margin-top: 28px; }

.problem-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.problem-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.problem-card-title i { color: var(--brand); }
.problem-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.tag {
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.tag-red { background: rgba(231,92,105,0.1); color: var(--red); border-color: rgba(231,92,105,0.25); }
.tag-amber { background: rgba(246,181,0,0.12); color: #b98800; border-color: rgba(246,181,0,0.3); }
.tag-blue { background: rgba(57,89,255,0.1); color: var(--brand); border-color: rgba(57,89,255,0.25); }
.tag-green { background: rgba(47,191,113,0.12); color: #1f9c5a; border-color: rgba(47,191,113,0.3); }
.arrow-down {
  text-align: center;
  color: var(--fg-mute);
  margin: 14px 0;
  font-size: 16px;
}

/* =============== Figures =============== */
.figure {
  margin: 22px 0 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s, transform 0.3s;
}
.figure:hover { box-shadow: var(--shadow-lg); }
.figure img {
  border-radius: calc(var(--radius-lg) - 10px);
  width: 100%;
}
.figure figcaption {
  padding: 12px 8px 4px;
  font-size: 13.5px;
  color: var(--fg-mute);
  line-height: 1.5;
  text-align: center;
}
.figure figcaption.light { color: var(--fg-mute); }
.section-dark .figure {
  background: rgba(255,255,255,0.85);
  border-color: rgba(15,20,36,0.08);
  backdrop-filter: blur(10px);
}
.figure-compact { margin-top: 12px; }

/* =============== Framework pipeline =============== */
.pipeline {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.step {
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.25s;
}
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-1);
  opacity: 0.9;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--brand);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 6px;
}
.step-text { font-size: 14px; color: var(--fg-mute); line-height: 1.6; }

/* =============== Reflection grid =============== */
.reflect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.reflect-card {
  padding: 22px 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(15,20,36,0.08);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.reflect-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(57,89,255,0.25);
}
.reflect-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--fg);
  margin: 0 0 6px;
  font-weight: 600;
}
.reflect-card p {
  color: var(--fg-soft);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  position: relative;
  z-index: 1;
}
.reflect-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  position: relative;
  z-index: 1;
}
.reflect-local .reflect-badge { background: rgba(255,90,138,0.12); color: #c23f7a; }
.reflect-context .reflect-badge { background: rgba(246,181,0,0.14); color: #b98800; }
.reflect-global .reflect-badge { background: rgba(57,89,255,0.12); color: var(--brand); }
.reflect-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.reflect-local::before   { background: linear-gradient(90deg, #ff7ac6, #ff5a8a); }
.reflect-context::before { background: linear-gradient(90deg, #ffcc66, #f6b500); }
.reflect-global::before  { background: linear-gradient(90deg, #5b7cff, #3959ff); }
.reflect-local::after, .reflect-context::after, .reflect-global::after {
  content: '';
  position: absolute;
  inset: auto -30% -40% auto;
  width: 220px; height: 220px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.18;
  pointer-events: none;
}
.reflect-local::after { background: #ff7ac6; }
.reflect-context::after { background: #f6b500; }
.reflect-global::after { background: #5b7cff; }

/* =============== Benchmark =============== */
.bench-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 10px 0 6px;
}
.bs-item {
  padding: 16px 8px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.25s;
}
.bs-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.bs-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bs-label { font-size: 11px; color: var(--fg-mute); font-weight: 500; letter-spacing: 0.04em; }

.eval-levels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.el-card {
  padding: 20px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.el-head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.el-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--fg-soft);
  line-height: 1.65;
  font-size: 14.5px;
}

/* =============== Results table =============== */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow-x: visible;
  overflow-y: hidden;
  margin-top: 16px;
}
.results-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12.75px;
}
.results-table col.method-col { width: 31.5%; }
.results-table col.metric-col { width: 9.785%; }
.results-table thead th {
  background: #f7f4ec;
  font-weight: 600;
  color: var(--fg);
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 11.75px;
  line-height: 1.25;
}
.results-table th.tl, .results-table td.tl {
  text-align: left;
  padding-left: 10px;
  padding-right: 8px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.results-table th.group-global { background: #eef1ff; color: var(--brand); }
.results-table th.group-local  { background: #fff2f0; color: #c23f7a; }
.results-table tbody td {
  padding: 7px 5px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
  color: var(--fg-soft);
  line-height: 1.3;
}
.results-table tbody tr:hover { background: #faf9f5; }
.results-table .section-row td {
  background: #f2f0e9;
  font-weight: 600;
  color: var(--fg);
  text-align: left;
  padding: 7px 10px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.results-table td.b { font-weight: 700; color: #000; }
.results-table td.u { text-decoration: underline; text-underline-offset: 3px; }
.results-table tr.ours { background: linear-gradient(90deg, rgba(57,89,255,0.06), rgba(57,89,255,0.02)); }
.results-table tr.ours-best { background: linear-gradient(90deg, rgba(57,89,255,0.14), rgba(255,122,198,0.05)); }
.results-table tr.ours-best td { color: var(--fg); }
.results-table tr.ours:hover { background: rgba(57,89,255,0.1); }

.table-legend {
  padding: 12px 20px;
  font-size: 13px;
  color: var(--fg-mute);
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  background: #fbfaf7;
}
.legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 2px; vertical-align: -1px; }
.legend-b { background: var(--brand); }
.legend-u { background: rgba(57,89,255,0.4); }
.legend-ours { background: linear-gradient(135deg, rgba(57,89,255,0.6), rgba(255,122,198,0.6)); }

/* =============== Subsection / Panels =============== */
.subsection { margin-top: 52px; }
.subsection-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.panel {
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.panel-dark {
  background: #15192c;
  color: #e7eaf4;
  border-color: rgba(255,255,255,0.1);
}
.panel-dark .panel-title { color: #fff; }
.panel-dark .panel-text { color: #c3cadb; }
.panel-dark .plabel { color: #c3cadb; }
.panel-dark .highlight-row .plabel { color: #fff; }
.panel-dark .pval { color: #fff; }
.panel-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-dark .panel-title { border-color: rgba(255,255,255,0.1); }
.panel-text { color: var(--fg-soft); font-size: 15px; line-height: 1.7; margin: 0 0 16px; }
.panel-rows { display: flex; flex-direction: column; gap: 10px; }
.prow {
  display: grid;
  grid-template-columns: 180px 1fr 46px;
  gap: 14px;
  align-items: center;
}
.plabel { font-size: 14px; color: var(--fg-soft); font-weight: 500; }
.highlight-row .plabel { color: var(--fg); font-weight: 600; }
.pbar {
  height: 10px;
  background: rgba(15,20,36,0.07);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.pbar span {
  display: block;
  height: 100%;
  background: var(--gradient-1);
  border-radius: 999px;
  transform-origin: left;
  animation: barIn 1.1s cubic-bezier(.2,.8,.2,1) both;
}
.pbar-alt { background: rgba(255,255,255,0.08); }
.pbar-alt span { background: linear-gradient(90deg, #16b3a3, #5b7cff); }
.highlight-row .pbar span { background: var(--gradient-2); }
@keyframes barIn { from { transform: scaleX(0); } }
.pval {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
  text-align: right;
}
.panel-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--fg-mute);
  font-size: 13.5px;
}
.panel-dark .panel-foot { border-color: rgba(255,255,255,0.1); color: #9ea8c2; }

/* =============== Gallery =============== */
.gallery-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.gbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg-soft);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.gbtn:hover { border-color: var(--brand); color: var(--brand); }
.gbtn.active {
  background: var(--gradient-1);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(57,89,255,0.3);
}
.gallery-figure { position: relative; }
.gallery-img { display: none; }
.gallery-img.active { display: block; }

.user-study {
  margin-top: 56px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.user-study::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--gradient-2);
  opacity: 0.12;
  filter: blur(30px);
}
.us-left { position: relative; z-index: 1; }
.us-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 88px;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.us-num span { font-size: 40px; margin-left: 2px; }
.us-label {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.us-right h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 10px;
}
.us-right p {
  color: var(--fg-soft);
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
}

/* =============== Cost cards =============== */
.cost-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.cost-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.25s;
}
.cost-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cost-ours {
  background: linear-gradient(135deg, #15192c 0%, #1d2340 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.cost-ours:hover { transform: scale(1.03) translateY(-4px); }
.cost-head {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 10px;
}
.cost-ours .cost-head { color: #9cb2ff; }
.cost-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.cost-big span {
  font-size: 20px;
  color: var(--fg-mute);
  font-weight: 500;
  margin-left: 2px;
}
.cost-ours .cost-big span { color: #9cb2ff; }
.cost-ours .cost-big {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cost-sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--fg-mute);
}
.cost-ours .cost-sub { color: #c3cadb; }
.cost-note {
  margin-top: 28px;
  color: var(--fg-mute);
  font-size: 15px;
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* =============== BibTeX =============== */
.bibtex-wrap {
  position: relative;
  margin-top: 16px;
}
.bibtex {
  margin: 0;
  padding: 26px 28px;
  background: #15192c;
  color: #e7eaf4;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 14.5px;
  line-height: 1.7;
  overflow-x: auto;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.06);
}
.copy-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.copy-btn:hover { background: rgba(255,255,255,0.2); }
.copy-btn.copied { background: rgba(47,191,113,0.25); color: #7fe3a9; border-color: rgba(47,191,113,0.3); }

/* =============== Footer =============== */
.footer {
  padding: 48px 0 36px;
  background: #15192c;
  color: #9ea8c2;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}
.footer-tag { font-size: 14px; margin-top: 4px; }
.footer-right { display: flex; gap: 12px; font-size: 14px; align-items: center; flex-wrap: wrap; }
.footer-right a { color: #c3cadb; }
.footer-right a:hover { color: #fff; }
.footer-sep { color: rgba(255,255,255,0.2); }
.footer-note {
  margin-top: 18px;
  font-size: 13px;
  color: #6a7088;
  line-height: 1.7;
}
.footer-note code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* =============== Reveal animation =============== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =============== arXiv icon (simple) =============== */
.ai.ai-arxiv::before {
  content: 'arXiv';
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #b31b1b;
  background: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #b31b1b;
  display: inline-block;
  line-height: 1;
  vertical-align: -1px;
}
.btn-outline:hover .ai.ai-arxiv::before { background: #b31b1b; color: #fff; }

/* =============== Responsive =============== */
@media (max-width: 1024px) {
  .nav-links { gap: 18px; font-size: 14px; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .bench-stats { grid-template-columns: repeat(3, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .cost-cards { grid-template-columns: 1fr; }
  .reflect-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .highlights { grid-template-columns: 1fr; }
  .eval-levels { grid-template-columns: 1fr; }
  .user-study { grid-template-columns: 1fr; gap: 18px; text-align: center; }
}
@media (max-width: 720px) {
  .nav-inner { padding: 12px 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { padding: 0 20px 12px; }
  .mobile-nav.open { display: flex; }
  .container { padding: 0 20px; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 72px 0; }
  .cta-row { gap: 8px; }
  .btn { padding: 10px 16px; font-size: 13.5px; }
  .pipeline { grid-template-columns: 1fr; }
  .bench-stats { grid-template-columns: repeat(2, 1fr); }
  .prow { grid-template-columns: 130px 1fr 40px; }
  .plabel { font-size: 13px; }
  .table-wrap { overflow-x: auto; }
  .results-table {
    min-width: 920px;
    font-size: 12.5px;
    table-layout: auto;
  }
  .results-table th.tl, .results-table td.tl { padding-left: 10px; }
  .results-table tbody td { padding: 8px 4px; }
  .us-num { font-size: 64px; }
  .hero-visual { padding: 8px; }
  .figure { padding: 10px; }
  .abstract-text { font-size: 16px; }
  .author-notes { font-size: 12px; }
  .table-legend { min-width: 920px; }
}
