/* Self-Hosted Fonts Declarations */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans.woff2') format('woff2');
}

/* CSS Variables */
:root {
  --color-bg: #0b0f19;
  --color-bg-pane: #121829;
  --color-bg-dossier: #161f36;
  --color-border: #1d263b;
  --color-border-active: #33446c;
  --color-safe: #00ff66;
  --color-safe-glow: rgba(0, 255, 102, 0.15);
  --color-risk: #ff0055;
  --color-risk-glow: rgba(255, 0, 85, 0.15);
  --color-warn: #ffcc00;
  --color-text-primary: #e6edf7;
  --color-text-secondary: #90a0c7;
  --color-text-muted: #5e6c8f;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  background-image: 
    linear-gradient(rgba(29, 38, 59, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 38, 59, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
  color: var(--color-text-primary);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Laser Scan Sweep */
.laser-scanner {
  position: fixed;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-safe), transparent);
  box-shadow: 0 0 12px var(--color-safe);
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  animation: laser-sweep 10s infinite linear;
}

@keyframes laser-sweep {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
header.cyber-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-bg-pane) 0%, #1e293b 100%);
  border: 1px solid var(--color-safe);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--color-safe-glow);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--color-safe);
}

.nav-menu {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  padding: 5px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-safe);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-safe);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease-out;
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--color-safe);
  text-shadow: 0 0 15px var(--color-safe-glow);
}

.hero-desc {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
}

/* X-Ray Scanner Illustration */
.xray-scanner {
  background: var(--color-bg-pane);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-glass);
}

.scanner-left {
  flex: 1;
  text-align: center;
}

.scanner-beam {
  width: 4px;
  height: 120px;
  background: var(--color-safe);
  box-shadow: 0 0 15px var(--color-safe);
  position: relative;
  animation: beam-pulse 2s infinite ease-in-out;
}

@keyframes beam-pulse {
  0%, 100% { transform: scaleY(0.9); opacity: 0.8; }
  50% { transform: scaleY(1.1); opacity: 1; }
}

.scanner-right {
  flex: 1;
  text-align: center;
}

.xray-coin {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  position: relative;
}

.xray-coin.dirty {
  background: #25161c;
  border: 3px dashed var(--color-risk);
  color: var(--color-risk);
  box-shadow: 0 0 15px var(--color-risk-glow);
}

.xray-coin.clean {
  background: #102920;
  border: 3px solid var(--color-safe);
  color: var(--color-safe);
  box-shadow: 0 0 20px var(--color-safe-glow);
}

.coin-dots {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-risk);
  top: 15px;
  right: 20px;
}

/* 3D CTA "CHECK NOW" Emergency Button */
.cta-wrapper {
  margin: 30px 0;
}

.alarm-button-container {
  position: relative;
  width: 260px;
  height: 90px;
  background: #171d2d;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: visible;
  text-decoration: none;
}

