/* ===== CSS Custom Properties ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-alt2: #f1f5f9;
  --bg-card: #ffffff;

  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --green: #059669;
  --amber: #d97706;
  --red: #dc2626;

  --text: #0f172a;
  --text-sec: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.06);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none !important;
}

.nav-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-sec);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }

/* ===== Layout ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-sec);
  max-width: 600px;
  line-height: 1.6;
}
.section-header { margin-bottom: 3rem; }

/* ===== Hero ===== */
#hero {
  min-height: 100vh;
  padding-top: 60px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 40%, #f5f3ff 100%);
}

/* Animated blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: blobFloat 12s ease-in-out infinite alternate;
}
.hero-blob.b1 {
  width: 480px; height: 480px;
  background: rgba(37, 99, 235, 0.08);
  top: -100px; left: -80px;
}
.hero-blob.b2 {
  width: 360px; height: 360px;
  background: rgba(124, 58, 237, 0.07);
  top: 100px; right: -60px;
  animation-delay: -4s;
}
.hero-blob.b3 {
  width: 280px; height: 280px;
  background: rgba(5, 150, 105, 0.06);
  bottom: 80px; left: 30%;
  animation-delay: -8s;
}

@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(20px, -20px) scale(1.05); }
  66%  { transform: translate(-15px, 15px) scale(0.97); }
  100% { transform: translate(10px, -10px) scale(1.03); }
}

#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 3rem 0;
}

.conference-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.conf-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.3);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34,197,94,0.3); }
  50% { box-shadow: 0 0 0 5px rgba(34,197,94,0.1); }
}

.hero-title {
  font-size: clamp(1.85rem, 3.5vw, 2.9rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title .subtitle-line {
  display: block;
  font-size: 0.58em;
  font-weight: 500;
  color: var(--text-sec);
  margin-top: 0.5rem;
  -webkit-text-fill-color: var(--text-sec);
}
.accepted-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 0.4rem;
  border: 1px solid #bbf7d0;
}

.hero-meta {
  color: var(--text-sec);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.hero-meta strong { color: var(--text); }

.hero-accept-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.hero-accept-note svg { stroke: var(--green); flex-shrink: 0; }
.hero-accept-note strong { color: var(--primary); font-weight: 700; }

.hero-authors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
}
.author-chip {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-sec);
  font-weight: 500;
  transition: var(--transition);
}
.author-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #eff6ff;
}

.hero-cta { display: flex; gap: 0.875rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none !important;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}
.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--border-dark);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-figure-wrap {
  position: relative;
}
.hero-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  animation: heroFloat 7s ease-in-out infinite;
  background: var(--bg-alt);
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.hero-figure img { width: 100%; }

/* ===== Stats ===== */
#stats {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 1.25rem 1rem;
  border-right: 1px solid var(--border);
  transition: var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(37,99,235,0.03); }
.stat-number {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.35rem;
}
.stat-label { font-size: 0.82rem; color: var(--text-sec); font-weight: 500; }

/* ===== Abstract ===== */
#abstract { background: var(--bg); }

.abstract-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.abstract-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.abstract-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-sec);
  margin-bottom: 0.75rem;
}
.abstract-text:last-child { margin-bottom: 0; }
.abstract-text strong { color: var(--text); font-weight: 600; }

.contribs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.contrib-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}
.contrib-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
/* Update contrib-icon to hold SVG */
.contrib-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(37,99,235,0.09), rgba(124,58,237,0.07));
  border: 1px solid rgba(37,99,235,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
  flex-shrink: 0;
}
.contrib-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
}
.contrib-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.contrib-card p {
  font-size: 0.84rem;
  color: var(--text-sec);
  line-height: 1.6;
}

/* ===== Dataset ===== */
#dataset { background: var(--bg-alt); }

.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.two-col.flip { grid-template-columns: 1fr 1.1fr; }

.figure-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  background: #fff;
}
.figure-frame img { width: 100%; }
.figure-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.info-block h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.info-block p {
  font-size: 0.92rem;
  color: var(--text-sec);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.info-block p strong { color: var(--text); }

.chart-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.875rem;
  box-shadow: var(--shadow-sm);
}
.chart-box canvas { max-height: 190px; }
.chart-cap {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* ===== Framework ===== */
#framework { background: var(--bg); }

.framework-fig {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  margin-bottom: 2.5rem;
  background: #fff;
}
.framework-fig img { width: 100%; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }

.step-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.step-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.06), var(--shadow-md);
  transform: translateY(-3px);
}
.step-badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}
.step-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.step-card p { font-size: 0.84rem; color: var(--text-sec); line-height: 1.65; }

