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

:root {
  --color-accent: #e0b706;
  --color-accent-2: #44e292;
  --color-accent-3: #2910ed;
  --color-accent-warm: #e98223;
  --color-accent-soft: #f2efe2;
  --color-accent-2-soft: #e4f0ea;
  --color-accent-3-soft: #e5e3f1;
  --color-accent-warm-soft: #f1eae3;

  --color-bg: #f4f5f7;
  --color-bg-2: #e7e9ee;
  --color-bg-white: #ffffff;
  --color-bg-rgb: 244, 245, 247;
  --color-bg-white-rgb: 255, 255, 255;

  --color-text: #1f2937;
  --color-text-secondary: #4b5563;
  --color-text-muted: #6b7280;

  --color-border: #d1d5db;
  --color-border-light: #e5e7eb;

  --color-footer-bg: #1f2937;
  --color-footer-text: #e5e7eb;
  --color-footer-muted: #9ca3af;
  --color-footer-link: #d1d5db;
  --color-footer-border: rgba(255,255,255,0.08);
  --color-footer-social-bg: rgba(255,255,255,0.06);
  --color-footer-social-border: rgba(255,255,255,0.12);

  --font-heading: 'Fira Sans', sans-serif;
  --font-body: 'Fira Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(31,41,55,0.08);
  --shadow-md: 0 4px 8px rgba(31,41,55,0.10);
  --shadow-lg: 0 12px 28px rgba(31,41,55,0.12);
  --shadow-xl: 0 24px 48px rgba(31,41,55,0.16);
}

body {
  background:
    linear-gradient(180deg, rgba(55,65,81,0.03) 0%, transparent 200px),
    var(--color-bg);
}

code, pre, .price-current, .price-big, .stat-number, .card-brand, .product-brand-link {
  font-family: 'Fira Mono', monospace;
}

.card-brand, .product-brand-link {
  letter-spacing: 1.5px;
}

