/* ===== 1. RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0c10;
  --surface:   #111419;
  --surface2:  #181c23;
  --border:    #252a34;
  --border2:   #2e3440;
  --text:      #e8eaf0;
  --muted:     #6b7280;
  --accent:    #f0c040;
  --accent2:   #e8854a;
  --radius:    8px;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  min-height: 100vh;
}

body.modal-open { overflow: hidden; }

/* ===== 2. HERO & TYPOGRAPHY ===== */
.hero {
  padding: 80px 40px 60px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 0%, rgba(240,192,64,0.07) 0%, transparent 70%);
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(240,192,64,0.4);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f0c040 0%, #e8854a 50%, #f0c040 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 40px; }

/* ===== 3. NAVIGATION ===== */
.toc { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.toc a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border2);
  padding: 6px 16px;
  border-radius: 4px;
  transition: all 0.2s;
}
.toc a:hover, .toc a.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(240, 192, 64, 0.06);
}

/* ===== 4. LAYOUT & SECTIONS ===== */
main { max-width: 1400px; margin: 0 auto; padding: 0 32px 80px; }
.section { padding: 64px 0 0; animation: fadeIn 0.4s ease both; }
.section-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 32px; }
.section-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.section-desc { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ===== 5. ABSTRACT & CARDS ===== */
.compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.abstract-card { max-width: 900px; margin: 0 auto; }
.compare-body { padding: 32px; font-size: 14px; line-height: 1.9; color: var(--text); }
.compare-body p { margin-bottom: 16px; }
.compare-body p:last-child { margin-bottom: 0; }
.abstract-list { margin: 16px 0 16px 24px; list-style-type: disc; }
.abstract-list li { margin-bottom: 8px; color: var(--text); }

/* ===== 6. MODAL OVERLAY (For sub-pages) ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  opacity: 0; visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.visible { opacity: 1; visibility: visible; }
.modal-container {
  width: 90%; max-width: 1000px; max-height: 85vh;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  overflow: hidden;
}
.modal-overlay.visible .modal-container { transform: scale(1); }

/* ===== 7. FOOTER & SCROLLBAR ===== */
.site-footer { border-top: 1px solid var(--border); padding: 24px 32px; text-align: center; font-size: 11px; color: var(--muted); margin-top: 40px; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}