/* ============================================
   The Verdict Lab - Global Styles
   Dark theme, tech-forward, professional
   ============================================ */

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

/* --- CSS Variables --- */
:root {
  --bg-primary: #0f1117;
  --bg-secondary: #1a1d2e;
  --bg-card: #1e2235;
  --bg-card-hover: #252a40;
  --bg-input: #161929;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a3b5;
  --text-muted: #6b6f82;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-light: rgba(59,130,246,0.12);
  --accent-glow: rgba(59,130,246,0.25);
  --border: #2a2d3e;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --max-width: 1200px;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select {
  font-family: inherit; font-size: inherit; color: inherit;
  border: none; outline: none; background: none;
}
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* --- Navigation --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(15,17,23,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 800; color: var(--text-primary);
  display: flex; align-items: center; gap: 10px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  position: relative; padding: 4px 0; transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); transition: var(--transition); }

/* --- Hero --- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.3; pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 20px; position: relative;
}
.hero h1 .highlight { color: var(--accent); }
.hero .slogan {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 40px; position: relative;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: all var(--transition);
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}
.btn-primary:hover {
  background: var(--accent-hover); color: #fff;
  box-shadow: 0 6px 24px rgba(59,130,246,0.4);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1.5px solid var(--border); color: var(--text-primary);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-light);
}
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* --- Section --- */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800; margin-bottom: 12px;
}
.section-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; font-weight: 500;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 8px;
}