/* eff-* styles replaced — see bottom of file */

/* ===== Results ===== */
#results { background: var(--bg-alt); }

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.chart-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.chart-card:hover { box-shadow: var(--shadow-md); }
.chart-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.chart-card .sub { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1rem; }
.chart-card canvas { max-height: 240px; }

.cer-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.cer-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }
.cer-card .sub { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th {
  background: var(--bg-alt);
  color: var(--text-sec);
  font-weight: 600;
  padding: 0.6rem 0.875rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
td {
  padding: 0.65rem 0.875rem;
  color: var(--text-sec);
  border-bottom: 1px solid var(--bg-alt2);
}
tr:last-child td { border-bottom: none; }
.td-hi { color: var(--primary); font-weight: 700; }
.td-green { color: var(--green); font-weight: 700; }

.wc-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 3fr 2fr;
  box-shadow: var(--shadow-md);
}
.wc-img img { width: 100%; height: 100%; object-fit: cover; }
.wc-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  border-left: 1px solid var(--border);
}
.wc-body h4 { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.wc-body p { font-size: 0.88rem; color: var(--text-sec); line-height: 1.7; }
.error-breakdown {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
  border: 1px solid var(--border);
}
.error-breakdown strong { color: var(--text-sec); display: block; margin-bottom: 0.25rem; font-size: 0.82rem; }

/* ===== Deployment ===== */
#deployment { background: var(--bg); }

.deploy-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.deploy-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}
.ds-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  text-align: center;
  transition: var(--transition);
}
.ds-card:hover { border-color: var(--primary); background: #eff6ff; }
.ds-card .num { font-size: 1.75rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 0.25rem; }
.ds-card .lbl { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }

.quotes { display: flex; flex-direction: column; gap: 0.875rem; }
blockquote {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--text-sec);
  line-height: 1.65;
  font-style: italic;
}
blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.impact-box {
  margin-top: 1.5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}
.impact-box h5 { color: var(--green); font-size: 0.9rem; font-weight: 700; margin-bottom: 0.4rem; }
.impact-box p { font-size: 0.86rem; color: #374151; line-height: 1.65; }
.impact-box strong { color: #065f46; }

/* ===== Authors ===== */
#authors { background: var(--bg-alt); }

.authors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.author-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.author-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}
.author-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}
.author-card:hover::after { opacity: 1; }

.avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 2.5px solid var(--border);
  transition: var(--transition);
}
.author-card:hover .avatar { border-color: var(--primary); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials {
  width: 100px; height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: #fff;
  border: 2.5px solid transparent;
  transition: var(--transition);
}

.author-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
/* Make institution text slightly more visible */
.author-card .inst { font-size: 0.78rem; color: var(--text-sec); margin-bottom: 0.75rem; line-height: 1.4; }
.author-card .mail {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.76rem; color: var(--primary); transition: var(--transition);
}
.author-card .mail:hover { color: var(--accent); text-decoration: none; }

.corr-badge {
  position: absolute;
  top: 0.875rem; right: 0.875rem;
  font-size: 0.65rem; font-weight: 700;
  color: var(--primary);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}

/* ===== Citation ===== */
#citation { background: var(--bg); }

.cite-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cite-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.cite-header span { font-size: 0.82rem; font-family: var(--font-mono); color: var(--text-muted); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 600;
  padding: 0.4rem 0.875rem;
  cursor: pointer; transition: var(--transition);
  font-family: var(--font-sans);
}
.copy-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.copy-btn.copied { background: var(--green); }
.cite-body {
  padding: 1.5rem 1.75rem;
  background: #1e2030;
  overflow-x: auto;
}
.cite-body pre {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.8;
  color: #a9b1d6;
  white-space: pre;
}
.bk { color: #bb9af7; }   /* @key */
.bf { color: #7dcfff; }   /* field */
.bv { color: #9ece6a; }   /* value */
.bp { color: #565f89; }   /* punctuation */

/* ===== Footer ===== */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-left p { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.25rem; }
.footer-links { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.footer-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; color: var(--text-sec);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  transition: var(--transition);
}
.footer-chip:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* ===== Divider ===== */
.divider { height: 1px; background: var(--border); }

/* ===== Scroll Reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure-wrap { order: -1; max-width: 560px; margin: 0 auto; }
  .two-col, .two-col.flip { grid-template-columns: 1fr; }
  .deploy-grid { grid-template-columns: 1fr; }
  .wc-card { grid-template-columns: 1fr; }
  .wc-img { max-height: 280px; overflow: hidden; }
}
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
  section { padding: 3.5rem 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .contribs { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .authors-grid { grid-template-columns: repeat(2, 1fr); }
  .abstract-box { padding: 1.75rem; }
  /* efficiency-bar handled by new styles */
}
@media (max-width: 480px) {
  .authors-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.7rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .deploy-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Stats Heading ===== */
.stats-heading { text-align: center; margin-bottom: 1.75rem; }
.stats-sub { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ===== Stat Bars (replacing doughnut charts) ===== */
.stat-bars {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.sb-section { display: flex; flex-direction: column; gap: 0.6rem; }
.sb-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.sb-row {
  display: grid;
  grid-template-columns: 68px 1fr 54px;
  align-items: center;
  gap: 0.75rem;
}
.sb-label { font-size: 0.82rem; font-weight: 600; color: var(--text-sec); text-align: right; }
.sb-track {
  height: 24px;
  background: var(--bg-alt2);
  border-radius: 100px;
  overflow: hidden;
}
.sb-fill {
  height: 100%;
  border-radius: 100px;
  width: 0%;
  background: var(--sb-color, var(--primary));
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.sb-pct { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.sb-divider { height: 1px; background: var(--border); }

/* ===== Efficiency Bars ===== */
.efficiency-bar {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border: 1px solid #dbeafe;
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.eff-context {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0;
}
.eff-rows {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.eff-row {
  display: grid;
  grid-template-columns: 80px 1fr 74px;
  align-items: center;
  gap: 1rem;
}
.eff-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-sec);
  text-align: right;
  line-height: 1.35;
}
.eff-track {
  height: 32px;
  background: rgba(255,255,255,0.6);
  border-radius: 100px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}
.eff-fill {
  height: 100%;
  border-radius: 100px;
  width: 0%;
  transition: width 1.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.eff-fill.trad { background: linear-gradient(90deg, #cbd5e1, #94a3b8); }
.eff-fill.ai { background: linear-gradient(90deg, var(--primary), var(--accent)); }
.eff-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  text-align: left;
}
.eff-num.crossed { text-decoration: line-through; color: #cbd5e1; }
.eff-num.eff-num-new { color: var(--primary); }
.eff-pill {
  background: var(--green);
  color: #fff;
  padding: 0.5rem 1.4rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(5,150,105,0.25);
  align-self: center;
}

/* ===== Table scroll wrap ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ===== Responsive additions ===== */
@media (max-width: 480px) {
  .sb-row { grid-template-columns: 58px 1fr 50px; }
  .eff-row { grid-template-columns: 66px 1fr 64px; }
  .eff-fill.trad { max-width: 100%; }
  .efficiency-bar { padding: 1.5rem 1.25rem; }
}

/* ===== Contact ===== */
#contact { background: var(--bg-alt); }

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.contact-person {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.contact-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid var(--border);
  flex-shrink: 0;
}
.contact-avatar img { width: 100%; height: 100%; object-fit: cover; }
.contact-details { display: flex; flex-direction: column; gap: 0.25rem; }
.contact-name { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.contact-role { font-size: 0.83rem; color: var(--text-muted); }
.contact-email {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.9rem; font-weight: 600; color: var(--primary);
  margin-top: 0.2rem;
  transition: var(--transition);
}
.contact-email:hover { color: var(--accent); text-decoration: none; }
.contact-note {
  font-size: 0.9rem;
  color: var(--text-sec);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.contact-note strong { color: var(--text); }

@media (max-width: 480px) {
  .contact-card { padding: 1.5rem; }
  .contact-person { flex-direction: column; align-items: flex-start; }
}

/* ===== More Works Dropdown ===== */
.more-works-container {
  position: fixed;
  top: 4.2rem;
  right: 1.5rem;
  z-index: 1000;
}

.more-works-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sec);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.more-works-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(37,99,235,0.22);
}

.more-works-btn i { font-size: 0.8rem; }

.more-works-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.more-works-dropdown.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #aaa;
  padding: 6px 8px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.work-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 8px;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.work-item:hover {
  background: var(--bg-alt);
  transform: translateX(4px);
}

.work-item-badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
  min-width: 48px;
  text-align: center;
}

.work-item-badge--cvpr { background: #e8f4fd; color: #0866cc; }
.work-item-badge--aaai { background: #fde8e8; color: #c0392b; }
.work-item-badge--gh { background: #f0f0f0; color: #24292e; }

.work-item-info strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
}

.work-item-info span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ===== Visitor Map ===== */
.visitor-map-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.visitor-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.clustrmap-container {
  display: inline-block;
  max-width: 400px;
}

@media (max-width: 480px) {
  .more-works-container { top: 3.8rem; right: 1rem; }
  .more-works-dropdown { width: 280px; }
}
