/* =====================================================
   SEARCHFORWARD — Complete Design System
   Pure CSS | No frameworks
   ===================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary:    #0D0F14; /* Deep Night Slate */
  --bg-secondary:  #14171E;
  --bg-tertiary:   #1D212B;
  --bg-card:       #161921;
  --glass:         rgba(255,255,255,0.03);
  --glass-hover:   rgba(255,255,255,0.07);
  --accent-violet: #FF8C00; /* Sunrise Orange (renamed for continuity in styles) */
  --accent-cyan:   #FFD700; /* Warm Gold */
  --accent-gold:   #F59E0B; /* Deep Amber */
  --accent-green:  #10B981; /* Emerald */
  --accent-pink:   #F43F5E; /* Rose Ember */
  --text-primary:  #F8FAFC; 
  --text-secondary:#94A3B8;
  --text-muted:    #475569;
  --bg-navbar:     rgba(13,15,20,0.85);
  --bg-strip:      rgba(17,17,24,0.95);
  --bg-overlay:    rgba(10,10,15,0.9);
  --border:        rgba(255,140,0,0.12);
  --border-hover:  rgba(255,140,0,0.35);
  --shadow-violet: 0 0 40px rgba(255,140,0,0.1);
  --shadow-cyan:   0 0 40px rgba(255,215,0,0.08);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --radius-xl:     32px;
  --sidebar-w:     260px;
  --navbar-h:      64px;
  --transition:    0.3s cubic-bezier(0.4,0,0.2,1);
  --font-head:     'Plus Jakarta Sans', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
}

/* ---------- Light Mode Overrides ---------- */
body.light-mode {
  --bg-primary:    #F8FBFF;
  --bg-secondary:  #FFFFFF;
  --bg-tertiary:   #F1F5F9;
  --bg-card:       #FFFFFF;
  --glass:         rgba(0,0,0,0.03);
  --glass-hover:   rgba(0,0,0,0.06);
  --text-primary:  #0F172A;
  --text-secondary:#475569;
  --text-muted:    #64748B;
  --border:        rgba(255,140,0,0.1);
  --border-hover:  rgba(255,140,0,0.3);
  --shadow-violet: 0 10px 40px rgba(255,140,0,0.06);
  --shadow-cyan:   0 10px 40px rgba(255,215,0,0.05);
  --bg-navbar:     rgba(248,251,255,0.85);
  --bg-strip:      rgba(241,245,249,0.95);
  --bg-overlay:    rgba(248,251,255,0.95);
}
body.light-mode .btn-secondary:hover {
  background: rgba(245,158,11,0.08); /* Soft Amber tint */
  color: #9A3412; /* Deep Burnt Orange for accessibility */
  border-color: #F59E0B;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; display: block; }
a { color: var(--accent-violet); text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-violet); border-radius: 3px; }

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--navbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: var(--bg-navbar);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
}
.nav-logo .logo-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #0f172a; font-weight: 800;
}
.nav-logo span { background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
#nav-search-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--glass);
  color: var(--text-secondary); font-size: 0.85rem;
  transition: all var(--transition);
}
#nav-search-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
#nav-search-btn kbd { font-family: var(--font-mono); font-size: 0.75rem; padding: 1px 4px; background: var(--bg-tertiary); border-radius: 3px; }
.nav-progress { position: absolute; bottom: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan)); width: 0%; transition: width 0.1s; }

/* ---------- SIDEBAR ---------- */
#sidebar {
  position: fixed; top: var(--navbar-h); left: 0; bottom: 0;
  width: var(--sidebar-w); z-index: 900;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  overflow-y: auto; padding: 1.5rem 0;
  transition: transform var(--transition);
}
.sidebar-header { padding: 0 1.25rem 1rem; color: var(--text-muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.toc-list { padding: 0; }
.toc-item a {
  display: block; padding: 0.45rem 1.25rem;
  color: var(--text-secondary); font-size: 0.85rem;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}
.toc-item a:hover { color: var(--text-primary); background: var(--glass); }
.toc-item.active a { color: var(--accent-violet); border-left-color: var(--accent-violet); background: rgba(108,99,255,0.07); }
.toc-item.child a { padding-left: 2rem; font-size: 0.8rem; }
#sidebar-toggle {
  display: none; position: fixed; bottom: 5rem; left: 1rem; z-index: 1100;
  padding: 0 16px; height: 44px; border-radius: 100px;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-gold));
  color: #0f172a; font-size: 1.1rem; font-family: var(--font-head); font-weight: 800;
  box-shadow: var(--shadow-violet);
  align-items: center; gap: 8px;
  transition: transform var(--transition);
}
.fab-label { font-size: 0.82rem; letter-spacing: 0.02em; }
#sidebar-toggle:active { transform: scale(0.95); }