/* Oscilloscope underline for section titles */
@keyframes scope-sweep {
  0% { background-position: 0 0; }
  100% { background-position: 60px 0; }
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 120px;
  height: 6px;
  background-image:
    linear-gradient(90deg, transparent 0, transparent 6px, #374151 6px, #374151 14px, transparent 14px, transparent 16px,
                   #9ca3af 16px, #9ca3af 22px, transparent 22px, transparent 24px,
                   #374151 24px, #374151 38px, transparent 38px, transparent 40px,
                   #9ca3af 40px, #9ca3af 46px, transparent 46px, transparent 48px,
                   #374151 48px, #374151 56px, transparent 56px);
  background-size: 60px 6px;
  background-repeat: repeat-x;
  background-position: center;
  animation: scope-sweep 3s linear infinite;
  border-radius: 2px;
  opacity: 0.75;
}

.section-header { text-align: center; }
.section-header .section-title { display: inline-block; }

/* Hero — graphite with scope grid pattern */
.hero {
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f5f7 100%);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.hero, .hero-content { text-align: center; }
.hero-actions { justify-content: center; }
.hero-subtitle { margin-left: auto; margin-right: auto; }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(55,65,81,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55,65,81,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  background: #374151;
  color: #f3f4f6;
  border: 1px solid #4b5563;
  font-family: 'Fira Mono', monospace;
  letter-spacing: 2px;
}

.hero-title {
  color: #1f2937;
  letter-spacing: -0.5px;
}
.hero-title::after {
  content: '_';
  color: var(--color-accent);
  animation: caret-blink 1.2s steps(2, start) infinite;
  margin-left: 4px;
}
@keyframes caret-blink {
  to { visibility: hidden; }
}

/* Buttons — graphite primary with silver edge */
.btn-primary {
  background: linear-gradient(180deg, #4b5563 0%, #374151 100%);
  color: #f9fafb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 4px 12px rgba(55,65,81,0.25);
  border: 1px solid #1f2937;
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 6px 18px rgba(55,65,81,0.35);
}

.btn-cta {
  background: linear-gradient(180deg, #4b5563 0%, #374151 100%);
  color: #f9fafb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 2px 8px rgba(55,65,81,0.25);
  border: 1px solid #1f2937;
}
.btn-cta:hover { filter: brightness(1.08); }

.btn-outline {
  border: 1.5px solid #4b5563;
  color: #374151;
  background: #ffffff;
}
.btn-outline:hover {
  background: #f3f4f6;
  border-color: #1f2937;
  color: #1f2937;
}

/* Header — clean studio rack feel */
.site-header {
  border-bottom: 2px solid #374151;
}
.logo-text {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.logo-text::before {
  content: '> ';
  font-family: 'Fira Mono', monospace;
  color: var(--color-accent);
  font-weight: 500;
}
.nav-link {
  font-family: 'Fira Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.3px;
}
.nav-link.active {
  background: #374151;
  color: #f9fafb;
}

.announcement-bar {
  background: #1f2937;
  font-family: 'Fira Mono', monospace;
  letter-spacing: 1px;
}

/* Product cards — silver edge with scope waveform on hover */
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #d1d5db;
  border-top: 2px solid #9ca3af;
  background: #ffffff;
  position: relative;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4b5563, #9ca3af, #4b5563, transparent);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 3;
}
.product-card:hover {
  border-color: #4b5563;
  box-shadow: 0 12px 28px rgba(55,65,81,0.18);
  transform: translateY(-4px);
}
.product-card:hover::before { opacity: 1; }

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body .btn-cta { margin-top: auto; }

.card-price .price-current { color: #1f2937; }

/* Category cards */
.category-card {
  border: 1px solid #d1d5db;
  background: #ffffff;
}
.category-card:hover {
  border-color: #374151;
  box-shadow: 0 10px 24px rgba(55,65,81,0.12);
}
.category-icon {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

/* Newsletter */
.newsletter-section {
  background: #1f2937;
  border-top: none;
  border-bottom: none;
  color: #f3f4f6;
}
.newsletter-text h3 { color: #f9fafb; }
.newsletter-text p { color: #d1d5db; }
.newsletter-form input {
  background: #374151;
  border: 1px solid #4b5563;
  color: #f9fafb;
}
.newsletter-form input::placeholder { color: #9ca3af; }
.newsletter-form button {
  background: var(--color-accent);
  color: #1f2937;
  font-family: 'Fira Mono', monospace;
  font-weight: 700;
  letter-spacing: 1px;
}
.newsletter-form button:hover { background: #f4c41a; }

/* FAQ */
.faq-section { background: var(--color-accent-2-soft); }
.faq-question {
  font-family: 'Fira Mono', monospace;
  font-size: 14px;
}
.faq-question::before {
  content: '◆ ';
  color: var(--color-accent-2);
  margin-right: 6px;
}

/* Testimonials */
.testimonials-section { background: var(--color-accent-3-soft); }
.testimonial-avatar {
  background: var(--color-accent-3);
  color: #ffffff;
}

/* Guide */
.guide-section { background: var(--color-accent-warm-soft); }
.guide-number {
  background: var(--color-accent-warm);
  font-family: 'Fira Mono', monospace;
}

/* Top picks */
.top-picks-section { background: var(--color-accent-soft); }
.top-pick-rank {
  font-family: 'Fira Mono', monospace;
  color: var(--color-accent-warm);
}

/* Stats bar — graphite rack */
.stats-section {
  background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #4b5563 100%);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 40px);
  pointer-events: none;
}
.stat-number {
  font-family: 'Fira Mono', monospace;
  color: var(--color-accent);
}

/* Price history */
.price-history-section {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-left: 4px solid #374151;
}
.chart-bar {
  background: linear-gradient(180deg, #9ca3af 0%, #4b5563 100%);
}
.chart-bar-current {
  background: linear-gradient(180deg, var(--color-accent-2) 0%, #16a34a 100%);
  box-shadow: 0 0 12px rgba(68,226,146,0.4);
}
.chart-month, .chart-price-label {
  font-family: 'Fira Mono', monospace;
}

/* Reviews section */
.user-reviews-section {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-left: 4px solid #374151;
}
.reviews-big-number {
  font-family: 'Fira Mono', monospace;
  color: #374151;
}
.review-bar-fill {
  background: linear-gradient(90deg, var(--color-accent) 0%, #f4c41a 100%);
}
.review-avatar {
  background: linear-gradient(135deg, #4b5563, #374151);
}

/* Pros / Cons */
.pros-cons-widget {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-top: 3px solid #374151;
}
.pros-cons-widget h3 {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 700;
}

/* Delivery widget */
.delivery-widget {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-left: 3px solid var(--color-accent);
}
.delivery-item svg { color: #374151; }
.delivery-item strong { font-family: 'Fira Mono', monospace; font-size: 0.82rem; }

/* Social proof popup */
.social-proof-popup {
  background: #1f2937;
  border: 1px solid #4b5563;
  color: #f3f4f6;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.social-proof-popup .popup-text { color: #d1d5db; }
.social-proof-popup .popup-text strong { color: #f9fafb; }
.social-proof-popup .popup-time { color: #9ca3af; }
.social-proof-popup .popup-close { color: #9ca3af; }
.social-proof-popup .popup-icon {
  background: var(--color-accent-2);
  color: #1f2937;
}

/* Comparison table */
.comparison-table th {
  background: #374151;
  color: #f9fafb;
  font-family: 'Fira Mono', monospace;
}

/* Product page */
.product-title { letter-spacing: -0.3px; }
.product-price-block {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-left: 4px solid var(--color-accent);
}
.price-big { font-family: 'Fira Mono', monospace; color: #1f2937; }

/* Filter buttons */
.filter-btn.active {
  background: #374151;
  border-color: #374151;
}
.page-num.active {
  background: #374151;
  border-color: #374151;
}

/* Footer */
.social-links a:hover {
  background: var(--color-accent);
  color: #1f2937;
  border-color: var(--color-accent);
}

@media (max-width: 768px) {
  .hero::before { background-size: 24px 24px; }
  .section-title::after { width: 80px; }
}