.alarm-button {
  width: 220px;
  height: 60px;
  background: linear-gradient(180deg, #d90429 0%, #ef233c 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1.5px;
  color: #fff;
  box-shadow: 
    0 4px 0 #8d0801,
    0 10px 20px rgba(239, 35, 60, 0.4);
  transform: translateY(-2px);
  transition: transform 0.1s, box-shadow 0.1s;
  z-index: 10;
}

.glass-cover {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(2px);
  z-index: 20;
  transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.alarm-button-container:hover .glass-cover {
  transform: rotateX(105deg) translateY(-20px);
}

.alarm-button-container:hover .alarm-button {
  background: linear-gradient(180deg, #ef233c 0%, #ff4d6d 100%);
  box-shadow: 
    0 4px 0 #b7094c,
    0 15px 30px rgba(239, 35, 60, 0.7);
  animation: pulse-red 1.2s infinite alternate;
}

.alarm-button-container:active .alarm-button {
  transform: translateY(2px);
  box-shadow: 
    0 0 0 #b7094c,
    0 5px 15px rgba(239, 35, 60, 0.6);
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 5px rgba(239, 35, 60, 0.5); }
  100% { box-shadow: 0 0 25px rgba(239, 35, 60, 0.9); }
}

/* Grid & Layout System */
.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--color-safe);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Folder "Dossier" Review Cards */
.dossier-card {
  background: var(--color-bg-dossier);
  border: 1px solid var(--color-border);
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  position: relative;
  padding: 30px;
  box-shadow: var(--shadow-glass);
  margin-top: 15px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.dossier-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-active);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

/* Dossier Top Left Tab */
.dossier-tab {
  position: absolute;
  top: -30px;
  left: -1px;
  height: 30px;
  padding: 0 20px;
  background: var(--color-bg-dossier);
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.dossier-card:hover .dossier-tab {
  border-color: var(--color-border-active) var(--color-border-active) transparent var(--color-border-active);
}

.dossier-title {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 15px;
}

.dossier-title a {
  color: #fff;
  text-decoration: none;
}

.dossier-title a:hover {
  color: var(--color-safe);
}

.dossier-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.dossier-body {
  color: var(--color-text-secondary);
  font-size: 15px;
  margin-bottom: 25px;
}

/* Dossier Stamps */
.stamp {
  position: absolute;
  top: 25px;
  right: 25px;
  padding: 5px 12px;
  border: 3px double currentColor;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transform: rotate(-12deg);
  opacity: 0.85;
}

.stamp.passed {
  color: var(--color-safe);
}

.stamp.risk {
  color: var(--color-risk);
}

.stamp.tech {
  color: var(--color-warn);
}

/* Chemical Flask Ratings */
.beaker-rating {
  display: flex;
  align-items: center;
  gap: 15px;
}

.beaker-svg {
  width: 40px;
  height: 50px;
  position: relative;
  overflow: visible;
}

.beaker-outline {
  fill: none;
  stroke: var(--color-text-muted);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.beaker-liquid {
  fill: var(--liquid-color, var(--color-safe));
  opacity: 0.8;
  transition: height 0.6s ease-out;
}

.beaker-label {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.beaker-label span {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Lists and Tables (Detailed comparison styling) */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 40px 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}

table.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--color-bg-pane);
  font-size: 15px;
}

table.comparison-table th, table.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}

table.comparison-table th {
  background-color: #171f33;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
}

table.comparison-table tr:last-child td {
  border-bottom: none;
}

table.comparison-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Review Page Specific Styles */
.review-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--color-border);
}

.review-grid {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 50px;
  margin-top: 40px;
}

/* BLUF Verdict Box */
.verdict-box {
  background: rgba(0, 255, 102, 0.03);
  border: 1px solid rgba(0, 255, 102, 0.2);
  border-left: 5px solid var(--color-safe);
  border-radius: var(--radius-md);
  padding: 25px;
  margin-bottom: 35px;
  box-shadow: 0 8px 20px rgba(0, 255, 102, 0.02);
}

.verdict-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-safe);
  margin-bottom: 10px;
}

/* Side Card Lists */
.side-card {
  background: var(--color-bg-pane);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 30px;
  position: sticky;
  top: 100px;
}

.side-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
}

/* Disclaimers */
.affiliate-disclosure {
  font-size: 13px;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 30px;
}

.bottom-disclaimer {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--color-border);
  padding-top: 30px;
  margin-top: 40px;
}

/* Pros and Cons Block */
.pro-con-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.pro-box, .con-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 25px;
}

.pro-box h4 {
  color: var(--color-safe);
  font-family: var(--font-display);
  margin-bottom: 15px;
}

.con-box h4 {
  color: var(--color-risk);
  font-family: var(--font-display);
  margin-bottom: 15px;
}

.pro-con-list {
  list-style: none;
}

.pro-con-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 14.5px;
}

.pro-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-safe);
}

.con-box li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: var(--color-risk);
}

/* FAQ Accordion */
.faq-list {
  margin: 40px 0;
  list-style: none;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  background: var(--color-bg-pane);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 24px;
  color: var(--color-safe);
  transition: transform 0.2s;
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 20px;
  color: var(--color-text-secondary);
  font-size: 15px;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer styling */
footer.cyber-footer {
  background: #070a12;
  border-top: 1px solid var(--color-border);
  padding: 60px 0 40px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  margin-bottom: 15px;
}

.footer-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  max-width: 400px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14.5px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-safe);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 30px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* General Layout helpers & formatting styling */
h2, h3, h4 {
  font-family: var(--font-display);
  margin-top: 30px;
  margin-bottom: 15px;
}

h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p {
  margin-bottom: 20px;
  color: var(--color-text-secondary);
  font-size: 16px;
}

/* Rating container in review page */
.review-score-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg-dossier);
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 30px;
}

/* Styled anchors inside text contents */
.content-area a {
  color: var(--color-safe);
  text-decoration: underline;
}

.content-area a:hover {
  color: #fff;
}

.content-area ul, .content-area ol {
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--color-text-secondary);
}

.content-area li {
  margin-bottom: 8px;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .alarm-button-container {
    margin: 0 auto;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .review-grid {
    grid-template-columns: 1fr;
  }
  
  .pro-con-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-desc {
    margin: 0 auto;
  }
}