/* ---------- MAIN LAYOUT ---------- */
#main-content {
  margin-left: var(--sidebar-w);
  padding-top: var(--navbar-h);
}

/* ---------- HERO ---------- */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 860px; padding: 2rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  border: 1px solid rgba(108,99,255,0.4);
  background: rgba(108,99,255,0.08);
  font-size: 0.8rem; color: var(--accent-violet); font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.8s ease both;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); animation: pulse 2s infinite; }
.hero-title {
  font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 1.25rem;
  animation: fadeSlideUp 0.8s 0.1s ease both;
}
.hero-title .gradient { background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle {
  font-size: 1.15rem; color: var(--text-secondary); max-width: 620px; margin: 0 auto 2rem;
  animation: fadeSlideUp 0.8s 0.2s ease both;
}
.hero-ctas {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: fadeSlideUp 0.8s 0.3s ease both;
}
.btn-primary {
  padding: 12px 28px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-gold));
  color: #0f172a; font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(108,99,255,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108,99,255,0.55); color: #0f172a; }
.btn-secondary {
  padding: 12px 28px; border-radius: var(--radius-md);
  border: 1px solid var(--border-hover); color: var(--text-primary);
  font-weight: 600; font-size: 0.95rem; background: var(--glass);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}
.btn-secondary:hover { background: var(--glass-hover); border-color: var(--accent-cyan); color: var(--accent-cyan); }
.hero-tags {
  display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
  animation: fadeSlideUp 0.8s 0.4s ease both;
}
.hero-tag {
  padding: 5px 14px; border-radius: 100px;
  background: var(--glass); border: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-secondary);
  transition: all var(--transition);
}
.hero-tag:hover { border-color: var(--accent-violet); color: var(--accent-violet); background: rgba(108,99,255,0.08); }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: var(--text-muted); animation: bounce 2s infinite; }
.hero-scroll svg { width: 24px; height: 24px; }

/* ---------- QUICK STRIP ---------- */
#quick-strip {
  position: sticky; top: var(--navbar-h); z-index: 800;
  background: var(--bg-strip); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 2rem; transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
#quick-strip.visible { transform: translateY(0); }
.strip-inner { display: flex; gap: 0.75rem; flex-wrap: wrap; max-width: 1000px; }
.strip-pill {
  padding: 6px 16px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--glass);
  font-size: 0.8rem; color: var(--text-secondary); font-weight: 500;
  transition: all 0.2s;
}
.strip-pill:hover { border-color: var(--accent-violet); color: var(--accent-violet); background: rgba(108,99,255,0.08); cursor: pointer; }

/* ---------- SECTION BASE ---------- */
.section { padding: 6rem 3rem; max-width: 1100px; margin: 0 auto; }
section[id] { scroll-margin-top: calc(var(--navbar-h) + 60px); }
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 8px; }
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--accent-gold); }
.section-title { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.05rem; color: var(--text-secondary); max-width: 620px; margin-bottom: 3rem; }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ---------- ANIMATION CLASSES ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay: 0.15s; }
.stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay: 0.25s; }
.stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay: 0.35s; }
.stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay: 0.45s; }
.stagger.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay: 0.55s; }

