/* ==========================================================================
   Dead Pixel Test - Master Design System & Styling
   Dark Mode Default (#0d1117 background, #161b22 cards, #f0f6fc typography)
   Accents: Emerald Green (#238636), Alert Amber (#d29922), Vibrant Blue (#58a6ff)
   ========================================================================== */

:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --bg-elevated: #30363d;

  --border-color: #30363d;
  --border-subtle: #21262d;

  --text-primary: #f0f6fc;
  --text-secondary: #c9d1d9;
  --text-muted: #8b949e;
  --text-inverse: #0d1117;

  --accent-green: #238636;
  --accent-green-hover: #2ea043;
  --accent-green-light: rgba(35, 134, 54, 0.15);

  --accent-amber: #d29922;
  --accent-amber-hover: #e3b341;
  --accent-amber-light: rgba(210, 153, 34, 0.15);

  --accent-blue: #58a6ff;
  --accent-blue-hover: #79c0ff;
  --accent-blue-light: rgba(88, 166, 255, 0.15);

  --accent-red: #f85149;
  --accent-purple: #bc8cff;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;

  --max-width: 1240px;
  --header-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-blue-hover);
  text-decoration: underline;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.text-muted { color: var(--text-muted); }
.text-green { color: var(--accent-green); }
.text-amber { color: var(--accent-amber); }
.text-blue { color: var(--accent-blue); }
.text-center { text-align: center; }

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-content {
  flex: 1 0 auto;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(22, 27, 34, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none !important;
  letter-spacing: -0.02em;
}

.brand-logo svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

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

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-btn-container {
  display: block;
}

/* Mobile Nav Drawer */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-links .nav-btn-container {
    width: 100%;
    margin-top: 0.5rem;
  }

  .nav-links .nav-btn-container .btn {
    display: flex;
    width: 100%;
    justify-content: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none !important;
}

.btn-primary {
  background-color: var(--accent-green);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background-color: var(--accent-green-hover);
  box-shadow: 0 0 15px rgba(35, 134, 54, 0.4);
}

.btn-blue {
  background-color: var(--accent-blue);
  color: var(--text-inverse);
}

.btn-blue:hover {
  background-color: var(--accent-blue-hover);
  box-shadow: 0 0 15px rgba(88, 166, 255, 0.4);
}

.btn-outline {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background-color: var(--bg-elevated);
  border-color: var(--text-muted);
}

.btn-amber {
  background-color: var(--accent-amber);
  color: var(--text-inverse);
}

.btn-amber:hover {
  background-color: var(--accent-amber-hover);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

/* Cards & Grid Layouts */
.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3.5rem 1rem 3rem;
  background: radial-gradient(circle at 50% 20%, rgba(35, 134, 54, 0.08) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-amber-light);
  color: var(--accent-amber);
  border: 1px solid rgba(210, 153, 34, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  max-width: 900px;
  margin: 0 auto 1.25rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Ad Containers (AdSense Ready Placeholders) */
.ad-slot {
  background-color: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  margin: 2rem auto;
  padding: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ad-slot::before {
  content: "ADVERTISEMENT";
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.ad-slot-header { max-width: 728px; min-height: 90px; }
.ad-slot-in-content { max-width: 800px; min-height: 120px; }
.ad-slot-sidebar { max-width: 300px; min-height: 250px; }
.ad-slot-footer { max-width: 970px; min-height: 90px; }

/* Diagnostic Tool Cards on Homepage */
.tool-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tool-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color);
}

.tool-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-blue);
}

.tool-card-icon svg {
  width: 26px;
  height: 26px;
}

.tool-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.tool-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

/* Section Containers */
.section {
  margin-bottom: 4rem;
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-green);
  border-radius: var(--radius-full);
}

/* Interactive Parallax Dust Widget */
.dust-parallax-widget {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
}

.parallax-stage-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 850px) {
  .parallax-stage-container {
    grid-template-columns: 1fr;
  }
}

.parallax-canvas-wrapper {
  background-color: #000000;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  position: relative;
  height: 320px;
  overflow: hidden;
  cursor: grab;
}

