/* ═══════════════════════════════════════════════════════════════
   Handgun Hero — Modern Premium Redesign
   Dark Midnight Theme | Outfit font | Vibrant Accents
   ═══════════════════════════════════════════════════════════════ */

/* ── Custom properties ──────────────────────────────────────────── */
:root {
  --bg:          #050505;
  --bg-2:        #0c0c0e;
  --bg-card:     #121216;
  --bg-card-h:   #1a1a20;
  --border:      rgba(255,255,255,0.06);
  --border-2:    rgba(255,255,255,0.12);
  --accent:      #6366f1; /* Indigo */
  --accent-h:    #818cf8;
  --gun-a:       #ef4444;
  --gun-a-soft:  rgba(239, 68, 68, 0.15);
  --gun-b:       #3b82f6;
  --gun-b-soft:  rgba(59, 130, 246, 0.15);
  --gun-c:       #10b981;
  --gun-c-soft:  rgba(16, 185, 129, 0.15);
  --text:        #f8fafc;
  --text-dim:    #94a3b8;
  --text-muted:  #64748b;
  --success:     #22c55e;
  --radius:      16px;
  --radius-sm:   10px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow:      0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.6);
  --glass:       rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* ── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; transition: var(--transition); }
input, select { font-family: inherit; }

/* ── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ═══════════════════════ NAVIGATION ═══════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition);
}
.nav.scrolled {
  background: rgba(5, 5, 5, 0.9);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-icon {
  font-size: 24px;
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}
.logo-text strong { color: var(--accent); font-weight: 800; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--glass);
}

/* ═══════════════════════ NAV SEARCH ══════════════════════════════ */
.nav-search {
  flex: 1;
  max-width: 320px;
  margin-left: auto;
  position: relative;
}
.nav-search-input {
  width: 100%;
  height: 42px;
  padding: 0 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: all var(--transition);
}
.nav-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  background: var(--bg-card-h);
}
.nav-search-input::placeholder { color: var(--text-muted); }

.nav-search-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  display: none;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.nav-search-dropdown.visible { display: block; }

/* ═══════════════════════ HERO ══════════════════════════════════ */
.hero {
  position: relative;
  padding: 140px 24px 100px;
  text-align: center;
  z-index: 10;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 100%);
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 900px; margin: 0 auto; z-index: 20; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-h);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(48px, 10vw, 84px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -3px;
  margin-bottom: 24px;
}
.hero-title-accent {
  background: linear-gradient(to right, #6366f1, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 20px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 56px;
}

/* Hero compare box */
.hero-compare-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(18, 18, 22, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 24px 32px;
  box-shadow: var(--shadow-lg);
  max-width: 860px;
  margin: 0 auto;
}
.hcb-slot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  text-align: left;
}
.hcb-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}
.hcb-label.a { color: var(--gun-a); }
.hcb-label.b { color: var(--gun-b); }

.hcb-input-wrap { position: relative; }
.hcb-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: all var(--transition);
}
.hcb-input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.hcb-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #1a1a20;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  display: none;
  max-height: 400px;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}
.hcb-dropdown.visible { display: block; }

.hcb-vs {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-muted);
  font-style: italic;
  padding: 0 10px;
  margin-top: 20px;
}
.hcb-btn {
  height: 52px;
  padding: 0 32px;
  background: var(--bg-card-h);
  color: var(--text-muted);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 21px;
  border: 1px solid var(--border-2);
}
.hcb-btn.ready {
  background: linear-gradient(135deg, var(--accent), #a855f7);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}
.hcb-btn.ready:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
}

/* ═══════════════════════ SECTIONS ══════════════════════════════ */
.section { padding: 100px 24px; }
.section-inner { max-width: 1240px; margin: 0 auto; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0;
}
.section-link {
  font-size: 15px;
  color: var(--accent-h);
  font-weight: 600;
}
.section-link:hover { text-decoration: underline; }

/* ═══════════════════════ POPULAR COMPARISON CARDS ══════════════ */
.comparison-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.cmp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.cmp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent);
  opacity: 0;
  transition: var(--transition);
}
.cmp-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.cmp-card:hover::before { opacity: 1; }