/* --- Review Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.review-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.review-card .card-image {
  width: 100%; height: 200px;
  background: var(--bg-secondary);
  overflow: hidden; position: relative;
}
.review-card .card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition);
}
.review-card:hover .card-image img { transform: scale(1.05); }
.review-card .card-body { padding: 20px; }
.review-card .card-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px; font-size: 0.8rem; color: var(--text-muted);
}
.review-card .card-title {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 8px; line-height: 1.3;
}
.review-card .card-title a { color: var(--text-primary); }
.review-card .card-title a:hover { color: var(--accent); }
.review-card .card-excerpt {
  font-size: 0.9rem; color: var(--text-secondary);
  margin-bottom: 16px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.review-card .card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.review-card .card-author {
  font-size: 0.8rem; color: var(--text-muted);
}

/* --- Score Badge --- */
.score-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 36px; padding: 0 10px;
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 0.95rem;
}
.score-badge.score-high { background: rgba(34,197,94,0.15); color: #22c55e; }
.score-badge.score-mid { background: rgba(245,158,11,0.15); color: #f59e0b; }
.score-badge.score-low { background: rgba(239,68,68,0.15); color: #ef4444; }

/* --- Category Tags --- */
.tag {
  display: inline-block; padding: 4px 12px;
  border-radius: 20px; font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tag-audio { background: rgba(168,85,247,0.15); color: #a855f7; }
.tag-laptops { background: rgba(59,130,246,0.15); color: #3B82F6; }
.tag-smart-home { background: rgba(34,197,94,0.15); color: #22c55e; }
.tag-accessories { background: rgba(245,158,11,0.15); color: #f59e0b; }

/* --- Category Cards --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.category-card .cat-icon {
  font-size: 2.5rem; margin-bottom: 16px;
}
.category-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.category-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* --- Score Progress Bar --- */
.score-bar-group { margin-bottom: 16px; }
.score-bar-label {
  display: flex; justify-content: space-between;
  margin-bottom: 6px; font-size: 0.85rem;
}
.score-bar-label span:last-child {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600; color: var(--accent);
}
.score-bar {
  width: 100%; height: 8px;
  background: var(--bg-primary);
  border-radius: 4px; overflow: hidden;
}
.score-bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  transition: width 0.6s ease;
}

/* --- Article Score Styles (used in review articles) --- */
.review-scores { margin: 48px 0; padding: 32px; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); }
.review-scores h2 { font-size: 1.5rem; margin-bottom: 24px; }
.scores-grid { display: flex; gap: 32px; flex-wrap: wrap; }
.score-bars { flex: 1; min-width: 280px; }
.score-item { margin-bottom: 16px; }
.score-label {
  display: flex; justify-content: space-between;
  margin-bottom: 6px; font-size: 0.85rem;
}
.score-label span:last-child {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600; color: var(--accent);
}
.score-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  transition: width 0.6s ease;
}
.overall-score {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 160px; padding: 24px;
  background: var(--bg-primary); border-radius: 12px;
}
.overall-score .big-score {
  font-size: 3.5rem; font-weight: 800; color: var(--accent);
  font-family: 'JetBrains Mono', monospace; line-height: 1;
}
.overall-score .score-max { font-size: 1rem; color: var(--text-secondary); margin-top: 4px; }
.overall-score .score-verdict { font-size: 0.9rem; color: var(--text-primary); margin-top: 8px; font-weight: 600; }

/* --- Process / Steps --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px; counter-reset: step;
}
.process-step {
  text-align: center; padding: 24px 16px;
  position: relative;
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem; font-weight: 700;
  color: var(--accent); opacity: 0.3;
  display: block; margin-bottom: 12px;
}
.process-step h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 0.85rem; color: var(--text-secondary); }

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center;
  transition: all var(--transition);
}
.team-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.team-card .team-photo {
  width: 120px; height: 120px;
  border-radius: 50%; margin: 0 auto 20px;
  background: var(--bg-secondary);
  overflow: hidden; border: 3px solid var(--border);
}
.team-card .team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.team-card .team-role {
  font-size: 0.85rem; color: var(--accent);
  font-weight: 500; margin-bottom: 4px;
}
.team-card .team-location {
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px;
}
.team-card .team-bio {
  font-size: 0.9rem; color: var(--text-secondary);
  margin-bottom: 16px; line-height: 1.5;
}
.team-card .team-social { display: flex; gap: 12px; justify-content: center; }
.team-card .team-social a {
  color: var(--text-muted); font-size: 0.85rem;
  transition: color var(--transition);
}
.team-card .team-social a:hover { color: var(--accent); }

/* --- Values --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--transition);
}
.value-card:hover { border-color: var(--accent); }
.value-card .value-icon { font-size: 2rem; margin-bottom: 16px; }
.value-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }

/* --- Newsletter --- */
.newsletter {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px; text-align: center;
}
.newsletter h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.newsletter p { color: var(--text-secondary); margin-bottom: 24px; }
.newsletter-form {
  display: flex; gap: 12px;
  max-width: 480px; margin: 0 auto;
}
.newsletter-form input {
  flex: 1; padding: 14px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
}
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form input:focus { border-color: var(--accent); }

/* --- Contact Form --- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.85rem;
  font-weight: 600; margin-bottom: 8px;
  color: var(--text-secondary);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 14px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 140px; }

/* --- Filter Bar --- */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px; justify-content: center;
}
.filter-btn {
  padding: 10px 24px; border-radius: 24px;
  font-size: 0.85rem; font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-about p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 12px; line-height: 1.6; }
.footer h4 {
  font-size: 0.9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px; color: var(--text-primary);
}
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: var(--text-secondary); font-size: 0.9rem; }
.footer ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* --- Page Header --- */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; margin-bottom: 12px;
}
.page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem; max-width: 600px;
  margin: 0 auto;
}

/* --- Content Blocks --- */
.content-block { margin-bottom: 48px; }
.content-block h2 {
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 16px;
}
.content-block h3 {
  font-size: 1.15rem; font-weight: 600;
  margin-bottom: 12px; color: var(--accent);
}
.content-block p {
  color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 12px;
}
.content-block ul { margin-left: 20px; margin-bottom: 12px; }
.content-block ul li {
  color: var(--text-secondary);
  margin-bottom: 8px; line-height: 1.6;
  list-style: disc;
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}

/* --- Info Cards --- */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.info-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; }

/* --- Methodology Timeline --- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before {
  content: ''; position: absolute;
  left: -29px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-primary);
}
.timeline-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.timeline-item p { font-size: 0.9rem; color: var(--text-secondary); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { 
    display: none; position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--bg-primary);
    flex-direction: column; padding: 24px;
    gap: 20px; border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 120px 0 60px; }
  .cards-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .newsletter { padding: 32px 20px; }
  .newsletter-form { flex-direction: column; }
  .section { padding: 60px 0; }
  .filter-bar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
}
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .process-grid { grid-template-columns: 1fr 1fr; }
}
