/* ==========================================================================
   KAPATE CONSULTANCY — INDUSTRIAL AI WEARABLE ASSISTANT
   Multimodal Edge AI, AR HUD Simulator, RAG Assistant & Benchmark Gallery
   ========================================================================== */

:root {
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-dark: #0F172A;
  --bg-hud: #0A0F1D;
  --hud-green: #10B981;
  --hud-cyan: #06B6D4;
  --hud-blue: #3B82F6;
  --hud-amber: #F59E0B;
  --hud-rose: #EF4444;
  
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-subtle: #EFF6FF;
  --primary-border: #BFDBFE;

  --navy: #0F172A;
  --navy-light: #1E293B;
  
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'SF Mono', Consolas, Monaco, "Liberation Mono", monospace;

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

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.09);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.25);
  --shadow-hud: 0 0 25px rgba(16, 185, 129, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   TOP BAR & NAVIGATION
   ========================================================================== */
.kc-topbar {
  background: var(--navy);
  color: var(--text-light);
  font-size: 0.82rem;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1001;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kc-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #F8FAFC;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.kc-back-link:hover {
  color: #38BDF8;
}

.kc-divider {
  color: #475569;
}

.kc-tagline {
  display: none;
  color: #94A3B8;
}

@media (min-width: 768px) {
  .kc-tagline { display: inline-block; }
}

.kc-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.kc-topbar-right a {
  color: #94A3B8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.kc-topbar-right a:hover {
  color: #F8FAFC;
}

.main-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 34px;
  width: auto;
}

.brand-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.nav-links-menu {
  display: none;
  align-items: center;
  gap: 22px;
  list-style: none;
}

@media (min-width: 1024px) {
  .nav-links-menu { display: flex; }
}

.nav-link-item {
  color: #475569;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.nav-btn-cta {
  background: var(--navy);
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-btn-cta:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 70px 24px 50px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 380px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0) 70%);
  pointer-events: none;
}

.hero-container {
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.hero-pill .dot-live {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--text-muted);
  max-width: 860px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--navy);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--navy);
  background: #F8FAFC;
  transform: translateY(-2px);
}

/* Key Metrics Grid */
.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-metrics-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.metric-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.metric-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy);
  font-family: var(--font-mono);
  line-height: 1.2;
}

.metric-value.highlight {
  color: var(--primary);
}

.metric-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 6px;
}

/* ==========================================================================
   INTERACTIVE AR HUD SIMULATOR SECTION
   ========================================================================== */
.section-wrapper {
  padding: 70px 24px;
  max-width: 1320px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.section-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: #EFF6FF;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 12px;
  border: 1px solid #DBEAFE;
}

.section-title {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* HUD Cockpit Box */
.hud-cockpit {
  background: var(--bg-hud);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(10, 15, 29, 0.4);
  display: flex;
  flex-direction: column;
}

.hud-control-bar {
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.scenario-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scenario-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #E2E8F0;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.scenario-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.scenario-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.5);
}

.hud-toggle-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hud-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94A3B8;
  font-size: 0.78rem;
  cursor: pointer;
  user-select: none;
}

.hud-toggle-label input[type="checkbox"] {
  accent-color: #10B981;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* HUD Viewport Grid */
.hud-viewport-container {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  min-height: 520px;
}

@media (min-width: 992px) {
  .hud-viewport-container {
    grid-template-columns: 1fr 340px;
  }
}

.hud-canvas-area {
  position: relative;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 480px;
}

.hud-camera-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: contrast(1.05) brightness(0.95);
  transition: opacity 0.3s ease;
}

/* Thermal Heatmap Overlay Canvas */
.thermal-overlay-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at 45% 40%, rgba(239, 68, 68, 0.75) 0%, rgba(245, 158, 11, 0.45) 25%, rgba(6, 182, 212, 0.25) 55%, transparent 75%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thermal-overlay-canvas.active {
  opacity: 1;
}

/* SVG Vector & Bounding Box Layer */
.hud-svg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* HUD Monocular Glasses Overlay Elements */
.hud-glasses-reticle {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.hud-badge-glasses {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.5);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: #10B981;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.hud-badge-glasses .hud-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  animation: rec-blink 1s infinite;
}

@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hud-target-box {
  position: absolute;
  border: 2px solid #10B981;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-target-label {
  position: absolute;
  top: -22px;
  left: -2px;
  background: #10B981;
  color: #0F172A;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
}

.hud-arrow-vector {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 0 6px #38BDF8);
}