.cmp-card-guns {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}
.cmp-gun-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.cmp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}
.cmp-badge.a { background: var(--gun-a-soft); color: var(--gun-a); }
.cmp-badge.b { background: var(--gun-b-soft); color: var(--gun-b); }
.cmp-vs-dot { font-size: 16px; color: var(--text-muted); font-weight: 800; }

.cmp-card-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  z-index: 2;
}
.cmp-arrow { color: var(--accent); font-size: 18px; }

/* ═══════════════════════ GUN CHIP GRID ═════════════════════════ */
.gun-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.gun-chip {
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gun-chip:hover {
  background: var(--bg-card-h);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.chip-brand { color: var(--text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.chip-model { font-weight: 700; font-size: 16px; color: var(--text); }
.chip-caliber { color: var(--accent-h); font-size: 12px; font-weight: 600; }

/* ═══════════════════════ FEATURES GRID ═════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--border-2);
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 15px;
  color: var(--text-dim);
}

/* ═══════════════════════ SELECTION BAR ═════════════════════════ */
.sel-bar {
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 24px;
  position: sticky;
  top: 72px; /* nav height */
  z-index: 100;
}
.sel-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 80px;
  gap: 12px;
}
.sel-slot {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 12px;
  height: 52px;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border);
}
.sel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.sel-badge.a { background: var(--gun-a-soft); color: var(--gun-a); border: 1px solid rgba(239, 68, 68, 0.2); }
.sel-badge.b { background: var(--gun-b-soft); color: var(--gun-b); border: 1px solid rgba(59, 130, 246, 0.2); }

.sel-vs {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-muted);
  font-style: italic;
}

.sel-search-wrap { position: relative; flex: 1; }
.sel-input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 15px;
  outline: none;
}
.sel-input::placeholder { color: var(--text-muted); }

.sel-chosen {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.sel-chosen-info { flex: 1; }
.sel-brand { display: block; font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }
.sel-model { display: block; font-size: 15px; font-weight: 700; color: var(--text); }

.sel-clear {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all var(--transition);
}
.sel-clear:hover { background: rgba(255,255,255,0.1); color: var(--gun-a); }

/* ═══════════════════════ CONTROL BAR ═══════════════════════════ */
.ctrl-bar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.ctrl-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.ctrl-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ctrl-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 8px;
}
.ctrl-btn {
  height: 36px;
  padding: 0 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}
.ctrl-btn:hover { color: var(--text); border-color: var(--border-2); background: var(--bg-card-h); }
.ctrl-btn.active {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--accent);
  color: var(--accent-h);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

/* ═══════════════════════ COMPARISON CANVAS ══════════════════════ */
.cmp-canvas-wrap {
  background: radial-gradient(circle at 50% 50%, #0c0c10 0%, #050505 100%);
  padding: 60px 24px;
  overflow-x: auto;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cmp-canvas {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.sbs-view {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 60px;
}

.gun-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.gun-container {
  position: relative;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.gun-container::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 10%;
  right: 10%;
  height: 10px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, transparent 70%);
  filter: blur(10px);
  z-index: -1;
}

.gun-container.gun-a { filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.1)); }
.gun-container.gun-b { filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.1)); }

.gun-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.gm-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gun-meta.a .gm-badge { background: var(--gun-a-soft); color: var(--gun-a); }
.gun-meta.b .gm-badge { background: var(--gun-b-soft); color: var(--gun-b); }
.gm-name { font-weight: 700; font-size: 14px; }
.gm-dim { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-muted); }