/* ---------- TIMELINE ---------- */
#timeline { background: var(--bg-secondary); padding: 5rem 0; overflow: hidden; scroll-margin-top: calc(var(--navbar-h) + 60px); }
.timeline-wrapper { padding: 0 3rem; max-width: 1100px; margin: 0 auto; }
.timeline-track { overflow-x: auto; padding-bottom: 1rem; cursor: grab; }
.timeline-track:active { cursor: grabbing; }
.timeline-line-wrap { position: relative; padding: 3rem 0 1rem; min-width: 800px; }
.timeline-line { position: absolute; top: calc(3rem + 18px); left: 0; right: 0; height: 2px; background: var(--border); }
.timeline-line-fill { position: absolute; top: calc(3rem + 18px); left: 0; height: 2px; background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan)); width: 0%; transition: width 1.5s cubic-bezier(0.4,0,0.2,1); }
.timeline-nodes { display: flex; justify-content: space-between; position: relative; }
.timeline-node { text-align: center; flex: 1; cursor: pointer; }
.timeline-dot {
  width: 36px; height: 36px; border-radius: 50%; margin: 0 auto 1rem;
  background: var(--bg-secondary); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all 0.4s; position: relative; z-index: 2;
}
.timeline-node.active .timeline-dot {
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  border-color: transparent;
  color: #0f172a; font-weight: 800;
  box-shadow: 0 0 20px rgba(255,140,0,0.4);
  transform: scale(1.2);
}
.timeline-year { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-violet); font-weight: 600; margin-bottom: 0.5rem; }
.timeline-label { font-family: var(--font-head); font-size: 0.85rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.4rem; }
.timeline-fact { font-size: 0.75rem; color: var(--text-secondary); max-width: 160px; margin: 0 auto; }

/* ---------- DEFINITION BLOCK ---------- */
.timeline-node.active::before {
  background: linear-gradient(135deg, rgba(255,140,0,0.1), rgba(255,215,0,0.05));
}
.definition-block {
  background: linear-gradient(135deg, rgba(108,99,255,0.08), rgba(0,212,255,0.05));
  border: 1px solid var(--border); border-left: 3px solid var(--accent-violet);
  border-radius: var(--radius-md); padding: 1.5rem 1.75rem; margin: 2rem 0;
  position: relative;
}
.definition-block::before { content: '"'; position: absolute; top: -0.5rem; left: 1rem; font-size: 3rem; color: var(--accent-violet); opacity: 0.3; line-height: 1; font-family: Georgia, serif; }
.definition-block p { font-size: 1.05rem; line-height: 1.75; color: var(--text-primary); font-style: italic; }

/* ---------- SPLIT LAYOUT ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
@media (max-width: 768px) { .split { grid-template-columns: 1fr; gap: 2rem; } .split.reverse { direction: ltr; } }

/* ---------- BENTO GRID ---------- */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 1.25rem; }
.bento-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: all var(--transition); cursor: default;
}
.bento-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow-violet); }
.bento-card.wide { grid-column: span 2; }
.bento-card.tall { grid-row: span 2; }
.bento-icon { font-size: 2rem; margin-bottom: 1rem; }
.bento-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.bento-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.bento-stat { font-family: var(--font-head); font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-top: 0.75rem; display: block; }

/* ---------- TABS ---------- */
.tab-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.tab-btn {
  padding: 7px 18px; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
  transition: all 0.2s; border: 1px solid transparent;
}
.tab-btn.active { color: var(--accent-violet); background: rgba(108,99,255,0.1); border-color: rgba(108,99,255,0.3); }
.tab-btn:hover:not(.active) { color: var(--text-primary); background: var(--glass); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease; }