.parallax-canvas-wrapper:active {
  cursor: grabbing;
}

.parallax-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-group label {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent-blue);
}

.parallax-indicator-box {
  background-color: var(--bg-tertiary);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent-amber);
  font-size: 0.9rem;
}

/* Interactive Inspection Checklist & Certificate Builder */
.report-builder-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.check-item {
  background-color: var(--bg-tertiary);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.check-item-label {
  font-weight: 500;
  font-size: 0.95rem;
}

.check-item-status {
  display: flex;
  gap: 0.5rem;
}

.badge-btn {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-muted);
  cursor: pointer;
}

.badge-btn.pass.active {
  background-color: var(--accent-green);
  color: #fff;
  border-color: var(--accent-green);
}

.badge-btn.fail.active {
  background-color: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}

/* Diagnostic Test Fullscreen Overlays */
.test-container-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background-color: #ff0000;
  display: none;
  user-select: none;
}

.test-controls-overlay {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(22, 27, 34, 0.95);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  z-index: 100000;
  transition: opacity 0.3s ease;
}

.test-controls-overlay.autohide {
  opacity: 0.15;
}

.test-controls-overlay.autohide:hover {
  opacity: 1;
}

.color-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.color-btn:hover {
  transform: scale(1.2);
}

/* Stuck Pixel Fixer Box */
.stuck-pixel-box {
  position: absolute;
  top: 30%;
  left: 40%;
  width: 160px;
  height: 160px;
  border: 2px solid #ffffff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  cursor: move;
  resize: both;
  overflow: hidden;
  z-index: 999999;
}

.stuck-pixel-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Auto-Cycle Progress Indicator Ring */
.progress-ring {
  width: 24px;
  height: 24px;
}

.progress-ring circle {
  transition: stroke-dashoffset 0.1s linear;
}

/* Screen Resolution Spec Grid */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.spec-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.spec-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.spec-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  font-family: var(--font-mono);
}

.spec-subtext {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Aspect Ratio Live Canvas */
.aspect-ratio-visualizer {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.aspect-screen-mock {
  margin: 1.5rem auto;
  border: 4px solid var(--accent-blue);
  border-radius: var(--radius-sm);
  background-color: rgba(88, 166, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-mono);
  transition: all 0.3s ease;
  max-width: 100%;
}

/* Refresh Rate Test Components */
.refresh-counter-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.hz-number {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent-green);
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}

.motion-test-container {
  background-color: #000000;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 2rem 0;
  overflow: hidden;
}

.ufo-canvas {
  width: 100%;
  height: 160px;
  display: block;
  background-color: #05070a;
}

/* Webcam Test Stream Container */
.webcam-preview-wrapper {
  position: relative;
  background-color: #000000;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.webcam-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audio-meter-bar {
  width: 100%;
  height: 12px;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 0.75rem;
}

.audio-meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-green) 60%, var(--accent-amber) 85%, var(--accent-red) 100%);
  transition: width 0.05s linear;
}

/* FAQ & Educational Accordion */
.faq-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.15rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

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

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  display: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

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

/* ISO Standard Matrix Table */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.iso-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.9rem;
}

.iso-table th, .iso-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-color);
}

.iso-table th {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
}

.toast-success { border-left: 4px solid var(--accent-green); }
.toast-warn { border-left: 4px solid var(--accent-amber); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Printable Certificate Media Styles */
@media print {
  body * {
    visibility: hidden;
  }
  .printable-certificate, .printable-certificate * {
    visibility: visible;
  }
  .printable-certificate {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: #000 !important;
    background: #fff !important;
    padding: 2rem;
  }
}

/* Footer Styling */
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 850px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 320px;
}

.footer-column-title {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-blue);
  text-decoration: none;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Educational Article Guide Styles */
.guide-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
  background: radial-gradient(circle at 50% 100%, rgba(88, 166, 255, 0.04) 0%, transparent 60%);
}

.guide-container {
  max-width: 850px;
  margin: 0 auto;
}

.guide-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.guide-card:hover {
  border-color: var(--accent-blue-light);
  box-shadow: var(--shadow-md);
}