/* HUD Telemetry Sidebar */
.hud-telemetry-sidebar {
  background: #0B1120;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.telemetry-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.telemetry-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38BDF8;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.telemetry-metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.t-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: #94A3B8;
  font-weight: 600;
}

.t-value {
  font-size: 1.15rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #F8FAFC;
}

.t-value.green { color: #10B981; }
.t-value.amber { color: #F59E0B; }
.t-value.red { color: #EF4444; }

.t-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 2px;
}

.t-bar-fill {
  height: 100%;
  background: #3B82F6;
  border-radius: 3px;
  transition: width 0.4s ease, background 0.4s ease;
}

.t-bar-fill.warning { background: #F59E0B; }
.t-bar-fill.danger { background: #EF4444; }
.t-bar-fill.success { background: #10B981; }

.sop-instruction-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: auto;
}

.sop-doc-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 6px;
}

.sop-text {
  font-size: 0.8rem;
  color: #CBD5E1;
  line-height: 1.5;
}

/* ==========================================================================
   VOICE ASSISTANT & RAG COPILOT SECTION
   ========================================================================== */
.rag-console-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 992px) {
  .rag-console-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.rag-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.rag-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  width: fit-content;
  margin-bottom: 12px;
}

.rag-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.rag-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Quick Inquiry Chips */
.query-chips-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.query-chip {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.query-chip:hover {
  border-color: var(--primary);
  background: #EFF6FF;
  color: var(--primary);
  transform: translateX(3px);
}

.query-chip.active {
  border-color: var(--primary);
  background: #EFF6FF;
  color: var(--primary);
  font-weight: 700;
}

/* Audio Simulation Bar */
.audio-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F1F5F9;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: auto;
}

.ptt-btn {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.ptt-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

.audio-waveform-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.audio-bar {
  width: 3px;
  height: 6px;
  background: #94A3B8;
  border-radius: 2px;
  transition: height 0.2s ease, background 0.2s ease;
}

.audio-bar.active {
  background: #10B981;
  animation: wave-bar 0.8s ease-in-out infinite alternate;
}

.audio-bar:nth-child(2) { animation-delay: 0.15s; }
.audio-bar:nth-child(3) { animation-delay: 0.3s; }
.audio-bar:nth-child(4) { animation-delay: 0.45s; }
.audio-bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes wave-bar {
  0% { height: 4px; }
  100% { height: 18px; }
}

/* RAG Result Box */
.rag-result-box {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rag-query-display {
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E2E8F0;
}

.rag-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rag-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.5;
}

.step-num-badge {
  background: #E2E8F0;
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.rag-citation-box {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-left: 4px solid #10B981;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.citation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.citation-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
}

.citation-score {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10B981;
  background: #ECFDF5;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #A7F3D0;
}

.citation-excerpt {
  font-size: 0.78rem;
  color: #64748B;
  font-family: var(--font-mono);
  line-height: 1.45;
}

/* ==========================================================================
   15-SLIDE TECHNICAL PRESENTATION DECK
   ========================================================================== */
.presentation-container {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 1140px;
  margin: 0 auto;
}

.deck-header-bar {
  background: #0F172A;
  color: #FFFFFF;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.deck-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deck-badge {
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid #3B82F6;
  color: #93C5FD;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.slide-canvas {
  padding: clamp(24px, 4vw, 44px);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #FAFAFC;
}

.slide-category-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 6px;
}

.slide-heading {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 8px;
}

.slide-subheading {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.slide-body-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 20px;
}

.slide-cards-grid {
  display: grid;
  gap: 16px;
}

.slide-cards-grid.cols-2 { grid-template-columns: 1fr; }
.slide-cards-grid.cols-3 { grid-template-columns: 1fr; }
.slide-cards-grid.cols-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .slide-cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .slide-cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .slide-cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .slide-cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.s-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--primary);
}

.s-card.emerald { border-left-color: #10B981; }
.s-card.amber { border-left-color: #F59E0B; }
.s-card.teal { border-left-color: #0D9488; }
.s-card.rose { border-left-color: #EF4444; }

.s-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.s-card-stat {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.s-card-desc {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.5;
  white-space: pre-line;
}

.slide-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .slide-split-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.split-box {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.split-box-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.bullet-item {
  display: flex;
  gap: 8px;
  font-size: 0.82rem;
  color: #334155;
  margin-bottom: 8px;
  line-height: 1.5;
}

.bullet-dot {
  color: var(--primary);
  font-weight: bold;
}

.slide-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid #E2E8F0;
}

/* Deck Controls Footer */
.deck-controls-bar {
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.deck-nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.deck-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s ease;
}

.deck-btn:hover:not(:disabled) {
  border-color: var(--navy);
  background: #F8FAFC;
}

.deck-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.deck-btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.deck-btn.primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.deck-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deck-progress-track {
  width: 160px;
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  overflow: hidden;
}

.deck-progress-bar {
  height: 100%;
  background: var(--primary);
  width: 6.6%;
  transition: width 0.3s ease;
}

.download-deck-links {
  display: flex;
  gap: 10px;
}

.download-link-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.download-link-btn:hover {
  background: #E2E8F0;
  color: var(--navy);
}

/* ==========================================================================
   RESEARCH BENCHMARK GALLERY
   ========================================================================== */
.benchmark-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 30px;
}

.b-tab-btn {
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.b-tab-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.b-tab-btn.active {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
}

.benchmark-card-main {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .benchmark-card-main {
    grid-template-columns: 1.2fr 1fr;
  }
}

.benchmark-visual {
  background: #0B0F19;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 380px;
  position: relative;
  cursor: pointer;
}

.benchmark-plot-img {
  max-width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease;
}

.benchmark-visual:hover .benchmark-plot-img {
  transform: scale(1.02);
}

.zoom-hint-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.85);
  color: #F8FAFC;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.benchmark-content {
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.b-metric-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #10B981;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  width: fit-content;
  margin-bottom: 12px;
}

.b-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.25;
}

.b-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.b-takeaway-box {
  background: #F8FAFC;
  border-left: 3px solid var(--primary);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.5;
}

/* ==========================================================================
   SYSTEM ARCHITECTURE ACCORDION TABS
   ========================================================================== */
.arch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}

.arch-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.2s ease;
}

.arch-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.arch-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.arch-card-num {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--primary);
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.arch-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.arch-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   CONSULTATION CTA BANNER
   ========================================================================== */
.cta-banner {
  background: var(--navy);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 60px);
  text-align: center;
  max-width: 1140px;
  margin: 60px auto 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.cta-subtitle {
  color: #94A3B8;
  max-width: 680px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

/* Modal for Image Zoom */
.image-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.image-modal-backdrop.open {
  display: flex;
}

.modal-content-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  color: #FFFFFF;
  font-size: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* Footer */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}



/* ==========================================================================
   LIVE CAMERA & SOURCE SELECTOR EXTENSIONS
   ========================================================================== */
.hud-source-row {
  background: #0B101D;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.source-chips-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.source-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  color: #64748B;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.source-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.source-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}

.source-btn.active {
  background: #10B981;
  border-color: #10B981;
  color: #0F172A;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.source-btn.camera-live {
  background: rgba(239, 68, 68, 0.15);
  border-color: #EF4444;
  color: #FCA5A5;
}

.source-btn.camera-live.active {
  background: #EF4444;
  border-color: #EF4444;
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
}

.source-btn.camera-live .live-blink {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFFFFF;
  animation: rec-blink 0.8s infinite;
}

#hudLiveVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

#hudLiveCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.camera-alert-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #F59E0B;
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  z-index: 20;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: none;
}

.camera-alert-title {
  color: #F59E0B;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.camera-alert-desc {
  color: #CBD5E1;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Step Progress & Controls in Sidebar */
.step-navigator-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: #94A3B8;
}

.step-type-pill {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(37, 99, 235, 0.2);
  color: #93C5FD;
  border: 1px solid rgba(37, 99, 235, 0.4);
}

.step-instruction-current {
  font-size: 0.84rem;
  color: #F8FAFC;
  font-weight: 600;
  line-height: 1.45;
}

.step-nav-buttons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
}

.step-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
}

.step-action-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.step-action-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.step-action-btn.done-btn {
  background: #10B981;
  color: #0F172A;
  border-color: #10B981;
  font-weight: 700;
}

.step-action-btn.done-btn:hover {
  background: #059669;
  color: #FFFFFF;
}

.step-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.step-progress-fill {
  height: 100%;
  background: #10B981;
  width: 20%;
  transition: width 0.3s ease;
}

.interactive-target-pin {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid #38BDF8;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pin-pulse 1.5s infinite;
  box-shadow: 0 0 10px #38BDF8;
  z-index: 10;
  display: none;
}

.interactive-target-pin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #38BDF8;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

@keyframes pin-pulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}