/* ---------- PLATFORM SECTION ---------- */
.platform-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.platform-stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; }
.platform-stat-card .pf-name { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.4rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.platform-stat-card .pf-share { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; }
.platform-stat-card .pf-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ---------- SERP DIAGRAM ---------- */
.serp-diagram { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; max-width: 580px; margin: 0 auto; }
.serp-zone { border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: 0.75rem; transition: all 0.4s; opacity: 0; transform: translateY(10px); }
.serp-zone.visible { opacity: 1; transform: translateY(0); }
.serp-zone.ai-zone { background: rgba(255,215,0,0.08); border: 1px solid rgba(255,215,0,0.3); }
.serp-zone.ad-zone { background: rgba(255,107,157,0.05); border: 1px solid rgba(255,107,157,0.18); opacity: 0.5; }
.serp-zone.org-zone { background: var(--glass); border: 1px solid var(--border); opacity: 0.4; }
.serp-zone-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.ai-zone .serp-zone-label { color: var(--accent-gold); }
.ad-zone .serp-zone-label { color: var(--accent-pink); }
.org-zone .serp-zone-label { color: var(--text-muted); }
.serp-zone-content { font-size: 0.9rem; color: var(--text-secondary); }
.serp-badge { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; margin-left: 8px; }
.badge-primary { background: var(--accent-violet); color: #fff; }

/* ---------- RESEARCH TABLE ---------- */
.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-btn { padding: 6px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); border: 1px solid var(--border); background: var(--glass); transition: all 0.2s; }
.filter-btn.active { color: var(--accent-violet); border-color: var(--accent-violet); background: rgba(108,99,255,0.1); }
.filter-btn:hover:not(.active) { color: var(--text-primary); background: var(--glass-hover); }
.research-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.research-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.research-table th { background: var(--bg-tertiary); padding: 1rem 1.25rem; text-align: left; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.research-table td { padding: 1rem 1.25rem; font-size: 0.88rem; border-bottom: 1px solid rgba(108,99,255,0.08); vertical-align: top; }
.research-table tr:last-child td { border-bottom: none; }
.research-table tr { transition: background 0.2s; cursor: pointer; }
.research-table tr:hover td { background: var(--glass); }
.research-table tr.hidden { display: none; }
.research-table .topic-badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; background: rgba(108,99,255,0.15); color: var(--accent-violet); }
.research-table .expandable { display: none; }
.research-table tr.expanded .expandable { display: table-row; }
.expanded-quote { background: rgba(108,99,255,0.05); border-left: 3px solid var(--accent-violet); padding: 0.75rem 1.25rem; font-style: italic; font-size: 0.85rem; color: var(--text-secondary); }

/* ---------- SLIDER ---------- */
.slider-wrap { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border); }
.slides-track { display: flex; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.slide { min-width: 100%; position: relative; }
.slide-inner { padding: 2rem 3rem; min-height: 400px; display: flex; flex-direction: column; justify-content: center; }
.slide-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; color: var(--accent-violet); text-transform: uppercase; margin-bottom: 1rem; }
.slide-title { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; margin-bottom: 1rem; }
.slide-desc { color: var(--text-secondary); font-size: 1rem; max-width: 600px; line-height: 1.8; }
.slide-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 1.5rem; padding: 10px 20px; border-radius: var(--radius-sm); background: var(--accent-violet); color: #fff; font-weight: 600; font-size: 0.9rem; transition: all var(--transition); }
.slide-link:hover { background: #5a52e0; color: #fff; transform: translateX(3px); }
.slider-nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-top: 1px solid var(--border); }
.slider-dots { display: flex; gap: 8px; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: all 0.3s; cursor: pointer; }
.slider-dot.active { background: var(--accent-violet); width: 24px; border-radius: 4px; }
.slider-arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--glass); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all 0.2s; }
.slider-arrow:hover { border-color: var(--accent-violet); color: var(--accent-violet); background: rgba(108,99,255,0.1); }

/* ---------- HOW AI WORKS ---------- */
.ai-works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.ai-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: all var(--transition);
}
.ai-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-violet); }
.ai-card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.ai-card h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.ai-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }
.vector-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.82rem; font-family: var(--font-mono); }
.vector-table th, .vector-table td { padding: 0.6rem 0.8rem; text-align: center; border: 1px solid var(--border); }
.vector-table th { background: var(--bg-tertiary); color: var(--text-secondary); font-size: 0.75rem; }
.vector-table td { color: var(--text-primary); }
.vector-table td.high { color: var(--accent-cyan); font-weight: 700; }
.vector-table td.med { color: var(--accent-gold); }
.training-steps { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.training-step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan)); color: #fff; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-text h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; }
.step-text p { font-size: 0.82rem; color: var(--text-secondary); }