/* ═══════════════════════ BROWSE PAGE ═══════════════════════════ */
.browse-section { padding: 80px 24px; }
.browse-inner { max-width: 1400px; margin: 0 auto; }
.browse-title { font-size: 42px; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 32px; }

.filter-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  flex: 1;
  min-width: 300px;
}
.filter-search-input {
  flex: 1;
  height: 48px;
  background: transparent;
  border: none;
  color: var(--text);
  outline: none;
}
.filter-select {
  height: 48px;
  padding: 0 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  outline: none;
  cursor: pointer;
}
.filter-clear-btn {
  height: 48px;
  padding: 0 20px;
  background: var(--gun-a-soft);
  color: var(--gun-a);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  font-weight: 600;
}

/* Gun Grid */
.gun-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.gun-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition);
}
.gun-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.gun-card-image { background: var(--bg-2); height: 180px; padding: 20px; }
.gun-card-body { padding: 20px; }
.gc-brand { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.gc-model { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.gc-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.gc-tag { padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.gc-tag.caliber { background: var(--gun-b-soft); color: var(--gun-b); }
.gc-tag.category { background: var(--glass); color: var(--text-dim); }

.gun-card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
}
.compare-pick-btn {
  width: 100%;
  height: 40px;
  background: var(--bg-card-h);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 13px;
  transition: all var(--transition);
}
.compare-pick-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* Pick Toast */
.pick-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a24;
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3);
  z-index: 2000;
  animation: slideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pt-compare-btn {
  height: 40px;
  padding: 0 20px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}

/* Pagination */
.pagination-footer { margin-top: 60px; text-align: center; }
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.pag-btn, .pag-num {
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  color: var(--text-dim);
}
.pag-btn:hover, .pag-num:hover { border-color: var(--accent); color: var(--text); }
.pag-num.active { background: var(--accent); color: white; border-color: var(--accent); }

/* ═══════════════════════ SPEC TABLE ═════════════════════════════ */
.spec-section { background: var(--bg-2); padding: 80px 24px; }
.spec-table-wrap { max-width: 1000px; margin: 0 auto; }
.spec-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.spec-row { background: var(--bg-card); border: 1px solid var(--border); transition: all var(--transition); }
.spec-row:hover { background: var(--bg-card-h); transform: scale(1.01); }
.spec-label { padding: 20px 24px; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); width: 200px; }
.spec-val { padding: 20px 24px; font-size: 16px; font-weight: 600; text-align: center; }
.spec-val.a { color: var(--text); border-left: 3px solid var(--gun-a); }
.spec-val.b { color: var(--text); border-left: 3px solid var(--gun-b); }
.spec-delta { padding: 20px 24px; font-size: 12px; font-family: 'JetBrains Mono', monospace; text-align: right; }

/* ═══════════════════════ FOOTER ═════════════════════════════════ */
.footer {
  background: #000000;
  border-top: 1px solid var(--glass-border);
  padding: 80px 24px;
  color: var(--text-dim);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-brand .logo-text { font-size: 24px; }
.footer-tagline { font-size: 15px; color: var(--text-muted); }

.footer-links { display: flex; gap: 32px; }
.footer-links a { font-size: 14px; font-weight: 500; color: var(--text-dim); }
.footer-links a:hover { color: var(--accent); }

.footer-note { font-size: 12px; color: var(--text-muted); max-width: 500px; line-height: 1.6; }

/* ═══════════════════════ ANIMATIONS ════════════════════════════ */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cmp-card, .feature-card, .gun-chip, .gun-card, .spec-row {
  animation: slideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* Hidden utility */
.hidden { display: none !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-inner { height: 60px; padding: 0 16px; }
  .logo-text { font-size: 18px; }
  .hero-title { font-size: 40px; }
  .section { padding: 60px 16px; }
  .nav-search, .nav-links { display: none; }
  .sel-bar-inner { height: auto; flex-direction: column; padding: 16px 0; }
  .sel-slot { width: 100%; }
}
