/* ============================================
   CYBERSHIELD - Cybersecurity Command Center
   Hacker-meets-enterprise aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0d0d14;
  --bg-card: #0f0f18;
  --bg-card-hover: #131320;
  --green: #00ff41;
  --green-dim: #00cc33;
  --green-glow: rgba(0, 255, 65, 0.15);
  --green-glow-strong: rgba(0, 255, 65, 0.35);
  --amber: #ffa500;
  --amber-dim: #cc8400;
  --amber-glow: rgba(255, 165, 0, 0.15);
  --red: #ff3333;
  --red-glow: rgba(255, 51, 51, 0.15);
  --cyan: #00e5ff;
  --cyan-glow: rgba(0, 229, 255, 0.15);
  --text-primary: #e0e0e0;
  --text-secondary: #8a8a9a;
  --text-dim: #555566;
  --border-color: #1a1a2e;
  --border-glow: rgba(0, 255, 65, 0.2);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --scanline-opacity: 0.03;
  --transition-speed: 0.3s;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--green-dim) var(--bg-primary);
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--green-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ---- Scanline Overlay ---- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 65, var(--scanline-opacity)) 2px,
    rgba(0, 255, 65, var(--scanline-opacity)) 4px
  );
  pointer-events: none;
  z-index: 9999;
  animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

/* ---- Grid Overlay ---- */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(0,255,65,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,65,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

p { margin-bottom: 1rem; }

a {
  color: var(--green);
  text-decoration: none;
  transition: all var(--transition-speed);
}
a:hover { color: var(--amber); text-shadow: 0 0 8px var(--amber-glow); }

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '//';
  color: var(--text-dim);
}

.section-title {
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
  margin-top: 12px;
}

/* ---- Container ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all var(--transition-speed);
}
.nav.scrolled {
  border-bottom-color: var(--green-dim);
  box-shadow: 0 2px 20px rgba(0, 255, 65, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 2px;
}
.nav-logo:hover { color: var(--green); }
.nav-logo .shield-icon {
  width: 28px; height: 28px;
  fill: var(--green);
  filter: drop-shadow(0 0 6px var(--green-glow));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 4px;
  transition: all var(--transition-speed);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  background: var(--green-glow);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--green);
  width: 40px; height: 40px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
}

/* Mobile nav */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(10, 10, 15, 0.97);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; width: 100%; }
  .nav-toggle { display: flex; }
}

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(0,255,65,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,165,0,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(0,229,255,0.03) 0%, transparent 50%);
  z-index: 0;
}

/* Matrix Rain Canvas */
#matrix-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.12;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
  background: rgba(255,165,0,0.08);
  border: 1px solid rgba(255,165,0,0.2);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero-badge .pulse-dot {
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero h1 {
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.2;
}
.hero h1 .highlight {
  color: var(--green);
  text-shadow: 0 0 30px var(--green-glow-strong);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed);
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--green-glow), inset 0 0 20px rgba(0,0,0,0.1);
}
.btn-primary:hover {
  background: #33ff66;
  color: var(--bg-primary);
  box-shadow: 0 0 30px var(--green-glow-strong);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green-dim);
}
.btn-outline:hover {
  background: var(--green-glow);
  color: var(--green);
  border-color: var(--green);
  transform: translateY(-2px);
}

.btn-amber {
  background: transparent;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
}
.btn-amber:hover {
  background: var(--amber-glow);
  border-color: var(--amber);
  color: var(--amber);
}

/* ---- Sections ---- */
section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), var(--green-dim), var(--border-color), transparent);
  margin: 0;
}

/* ---- Stat Bar ---- */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}
.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--amber));
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  display: block;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

/* ---- Threat Level Indicator ---- */
.threat-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.threat-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--amber), var(--red));
}

.threat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.threat-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: rgba(0,0,0,0.3);
  transition: all var(--transition-speed);
}
.threat-item:hover {
  border-color: var(--green-dim);
  background: rgba(0,255,65,0.02);
}
.threat-item.level-critical {
  border-left: 3px solid var(--red);
}
.threat-item.level-high {
  border-left: 3px solid var(--amber);
}
.threat-item.level-medium {
  border-left: 3px solid #ffdd00;
}
.threat-item.level-low {
  border-left: 3px solid var(--green);
}

.threat-level-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.badge-critical { background: var(--red-glow); color: var(--red); border: 1px solid rgba(255,51,51,0.3); }
.badge-high { background: var(--amber-glow); color: var(--amber); border: 1px solid rgba(255,165,0,0.3); }
.badge-medium { background: rgba(255,221,0,0.1); color: #ffdd00; border: 1px solid rgba(255,221,0,0.3); }
.badge-low { background: var(--green-glow); color: var(--green); border: 1px solid rgba(0,255,65,0.3); }

.threat-info h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 4px;
}
.threat-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ---- Guide Cards ---- */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 32px;
  cursor: pointer;
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
}
.guide-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(135deg, var(--green-dim), transparent 40%, transparent 60%, var(--amber-dim));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-speed);
}
.guide-card:hover::before { opacity: 1; }
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 255, 65, 0.08);
  border-color: transparent;
}

.guide-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.guide-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 10px;
}

.guide-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.guide-card .read-more {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.guide-card:hover .read-more { gap: 10px; }

/* ---- Guide Detail (Modal / Expanded) ---- */
.guide-detail-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  overflow-y: auto;
  padding: 80px 24px;
}
.guide-detail-overlay.active { display: block; }

.guide-detail {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 48px;
  position: relative;
}
.guide-detail-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 36px; height: 36px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed);
}
.guide-detail-close:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-glow);
}