/* ---------- COMPARISON TABLE ---------- */
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th { background: var(--bg-tertiary); padding: 1rem 1.5rem; text-align: left; font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; border: 1px solid var(--border); }
.comparison-table th.seo-col { color: var(--accent-cyan); }
.comparison-table th.geo-col { color: var(--accent-violet); }
.comparison-table th.aeo-col { color: var(--accent-gold); }
.comparison-table td { padding: 0.85rem 1.5rem; font-size: 0.9rem; border: 1px solid var(--border); color: var(--text-secondary); transition: background 0.2s; }
.comparison-table tr:hover td { background: var(--glass); color: var(--text-primary); }
.comparison-table td:first-child { font-weight: 600; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- STEP CARDS (GSC) ---------- */
.steps-progress { display: flex; align-items: center; margin-bottom: 3rem; }
.step-node { display: flex; flex-direction: column; align-items: center; flex: 1; gap: 0.5rem; }
.step-circle { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--border); background: var(--bg-card); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-head); font-size: 1rem; color: var(--text-muted); transition: all 0.4s; cursor: pointer; }
.step-node.active .step-circle {
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  border-color: transparent;
  color: #0f172a;
  box-shadow: 0 0 20px rgba(255,140,0,0.3);
}
.step-connector { flex: 1; height: 2px; background: var(--border); margin: 0 -1rem; margin-top: -1.5rem; }
.step-node.active ~ .step-node .step-connector { background: var(--border); }
.step-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-align: center; }
.step-node.active .step-label { color: var(--accent-violet); }
.gsc-step-content { display: none; }
.gsc-step-content.active { display: block; animation: fadeIn 0.3s ease; }
.gsc-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.gsc-card h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.gsc-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.75; margin-bottom: 1rem; }
.code-block { background: #0D0D14; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin: 1rem 0; font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent-cyan); overflow-x: auto; }
.callout { background: rgba(255,215,0,0.06); border: 1px solid rgba(255,215,0,0.25); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin: 1rem 0; font-size: 0.9rem; color: var(--text-secondary); }
.callout strong { color: var(--accent-gold); }

/* ---------- CHECKLIST ---------- */
.checklist-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.cl-tab { padding: 8px 20px; border-radius: 100px; font-size: 0.85rem; font-weight: 700; border: 1px solid var(--border); color: var(--text-secondary); transition: all 0.2s; }
.cl-tab.active { background: var(--accent-violet); border-color: var(--accent-violet); color: #0f172a; }
.checklist-progress { background: var(--bg-tertiary); border-radius: 100px; height: 8px; margin-bottom: 2rem; overflow: hidden; }
.checklist-bar { height: 100%; background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan)); border-radius: 100px; transition: width 0.5s ease; }
.checklist-items { display: flex; flex-direction: column; gap: 0.75rem; }
.cl-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1rem 1.25rem;
  cursor: pointer; transition: all 0.2s;
}
.cl-item:hover { border-color: var(--border-hover); }
.cl-item.checked { border-color: rgba(0,232,143,0.3); background: rgba(0,232,143,0.04); }
.cl-checkbox {
  width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid var(--border); background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 0.8rem; transition: all 0.2s; margin-top: 2px;
}
.cl-item.checked .cl-checkbox { background: var(--accent-green); border-color: var(--accent-green); color: #000; }
.cl-text h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.25rem; }
.cl-text p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }
.cl-panel { display: none; }
.cl-panel.active { display: block; }
.checklist-progress-label { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.checklist-progress-label span { color: var(--accent-green); font-weight: 700; }

/* ---------- KPI METRICS ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.kpi-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; text-align: center; transition: all var(--transition); }
.kpi-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.kpi-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.kpi-name { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.5rem; }
.kpi-def { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.kpi-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

/* ---------- LLMS.TXT DEBATE ---------- */
.debate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.debate-card { border-radius: var(--radius-lg); padding: 1.75rem; }
.debate-card.for-card { background: rgba(0,232,143,0.05); border: 1px solid rgba(0,232,143,0.2); }
.debate-card.against-card { background: rgba(255,107,157,0.05); border: 1px solid rgba(255,107,157,0.2); }
.debate-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; }
.for-card h3 { color: var(--accent-green); }
.against-card h3 { color: var(--accent-pink); }
.debate-card ul { display: flex; flex-direction: column; gap: 0.6rem; }
.debate-card li { font-size: 0.9rem; color: var(--text-secondary); padding-left: 1.25rem; position: relative; }
.debate-card li::before { position: absolute; left: 0; }
.for-card li::before { content: '✓'; color: var(--accent-green); font-weight: 700; }
.against-card li::before { content: '✗'; color: var(--accent-pink); font-weight: 700; }
.verdict-box { background: var(--bg-card); border: 1px solid var(--accent-violet); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; margin-top: 1.5rem; }
.verdict-box strong { color: var(--accent-violet); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: border-color 0.2s; }
.faq-item.open { border-color: rgba(108,99,255,0.4); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.5rem; cursor: pointer; font-weight: 600; font-size: 0.95rem;
  gap: 1rem; transition: color 0.2s;
}
.faq-q:hover { color: var(--accent-violet); }
.faq-item.open .faq-q { color: var(--accent-violet); }
.faq-icon { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; transition: all 0.3s; }
.faq-item.open .faq-icon { background: var(--accent-violet); border-color: var(--accent-violet); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1); }
.faq-a-inner { padding: 0 1.5rem 1.25rem; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.75; }

