/* === LumiDerm UK — Dark Science Editorial === */
:root {
  --bg-deep: #080E1A;
  --bg-card: #0F1729;
  --bg-elevated: #162036;
  --fg: #E8E6E1;
  --fg-dim: #9A9690;
  --fg-muted: #6B6762;
  --accent: #D4A574;
  --accent-glow: rgba(212,165,116,0.15);
  --red-led: #DC3545;
  --blue-led: #4169E1;
  --green-led: #3CB371;
  --nir-led: #8B2252;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1140px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1vw + 0.5rem, 1.1rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,14,26,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,165,116,0.1);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.logo-mark { color: var(--accent); margin-right: 0.15em; }
.logo-accent { color: var(--accent); font-weight: 400; }
.nav-tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem var(--gutter) 4rem;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -20%; right: -15%;
  width: 70vw; height: 70vw;
  max-width: 800px; max-height: 800px;
  background: radial-gradient(circle, rgba(220,53,69,0.12) 0%, rgba(212,165,116,0.06) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-lede {
  font-size: clamp(1rem, 1.2vw + 0.4rem, 1.25rem);
  color: var(--fg-dim);
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.65;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  height: 3rem;
  background: rgba(212,165,116,0.2);
}

/* === SPECTRUM BAR === */
.hero-spectrum {
  position: relative;
  z-index: 2;
  margin-top: 4rem;
  max-width: 700px;
}
.spectrum-bar {
  display: flex;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  gap: 2px;
}
.spectrum-segment {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: flex 0.3s ease, filter 0.3s ease;
  cursor: default;
}
.spectrum-segment span {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.spectrum-segment:hover { flex: 2.5; filter: brightness(1.3); }
.spectrum-active { flex: 1.8; }
.spectrum-caption {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--fg-muted);
  font-style: italic;
}

/* === WAVELENGTHS === */
.wavelengths {
  padding: 6rem var(--gutter);
  background: var(--bg-card);
}
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-subtitle {
  color: var(--fg-dim);
  max-width: 600px;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}
.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.wavelength-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.wl-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.wl-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.wl-red::before { background: var(--red-led); }
.wl-blue::before { background: var(--blue-led); }
.wl-nir::before { background: var(--nir-led); }
.wl-green::before { background: var(--green-led); }
.wl-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.wl-nm {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-weight: 400;
}
.wl-depth {
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wl-card p {
  color: var(--fg-dim);
  font-size: 0.92rem;
  line-height: 1.6;
}
.wl-result {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-weight: 500;
  color: var(--fg) !important;
  font-size: 0.85rem !important;
}

/* === GAP === */
.gap {
  padding: 6rem var(--gutter);
}
.gap-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.gap-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--red-led);
  margin-bottom: 1rem;
}
.gap-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.gap-text h2 em { font-style: italic; color: var(--accent); }
.gap-body {
  color: var(--fg-dim);
  margin-bottom: 1rem;
}
.gap-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.gap-col {
  padding: 1.5rem;
  border-radius: 10px;
}
.gap-existing {
  background: rgba(220,53,69,0.06);
  border: 1px solid rgba(220,53,69,0.15);
}
.gap-lumiderm {
  background: var(--accent-glow);
  border: 1px solid rgba(212,165,116,0.2);
}
.gap-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--fg);
}
.gap-col ul {
  list-style: none;
  padding: 0;
}
.gap-col li {
  font-size: 0.85rem;
  color: var(--fg-dim);
  padding: 0.35rem 0;
  padding-left: 1.2rem;
  position: relative;
}
.gap-existing li::before {
  content: '\00D7';
  position: absolute;
  left: 0;
  color: var(--red-led);
  font-weight: 700;
}
.gap-lumiderm li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* === PILLARS === */
.pillars {
  padding: 6rem var(--gutter);
  background: var(--bg-card);
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.pillar-card {
  padding: 2.5rem 2rem;
  border-radius: 12px;
  border: 1px solid rgba(212,165,116,0.08);
  background: var(--bg-deep);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.pillar-card:hover {
  border-color: rgba(212,165,116,0.25);
  transform: translateY(-3px);
}
.pillar-icon {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.pillar-card p {
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* === EVIDENCE === */
.evidence {
  padding: 6rem var(--gutter);
}
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.evidence-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.evidence-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 1;
}
.evidence-desc {
  font-size: 1rem;
  color: var(--fg);
  line-height: 1.5;
}
.evidence-source {
  font-size: 0.72rem;
  color: var(--fg-muted);
  font-style: italic;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* === MANIFESTO === */
.manifesto {
  padding: 8rem var(--gutter);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-deep) 100%);
  text-align: center;
  position: relative;
}
.manifesto::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,165,116,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.manifesto-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}
.manifesto-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.manifesto-content h2 em { font-style: italic; color: var(--accent); }
.manifesto-content p {
  color: var(--fg-dim);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.manifesto-sign {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent) !important;
  margin-top: 2rem !important;
  font-style: italic;
}

/* === FOOTER === */
.site-footer {
  padding: 3rem var(--gutter);
  border-top: 1px solid rgba(212,165,116,0.08);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.footer-brand p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}
.footer-links p {
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.footer-copy {
  margin-top: 0.25rem;
  font-size: 0.72rem !important;
  color: var(--fg-muted);
}

/* ============================================================
   WAVELENGTH GUIDE — Interactive LED Science Page
   ============================================================ */

.page-content {
  padding-top: 6rem;
  min-height: 100vh;
}

/* --- GUIDE HERO --- */
.guide-hero {
  padding: 5rem var(--gutter) 4rem;
  position: relative;
  overflow: hidden;
}
.guide-hero::before {
  content: '';
  position: absolute;
  top: -10%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,165,116,0.07) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.guide-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.guide-breadcrumb {
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
}
.guide-breadcrumb a {
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.guide-breadcrumb a:hover { color: var(--accent); }
.guide-breadcrumb span { margin: 0 0.5rem; }

/* --- INTERACTIVE SPECTRUM VISUALISER --- */
.spectrum-section {
  padding: 4rem var(--gutter);
  background: var(--bg-card);
}
.spectrum-section-inner { max-width: var(--max-w); margin: 0 auto; }

.spectrum-rail {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    #4b0082 0%,
    #0000ff 12%,
    #00ff00 28%,
    #ffff00 42%,
    #ff8c00 58%,
    #ff0000 75%,
    #8b0000 100%
  );
  margin-bottom: 2rem;
  cursor: pointer;
}

.spectrum-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--fg-muted);
  padding: 0 2px;
  margin-top: 0.5rem;
}