.guide-card h2 {
  font-size: 1.55rem;
  margin-bottom: 1.25rem;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.guide-card h3 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  border-left: 3px solid var(--accent-green);
  padding-left: 0.75rem;
}

.guide-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1.15rem;
}

.guide-card p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Blog & Article Layout Styling
   ========================================================================== */

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background-color: var(--accent-green);
  z-index: 1100;
  transition: width 0.1s ease;
}

/* Homepage Blog Section */
.home-blog-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, transparent, rgba(35, 134, 54, 0.03));
}

.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.home-blog-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.home-blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-lg);
}

.home-blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  background-color: #000;
}

.home-blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-blue);
  background-color: var(--accent-blue-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.home-blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.35;
}

.home-blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.home-blog-card-title a:hover {
  color: var(--accent-blue);
}

.home-blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.5;
}

.home-blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-read-more {
  font-weight: 600;
  color: var(--accent-green);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none !important;
}

.blog-read-more:hover {
  color: var(--accent-green-hover);
}

/* Dedicated Blog Page Header */
.blog-post-header {
  padding: 4rem 0 3rem;
  background: radial-gradient(circle at 50% 0%, rgba(88, 166, 255, 0.08) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-meta-item svg {
  width: 16px;
  height: 16px;
}

.blog-post-title {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
}

/* Blog Content Layout Structure */
.blog-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (max-width: 990px) {
  .blog-layout-grid {
    grid-template-columns: 1fr;
  }
}

.blog-main-content {
  min-width: 0;
}

.blog-featured-image-wrapper {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.blog-featured-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* Sticky Sidebar Content */
.blog-sidebar-sticky {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget-title {
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Table of Contents Widget */
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none !important;
  display: block;
  padding: 0.25rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  transition: all var(--transition-fast);
}

.toc-link:hover {
  color: var(--accent-blue);
  border-left-color: var(--accent-blue-light);
}

.toc-link.active {
  color: var(--accent-blue);
  font-weight: 600;
  border-left-color: var(--accent-blue);
}

/* Related Tools Widget */
.related-tools-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-tool-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.related-tool-item:hover {
  background-color: var(--bg-tertiary);
}

.related-tool-icon {
  width: 32px;
  height: 32px;
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.related-tool-icon svg {
  width: 18px;
  height: 18px;
}

.related-tool-info {
  display: flex;
  flex-direction: column;
}

.related-tool-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.related-tool-name:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

.related-tool-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.3;
}

/* Premium Article Content Elements */
.article-rich-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.article-rich-text h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-rich-text h2::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: var(--border-color);
  margin-left: 1rem;
}

.article-rich-text h3 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.article-rich-text p {
  margin-bottom: 1.25rem;
}

/* Callout Grids (Defects Types) */
.defect-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.defect-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.defect-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.defect-box.dead::before { background-color: #000000; border-right: 1px solid var(--border-color); }
.defect-box.stuck::before { background-color: var(--accent-red); }
.defect-box.hot::before { background-color: #ffffff; }
.defect-box.lazy::before { background-color: var(--accent-amber); }

.defect-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.defect-box.dead .defect-badge { background-color: rgba(22, 27, 34, 0.6); color: var(--text-muted); border: 1px solid var(--border-color); }
.defect-box.stuck .defect-badge { background-color: rgba(248, 81, 73, 0.15); color: var(--accent-red); }
.defect-box.hot .defect-badge { background-color: rgba(255, 255, 255, 0.15); color: #ffffff; }
.defect-box.lazy .defect-badge { background-color: rgba(210, 153, 34, 0.15); color: var(--accent-amber); }

.defect-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.defect-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Causes Grid Layout */
.causes-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.cause-card-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color var(--transition-fast);
}

.cause-card-item:hover {
  border-color: var(--accent-amber-light);
}

.cause-icon-box {
  width: 40px;
  height: 40px;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-amber);
}

.cause-icon-box svg {
  width: 20px;
  height: 20px;
}

.cause-title-h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.cause-card-desc {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Device Finder Flex Badges */
.devices-flex-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.device-badge-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.device-badge-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-blue);
}

/* Myth vs Reality Box */
.myths-box-container {
  background-color: rgba(248, 81, 73, 0.05);
  border: 1px solid rgba(248, 81, 73, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}

.myth-heading {
  font-size: 1.3rem;
  color: var(--accent-red);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.myth-item-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.myth-item-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
}

.myth-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.myth-text svg {
  color: var(--accent-red);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.truth-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  padding-left: 1.6rem;
  line-height: 1.5;
}

/* Article CTA Box */
.article-cta-box {
  background: radial-gradient(circle at 100% 100%, rgba(35, 134, 54, 0.15) 0%, transparent 60%), var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.article-cta-box::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(88, 166, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.article-cta-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-cta-subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.article-cta-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Blog & Article Rich-Text Element Formatting
   ========================================================================== */
.article-rich-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-rich-text th, 
.article-rich-text td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.article-rich-text th {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
}

.article-rich-text tr:last-child td {
  border-bottom: none;
}

.article-rich-text tr:hover {
  background-color: rgba(255, 255, 255, 0.01);
}

.article-rich-text blockquote {
  border-left: 4px solid var(--accent-blue);
  background-color: var(--bg-secondary);
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.article-rich-text blockquote p {
  margin-bottom: 0;
  color: var(--text-primary);
}

.article-rich-text ol, 
.article-rich-text ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-rich-text li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.article-rich-text li strong {
  color: var(--text-primary);
}

.article-rich-text li ul {
  margin-top: 0.5rem;
  margin-bottom: 0;
  list-style-type: circle;
}

/* ==========================================================================
   Stuck Pixel Fixer & Keyboard Controls Enhanced Styles
   ========================================================================== */

/* Keyboard & Touch Shortcut Badge Bar */
.shortcut-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
}

.shortcut-badge {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.shortcut-key {
  background: #0d1117;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-blue);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Safety Warning Alert Banner */
.safety-warning-banner {
  background: rgba(210, 153, 34, 0.08);
  border: 1px solid rgba(210, 153, 34, 0.35);
  border-left: 4px solid var(--accent-amber);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.safety-warning-banner.danger {
  background: rgba(248, 81, 73, 0.08);
  border-color: rgba(248, 81, 73, 0.35);
  border-left-color: var(--accent-red);
}

.safety-warning-icon {
  color: var(--accent-amber);
  flex-shrink: 0;
  margin-top: 2px;
}

.safety-warning-banner.danger .safety-warning-icon {
  color: var(--accent-red);
}

/* Stuck Pixel Fixer Section Card */
.stuck-fixer-card {
  background: radial-gradient(circle at 100% 0%, rgba(210, 153, 34, 0.08) 0%, transparent 60%), var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.fixer-tool-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: center;
}

@media (max-width: 860px) {
  .fixer-tool-layout {
    grid-template-columns: 1fr;
  }
}

.fixer-stage-area {
  background-color: #000000;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  height: 320px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  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: 20px 20px;
}

.fixer-box-container {
  width: 100px;
  height: 100px;
  position: relative;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.9), 0 0 10px rgba(88, 166, 255, 0.4);
  border: 2px solid #58a6ff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: move;
  transition: width 0.2s ease, height 0.2s ease;
  user-select: none;
}

.fixer-box-header {
  height: 20px;
  background-color: rgba(13, 17, 23, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-blue);
  cursor: move;
  border-bottom: 1px solid rgba(88, 166, 255, 0.3);
}

.fixer-strobe-canvas {
  width: 100%;
  height: calc(100% - 20px);
  display: block;
}

.fixer-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background-color: var(--bg-tertiary);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.fixer-timer-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.fixer-timer-num {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-amber);
}

.size-btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-fixer-size {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-fixer-size:hover {
  border-color: var(--accent-blue);
  color: var(--text-primary);
}

.btn-fixer-size.active {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

/* Floating Fullscreen Fixer Box */
.stuck-pixel-box {
  position: absolute;
  top: 35%;
  left: 42%;
  width: 120px;
  height: 120px;
  border: 2px solid #ffffff;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.95);
  cursor: move;
  border-radius: var(--radius-sm);
  overflow: hidden;
  z-index: 999999;
}

.stuck-pixel-box-header {
  height: 24px;
  background-color: rgba(22, 27, 34, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: move;
  border-bottom: 1px solid var(--border-color);
}

.btn-box-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.btn-box-close:hover {
  color: var(--accent-red);
}

.stuck-pixel-canvas {
  width: 100%;
  height: calc(100% - 24px);
  display: block;
}

/* ==========================================================================
   New Homepage Educational & Diagnostic Components
   ========================================================================== */

/* Section Subtitle & Header Enhancements */
.section-subtitle-lead {
  max-width: 780px;
  margin: 0.5rem auto 0;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 1. Subpixel RGB Explainer Layout */
.subpixel-explainer-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1.5rem;
}

.subpixel-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
}

@media (max-width: 860px) {
  .subpixel-layout-grid {
    grid-template-columns: 1fr;
  }
}

.subpixel-demo-panel {
  background-color: #06090e;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.subpixel-cluster {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 1.25rem 0;
}

.subpixel-bar {
  width: 44px;
  height: 90px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.6);
  transition: transform var(--transition-fast);
}

.subpixel-bar:hover {
  transform: scale(1.06);
}

.subpixel-bar.red {
  background: linear-gradient(180deg, #ff4444 0%, #cc0000 100%);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
}

.subpixel-bar.green {
  background: linear-gradient(180deg, #33dd55 0%, #119933 100%);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(51, 221, 85, 0.4);
}

.subpixel-bar.blue {
  background: linear-gradient(180deg, #4488ff 0%, #1155cc 100%);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(68, 136, 255, 0.4);
}

.subpixel-badge-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.subpixel-badge {
  font-size: 0.78rem;
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

/* 2. Responsive Comparison Matrix Table & Cards */
.compare-matrix-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1.5rem;
}

.compare-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.compare-type-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.compare-type-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-muted);
}

.compare-type-card.dead { border-top: 4px solid #f85149; }
.compare-type-card.stuck { border-top: 4px solid #d29922; }
.compare-type-card.hot { border-top: 4px solid #58a6ff; }

.compare-type-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.compare-type-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0;
}

.compare-pill {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.compare-pill.dead { background: rgba(248, 81, 73, 0.15); color: #f85149; border: 1px solid rgba(248, 81, 73, 0.3); }
.compare-pill.stuck { background: rgba(210, 153, 34, 0.15); color: #d29922; border: 1px solid rgba(210, 153, 34, 0.3); }
.compare-pill.hot { background: rgba(88, 166, 255, 0.15); color: #58a6ff; border: 1px solid rgba(88, 166, 255, 0.3); }

.compare-points-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.compare-points-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}

.compare-points-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* 3. 5-Step Testing Process Flow */
.steps-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.step-flow-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.step-flow-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-blue);
}

.step-num-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
  border: 1px solid rgba(88, 166, 255, 0.3);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step-flow-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-flow-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

/* 4. Color-by-Color Diagnostic Explanation Cards */
.color-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.color-guide-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.color-guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-muted);
}

.color-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.color-swatch-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.color-swatch-pill.white { background-color: #ffffff; border-color: #ffffff; }
.color-swatch-pill.black { background-color: #000000; border-color: #484f58; }
.color-swatch-pill.red { background-color: #ff3333; border-color: #ff3333; }
.color-swatch-pill.green { background-color: #00dd55; border-color: #00dd55; }
.color-swatch-pill.blue { background-color: #3388ff; border-color: #3388ff; }
.color-swatch-pill.yellow { background-color: #ffee33; border-color: #ffee33; }

.color-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0;
}

.color-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0;
}

/* 5. Return Checklist Section */
.return-window-card {
  background: radial-gradient(circle at 10% 20%, rgba(88, 166, 255, 0.05) 0%, transparent 60%), var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  margin-top: 1.5rem;
}

.checklist-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
}

.checklist-step-item {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 500;
}

.checklist-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--accent-green-light);
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Device Use Cases Enhanced */
.device-use-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.device-use-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.device-use-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-blue);
}

.device-use-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid var(--border-subtle);
}

.device-use-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.device-use-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