.guide-detail h2 {
  text-transform: none;
  letter-spacing: 0.5px;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #fff;
}

.guide-detail .guide-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 28px;
  display: flex;
  gap: 20px;
}

.guide-detail .guide-body {
  font-size: 1rem;
  line-height: 1.85;
}

.guide-detail .guide-body h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--green);
  margin: 28px 0 12px;
}

.guide-detail .guide-body ul,
.guide-detail .guide-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.guide-detail .guide-body li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.guide-detail .guide-body li strong {
  color: var(--text-primary);
}

.guide-detail .guide-body .tip-box {
  background: var(--green-glow);
  border: 1px solid rgba(0,255,65,0.2);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 20px 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green);
}
.guide-detail .guide-body .warning-box {
  background: var(--amber-glow);
  border: 1px solid rgba(255,165,0,0.2);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 20px 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--amber);
}

/* ---- Interactive Tools ---- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 32px;
}
@media (max-width: 600px) {
  .tools-grid { grid-template-columns: 1fr; }
}

.tool-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.tool-header {
  background: rgba(0,0,0,0.3);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}
.tool-header-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.tool-header h3 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.tool-body {
  padding: 28px;
}

/* Password Checker */
.pw-input-wrap {
  position: relative;
  margin-bottom: 20px;
}
.pw-input-wrap input {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 14px 48px 14px 16px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-speed);
}
.pw-input-wrap input:focus {
  border-color: var(--green-dim);
}
.pw-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.1rem;
}

.pw-meter {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
}
.pw-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: all 0.4s;
}

.pw-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pw-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.pw-stat .check {
  width: 16px; height: 16px;
  border-radius: 3px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  transition: all var(--transition-speed);
}
.pw-stat .check.pass {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-glow);
}
.pw-stat .check.fail {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-glow);
}

.pw-rating {
  text-align: center;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Security Checklist */
.checklist-group {
  margin-bottom: 24px;
}
.checklist-group-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  transition: all var(--transition-speed);
  user-select: none;
}
.checklist-item:hover { opacity: 0.9; }
.checklist-item.checked { opacity: 0.5; }
.checklist-item.checked .checklist-text { text-decoration: line-through; }

.checklist-box {
  width: 20px; height: 20px;
  min-width: 20px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all var(--transition-speed);
  margin-top: 2px;
}
.checklist-item.checked .checklist-box {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-glow);
}

.checklist-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checklist-progress {
  margin-top: 20px;
  padding: 16px;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
}
.checklist-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.checklist-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--amber));
  border-radius: 3px;
  transition: width 0.5s;
  width: 0%;
}
.checklist-progress-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}

/* ---- Comparison Tables ---- */
.comparison-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.comparison-tab {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 10px 20px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-speed);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.comparison-tab:hover { border-color: var(--green-dim); color: var(--green); }
.comparison-tab.active {
  background: var(--green-glow);
  border-color: var(--green);
  color: var(--green);
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.comparison-table thead th {
  background: rgba(0,0,0,0.4);
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.comparison-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text-secondary);
  vertical-align: middle;
}
.comparison-table tbody tr:hover td {
  background: rgba(0,255,65,0.02);
}
.comparison-table tbody tr:last-child td { border-bottom: none; }

.table-product-name {
  color: #fff;
  font-weight: 600;
}
.table-check { color: var(--green); }
.table-x { color: var(--red); opacity: 0.5; }
.table-rating {
  color: var(--amber);
  font-family: var(--font-mono);
}
.table-price {
  font-family: var(--font-mono);
  color: var(--cyan);
}

/* ---- Glossary ---- */
.glossary-search {
  width: 100%;
  max-width: 500px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 12px 16px 12px 40px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  margin-bottom: 28px;
  transition: border-color var(--transition-speed);
}
.glossary-search:focus { border-color: var(--green-dim); }

.glossary-search-wrap {
  position: relative;
  max-width: 500px;
  margin-bottom: 28px;
}
.glossary-search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.glossary-item {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: all var(--transition-speed);
}
.glossary-item:hover {
  border-color: var(--green-dim);
}
.glossary-term {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--green);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.glossary-term::before {
  content: '>';
  color: var(--text-dim);
  font-size: 0.7rem;
}
.glossary-def {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 800px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--bg-card);
  transition: all var(--transition-speed);
}
.faq-item:hover { border-color: rgba(255,255,255,0.08); }
.faq-item.open { border-color: var(--green-dim); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 24px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-question:hover { color: var(--green); }
.faq-question .faq-icon {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  transition: transform var(--transition-speed);
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 24px 18px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Ad Slots ---- */
.ad-slot {
  background: rgba(0,0,0,0.2);
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 32px 0;
}
.ad-slot-inline {
  margin: 24px 0;
}

/* ---- Footer ---- */
.footer {
  background: rgba(0,0,0,0.4);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 0.88rem;
  color: var(--text-dim);
}
.footer-col a:hover { color: var(--green); }

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin: 0;
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typing effect */
.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--green);
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Glow text */
.glow-text {
  text-shadow: 0 0 10px var(--green-glow), 0 0 20px var(--green-glow);
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--green);
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: all var(--transition-speed);
}
.back-to-top.visible { display: flex; }
.back-to-top:hover {
  border-color: var(--green);
  background: var(--green-glow);
  transform: translateY(-2px);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .guides-grid { grid-template-columns: 1fr; }
  .glossary-grid { grid-template-columns: 1fr; }
  .guide-detail { padding: 28px; }
  .stat-bar { grid-template-columns: 1fr 1fr; }
  .hero { padding: 80px 16px 40px; }
}

@media (max-width: 480px) {
  .stat-bar { grid-template-columns: 1fr; }
  .pw-stats { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
}