.spectrum-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 0 0 transparent;
}
.spectrum-handle:hover,
.spectrum-handle.active {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 12px 4px currentColor;
}
.spectrum-handle:active { cursor: grabbing; }

.handle-red   { background: var(--red-led);  color: var(--red-led); }
.handle-blue  { background: var(--blue-led);  color: var(--blue-led); }
.handle-green { background: var(--green-led); color: var(--green-led); }
.handle-nir   { background: var(--nir-led);   color: var(--nir-led); }

.spectrum-handle-label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
  pointer-events: none;
}

.spectrum-tooltip {
  position: absolute;
  bottom: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.78rem;
  color: var(--fg);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
}
.spectrum-handle:hover .spectrum-tooltip,
.spectrum-handle.active .spectrum-tooltip { opacity: 1; }

/* --- WAVELENGTH DETAIL PANELS --- */
.wl-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.wl-detail-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
  cursor: pointer;
}
.wl-detail-card:hover,
.wl-detail-card.selected {
  border-color: rgba(212,165,116,0.3);
  transform: translateY(-2px);
}
.wl-detail-card.selected { border-color: var(--accent); }

.wl-detail-top {
  height: 5px;
}
.wl-detail-card.red   .wl-detail-top { background: var(--red-led); }
.wl-detail-card.blue  .wl-detail-top { background: var(--blue-led); }
.wl-detail-card.green .wl-detail-top { background: var(--green-led); }
.wl-detail-card.nir   .wl-detail-top { background: var(--nir-led); }

.wl-detail-body { padding: 1.75rem; }