/* ---------- SEARCH OVERLAY ---------- */
#search-fab {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 2000;
  padding: 0 16px; height: 48px; border-radius: 100px;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  color: #0f172a; font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--font-head); font-weight: 700;
  box-shadow: 0 4px 20px rgba(108,99,255,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
#search-fab:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 30px rgba(108,99,255,0.6); }
#search-fab:active { transform: scale(0.95); }
#search-overlay {
  display: none; position: fixed; inset: 0; z-index: 3000;
  background: var(--bg-overlay); backdrop-filter: blur(20px);
  align-items: flex-start; justify-content: center; padding-top: 8vh;
}
#search-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
.search-modal { background: var(--bg-secondary); border: 1px solid var(--border-hover); border-radius: var(--radius-xl); width: 100%; max-width: 640px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.search-input-wrap { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.search-input-wrap svg { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
#search-input { width: 100%; background: none; border: none; outline: none; font-family: var(--font-body); font-size: 1.05rem; color: var(--text-primary); }
#search-input::placeholder { color: var(--text-muted); }
#search-close { color: var(--text-muted); font-size: 1.2rem; padding: 4px; transition: color 0.2s; }
#search-close:hover { color: var(--text-primary); }
#search-results { max-height: 400px; overflow-y: auto; padding: 0.75rem; }
.search-result-item { padding: 0.85rem 1rem; border-radius: var(--radius-sm); cursor: pointer; transition: background 0.15s; }
.search-result-item:hover { background: var(--glass-hover); }
.search-result-item .r-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; }
.search-result-item .r-section { font-size: 0.78rem; color: var(--accent-violet); }
.search-empty { padding: 2rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.search-hint { padding: 0.75rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 1.5rem; }
.search-hint span { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.search-hint kbd { font-family: var(--font-mono); font-size: 0.7rem; padding: 2px 6px; background: var(--bg-tertiary); border-radius: 3px; color: var(--text-secondary); }

/* ---------- FOOTER ---------- */
#footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 4rem 3rem 2rem; margin-top: 4rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; color: var(--text-secondary); max-width: 280px; line-height: 1.7; }
.footer-col h4 { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col li a { font-size: 0.88rem; color: var(--text-secondary); transition: color 0.2s; }
.footer-col li a:hover { color: var(--text-primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }
.footer-share { display: flex; gap: 0.75rem; }
.footer-share a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: var(--text-secondary); transition: all 0.2s; }
.footer-share a:hover { border-color: var(--accent-violet); color: var(--accent-violet); }
.sources-toggle { background: none; color: var(--accent-violet); font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 6px; }
.sources-list { display: none; margin-top: 1rem; }
.sources-list.open { display: block; }
.sources-list ol { display: flex; flex-direction: column; gap: 0.5rem; padding-left: 1.5rem; }
.sources-list li { font-size: 0.82rem; color: var(--text-secondary); list-style: decimal; }

/* ---------- GLOSSARY TOOLTIP ---------- */
.glossary-term { border-bottom: 1px dashed var(--accent-violet); cursor: help; color: inherit; position: relative; }
.glossary-term .tooltip {
  display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background: var(--bg-tertiary); border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm); padding: 0.6rem 0.9rem; width: 220px;
  font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5;
  z-index: 100; pointer-events: none; margin-bottom: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.glossary-term:hover .tooltip { display: block; animation: fadeIn 0.2s ease; }

/* ---------- KEYFRAMES ---------- */
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }

/* ---------- UTILITIES ---------- */
.text-gradient { background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.text-gold { color: var(--accent-gold); }
.text-cyan { color: var(--accent-cyan); }
.text-green { color: var(--accent-green); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.bold { font-weight: 700; } .mono { font-family: var(--font-mono); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-card.wide { grid-column: span 2; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .ai-works-grid { grid-template-columns: 1fr 1fr; }
  .ai-card[style*="grid-column:span 2"] { grid-column: span 2; }
}

@media (max-width: 768px) {
  /* --- Sidebar hidden by default --- */
  #sidebar { transform: translateX(-100%); width: 280px; }
  #sidebar.open { transform: translateX(0); box-shadow: 10px 0 40px rgba(0,0,0,0.5); }
  #sidebar-toggle { display: flex; align-items: center; justify-content: center; }
  #main-content { margin-left: 0; }

  /* --- Navbar compact --- */
  #navbar { padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-logo { font-size: 1rem; }
  .nav-logo .logo-icon { width: 30px; height: 30px; font-size: 0.85rem; }
  #nav-search-btn { padding: 5px 10px; font-size: 0.8rem; }
#nav-search-btn kbd { display: none; }
  .ai-abstract-inner { grid-template-columns: 1fr !important; gap: 1rem !important; text-align: center; }
  .ai-abstract-inner div { border-right: none !important; border-bottom: 1px solid var(--border); padding: 0 0 1rem 0 !important; }

  /* --- Sections spacing --- */
  .section { padding: 3rem 1.25rem; }
  .section-title { font-size: clamp(1.4rem, 5vw, 2rem); }
  .section-subtitle { font-size: 0.95rem; margin-bottom: 2rem; }

  /* --- Hero --- */
  #hero { min-height: 100svh; }
  .hero-content { padding: 1.5rem 1rem; }
  .hero-badge { font-size: 0.72rem; padding: 5px 12px; }
  .hero-subtitle { font-size: 1rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 280px; text-align: center; }
  .hero-tags { gap: 0.5rem; }
  .hero-tag { font-size: 0.72rem; padding: 4px 10px; }

  /* --- Quick Strip --- */
  #quick-strip { padding: 0.6rem 1rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .strip-inner { flex-wrap: nowrap; gap: 0.5rem; overflow-x: auto; padding-bottom: 4px; }
  .strip-pill { flex-shrink: 0; white-space: nowrap; font-size: 0.75rem; padding: 5px 12px; }
  .ai-card[style*="grid-column:span 2"],
  .ai-card[style*="span 2"] { grid-column: span 1 !important; }
  .vector-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem -1.25rem; padding: 0 1.25rem; }

  /* --- Timeline --- */
  .timeline-wrapper { padding: 0 1.25rem; }
  .timeline-line-wrap { min-width: 700px; }

  /* --- Split layouts --- */
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse { direction: ltr; }

  /* --- Bento Grid --- */
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.wide { grid-column: span 1; }

  /* --- Platform cards --- */
  .platform-stat-grid { grid-template-columns: 1fr; }

  /* --- Tab buttons --- */
  .tab-nav { gap: 0.35rem; }
  .tab-btn { padding: 6px 12px; font-size: 0.78rem; }

  /* --- SERP Diagram --- */
  .serp-diagram { padding: 1.25rem; }
  .serp-badge { display: block; margin-left: 0; margin-top: 0.3rem; }

  /* --- Research Table --- */
  .research-table-wrap { border-radius: var(--radius-md); }
  .research-table { min-width: 580px; }
  .research-table th, .research-table td { padding: 0.7rem 0.85rem; font-size: 0.8rem; }

  /* --- Slider --- */
  .slide-inner { padding: 1.5rem 1.25rem; min-height: 320px; }
  .slide-title { font-size: 1.2rem; }
  .slide-desc { font-size: 0.9rem; }

  /* --- AI Works Grid --- */
  .ai-works-grid { grid-template-columns: 1fr; }
  .ai-card[style*="grid-column:span 2"],
  .ai-card[style*="grid-column: span 2"] { grid-column: span 1 !important; }
  .ai-card { padding: 1.5rem; }

  /* --- Comparison Table --- */
  .comparison-table { min-width: 600px; }
  .comparison-table th, .comparison-table td { padding: 0.7rem 1rem; font-size: 0.82rem; }

  /* --- GSC Steps --- */
  .steps-progress { flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
  .step-connector { display: none; }
  .step-node { flex: 0 0 auto; width: 70px; }
  .step-circle { width: 40px; height: 40px; font-size: 0.9rem; }
  .step-label { font-size: 0.68rem; }
  .gsc-card { padding: 1.5rem; }
  .gsc-card h3 { font-size: 1.05rem; }
  .code-block { font-size: 0.75rem; padding: 0.85rem 1rem; }

  /* --- Checklist --- */
  .checklist-tabs { flex-wrap: wrap; }
  .cl-tab { padding: 6px 14px; font-size: 0.78rem; }
  .cl-item { padding: 0.85rem 1rem; gap: 0.75rem; }
  .cl-text h4 { font-size: 0.85rem; }
  .cl-text p { font-size: 0.78rem; }

  /* --- KPI Grid --- */
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-card { padding: 1.25rem; }

  /* --- Debate --- */
  .debate-grid { grid-template-columns: 1fr; }
  .debate-card { padding: 1.25rem; }

  /* --- FAQ --- */
  .faq-q { padding: 1rem 1.25rem; font-size: 0.88rem; }
  .faq-a-inner { padding: 0 1.25rem 1rem; font-size: 0.85rem; }

  /* --- Search Overlay --- */
  .search-modal { margin: 0 1rem; border-radius: var(--radius-lg); max-width: calc(100vw - 2rem); }
  #search-overlay { padding-top: 5vh; }
  .search-hint { flex-wrap: wrap; gap: 0.75rem; padding: 0.6rem 1rem; }

  /* --- FAB --- */
  #search-fab { width: auto; height: 44px; padding: 0 16px; font-size: 1rem; bottom: 1.5rem; right: 1.25rem; }
  #sidebar-toggle { width: auto; height: 42px; padding: 0 16px; font-size: 1rem; bottom: 4.5rem; left: 1.25rem; }

  /* --- Footer --- */
  #footer { padding: 3rem 1.25rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.35rem; }
  .section-subtitle { font-size: 0.88rem; }
  .hero-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .hero-subtitle { font-size: 0.9rem; }

  /* Even tighter padding */
  .section { padding: 2.5rem 1rem; }
  #navbar { height: 56px; }
  :root { --navbar-h: 56px; }
  .nav-logo { font-size: 0.9rem; gap: 7px; }
  .nav-logo .logo-icon { width: 26px; height: 26px; font-size: 0.75rem; border-radius: 7px; }

  /* Tab buttons smaller */
  .tab-btn { padding: 5px 10px; font-size: 0.72rem; }
  .filter-btn { padding: 5px 10px; font-size: 0.72rem; }

  /* Definition block */
  .definition-block { padding: 1.15rem 1.25rem; }
  .definition-block p { font-size: 0.92rem; }

  /* Callout */
  .callout { padding: 0.85rem 1rem; font-size: 0.82rem; }

  /* Bento */
  .bento-card { padding: 1.25rem; }
  .bento-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }

  /* Comparison table wrap */
  .comparison-table { min-width: 500px; }
  .comparison-table th, .comparison-table td { padding: 0.6rem 0.75rem; font-size: 0.78rem; }

  /* Slider compact */
  .slide-inner { padding: 1.25rem 1rem; min-height: 280px; }
  .slide-title { font-size: 1.1rem; }
  .slide-desc { font-size: 0.85rem; line-height: 1.6; }
  .slider-nav { padding: 0.75rem 1rem; }

  /* AI Card */
  .ai-card { padding: 1.25rem; }
  .ai-card-icon { font-size: 2rem; }
  .ai-card h3 { font-size: 1rem; }
  .ai-card p { font-size: 0.85rem; }

  /* Search modal full width */
  .search-modal { margin: 0 0.5rem; }
  #search-input { font-size: 0.95rem; }
}