.wl-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.wl-detail-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.2;
}
.wl-detail-nm {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.wl-detail-card.red   .wl-detail-nm { background: rgba(220,53,69,0.15);  color: var(--red-led); }
.wl-detail-card.blue  .wl-detail-nm { background: rgba(65,105,225,0.15); color: var(--blue-led); }
.wl-detail-card.green .wl-detail-nm { background: rgba(60,179,113,0.15); color: var(--green-led); }
.wl-detail-card.nir   .wl-detail-nm { background: rgba(139,34,82,0.15);  color: #c060a0; }

.wl-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.wl-detail-penetration {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wl-detail-penetration::before {
  content: '';
  display: inline-block;
  width: 16px; height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23D4A574' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2'/%3E%3C/svg%3E");
}
.wl-detail-mechanism {
  font-size: 0.8rem;
  color: var(--fg-dim);
  line-height: 1.5;
}

.wl-detail-moa {
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.wl-detail-moa h4 {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}
.wl-detail-moa p {
  font-size: 0.88rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

.wl-detail-evidence {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}
.wl-detail-evidence p {
  font-size: 0.78rem;
  color: var(--fg-muted);
  font-style: italic;
  line-height: 1.5;
}

/* --- PENETRATION DEPTH VISUALISER --- */
.depth-section {
  padding: 4rem var(--gutter);
}
.depth-section-inner { max-width: var(--max-w); margin: 0 auto; }

.depth-visual {
  display: grid;
  grid-template-columns: 80px 1fr 240px;
  gap: 0;
  margin-top: 2.5rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.depth-labels {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
}
.depth-layer-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  text-align: center;
  padding: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.depth-layer-label:last-child { border-bottom: none; }

.depth-bars {
  display: flex;
  flex-direction: column;
}
.depth-row {
  flex: 1;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
}
.depth-row:last-child { border-bottom: none; }
.depth-row-bar {
  height: 100%;
  min-height: 36px;
  border-right: 2px solid rgba(255,255,255,0.1);
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 0.75rem;
}
.depth-row-bar span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.depth-epidermis { background: linear-gradient(to right, #f5e6d0, #e8d0a8); }
.depth-dermis    { background: linear-gradient(to right, #e8c090, #d4a060); }
.depth-subcut    { background: linear-gradient(to right, #c08050, #a06840); }

.depth-wl-col {
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
}
.depth-wl-row {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.65rem;
  color: var(--fg-muted);
}
.depth-wl-row:last-child { border-bottom: none; }
.depth-wl-indicator {
  width: 8px; height: 8px;
  border-radius: 50%;
}

/* --- DEVICE COMPARISON TABLE --- */
.devices-section {
  padding: 4rem var(--gutter);
  background: var(--bg-card);
}
.devices-section-inner { max-width: var(--max-w); margin: 0 auto; }

.devices-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-top: 2.5rem;
}

.devices-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.devices-table thead tr {
  background: var(--bg-elevated);
}
.devices-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}
.devices-table th:first-child { border-radius: 12px 0 0 0; }
.devices-table th:last-child  { border-radius: 0 12px 0 0; }

.devices-table tbody tr {
  background: var(--bg-deep);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}
.devices-table tbody tr:hover { background: var(--bg-elevated); }
.devices-table tbody tr:last-child { border-bottom: none; }

.devices-table td {
  padding: 1.1rem 1.25rem;
  color: var(--fg-dim);
  vertical-align: middle;
}
.devices-table td:first-child {
  color: var(--fg);
  font-weight: 500;
}

.device-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-best   { background: rgba(212,165,116,0.15); color: var(--accent); }
.badge-good   { background: rgba(60,179,113,0.12);  color: var(--green-led); }
.badge-ok     { background: rgba(255,255,255,0.06);  color: var(--fg-muted); }

.devices-table td:nth-child(n+4) { text-align: center; }

.check-icon { color: var(--green-led); font-weight: 700; }
.cross-icon { color: var(--fg-muted); }
.price-cell { font-weight: 600; color: var(--fg) !important; }

/* --- CITATIONS --- */
.citations-section {
  padding: 4rem var(--gutter);
}
.citations-section-inner { max-width: var(--max-w); margin: 0 auto; }

.citations-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.citations-list li {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.5;
  padding-left: 1.5rem;
  position: relative;
}
.citations-list li::before {
  content: attr(data-num);
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.72rem;
  top: 0.1em;
}

/* --- SECTION DIVIDER --- */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212,165,116,0.15), transparent);
  margin: 0 var(--gutter);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .hero { padding-top: 6rem; min-height: auto; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .stat-divider { width: 3rem; height: 1px; }
  .gap-layout { grid-template-columns: 1fr; gap: 2rem; }
  .gap-comparison { grid-template-columns: 1fr; }
  .wavelength-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  .evidence-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .spectrum-bar { height: 36px; }
  .spectrum-segment span { font-size: 0.55rem; }

  /* Guide page mobile */
  .guide-hero { padding: 4rem var(--gutter) 2.5rem; }
  .depth-visual { grid-template-columns: 60px 1fr; }
  .depth-wl-col { display: none; }
  .depth-labels { font-size: 0.6rem; }
  .devices-table th, .devices-table td { padding: 0.75rem 0.6rem; font-size: 0.78rem; }
}