/* ==========================================================================
   ZEVIONIX TECHNOLOGIES - ENTERPRISE LIGHT DESIGN SYSTEM
   Modern, Clean White-Based Enterprise Tech Aesthetic
   (Inspired by Stripe, Linear, Apple & Vercel)
   ========================================================================== */

/* Fonts are loaded asynchronously via HTML <head> with preconnect hints for non-blocking rendering */

:root {
  /* Color Palette - Enterprise Light */
  --bg-body: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass-nav: rgba(255, 255, 255, 0.94);

  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;
  --border-focus: #3b82f6;

  --primary: #0066ff;
  --primary-hover: #0052cc;
  --primary-subtle: #eff6ff;
  --primary-border: #bfdbfe;

  --secondary: #6366f1;
  --secondary-subtle: #eef2ff;

  --accent-cyan: #0284c7;
  --accent-cyan-subtle: #e0f2fe;
  --accent-emerald: #059669;
  --accent-emerald-subtle: #ecfdf5;

  --text-main: #0a0f1d;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0066ff 0%, #0284c7 100%);
  --gradient-cyan-blue: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
  --gradient-text: linear-gradient(135deg, #0a0f1d 0%, #0066ff 100%);
  --gradient-accent-text: linear-gradient(135deg, #0066ff 0%, #38bdf8 100%);
  --gradient-hero: radial-gradient(circle at 50% 0%, #eff6ff 0%, #ffffff 80%);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 20px 40px -8px rgba(37, 99, 235, 0.15), 0 4px 12px rgba(15, 23, 42, 0.05);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background-color: var(--bg-body);
  color-scheme: light;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}

h4 {
  font-size: 1.15rem;
}

p {
  margin-bottom: 1.15rem;
}

p:last-child {
  margin-bottom: 0;
}

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

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

.code-font {
  font-family: 'JetBrains Mono', monospace;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

section {
  padding: 85px 0;
  position: relative;
}

.section-bg-subtle {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* Background Ambient Orbs (Soft Light Theme) */
.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.ambient-glow.top-right {
  top: -100px;
  right: 0;
  background: #dbeafe;
}

.ambient-glow.bottom-left {
  bottom: -100px;
  left: 0;
  background: #ede9fe;
}

.ambient-glow.cyan {
  background: #e0f2fe;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-normal);
}

.header-inner,
.navbar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 44px;
  object-fit: contain;
  display: block;
  transition: var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.06);
}

.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 14px;
}

.brand-logo .logo-icon {
  width: 34px;
  height: 34px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.brand-logo .brand-highlight {
  color: var(--primary);
}

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

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
  transition: var(--transition-fast);
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-pill);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: -15px;
  width: 270px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition-normal);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-fast);
}

.dropdown-item i,
.dropdown-item svg {
  color: var(--primary);
  font-size: 0.95rem;
  width: 16px;
  text-align: center;
}

.dropdown-item:hover {
  background: var(--bg-subtle);
  color: var(--primary);
  padding-left: 16px;
}

.dropdown-item.active {
  background: var(--primary-subtle);
  color: var(--primary);
}

/* ==========================================================================
   Desktop 3-Line "More" Navigation Item & Dropdown
   ========================================================================== */
.nav-more-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-more-btn {
  background: var(--bg-subtle, #f8fafc);
  border: 1.5px solid var(--border-light, #e2e8f0);
  border-radius: 9px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-main, #0a0f1d);
  outline: none;
}

.nav-more-icon-bars {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  width: 17px;
  pointer-events: none;
}

.nav-more-icon-bars span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.22s ease;
}

.nav-more-icon-bars span:nth-child(2) {
  width: 70%;
}

.nav-more-btn:hover,
.nav-more-item:hover .nav-more-btn,
.nav-more-item.open .nav-more-btn {
  background: var(--primary, #0066ff);
  color: #ffffff;
  border-color: var(--primary, #0066ff);
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
  transform: translateY(-1px);
}

.nav-more-btn:hover .nav-more-icon-bars span:nth-child(2),
.nav-more-item:hover .nav-more-icon-bars span:nth-child(2),
.nav-more-item.open .nav-more-icon-bars span:nth-child(2) {
  width: 100%;
}

/* Dropdown More Menu */
.dropdown-more-menu {
  width: 330px;
  right: 0;
  left: auto !important;
  padding: 10px;
  border-radius: 14px;
  border: 1.5px solid var(--border-light, #e2e8f0);
  background: #ffffff;
  box-shadow: 0 18px 45px -8px rgba(15, 23, 42, 0.14), 0 4px 16px rgba(0, 102, 255, 0.08);
}

.nav-more-item:hover .dropdown-more-menu,
.nav-more-item.open .dropdown-more-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-more-header {
  padding: 4px 10px 8px;
  border-bottom: 1px solid var(--border-light, #f1f5f9);
  margin-bottom: 6px;
}

.dropdown-more-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary, #0066ff);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.dropdown-more-menu .dropdown-item {
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-more-menu .dropdown-item i {
  margin-top: 3px;
  font-size: 0.95rem;
  width: 20px;
  color: var(--primary, #0066ff);
  text-align: center;
  flex-shrink: 0;
}

.dropdown-item-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

.dropdown-item-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main, #0a0f1d);
  line-height: 1.25;
}

.dropdown-item-desc {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted, #64748b);
  line-height: 1.35;
}

.dropdown-more-menu .dropdown-item:hover {
  background: var(--primary-subtle, #eff6ff);
  padding-left: 14px;
}

.dropdown-more-menu .dropdown-item:hover .dropdown-item-title {
  color: var(--primary, #0066ff);
}

.dropdown-more-divider {
  height: 1px;
  background: var(--border-light, #f1f5f9);
  margin: 6px 4px;
}

.dropdown-item-cta {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.04) 0%, rgba(2, 132, 199, 0.07) 100%);
  border: 1px dashed rgba(0, 102, 255, 0.25);
  margin-top: 4px;
}

.dropdown-item-cta:hover {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(2, 132, 199, 0.12) 100%) !important;
  border-color: var(--primary, #0066ff);
}

.dropdown-cta-arrow {
  margin-top: 5px;
  font-size: 0.75rem;
  color: var(--primary, #0066ff);
  transition: transform 0.2s ease;
}

.dropdown-item-cta:hover .dropdown-cta-arrow {
  transform: translateX(3px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  color: #ffffff;
}

.btn-cyan {
  background: var(--gradient-cyan-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-cyan:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-subtle);
  transform: translateY(-1px);
  color: var(--primary);
}

.btn-outline {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--primary-border);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 0.98rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  line-height: 1;
}

.mobile-toggle:hover {
  color: var(--primary);
  background: var(--bg-subtle);
}

/* ==========================================================================
   Badges & Section Headers
   ========================================================================== */
.badge-pill {
  display: inline-flex;
  align-items: center;
  align-self: center;
  width: fit-content;
  max-width: 100%;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.badge-pill .pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

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

.section-header.text-left {
  text-align: left;
  margin: 0 0 35px;
}

.section-title {
  margin-bottom: 14px;
}

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

.text-gradient {
  background: var(--gradient-accent-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   CORALGENZ ENTERPRISE SIGNATURE SECTION PILL HEADER
   High-contrast, highlighted corporate section header with interactive badge
   ========================================================================== */
.section-pill-header {
  border-radius: var(--radius-pill, 9999px);
  background: #ffffff;
  border: 1.5px solid var(--border-light, #e2e8f0);
  justify-content: space-between;
  align-items: center;
  max-width: 840px;
  margin: 0 auto 24px;
  padding: 12px 28px;
  display: flex;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.section-pill-header:hover {
  border-color: rgba(0, 102, 255, 0.45);
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.1);
  transform: translateY(-2px);
}

.section-pill-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.pill-badge-black,
.pill-badge-blue {
  border-radius: var(--radius-pill, 9999px);
  color: #ffffff !important;
  background: linear-gradient(135deg, #0066ff 0%, #0284c7 100%);
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  display: inline-flex;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
  text-decoration: none !important;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  user-select: none;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-pill-header:hover .pill-badge-black,
.section-pill-header:hover .pill-badge-blue {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.5);
}

.pill-badge-black svg,
.pill-badge-blue svg {
  flex-shrink: 0;
  display: block;
}

.section-pill-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-muted, #64748b);
  max-width: 840px;
  text-align: center;
  margin: 0 auto 36px auto;
  font-size: 0.96rem;
  line-height: 1.65;
}

.section-pill-desc strong {
  color: #0f172a;
  font-weight: 700;
}

@media (max-width: 768px) {
  .section-pill-header {
    border-radius: 18px;
    padding: 12px 18px;
    margin-bottom: 18px;
  }

  .section-pill-title {
    font-size: 1.15rem;
  }

  .pill-badge-blue,
  .pill-badge-black {
    padding: 6px 12px;
    font-size: 0.72rem;
  }
}


/* ==========================================================================
   Hero Section (Light Mode)
   ========================================================================== */
.hero-section {
  padding: 75px 0 65px;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border-light);
}

/* ==========================================================================
   Interactive AI Neural Mesh / Particle Canvas
   ========================================================================== */
.hero-neural-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.95;
  transition: opacity 0.4s ease;
}

.hero-neural-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--primary);
  background: rgba(239, 246, 255, 0.88);
  border: 1px solid var(--primary-border);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-top: 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  user-select: none;
  width: fit-content;
}

.hero-neural-tag .live-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 1.8s infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-body);
  margin-bottom: 30px;
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid var(--border-light);
}

.stat-item .stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat-item .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* Hero Media Visual - Square Shape */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper,
.hero-logo-wrapper,
.hero-logo-showcase-card {
  position: relative;
  width: 320px;
  height: 320px;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  padding: 36px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 55%, #eff6ff 100%);
  border: 1.5px solid rgba(37, 99, 235, 0.16);
  box-shadow: 0 25px 50px -15px rgba(37, 99, 235, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.95) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.hero-logo-showcase-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 30px 60px -15px rgba(37, 99, 235, 0.18), 0 0 30px rgba(37, 99, 235, 0.08);
}

.hero-main-logo {
  max-width: 230px;
  max-height: 230px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.07));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-logo-showcase-card:hover .hero-main-logo {
  transform: scale(1.05);
}

.hero-image-wrapper img:not(.hero-main-logo) {
  border-radius: var(--radius-md);
  width: 100%;
  max-height: 330px;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-card.top-card {
  top: -15px;
  left: -20px;
  animation: floatSlow 6s ease-in-out infinite;
}

.floating-card.bottom-card {
  bottom: -15px;
  right: -15px;
  animation: floatSlow 7s ease-in-out infinite reverse;
}

@keyframes floatSlow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.floating-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

/* ==========================================================================
   LIVE AURA COMPUTER VISION FEED HUD MOCKUP
   Enterprise Light CCTV Viewport & Edge Perception Console
   ========================================================================== */
.aura-hud-container {
  position: relative;
  width: 100%;
  max-width: 1060px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.04);
  font-family: 'JetBrains Mono', monospace;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  z-index: 2;
}

.aura-hud-container:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: 0 25px 55px -10px rgba(37, 99, 235, 0.15), 0 6px 16px rgba(15, 23, 42, 0.06);
}

.aura-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.74rem;
  color: var(--text-body);
  gap: 10px;
  flex-wrap: wrap;
}

.aura-hud-stream-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.04em;
}

.hud-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
  animation: pulse 1.4s infinite;
  display: inline-block;
  flex-shrink: 0;
}

.aura-hud-clock,
.hud-ist-clock {
  font-size: 0.74rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-ist-clock i {
  color: #ef4444;
  font-size: 0.72rem;
}

.aura-hud-protocol {
  font-size: 0.68rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  font-weight: 600;
}

/* Single Screen Vision Console Card (Uncongested, Clear & Spacious) */
.aura-hud-single-screen {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
}

.aura-hud-single-screen .aura-hud-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  max-height: 600px;
  overflow: hidden;
  background: #0f172a;
  user-select: none;
}

@media (max-width: 768px) {
  .aura-hud-single-screen .aura-hud-viewport {
    min-height: 280px;
  }
}

/* Dual Screen Vision Console Grid (Legacy fallback) */
.aura-hud-screens-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
}

@media (max-width: 860px) {
  .aura-hud-screens-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 10px;
  }
}

.aura-hud-screen-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.aura-hud-screen-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.1);
}

.aura-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
  gap: 8px;
}

.screen-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.screen-pill {
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.screen-pill.pill-clean {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.screen-pill.pill-ai {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.aura-hud-viewport,
.aura-inference-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f8fafc;
  user-select: none;
}

.aura-twin-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.camera-clean-badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
  z-index: 6;
}

.camera-clean-badge .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.twin-telemetry-badge {
  position: absolute;
  top: 10px;
  left: 12px;
  background: rgba(2, 132, 199, 0.92);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
  z-index: 6;
}

.aura-hud-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.02) contrast(1.04);
  display: block;
  transition: filter 0.3s ease;
}

.aura-hud-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.75), transparent);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.55);
  animation: hudScanline 3.2s linear infinite;
  pointer-events: none;
  z-index: 5;
}

@keyframes hudScanline {
  0% {
    top: -2%;
  }

  100% {
    top: 102%;
  }
}

.aura-hud-overlay-grid {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 65%, rgba(255, 255, 255, 0.35) 100%),
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px;
  pointer-events: none;
  z-index: 3;
}

/* Corner Reticle Brackets */
.hud-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #2563eb;
  pointer-events: none;
  z-index: 6;
}

.hud-corner.top-left {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.hud-corner.top-right {
  top: 10px;
  right: 10px;
  border-left: none;
  border-bottom: none;
}

.hud-corner.bottom-left {
  bottom: 10px;
  left: 10px;
  border-right: none;
  border-top: none;
}

.hud-corner.bottom-right {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

/* ==========================================================================
   AURA Mesh Feature Cards (Executive Pillars of AURA Design System)
   ========================================================================== */
.aura-mesh-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 26px;
}

.tech-card.aura-hero-tech-card {
  padding: 20px 18px 18px;
  border-radius: var(--radius-md, 12px);
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(0, 0, 0, 0.04));
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.tech-card.aura-hero-tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary, linear-gradient(135deg, #0066ff 0%, #0284c7 100%));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-card.aura-hero-tech-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus, #3b82f6);
  box-shadow: var(--shadow-hover, 0 20px 40px -8px rgba(37, 99, 235, 0.15));
}

.tech-card.aura-hero-tech-card:hover::before {
  opacity: 1;
}

.tech-card.aura-hero-tech-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(2, 132, 199, 0.12) 100%);
  border: 1px solid rgba(0, 102, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary, #0066ff);
  font-size: 1.15rem;
  margin-bottom: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card.aura-hero-tech-card:hover .card-icon {
  transform: scale(1.08) rotate(3deg);
  background: linear-gradient(135deg, #0066ff 0%, #0284c7 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.35);
}

.tech-card.aura-hero-tech-card h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main, #0a0f1d);
  margin: 0 0 8px 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.tech-card.aura-hero-tech-card p {
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--text-muted, #64748b);
  margin: 0;
  flex-grow: 1;
}

@media (max-width: 640px) {
  .aura-mesh-feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ==========================================================================
   AURA Face & Eye Reticle Tracking System (Square/Rectangle Frame + Precision Eye Dots)
   ========================================================================== */
.face-eye-tracker {
  position: absolute;
  top: 24%;
  left: 41%;
  width: 22%;
  height: 34%;
  border: 2px solid #0066ff;
  border-radius: 8px;
  box-shadow: 0 2px 14px rgba(0, 102, 255, 0.25);
  background: rgba(0, 102, 255, 0.02);
  z-index: 10;
  pointer-events: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

/* Real-time 60FPS kinematics bypass */
.aura-hud-viewport.webcam-tracking-active .face-eye-tracker {
  transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

/* Active Motion State */
.face-eye-tracker.active-motion {
  border-color: #0284c7;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
}

/* Stationary / Idle State */
.face-eye-tracker.stationary {
  border-color: #3b82f6;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

/* Clean, Minimal Corner Accents */
.face-frame-corners {
  position: absolute;
  inset: -2px;
  pointer-events: none;
  border-radius: 8px;
}

.ff-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: #00d2ff;
  border-style: solid;
  border-width: 0;
  transition: border-color 0.2s ease;
}

.ff-corner.tl {
  top: -2px;
  left: -2px;
  border-top-width: 2.5px;
  border-left-width: 2.5px;
  border-top-left-radius: 8px;
}

.ff-corner.tr {
  top: -2px;
  right: -2px;
  border-top-width: 2.5px;
  border-right-width: 2.5px;
  border-top-right-radius: 8px;
}

.ff-corner.bl {
  bottom: -2px;
  left: -2px;
  border-bottom-width: 2.5px;
  border-left-width: 2.5px;
  border-bottom-left-radius: 8px;
}

.ff-corner.br {
  bottom: -2px;
  right: -2px;
  border-bottom-width: 2.5px;
  border-right-width: 2.5px;
  border-bottom-right-radius: 8px;
}

.face-eye-tracker.stationary .ff-corner {
  border-color: #60a5fa;
}

/* Clean, Simple Top Badge Tag */
.face-box-tag {
  position: absolute;
  top: -24px;
  left: 0;
  background: #0066ff;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease;
}

.face-eye-tracker.active-motion .face-box-tag {
  background: #0284c7;
}

.face-eye-tracker.stationary .face-box-tag {
  background: #2563eb;
}

/* Hide cluttering elements in webcam mode */
.face-box-subtag {
  display: none !important;
}

.aura-hud-viewport.webcam-tracking-active .aura-hud-scanline {
  display: none !important;
}

/* Subtle, Minimal Eye Tracking Dots */
.eye-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00d2ff;
  box-shadow: 0 0 6px rgba(0, 210, 255, 0.7);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 12;
  transition: background 0.2s ease;
}

.face-eye-tracker.stationary .eye-dot {
  background: #60a5fa;
  box-shadow: 0 0 4px rgba(96, 165, 250, 0.5);
}

.eye-dot.eye-left {
  top: 36%;
  left: 32%;
}

.eye-dot.eye-right {
  top: 36%;
  left: 68%;
}

/* Multi-Face Variant Styles */
.webcam-multi-face-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.scenario-bbox-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 7;
}

.face-eye-tracker.face-primary {
  border-color: #0066ff;
}

.face-eye-tracker.face-secondary {
  border-color: #059669;
  box-shadow: 0 2px 14px rgba(5, 150, 105, 0.25);
  background: rgba(5, 150, 105, 0.03);
}

.face-eye-tracker.face-secondary .face-box-tag {
  background: #059669;
}

.face-eye-tracker.face-secondary .ff-corner {
  border-color: #10b981;
}

.face-eye-tracker.face-secondary .eye-dot {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}

.face-eye-tracker.face-tertiary {
  border-color: #7c3aed;
  box-shadow: 0 2px 14px rgba(124, 58, 237, 0.25);
  background: rgba(124, 58, 237, 0.03);
}

.face-eye-tracker.face-tertiary .face-box-tag {
  background: #7c3aed;
}

.face-eye-tracker.face-tertiary .ff-corner {
  border-color: #a855f7;
}

.face-eye-tracker.face-tertiary .eye-dot {
  background: #a855f7;
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.7);
}

/* Incident Alert Viewport Styling */
.aura-hud-viewport.is-incident-alert {
  box-shadow: inset 0 0 45px rgba(239, 68, 68, 0.45);
  border: 1px solid rgba(239, 68, 68, 0.6) !important;
  animation: viewportAlertPulse 1.8s ease-in-out infinite;
}

@keyframes viewportAlertPulse {
  0%, 100% {
    box-shadow: inset 0 0 35px rgba(239, 68, 68, 0.35);
  }
  50% {
    box-shadow: inset 0 0 65px rgba(239, 68, 68, 0.6);
  }
}

.aura-hud-viewport.is-incident-alert .aura-hud-scanline {
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.85), transparent);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.7);
}

.aura-hud-viewport.is-incident-alert .hud-corner {
  border-color: #ef4444;
}

.hud-incident-banner {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(220, 38, 38, 0.95);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 45;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.45);
  border: 1px solid rgba(254, 202, 202, 0.5);
  max-width: 94%;
  animation: bannerSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bannerSlideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.incident-banner-content {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.incident-banner-content i {
  color: #fef08a;
  font-size: 0.9rem;
}

.btn-ack-incident {
  background: #ffffff;
  color: #dc2626;
  border: none;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 5px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-ack-incident:hover {
  background: #fee2e2;
  color: #991b1b;
  transform: scale(1.03);
}

/* Defect QA Viewport Scanline */
.aura-hud-viewport.is-qa-inspection .aura-hud-scanline {
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.85), transparent);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.7);
}

/* Floating Turn-Off Camera Action Button inside HUD Viewport */
.hud-turn-off-cam-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  left: auto;
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  border: 1px solid rgba(254, 202, 202, 0.4);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  z-index: 50;
  pointer-events: auto !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-turn-off-cam-btn:hover {
  background: #b91c1c;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.5);
}

.hud-turn-off-cam-btn i {
  font-size: 0.75rem;
  color: #ffffff;
}

.hud-control-btn.btn-webcam.cam-active {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.35);
}

.hud-control-btn.btn-webcam.cam-active:hover {
  background: #b91c1c !important;
}

/* Bounding Boxes (Legacy) */
.aura-bbox {
  position: absolute;
  border: 2px solid #059669;
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.35), inset 0 0 6px rgba(5, 150, 105, 0.1);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 7;
  pointer-events: none;
  animation: bboxBreathe 3s ease-in-out infinite;
}

/* During active webcam tracking, bypass CSS position transition for real-time 60FPS kinematics */
.aura-hud-viewport.webcam-tracking-active .aura-bbox,
.aura-inference-viewport.webcam-tracking-active .aura-bbox {
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Camera Box Clean Feed Mode: Completely hide tracking frames in Camera Box */
.aura-hud-viewport.camera-clean-feed .aura-bbox,
.camera-box-clean .aura-bbox {
  display: none !important;
}

@keyframes bboxBreathe {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(5, 150, 105, 0.3), inset 0 0 6px rgba(5, 150, 105, 0.08);
  }

  50% {
    box-shadow: 0 0 14px rgba(5, 150, 105, 0.5), inset 0 0 8px rgba(5, 150, 105, 0.16);
  }
}

.bbox-passenger {
  top: 45%;
  left: 42%;
  width: 18%;
  height: 47%;
}

.bbox-personnel {
  top: 41%;
  left: 54.5%;
  width: 14%;
  height: 43%;
  border-color: #0284c7;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.35), inset 0 0 6px rgba(2, 132, 199, 0.1);
}

.bbox-hazard {
  top: 76%;
  left: 36%;
  width: 33%;
  height: 18%;
  border-color: #059669;
  border-style: dashed;
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.25);
}

.aura-bbox-tag {
  position: absolute;
  top: -24px;
  left: -1px;
  background: #059669;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.02em;
}

.aura-bbox-tag.tag-cyan {
  background: #0284c7;
  color: #ffffff;
}

.aura-bbox-tag.tag-emerald {
  background: #059669;
  color: #ffffff;
}

.aura-bbox-subtag {
  position: absolute;
  bottom: -18px;
  left: 0;
  font-size: 0.58rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.95);
  padding: 1px 6px;
  border-radius: 2px;
  white-space: nowrap;
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

/* Alert Pulse Mode */
.aura-bbox.alert-pulse {
  border-color: #ef4444 !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.7), inset 0 0 10px rgba(239, 68, 68, 0.3) !important;
  animation: bboxAlertAnim 0.7s ease-in-out infinite !important;
}

.aura-bbox.alert-pulse .aura-bbox-tag {
  background: #ef4444 !important;
  color: #ffffff !important;
}

@keyframes bboxAlertAnim {

  0%,
  100% {
    transform: scale(1);
    border-color: #ef4444;
  }

  50% {
    transform: scale(1.02);
    border-color: #f87171;
  }
}

.aura-hud-watermark {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.62rem;
  color: #475569;
  background: rgba(255, 255, 255, 0.88);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  z-index: 6;
}

.aura-hud-watermark .wm-brand {
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #0f172a;
}

.aura-hud-watermark .wm-engine {
  font-size: 0.55rem;
  color: #0284c7;
  font-weight: 700;
}

/* Telemetry Grid */
.aura-hud-telemetry-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 14px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.hud-telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.telemetry-label {
  font-size: 0.62rem;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.telemetry-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.telemetry-val.text-emerald {
  color: #059669;
}

.telemetry-val.text-cyan {
  color: #0284c7;
}

.telemetry-val.text-amber {
  color: #d97706;
}

.telemetry-val.text-alert {
  color: #dc2626;
  animation: pulse 1s infinite;
}

.hud-mini-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #059669;
  display: inline-block;
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.5);
}

/* Scenario Controls */
.aura-hud-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 12px;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}

.hud-control-btn {
  flex: 1;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  color: #475569;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  padding: 6px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.hud-control-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.hud-control-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.hud-control-btn.btn-alert-sim {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.hud-control-btn.btn-alert-sim:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #b91c1c;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.hud-control-btn.btn-alert-sim.active {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.35);
}

.hud-control-btn.btn-webcam {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
  position: relative;
}

.hud-control-btn.btn-webcam:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.hud-control-btn.btn-webcam.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.hud-control-btn.btn-webcam .webcam-live-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
  display: inline-block;
  animation: pulse 1s infinite;
  margin-right: 4px;
}

.hud-webcam-notice {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 20;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12);
  max-width: 92%;
  animation: noticeSlideDown 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes noticeSlideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.hud-notice-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  margin-left: auto;
  transition: color 0.15s ease;
}

.hud-notice-close:hover {
  color: #ffffff;
}

/* Face Mesh Keypoints for Live Webcam Perception */
.face-mesh-points {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fpoint {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #0284c7, 0 0 2px #ffffff;
  animation: meshPointPulse 1.6s ease-in-out infinite alternate;
}

.fpoint.p-eye-l {
  top: 35%;
  left: 28%;
}

.fpoint.p-eye-r {
  top: 35%;
  right: 28%;
}

.fpoint.p-nose {
  top: 55%;
  left: 50%;
  transform: translateX(-50%);
}

.fpoint.p-mouth-l {
  top: 75%;
  left: 35%;
}

.fpoint.p-mouth-r {
  top: 75%;
  right: 35%;
}

@keyframes meshPointPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* Privacy Badge & Trigger */
.aura-hud-privacy-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  font-size: 0.69rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.aura-hud-privacy-badge i.fa-shield-halved,
.aura-hud-privacy-badge i.fa-shield-alt {
  color: #059669;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.aura-hud-privacy-badge strong {
  color: var(--text-main);
}

.privacy-modal-trigger {
  background: #ffffff;
  color: #2563eb;
  border: 1px solid #cbd5e1;
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.privacy-modal-trigger:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  transform: translateY(-1px);
}

/* Enterprise Privacy Modal Overlay & Card */
.privacy-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalOverlayFade 0.2s ease-out;
}

@keyframes modalOverlayFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.privacy-modal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.privacy-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.privacy-modal-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.privacy-modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #94a3b8;
  cursor: pointer;
  margin-left: auto;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.privacy-modal-close:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.privacy-modal-body {
  padding: 20px 22px;
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.55;
}

.privacy-checklist {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.privacy-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: #475569;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.privacy-checklist li i {
  color: #059669;
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.privacy-checklist li strong {
  color: #0f172a;
  display: block;
  font-size: 0.83rem;
  margin-bottom: 2px;
}

.privacy-checklist li span {
  display: block;
  font-size: 0.79rem;
  line-height: 1.4;
}

.privacy-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  gap: 12px;
  flex-wrap: wrap;
}

.privacy-audit-badge {
  font-size: 0.72rem;
  color: #059669;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   LIVE USER MOVEMENT ANALYSIS & REPORT MODAL
   Real-Time Edge Computer Vision Motion Tracking System
   ========================================================================== */

/* Motion Vector HUD Badge inside Viewport (Positioned in Top-Left for complete visibility) */
.hud-motion-badge {
  position: absolute;
  top: 12px;
  left: 14px;
  right: auto;
  z-index: 45;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 6px;
  padding: 5px 12px;
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  user-select: none;
  animation: fadeIn 0.3s ease;
}

.motion-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  display: inline-block;
  animation: pulse 1s infinite;
}

.motion-pulse-dot.active-motion {
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
}

/* Movement Analytics Strip beneath Controls */
.hud-movement-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 10px;
  padding: 9px 14px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.movement-strip-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.movement-strip-item.action {
  text-align: right;
}

.m-strip-label {
  font-size: 0.58rem;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  gap: 4px;
}

.m-strip-val {
  font-size: 0.76rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

.btn-gen-report {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1);
}

.btn-gen-report:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Movement Telemetry Report Modal */
.report-modal-card {
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.report-modal-header {
  border-bottom: 1px solid #e2e8f0;
}

.report-modal-body {
  overflow-y: auto;
  padding: 18px 22px;
  max-height: calc(90vh - 140px);
}

/* 4 KPI Grid */
.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.report-kpi-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rk-label {
  font-size: 0.58rem;
  color: #64748b;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rk-val {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #0f172a;
  margin: 2px 0;
}

.rk-sub {
  font-size: 0.62rem;
  color: #64748b;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

/* Distribution Breakdown Bar */
.report-dist-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.dist-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #475569;
  margin-bottom: 8px;
}

.dist-bar-wrap {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: #e2e8f0;
  gap: 2px;
}

.dist-segment {
  height: 100%;
  transition: width 0.4s ease;
}

.dist-segment.seg-stable {
  background: #059669;
}

.dist-segment.seg-lateral {
  background: #0284c7;
}

.dist-segment.seg-axial {
  background: #f59e0b;
}

.dist-legend {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 0.66rem;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  flex-wrap: wrap;
}

.dist-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dist-legend .legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.dist-legend .legend-dot.seg-stable {
  background: #059669;
}

.dist-legend .legend-dot.seg-lateral {
  background: #0284c7;
}

.dist-legend .legend-dot.seg-axial {
  background: #f59e0b;
}

/* Log Table */
.report-log-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
}

.report-log-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #0f172a;
  margin-bottom: 8px;
}

.log-tag-badge {
  font-size: 0.58rem;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.report-table-scroll {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
}

.report-table th {
  background: #f1f5f9;
  padding: 7px 10px;
  color: #475569;
  font-weight: 700;
  position: sticky;
  top: 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.65rem;
}

.report-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-size: 0.68rem;
}

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

.report-table .badge-log {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.6rem;
  font-weight: 700;
}

.report-table .badge-log.stable {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.report-table .badge-log.lateral {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.report-table .badge-log.rapid {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

@media (max-width: 768px) {
  .hud-movement-strip {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .movement-strip-item.action {
    grid-column: span 2;
    text-align: center;
  }

  .btn-gen-report {
    width: 100%;
    justify-content: center;
  }

  .report-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   Feature / Service Cards (Compact & Light)
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

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

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-fast);
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-hover);
}

.tech-card:hover::before {
  opacity: 1;
}

.service-image-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

.service-image-box .tech-card-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  margin-bottom: 0;
  border: none;
  border-radius: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card:hover .service-image-box .tech-card-image {
  transform: scale(1.06);
}

.service-num-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.service-card-title {
  font-size: 1.22rem;
  margin: 4px 0 10px;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.3;
}

.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.service-pills span {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  border: 1px solid var(--primary-border);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.card-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.2s ease, color 0.2s ease;
}

.card-link:hover {
  color: var(--primary-hover);
  gap: 10px;
}

/* Coralgenz Style Service Card Interactive Footer */
.service-card-footer {
  border-top: 1px solid var(--border-light, #f1f5f9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
}

.service-cta-text {
  color: var(--primary, #0066ff);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, color 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-arrow-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.tech-card:hover .service-arrow-wrap {
  background: var(--primary, #0066ff);
  color: #ffffff;
  transform: translate(2px, -2px) rotate(45deg);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.35);
}

.tech-card:hover .service-cta-text {
  transform: translateX(3px);
  color: var(--primary-hover, #0052cc);
}

.tech-card-image {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-bottom: 18px;
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm, 10px);
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(2, 132, 199, 0.12) 100%);
  border: 1px solid rgba(0, 102, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary, #0066ff);
  font-size: 1.3rem;
  margin-bottom: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card:hover .card-icon {
  transform: scale(1.08) rotate(3deg);
  background: linear-gradient(135deg, #0066ff 0%, #0284c7 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.35);
}

.tech-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.tech-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-feature-list {
  list-style: none;
  margin-bottom: 20px;
}

.card-feature-list li {
  font-size: 0.86rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.card-feature-list li svg,
.card-feature-list li i {
  color: var(--accent-emerald);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}

.card-link:hover {
  gap: 10px;
  color: var(--primary-hover);
}

/* ==========================================================================
   Showcase / Split Sections (Smaller Images)
   ========================================================================== */
.showcase-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}

.showcase-split.reverse {
  direction: rtl;
}

.showcase-split.reverse>* {
  direction: ltr;
}

.showcase-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  background: #ffffff;
}

.showcase-media img {
  width: 100%;
  max-height: 290px;
  object-fit: cover;
}

.showcase-pill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pill-tag {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-body);
}

/* ==========================================================================
   Interactive Tabbed Platform (AURA Showcase)
   ========================================================================== */
.tabs-header {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.tab-btn {
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-body);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

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

.tab-btn.active {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Architecture & Comparison Table (Light Theme)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.tech-table th,
.tech-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-light);
}

.tech-table th {
  background: var(--bg-subtle);
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.tech-table tr:hover td {
  background: var(--bg-subtle);
}

/* ==========================================================================
   Page Headers (Subpages - Light Mode)
   ========================================================================== */
.page-header {
  padding: 60px 0 50px;
  background: radial-gradient(circle at 50% 0%, #eff6ff 0%, #ffffff 85%);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
  position: relative;
}

.page-header .breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs span {
  color: var(--text-main);
  font-weight: 600;
}

.page-header h1 {
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.08rem;
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* ==========================================================================
   Team Members Grid (Compact)
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.team-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-xs);
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-hover);
}

.team-photo {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-light);
}

.team-info {
  padding: 20px;
}

.team-name {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 3px;
}

.team-role {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.team-bio {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Contact & Forms (Light Theme)
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   FAQ Accordions (Light Theme)
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.faq-question {
  padding: 18px 22px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question .faq-icon {
  font-size: 1.1rem;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.faq-answer {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item.active {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  padding: 0 22px 18px 22px;
  max-height: 250px;
}

/* ==========================================================================
   CTA Banner (Light Gradient)
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
  border-radius: var(--radius-lg);
  padding: 55px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: #ffffff;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.08rem;
  color: #e2e8f0;
  max-width: 580px;
  margin: 0 auto 28px;
}

/* ==========================================================================
   Engineering Process & Lifecycle Cards
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
  position: relative;
}

.process-step-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  position: relative;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}

.process-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}

.process-step-card .step-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.process-step-card h4 {
  font-size: 1.08rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.process-step-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Industry Solutions & Interactive Grid
   ========================================================================== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.industry-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.industry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0066ff 0%, #38bdf8 50%, #0066ff 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.industry-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 102, 255, 0.35);
  box-shadow: 0 16px 36px -6px rgba(0, 102, 255, 0.12), 0 4px 12px rgba(15, 23, 42, 0.05);
}

.industry-card:hover::before {
  opacity: 1;
}

.industry-card .industry-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm, 10px);
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(2, 132, 199, 0.12) 100%);
  border: 1px solid rgba(0, 102, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary, #0066ff);
  font-size: 1.25rem;
  margin-bottom: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.industry-card:hover .industry-icon {
  transform: scale(1.08) rotate(3deg);
  background: linear-gradient(135deg, #0066ff 0%, #0284c7 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.35);
}

.industry-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.industry-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.industry-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--text-body);
  border: 1px solid var(--border-light);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Footer (Light Mode)
   ========================================================================== */
footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  padding: 65px 0 30px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.1fr;
  gap: 40px;
  margin-bottom: 45px;
}

.footer-col h4 {
  font-size: 0.98rem;
  color: var(--text-main);
  margin-bottom: 18px;
  font-weight: 700;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

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

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

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.social-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   Mobile UI Optimization & Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {

  .header-inner,
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
  }

  .brand-logo {
    max-width: calc(100% - 60px);
    z-index: 1000;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    order: 2;
    z-index: 1001;
    position: relative;
    padding: 8px 10px;
  }

  .nav-menu {
    position: fixed;
    top: 74px;
    left: 0;
    width: 100%;
    height: calc(100vh - 74px);
    overflow-y: auto;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 40px;
    gap: 12px;
    transform: translateX(-100%);
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-link.active::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    box-shadow: none;
    margin: 8px 0 12px 0;
    padding: 6px;
  }

  .nav-more-item {
    width: 100%;
    margin-top: 6px;
    border-top: 1px dashed var(--border-light);
    padding-top: 10px;
  }

  .nav-more-btn {
    display: none;
  }

  .dropdown-more-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .nav-actions {
    display: none;
  }
}

@media (max-width: 1024px) {

  .hero-grid,
  .showcase-split,
  .showcase-split.reverse,
  .tab-panel.active,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .showcase-split>* {
    min-width: 0;
  }

  .btn {
    max-width: 100%;
    white-space: normal;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ambient-glow {
    width: 100vw;
    max-width: 100vw;
    left: 0;
    right: auto;
  }

  /* Spacing and Typography on Mobile */
  section {
    padding: 55px 0;
  }

  .hero-section {
    padding: 50px 0 45px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .hero-visual {
    order: -1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
  }

  .hero-content {
    order: 1;
  }

  .hero-logo-wrapper,
  .hero-logo-showcase-card {
    width: 170px;
    height: 170px;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    padding: 22px;
    margin: 0 auto;
    box-shadow: 0 14px 32px -8px rgba(37, 99, 235, 0.14);
  }

  .hero-main-logo {
    max-width: 125px;
    max-height: 125px;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .floating-card {
    display: none;
    /* remove clutter on mobile screens */
  }

  .aura-hud-container {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-image-wrapper img:not(.hero-main-logo) {
    max-height: 240px;
  }

  .showcase-media img {
    max-height: 220px;
  }

  .tech-card-image {
    height: 140px;
  }

  .team-photo {
    height: 200px;
  }

  .card-grid,
  .card-grid-2,
  .card-grid-3,
  .card-grid-4,
  .process-grid,
  .industry-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tab-panel.active {
    padding: 20px;
  }

  .cta-banner {
    padding: 35px 20px;
    border-radius: var(--radius-md);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .form-control {
    font-size: 16px;
    /* Prevents auto-zoom on iOS safari */
  }
}

@media (max-width: 480px) {
  .brand-logo .brand-highlight {
    display: none;
  }

  .header-inner,
  .navbar {
    gap: 10px;
  }
}

@media (max-width: 360px) {

  .header-inner,
  .navbar {
    gap: 8px;
  }

  .brand-logo {
    gap: 4px;
    font-size: 0.8rem;
  }

  .brand-logo-img {
    max-width: 32px;
  }

  .brand-logo .brand-highlight {
    display: none;
  }
}

/* ==========================================================================
   AURA LIVE TELEMETRY & EDGE-TO-CLOUD MESH SIMULATOR COMPONENT
   ========================================================================== */
.aura-sim-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #f0f7ff 0%, #ffffff 70%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 80px 0;
}

.sim-container {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(15, 23, 42, 0.04);
  color: var(--text-main);
  overflow: hidden;
  position: relative;
}

/* Simulator Header & Status Bar */
.sim-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.sim-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sim-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sim-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-glow 1.5s infinite;
}

.sim-pulse-dot.warning {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.sim-pulse-dot.danger {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.sim-meta-tags {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.sim-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-meta-val {
  color: var(--primary);
  font-weight: 600;
}

/* Preset Scenario Selector Buttons */
.sim-preset-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  scrollbar-width: thin;
}

.sim-preset-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.preset-chip {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-body);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.preset-chip:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.preset-chip.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  font-weight: 600;
}

/* Interactive Controls Toolbar */
.sim-controls-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 20px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
}

.sim-control-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-fast);
}

.sim-control-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.sim-control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sim-control-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-control-title i {
  color: var(--primary);
  font-size: 0.9rem;
}

.sim-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.sim-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.sim-slider-toggle {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
  border: 1px solid #94a3b8;
}

.sim-slider-toggle:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.sim-toggle-switch input:checked+.sim-slider-toggle {
  background: #2563eb;
  border-color: #1d4ed8;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.25);
}

.sim-toggle-switch input:checked+.sim-slider-toggle:before {
  transform: translateX(20px);
}

.sim-control-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-status-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #059669;
}

.sim-status-text.off {
  color: #64748b;
}

/* Throughput Range Slider */
.sim-range-wrap {
  margin-top: 8px;
}

.sim-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
  transition: background .2s;
}

.sim-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
  border: 2px solid #ffffff;
  transition: transform .15s ease;
}

.sim-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Quick Action Buttons */
.sim-actions-grid {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.sim-action-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.sim-action-btn.spike-btn {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.sim-action-btn.spike-btn:hover {
  background: #fee2e2;
  color: #b91c1c;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.sim-action-btn.pause-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.sim-action-btn.pause-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* KPI Metrics Dashboard Grid */
.sim-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px;
  background: #ffffff;
}

.sim-kpi-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-fast);
}

.sim-kpi-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.sim-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #0284c7);
}

.sim-kpi-card.purple::before {
  background: linear-gradient(90deg, #7c3aed, #a855f7);
}

.sim-kpi-card.emerald::before {
  background: linear-gradient(90deg, #059669, #10b981);
}

.sim-kpi-card.amber::before {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

.sim-kpi-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-kpi-val-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.sim-kpi-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.sim-kpi-unit {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.sim-kpi-subtext {
  font-size: 0.74rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-kpi-pill {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.sim-kpi-pill.badge-orange {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

/* Visualization Split (Edge-to-Cloud Topology + Real-Time Telemetry Graph) */
.sim-visual-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  padding: 0 24px 24px;
  background: #ffffff;
}

.sim-panel-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.sim-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.sim-panel-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-panel-title i {
  color: var(--primary);
}

.sim-canvas-container {
  position: relative;
  width: 100%;
  height: 240px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.sim-canvas-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Topology Overlay HUD */
.topology-legend {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.edge {
  background: #0284c7;
  box-shadow: 0 0 4px rgba(2, 132, 199, 0.4);
}

.legend-dot.mesh {
  background: #7c3aed;
  box-shadow: 0 0 4px rgba(124, 58, 237, 0.4);
}

.legend-dot.cloud {
  background: #059669;
  box-shadow: 0 0 4px rgba(5, 150, 105, 0.4);
}

.legend-dot.swarm {
  background: #d97706;
  box-shadow: 0 0 4px rgba(217, 119, 6, 0.4);
}

/* Real-Time Live Log Stream Console */
.sim-terminal-wrap {
  padding: 0 24px 24px;
  background: #ffffff;
}

.sim-terminal {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.sim-terminal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f5f9;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.terminal-dot.red {
  background: #ef4444;
}

.terminal-dot.yellow {
  background: #f59e0b;
}

.terminal-dot.green {
  background: #10b981;
}

.sim-terminal-body {
  height: 140px;
  overflow-y: auto;
  padding: 12px 16px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-body);
  display: flex;
  flex-direction: column-reverse;
  scrollbar-width: thin;
  background: #ffffff;
}

.log-entry {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
  animation: fadeInLog 0.2s ease-out;
}

@keyframes fadeInLog {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.log-time {
  color: #94a3b8;
}

.log-tag {
  font-weight: 600;
}

.log-tag.ingest {
  color: #0284c7;
}

.log-tag.swarm {
  color: #7c3aed;
}

.log-tag.gpu {
  color: #059669;
}

.log-tag.vault {
  color: #d97706;
}

.log-tag.alert {
  color: #dc2626;
}

.log-msg {
  color: var(--text-body);
}

/* Responsive adjustments for Simulator */
@media (max-width: 1024px) {
  .sim-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sim-visual-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sim-header-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .sim-kpi-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .sim-controls-panel {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .sim-visual-grid {
    padding: 0 16px 16px;
  }

  .sim-terminal-wrap {
    padding: 0 16px 16px;
  }
}

/* ==========================================================================
   ZEVIONIX CASE STUDY TEMPLATE DESIGN SYSTEM
   High-Impact Deep Tech Engineering & Procurement Layout
   ========================================================================== */

/* Hero & Metadata */
.case-study-hero {
  padding: 130px 0 50px;
  background: radial-gradient(circle at 50% 10%, #eff6ff 0%, #ffffff 80%);
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

.cs-meta-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.cs-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  color: var(--text-body);
  box-shadow: var(--shadow-xs);
}

.cs-meta-pill i {
  color: var(--primary);
}

.cs-meta-pill strong {
  color: var(--text-main);
}

/* 3-Column Top Metric Highlight Banner */
.cs-metric-banner-wrap {
  margin-top: -30px;
  position: relative;
  z-index: 10;
  margin-bottom: 50px;
}

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

.cs-metric-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cs-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-border);
}

.cs-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.cs-metric-card.emerald::before {
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

.cs-metric-card.cyan::before {
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
}

.cs-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.cs-metric-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-muted);
}

.cs-metric-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.cs-metric-tag.green {
  background: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  border-color: #a7f3d0;
}

.cs-metric-tag.cyan {
  background: var(--accent-cyan-subtle);
  color: var(--accent-cyan);
  border-color: #bae6fd;
}

.cs-metric-num-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.cs-metric-big-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.cs-metric-subtext {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 14px;
}

.cs-metric-footer {
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
}

/* Narrative Split Layout (Content + Procurement Sidebar) */
.cs-layout-split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.cs-main-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* Executive Snapshot Sticky Sidebar */
.cs-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cs-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.cs-sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-sidebar-title i {
  color: var(--primary);
}

.cs-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-sidebar-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.86rem;
}

.cs-sidebar-item span.label {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cs-sidebar-item span.value {
  color: var(--text-main);
  font-weight: 600;
}

.cs-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-weight: 500;
}

.cs-toc-link:hover,
.cs-toc-link.active {
  background: var(--primary-subtle);
  color: var(--primary);
  font-weight: 600;
  padding-left: 16px;
}

/* Narrative Content Sections */
.cs-section {
  scroll-margin-top: 110px;
}

.cs-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.cs-section-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.cs-section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.cs-card-callout {
  background: var(--bg-subtle);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.cs-card-callout.danger {
  border-left-color: #ef4444;
  background: #fef2f2;
}

.cs-card-callout.success {
  border-left-color: #10b981;
  background: #f0fdf4;
}

.cs-card-callout-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Architecture Blueprint Box */
.cs-blueprint-box {
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: #f8fafc;
  margin: 28px 0;
  box-shadow: var(--shadow-lg);
}

.cs-blueprint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cs-blueprint-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.cs-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.cs-pipeline-step {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  position: relative;
}

.cs-pipeline-num {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  color: #38bdf8;
  font-weight: 700;
  margin-bottom: 4px;
}

.cs-pipeline-step h4 {
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.cs-pipeline-step p {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

/* Before vs After Procurement Comparison Table */
.cs-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.cs-comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  background: #ffffff;
}

.cs-comparison-table th {
  background: var(--bg-muted);
  color: var(--text-main);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid var(--border-light);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cs-comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
}

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

.cs-badge-legacy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #dc2626;
  font-weight: 600;
  font-size: 0.86rem;
}

.cs-badge-zevionix {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #059669;
  font-weight: 700;
  font-size: 0.88rem;
}

/* Executive Testimonial Card */
.cs-testimonial-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  margin: 40px 0;
  box-shadow: var(--shadow-lg);
}

.cs-testimonial-card::after {
  content: '\f10e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 4.5rem;
  color: rgba(255, 255, 255, 0.04);
}

.cs-quote-text {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #f1f5f9;
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.cs-author-row {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.cs-author-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #93c5fd;
  flex-shrink: 0;
}

.cs-author-name {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}

.cs-author-role {
  font-size: 0.84rem;
  color: #94a3b8;
}

/* Responsive Breakpoints for Case Study */
@media (max-width: 1024px) {
  .cs-metric-grid {
    grid-template-columns: 1fr;
  }

  .cs-layout-split {
    grid-template-columns: 1fr;
  }

  .cs-sidebar {
    position: static;
  }
}

/* ==========================================================================
   ZEVIONIX DEVELOPER PORTAL & DOCUMENTATION DESIGN SYSTEM
   Modern, Clean, Code-Snippet Heavy & Interactive API Playground
   ========================================================================== */

.docs-hero {
  padding: 120px 0 40px;
  background: radial-gradient(circle at 50% 0%, #eff6ff 0%, #ffffff 70%);
  border-bottom: 1px solid var(--border-light);
}

.docs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 40px 0 80px;
  align-items: start;
}

/* Docs Sidebar Navigation */
.docs-nav-sidebar {
  position: sticky;
  top: 90px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.docs-nav-group {
  margin-bottom: 22px;
}

.docs-nav-group:last-child {
  margin-bottom: 0;
}

.docs-nav-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-left: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.docs-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--text-body);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.docs-nav-item a:hover {
  background: var(--bg-subtle);
  color: var(--primary);
  padding-left: 14px;
}

.docs-nav-item a.active {
  background: var(--primary-subtle);
  color: var(--primary);
  font-weight: 600;
  border-left: 3px solid var(--primary);
}

.docs-badge-method {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.docs-badge-method.post {
  background: #dbeafe;
  color: #1d4ed8;
}

.docs-badge-method.get {
  background: #d1fae5;
  color: #047857;
}

.docs-badge-method.ws {
  background: #fef3c7;
  color: #b45309;
}

/* Main Docs Content Stream */
.docs-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
  min-width: 0;
}

.docs-article-section {
  scroll-margin-top: 100px;
}

.docs-article-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.docs-article-section h3 {
  font-size: 1.25rem;
  margin: 24px 0 12px;
  color: var(--text-main);
}

/* Enhanced Code Snippet Box with Tabs & Copy Button */
.code-box {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  margin: 20px 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.code-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #090e1a;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-tabs {
  display: flex;
  gap: 4px;
}

.code-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-tab-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.05);
}

.code-tab-btn.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

.code-copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.code-content-block {
  padding: 18px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #f8fafc;
  overflow-x: auto;
  scrollbar-width: thin;
}

.code-content-block pre {
  margin: 0;
  white-space: pre;
}

.code-syntax-keyword {
  color: #c084fc;
  font-weight: 600;
}

.code-syntax-string {
  color: #34d399;
}

.code-syntax-cmd {
  color: #38bdf8;
}

.code-syntax-flag {
  color: #fbbf24;
}

.code-syntax-comment {
  color: #64748b;
  font-style: italic;
}

/* Interactive API Playground Component */
.api-playground-box {
  background: #090d16;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  margin: 30px 0;
  color: #f8fafc;
}

.api-playground-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.api-endpoint-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(20, 30, 50, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.api-method-select {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  outline: none;
}

.api-endpoint-url {
  flex-grow: 1;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

.api-send-btn {
  background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.api-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.api-playground-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 260px;
}

.api-req-col,
.api-res-col {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

.api-req-col {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.api-pane-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.api-payload-editor {
  background: #06090f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #38bdf8;
  width: 100%;
  height: 190px;
  resize: none;
  outline: none;
  line-height: 1.5;
}

.api-response-viewer {
  background: #06090f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #34d399;
  height: 190px;
  overflow-y: auto;
  white-space: pre;
  line-height: 1.5;
}

/* Quick Start Cards Grid */
.docs-quickstart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 20px 0;
}

.docs-qs-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.docs-qs-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.docs-qs-card h4 {
  font-size: 0.98rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.docs-qs-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.docs-qs-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Responsive Rules for Docs Layout */
@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-nav-sidebar {
    position: static;
    max-height: none;
  }

  .api-playground-split {
    grid-template-columns: 1fr;
  }

  .api-req-col {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* ==========================================================================
   SMART MULTI-STEP TECHNICAL QUALIFICATION WIZARD
   High-Conversion Enterprise Engineering Lead Routing System
   ========================================================================== */

.wizard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

/* Wizard Steps Indicator Bar */
.wizard-progress-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 34px;
  padding: 0 10px;
}

.wizard-progress-line {
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: var(--border-light);
  z-index: 1;
}

.wizard-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.wizard-step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.wizard-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.wizard-step-node.active .wizard-step-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.4);
}

.wizard-step-node.completed .wizard-step-circle {
  border-color: var(--accent-emerald);
  background: var(--accent-emerald);
  color: #ffffff;
}

.wizard-step-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.wizard-step-node.active .wizard-step-name {
  color: var(--primary);
}

/* Step Panes */
.wizard-pane {
  display: none;
  animation: fadeInPane 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-pane.active {
  display: block;
}

@keyframes fadeInPane {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-pane-header {
  margin-bottom: 24px;
}

.wizard-pane-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wizard-pane-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Challenge Selection Cards Grid (Step 1) */
.challenge-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.challenge-card {
  background: var(--bg-subtle);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}

.challenge-card:hover {
  border-color: var(--primary-border);
  background: var(--bg-card);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.challenge-card.selected {
  border-color: var(--primary);
  background: var(--primary-subtle);
  box-shadow: 0 0 0 1px var(--primary);
}

.challenge-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--primary);
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.challenge-card.selected .challenge-icon {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.challenge-info h4 {
  font-size: 0.96rem;
  margin-bottom: 4px;
  color: var(--text-main);
}

.challenge-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.challenge-check {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.95rem;
  color: var(--primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.challenge-card.selected .challenge-check {
  opacity: 1;
}

/* Stack Chips Multi-select (Step 2) */
.stack-group {
  margin-bottom: 20px;
}

.stack-group-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stack-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.tech-chip:hover {
  border-color: var(--primary-border);
  background: var(--primary-subtle);
  color: var(--primary);
}

.tech-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Scale & Timeline Radio Cards (Step 3) */
.scale-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.scale-option-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scale-option-box:hover {
  border-color: var(--primary-border);
  background: var(--bg-card);
}

.scale-option-box.selected {
  border-color: var(--primary);
  background: var(--primary-subtle);
  box-shadow: 0 0 0 1px var(--primary);
}

.scale-option-box strong {
  font-size: 0.88rem;
  color: var(--text-main);
}

.scale-option-box span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Dynamic Smart Routing Banner (Step 4) */
.routing-preview-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.routing-lead-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.routing-avatar-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.2);
  border: 2px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.routing-lead-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.routing-lead-team {
  font-size: 0.78rem;
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
}

.routing-sla-tag {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Wizard Navigation Buttons */
.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .challenge-select-grid {
    grid-template-columns: 1fr;
  }

  .scale-options-grid {
    grid-template-columns: 1fr;
  }

  .wizard-step-name {
    display: none;
  }

  .wizard-card {
    padding: 24px 18px;
  }
}

/* ==========================================================================
   PORTFOLIO & CASE STUDIES PAGE STYLING
   Enterprise Showcase, Deep Tech Cards & Outcome Highlights
   ========================================================================== */

.portfolio-hero {
  padding: 130px 0 60px;
  background: radial-gradient(circle at 50% 10%, #eff6ff 0%, #ffffff 75%);
  position: relative;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.portfolio-hero-content {
  max-width: 860px;
  margin: 0 auto;
}

/* Aggregate Impact Stat Bar */
.portfolio-stats-banner {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: left;
}

.portfolio-stat-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.portfolio-stat-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.portfolio-stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
}

.portfolio-stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.portfolio-stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.portfolio-stat-desc {
  font-size: 0.78rem;
  color: var(--text-body);
  line-height: 1.4;
}

/* Filter Navigation Bar */
.portfolio-filter-section {
  padding: 30px 0 10px;
}

.portfolio-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0;
}

.portfolio-filter-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-body);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portfolio-filter-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-subtle);
  color: var(--primary);
}

.portfolio-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.portfolio-filter-count {
  font-size: 0.74rem;
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.portfolio-filter-btn.active .portfolio-filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Detailed Case Study Cards */
.portfolio-cards-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 30px 0 60px;
}

.portfolio-case-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: grid;
  grid-template-columns: 440px 1fr;
  align-items: stretch;
}

.portfolio-case-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-border);
}

.portfolio-case-card.reverse {
  grid-template-columns: 1fr 440px;
}

/* Card Visual Media Column */
.portfolio-card-media {
  position: relative;
  background: #0f172a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  color: #ffffff;
}

.portfolio-card-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transition: transform 0.6s ease;
}

.portfolio-case-card:hover .portfolio-card-bg-img {
  transform: scale(1.04);
}

.portfolio-media-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.portfolio-media-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portfolio-client-badge {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.portfolio-hero-metric {
  margin: 30px 0 20px;
}

.portfolio-hero-metric-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.portfolio-hero-metric-label {
  font-size: 0.86rem;
  color: #cbd5e1;
  font-weight: 500;
  line-height: 1.4;
}

.portfolio-media-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.portfolio-media-footer-tags span {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace;
}

/* Card Content Details Column */
.portfolio-card-content {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-card-header {
  margin-bottom: 20px;
}

.portfolio-category-pill {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 8px;
  display: inline-block;
}

.portfolio-card-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 12px;
}

.portfolio-card-synopsis {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Structured Narrative Blocks (Challenge, Solution, Outcome) */
.portfolio-narrative-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.portfolio-narrative-block {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.portfolio-narrative-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portfolio-narrative-title.challenge {
  color: #dc2626;
}

.portfolio-narrative-title.solution {
  color: var(--primary);
}

.portfolio-narrative-text {
  font-size: 0.86rem;
  color: var(--text-body);
  line-height: 1.55;
  margin: 0;
}

/* Outcomes Metric Strip */
.portfolio-outcomes-strip {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-xs);
}

.portfolio-outcomes-header {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--accent-emerald);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.portfolio-outcome-item {
  display: flex;
  flex-direction: column;
}

.portfolio-outcome-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.portfolio-outcome-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* Tech Stack Chips */
.portfolio-tech-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}

.portfolio-tech-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  margin-right: 6px;
}

.tech-tag-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-body);
  font-family: 'JetBrains Mono', monospace;
}

/* Card Action Row */
.portfolio-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 12px;
}

.portfolio-link-btn {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.portfolio-link-btn:hover {
  color: var(--primary-hover);
  transform: translateX(3px);
}

/* Responsive Rules for Portfolio Cards */
@media (max-width: 1100px) {
  .portfolio-stats-banner {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-case-card,
  .portfolio-case-card.reverse {
    grid-template-columns: 1fr;
  }

  .portfolio-card-media {
    min-height: 300px;
  }

  .portfolio-narrative-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .portfolio-stats-banner {
    grid-template-columns: 1fr;
  }

  .portfolio-outcomes-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card-content {
    padding: 24px 20px;
  }

  .portfolio-card-media {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   INDUSTRY SOLUTIONS & VERTICAL ENGINEERING PAGE STYLES
   ========================================================================== */

.solutions-hero {
  padding: 130px 0 70px;
  position: relative;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}

.solutions-hero-content {
  max-width: 960px;
  margin: 0 auto;
}

.solutions-quick-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
}

.solutions-nav-btn {
  background: transparent;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.solutions-nav-btn:hover {
  color: var(--primary);
  background: var(--primary-subtle);
}

.solutions-nav-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

/* Solutions Highlights Strip */
.solutions-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  text-align: left;
}

.solutions-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

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

.solutions-stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
}

.solutions-stat-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.solutions-stat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Triad Framework Cards */
.solutions-triad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.solutions-triad-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.solutions-triad-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.solutions-triad-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 20px;
}

/* Sector Deep Dive Card */
.solutions-sector-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 60px;
  position: relative;
  scroll-margin-top: 100px;
}

.solutions-sector-header {
  padding: 36px 40px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.solutions-sector-body {
  padding: 40px;
}

.solutions-problem-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.solutions-problem-item {
  background: rgba(254, 242, 242, 0.6);
  border: 1px solid rgba(252, 165, 165, 0.5);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.solutions-problem-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #b91c1c;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.solutions-problem-item-desc {
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.5;
  margin: 0;
}

/* Blueprint Architecture Flow */
.solutions-blueprint-flow {
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 36px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}

.solutions-blueprint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 12px;
}

.solutions-blueprint-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

.solutions-blueprint-step {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
  transition: border-color var(--transition-fast);
}

.solutions-blueprint-step:hover {
  border-color: #38bdf8;
}

.solutions-blueprint-step-num {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-weight: 700;
}

.solutions-blueprint-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.solutions-blueprint-step-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 10px;
}

.solutions-blueprint-step-tech {
  font-size: 0.72rem;
  color: #a7f3d0;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

/* Impact Metrics Row */
.solutions-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.solutions-metric-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
}

.solutions-metric-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
}

.solutions-metric-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.solutions-metric-detail {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Integration Callout Box */
.solutions-integration-box {
  background: var(--bg-subtle);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Vertical Action Banner */
.solutions-action-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(14, 165, 233, 0.08) 100%);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

/* Comparison Matrix Table */
.solutions-matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 30px;
}

.solutions-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.solutions-matrix-table th {
  background: #0f172a;
  color: #ffffff;
  padding: 16px 20px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.solutions-matrix-table td {
  padding: 18px 20px;
  font-size: 0.86rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-light);
  line-height: 1.5;
}

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

.solutions-matrix-table tr:hover td {
  background: var(--bg-subtle);
}

/* Sizing Calculator */
.solutions-calc-card {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  margin-top: 30px;
}

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

.solutions-calc-output-box {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 30px;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .solutions-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions-triad-grid {
    grid-template-columns: 1fr;
  }

  .solutions-problem-matrix {
    grid-template-columns: 1fr;
  }

  .solutions-blueprint-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions-calc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .solutions-stats-strip {
    grid-template-columns: 1fr;
  }

  .solutions-metrics-row {
    grid-template-columns: 1fr;
  }

  .solutions-blueprint-steps-grid {
    grid-template-columns: 1fr;
  }

  .solutions-sector-body {
    padding: 24px 20px;
  }

  .solutions-sector-header {
    padding: 24px 20px;
  }

  .solutions-calc-card {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   CYBERSECURITY & COMPLIANCE TRUST CENTER STYLES
   ========================================================================== */

.security-hero {
  padding: 130px 0 70px;
  position: relative;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 15%, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
}

.security-hero-content {
  max-width: 960px;
  margin: 0 auto;
}

/* Real-Time Security Health Banner */
.security-health-bar {
  background: #0f172a;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin: 36px auto 0;
  max-width: 920px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
}

.security-health-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.security-pulse-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  animation: pulseBeacon 2s infinite;
}

.security-health-items {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.security-health-pill {
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.security-health-pill span {
  color: #34d399;
  font-weight: 700;
}

/* Security Navigation Anchor Bar */
.security-quick-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
}

.security-nav-link {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.security-nav-link:hover {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
}

/* SDLC Defense in Depth Pipeline */
.security-sdlc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.security-sdlc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  position: relative;
  transition: all var(--transition-fast);
}

.security-sdlc-card:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.security-sdlc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-emerald);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.security-sdlc-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.security-sdlc-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.security-sdlc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.security-sdlc-tag {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-body);
}

/* Cryptographic Vault Card */
.crypto-vault-container {
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.4);
  margin-top: 36px;
}

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

.crypto-vault-item {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color var(--transition-fast);
}

.crypto-vault-item:hover {
  border-color: #34d399;
}

.crypto-vault-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.crypto-vault-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.crypto-vault-item-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 12px;
}

.crypto-vault-item-spec {
  font-size: 0.74rem;
  font-family: 'JetBrains Mono', monospace;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}

/* Compliance Badges Grid */
.compliance-framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.compliance-framework-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.compliance-framework-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.compliance-badge-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.compliance-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.compliance-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compliance-status-pill.verified {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Security Architecture Dual Column */
.security-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 36px;
  align-items: stretch;
}

.security-feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

/* Incident Response SLA Table */
.security-sla-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.security-sla-table th {
  background: var(--bg-subtle);
  color: var(--text-main);
  padding: 12px 16px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.security-sla-table td {
  padding: 14px 16px;
  font-size: 0.84rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-light);
}

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

.severity-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  display: inline-block;
}

.severity-p1 {
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.severity-p2 {
  background: rgba(234, 88, 12, 0.15);
  color: #ea580c;
  border: 1px solid rgba(234, 88, 12, 0.3);
}

.severity-p3 {
  background: rgba(202, 138, 4, 0.15);
  color: #ca8a04;
  border: 1px solid rgba(202, 138, 4, 0.3);
}

.severity-p4 {
  background: rgba(37, 99, 235, 0.15);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

/* Responsive Rules for Security Trust Center */
@media (max-width: 1024px) {
  .security-sdlc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .crypto-vault-grid {
    grid-template-columns: 1fr;
  }

  .compliance-framework-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .security-dual-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .security-sdlc-grid {
    grid-template-columns: 1fr;
  }

  .compliance-framework-grid {
    grid-template-columns: 1fr;
  }

  .security-health-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .crypto-vault-container {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   ENGINEERING INSIGHTS & TECH ARTICLES STYLES
   ========================================================================== */

.insights-hero {
  padding: 110px 0 60px;
  position: relative;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 10%, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}

.insights-hero-content {
  max-width: 880px;
  margin: 0 auto;
}

.insights-controls {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.insights-search-wrapper {
  position: relative;
  width: min(520px, 100%);
}

.insights-search-wrapper i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.insights-search-input {
  width: 100%;
  padding: 13px 20px 13px 46px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.insights-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-subtle);
}

.insights-filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-subtle);
}

.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Featured Article Banner */
.insights-featured-section {
  padding: 20px 0 50px;
}

.featured-article-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  transition: var(--transition-normal);
  position: relative;
}

.featured-article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-border);
}

.featured-article-content {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-article-visual {
  background: #090d16;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.featured-article-visual::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Article Grid */
.insights-grid-section {
  padding: 20px 0 80px;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.insight-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-border);
}

.insight-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.insight-category-pill {
  font-size: 0.74rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.insight-read-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.insight-card-title {
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 14px;
}

.insight-card-title a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.insight-card-title a:hover {
  color: var(--primary);
}

.insight-card-abstract {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 22px;
}

.insight-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.insight-tag {
  font-size: 0.76rem;
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-muted);
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.insight-tag:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: var(--primary-border);
}

/* Metric Strip in Cards */
.insight-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 22px;
}

.insight-metric-item {
  text-align: center;
}

.insight-metric-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}

.insight-metric-key {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.insight-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
  margin-top: auto;
}

.insight-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.insight-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
}

.insight-author-info {
  display: flex;
  flex-direction: column;
}

.insight-author-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
}

.insight-author-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-read-dive {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-read-dive:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Modal for Technical Deep Dive */
.insight-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.insight-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.insight-modal-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  width: min(880px, 96%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.insight-modal-backdrop.open .insight-modal-box {
  transform: scale(1);
}

.insight-modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-subtle);
}

.insight-modal-body {
  padding: 30px 32px;
  overflow-y: auto;
  line-height: 1.7;
  color: var(--text-body);
}

.insight-modal-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.insight-modal-close:hover {
  color: var(--text-main);
  background: var(--bg-muted);
}

.code-terminal-block {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #cbd5e1;
  margin: 18px 0;
  overflow-x: auto;
}

.code-terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Newsletter / Whitepaper Box */
.insights-newsletter-box {
  background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(59, 130, 246, 0.25);
  margin-top: 40px;
}

/* Responsive Rules for Insights Page */
@media (max-width: 992px) {
  .featured-article-card {
    grid-template-columns: 1fr;
  }

  .featured-article-visual {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 24px;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }

  .insights-newsletter-box {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 36px 24px;
  }

  .insights-newsletter-box .social-btn-row {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .featured-article-content {
    padding: 28px 20px;
  }

  .insight-card {
    padding: 24px 18px;
  }

  .insight-metrics-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .insight-footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .btn-read-dive {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   GLOBAL SPOTLIGHT SEARCH (Ctrl+K / Cmd+K Command Palette)
   ========================================================================== */

/* Navbar Search Trigger Button */
.spotlight-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  font-family: inherit;
  user-select: none;
}

.spotlight-nav-btn:hover {
  color: var(--primary);
  border-color: #93c5fd;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.spotlight-nav-btn i {
  font-size: 0.86rem;
  color: var(--primary);
}

.spotlight-nav-text {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.spotlight-kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 6px;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: inline-block;
}

.spotlight-nav-btn:hover .spotlight-kbd {
  border-color: #93c5fd;
  color: var(--primary);
}

/* Modal Overlay */
.spotlight-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.spotlight-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Command Palette Dialog Box */
.spotlight-dialog {
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(37, 99, 235, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 75vh;
  transform: scale(0.96) translateY(-10px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', sans-serif;
}

.spotlight-modal-overlay.active .spotlight-dialog {
  transform: scale(1) translateY(0);
}

/* Search Header & Input Bar */
.spotlight-header {
  position: relative;
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  background: #ffffff;
  gap: 12px;
}

.spotlight-search-icon {
  font-size: 1.1rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.spotlight-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.02rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  color: var(--text-main);
  background: transparent;
  padding: 4px 0;
}

.spotlight-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.spotlight-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.spotlight-clear-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 0.9rem;
  border-radius: 4px;
  display: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.spotlight-clear-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.spotlight-esc-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 2px 7px;
  cursor: pointer;
  user-select: none;
}

/* Results Container */
.spotlight-results {
  overflow-y: auto;
  max-height: 52vh;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scroll-behavior: smooth;
}

.spotlight-results::-webkit-scrollbar {
  width: 6px;
}

.spotlight-results::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.spotlight-results::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Category Group Title */
.spotlight-group-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 10px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Result Items */
.spotlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  border: 1px solid transparent;
}

.spotlight-item:hover,
.spotlight-item.selected {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.spotlight-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.spotlight-item:hover .spotlight-item-icon,
.spotlight-item.selected .spotlight-item-icon {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
}

.spotlight-item-content {
  flex: 1;
  min-width: 0;
}

.spotlight-item-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.spotlight-item-desc {
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-item-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.60rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #334155;
  text-transform: uppercase;
}

.spotlight-item-enter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.70rem;
  color: #94a3b8;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.spotlight-item:hover .spotlight-item-enter,
.spotlight-item.selected .spotlight-item-enter {
  opacity: 1;
  transform: translateX(0);
  color: var(--primary);
}

/* Matching Highlight */
.spotlight-mark {
  background: rgba(254, 240, 138, 0.75);
  color: #0f172a;
  border-radius: 2px;
  padding: 0 2px;
  font-weight: 700;
}

/* Empty / No Results State */
.spotlight-empty {
  padding: 38px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.spotlight-empty-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px dashed #cbd5e1;
}

.spotlight-empty-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
}

.spotlight-empty-desc {
  font-size: 0.80rem;
  color: #64748b;
  max-width: 380px;
  line-height: 1.5;
}

.spotlight-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 6px;
}

.spotlight-suggest-pill {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--primary);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.spotlight-suggest-pill:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Footer Helper Strip */
.spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  font-size: 0.72rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 10px;
}

.spotlight-footer-keys {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spotlight-key-guide {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.spotlight-key-guide kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 1px 5px;
  border-radius: 3px;
  color: #334155;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.spotlight-footer-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 600;
  color: #94a3b8;
}

/* Mobile & Tablet Responsiveness for Navbar & Spotlight */
@media (max-width: 1100px) {

  .header-inner .nav-actions,
  .navbar .nav-actions {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 10px;
    order: 1;
  }

  .header-inner .nav-actions>a.btn,
  .navbar .nav-actions>a.btn {
    display: none !important;
  }

  .spotlight-nav-btn {
    display: inline-flex !important;
  }
}

@media (max-width: 768px) {
  .spotlight-modal-overlay {
    padding: 6vh 12px 16px;
  }

  .spotlight-dialog {
    max-height: 86vh;
    border-radius: 12px;
  }

  .spotlight-footer-keys span:not(:last-child) {
    display: none;
  }

  .spotlight-nav-btn {
    padding: 6px 12px;
    gap: 6px;
  }

  .spotlight-nav-text {
    display: inline-block;
  }
}

/* Spotlight Navigation Target Highlight Pulse */
@keyframes spotlightTargetPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    outline: 2px solid rgba(37, 99, 235, 0.85);
    transform: scale(1.006);
  }

  50% {
    box-shadow: 0 0 30px 8px rgba(37, 99, 235, 0.35);
    outline: 2px solid rgba(37, 99, 235, 0.95);
    transform: scale(1.012);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    outline: 2px solid transparent;
    transform: scale(1);
  }
}

.spotlight-target-pulse {
  animation: spotlightTargetPulse 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  border-radius: var(--radius-md) !important;
  transition: all 0.3s ease !important;
  scroll-margin-top: 90px !important;
}

/* ==========================================================================
   OFFICIAL TECHNOLOGY PARTNERSHIP DUAL LOGO SHOWCASE
   ========================================================================== */
.partnership-logos-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0 auto 22px;
  padding: 10px 24px;
  background: #ffffff;
  border-radius: var(--radius-pill, 9999px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  align-self: center;
}

.partnership-logos-wrap:hover {
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.09);
  border-color: rgba(147, 197, 253, 0.6);
  transform: translateY(-1px);
}

.partnership-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 2px 6px;
  transition: transform 0.25s ease;
}

.partnership-logo-box:hover {
  transform: scale(1.03);
}

.partnership-logo-img {
  height: 48px;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

/* Professional Minimalist Co-Branding Cross Divider */
.partnership-divider-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: #475569;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  user-select: none;
  flex-shrink: 0;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.partnership-divider-x:hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.45);
  color: var(--primary, #2563eb);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
  transform: scale(1.08);
}

.partnership-divider-x .collab-x-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.4;
  display: block;
}

/* Elegant Typographic Collaboration Mark for Headings */
.collab-cross {
  display: inline-block;
  margin: 0 0.32em;
  font-weight: 300;
  color: #94a3b8;
  font-size: 0.9em;
  vertical-align: middle;
  user-select: none;
}

@media (max-width: 576px) {
  .partnership-logos-wrap {
    gap: 12px;
    padding: 8px 16px;
  }

  .partnership-logo-box {
    height: 46px;
  }

  .partnership-logo-img {
    height: 38px;
    max-width: 105px;
  }

  .partnership-divider-x {
    width: 28px;
    height: 28px;
  }

  .partnership-divider-x .collab-x-icon {
    width: 11px;
    height: 11px;
    stroke-width: 2.2;
  }
}

/* ==========================================================================
   PARTNER HIGHLIGHT CARD (OFFICIAL TECHNOLOGY PARTNERSHIP SHOWCASE)
   Clean, premium partner showcase - Landscape Rectangle (Short Length, Long Breadth)
   ========================================================================== */
.partner-highlight-card {
  position: relative;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-xl, 20px);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 4px 12px -2px rgba(15, 23, 42, 0.02);
  padding: 28px 36px 26px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0 auto;
  max-width: 920px;
}

.partner-highlight-card:hover {
  box-shadow: 0 18px 36px -8px rgba(37, 99, 235, 0.12), 0 6px 16px -3px rgba(15, 23, 42, 0.04);
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, 0.8);
}

/* Top Accent Gradient Stripe */
.partner-highlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 50%, #06b6d4 100%);
}

/* Horizontal Two-Column Body Grid */
.partner-card-body-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
}

/* Left Brand Column (Status & Showcase Box) */
.partner-card-brand-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-right: 28px;
  border-right: 1px solid var(--border-light, #e2e8f0);
}

.partner-card-brand-col .partner-status-badge {
  margin: 0 0 10px;
}

.partner-card-brand-col .partner-logo-box-showcase {
  margin: 0 0 8px;
  width: 100%;
  max-width: 230px;
  min-height: 74px;
  padding: 12px 20px;
}

.partner-card-brand-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  user-select: none;
}

/* Right Info Column (Details, Credentials, CTA) */
.partner-card-info-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Status Pill with Glowing Green Dot */
.partner-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #334155;
  user-select: none;
  white-space: nowrap;
}

.partner-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Partner Card Title */
.partner-card-title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-main, #0f172a);
  margin: 0 0 8px;
}

/* Dedicated Logo Showcase Frame */
.partner-logo-box-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.02), 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
}

.partner-logo-box-showcase:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
  transform: scale(1.02);
}

.partner-showcase-img {
  max-height: 48px;
  max-width: 190px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Partner Card Narrative */
.partner-card-desc {
  font-size: 0.92rem;
  color: var(--text-body, #475569);
  margin: 0 0 14px;
  line-height: 1.62;
  text-align: left;
}

.partner-card-desc strong {
  color: var(--text-main, #0f172a);
  font-weight: 700;
}

/* Horizontal Feature Pills Row */
.partner-feature-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.partner-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.partner-feature-pill:hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.35);
  color: #1e40af;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
  transform: translateY(-1px);
}

.partner-feature-pill .pill-icon {
  font-size: 0.85rem;
  color: var(--primary, #2563eb);
}

/* Actions Container */
.partner-card-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Signature Primary Action Button */
.btn-partner-know-more {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #0066cc;
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 10px 8px 22px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(0, 102, 204, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid transparent;
}

.btn-partner-know-more:hover {
  background: #0052a3;
  box-shadow: 0 6px 18px rgba(0, 102, 204, 0.32);
  transform: translateY(-1px);
  color: #ffffff !important;
}

.btn-partner-know-more .btn-circle-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  color: #0066cc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.btn-partner-know-more:hover .btn-circle-arrow {
  transform: translateX(3px);
}

.btn-partner-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-partner-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .partner-highlight-card {
    padding: 24px 20px 22px;
  }

  .partner-card-body-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .partner-card-brand-col {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--border-light, #e2e8f0);
    padding-bottom: 18px;
  }

  .partner-card-info-col {
    align-items: center;
    text-align: center;
  }

  .partner-card-title,
  .partner-card-desc {
    text-align: center;
  }

  .partner-feature-pills-row {
    justify-content: center;
  }

  .partner-card-actions {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .partner-card-title {
    font-size: 1.35rem;
  }

  .partner-logo-box-showcase {
    max-width: 100%;
    padding: 10px 16px;
  }

  .btn-partner-know-more {
    width: 100%;
    padding: 8px 10px 8px 18px;
  }

  .btn-partner-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   OFFICIAL STRATEGIC PARTNERS (CORALGENZ GLOBAL SIGNATURE DESIGN ARCHITECTURE)
   Exact match to https://coralgenz.net/ partners aesthetic
   ========================================================================== */
.partners-grid-showcase {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.partner-card-dark {
  text-align: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 28px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 38px 36px 34px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -15px rgba(15, 23, 42, 0.08), inset 0 1px #ffffff;
  background: #ffffff;
  margin: 0 auto;
}

.partner-card-dark:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #0066ff 0%, #00d2ff 50%, #38bdf8 100%);
}

.partner-card-dark:hover {
  border-color: #cbd5e1;
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.12), inset 0 1px #ffffff;
}

.partner-top-meta {
  z-index: 1;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  display: flex;
  margin-bottom: 4px;
}

.partner-badge-glow {
  border-radius: 9999px;
  font-family: 'Space Grotesk', 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
}

.partner-badge-dot {
  background: #10b981;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
  animation: 2s ease-in-out infinite pulseDot;
}

.partner-card-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f172a;
  font-size: clamp(20px, 3.2vw, 25px);
  font-weight: 900;
  margin: 2px 0 0;
}

.partner-card-img-box {
  z-index: 1;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 260px;
  height: 105px;
  margin: 18px auto 16px;
  padding: 14px 24px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s, border-color 0.35s;
  display: flex;
  box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.05), inset 0 1px #ffffff;
}

.partner-card-dark:hover .partner-card-img-box {
  border-color: #cbd5e1;
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.08);
}

.partner-card-img-box img {
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(15, 23, 42, 0.06));
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.partner-card-lead {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.62;
  max-width: 540px;
  margin: 0 auto 18px;
  text-align: center;
}

.partner-card-lead strong {
  color: #0f172a;
  font-weight: 700;
}

.partner-card-highlights {
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  display: flex;
}

.partner-card-highlights span {
  font-family: 'Inter', sans-serif;
  color: #334155;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 7px 15px;
  font-size: 12.5px;
  font-weight: 600;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.03);
}

.partner-card-highlights span:hover {
  color: #0f172a;
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.partner-btn-pill {
  border-radius: 9999px;
  width: auto;
  min-width: 170px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 24px;
  font-size: 13.5px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s;
  display: inline-flex;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0066ff 0%, #0284c7 60%, #0369a1 100%);
  border: 1.5px solid rgba(0, 102, 255, 0.4);
  box-shadow: 0 8px 24px -4px rgba(0, 102, 255, 0.4), inset 0 1px rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
}

.partner-btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(0, 102, 255, 0.55), inset 0 1px rgba(255, 255, 255, 0.45);
}

.partner-btn-text {
  text-align: center;
  flex: 1;
  padding-left: 8px;
}

.partner-btn-icon-wrap {
  background: #ffffff;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  display: flex;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #0066ff;
  transition: transform 0.3s;
}

.partner-btn-pill:hover .partner-btn-icon-wrap {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .partner-card-dark {
    border-radius: 20px;
    padding: 24px 18px 20px;
  }

  .partner-card-img-box {
    max-width: 200px;
    height: 75px;
    padding: 10px 16px;
  }

  .partner-card-label {
    font-size: 19px;
  }

  .partner-card-highlights span {
    font-size: 11px;
    padding: 5px 10px;
  }

  .partner-btn-pill {
    width: 100%;
    max-width: 100%;
  }

  .btn-partner-secondary {
    width: 100%;
    justify-content: center;
  }
}
/* ==========================================================================
   AURA HERO ACTION BUTTONS - SYSTEM VIEW (DESKTOP) VS MOBILE VIEW
   System View (Desktop): Unmodified original layout and actions
   Mobile View (<= 768px): Mobile-optimized actions with live webcam launcher
   ========================================================================== */
.aura-desktop-hero-actions {
  display: flex !important;
}

.aura-mobile-hero-actions {
  display: none !important;
}

@media (max-width: 768px) {
  .aura-desktop-hero-actions {
    display: none !important;
  }

  .aura-mobile-hero-actions {
    display: flex !important;
  }
}

/* ==========================================================================
   AURA LIVE WEBCAM & SPATIAL AI TESTBED (STRICTLY MOBILE VIEW ONLY)
   NEVER DISPLAYED IN SYSTEM VIEW (DESKTOP / WINDOWS PC > 768px)
   ========================================================================== */
.aura-webcam-section {
  display: none !important; /* Strictly hidden in System View (Desktop) */
}

@media (max-width: 768px) {
  .aura-webcam-section {
    display: block !important; /* Visible strictly on Mobile View */
    position: relative;
    padding: 36px 0 16px;
  }

  .webcam-container {
    background: #090d16;
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: var(--radius-xl, 16px);
    box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.3), 0 0 35px rgba(37, 99, 235, 0.12);
    color: #f8fafc;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.3s ease;
  }

  .webcam-container.shutter-flash::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 100;
    pointer-events: none;
    animation: flashFade 0.4s ease-out forwards;
  }

  @keyframes flashFade {
    0% { opacity: 1; }
    100% { opacity: 0; }
  }

  /* Webcam Header Bar */
  .webcam-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
  }

  .webcam-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .webcam-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: pulse-glow 1.4s infinite;
  }

  .webcam-pulse-dot.live {
    background: #10b981;
    box-shadow: 0 0 12px #10b981;
  }

  .webcam-status-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #f1f5f9;
  }

  .webcam-source-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-pill, 9999px);
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.35);
    letter-spacing: 0.03em;
  }

  .webcam-source-badge.live {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.45);
  }

  .webcam-metrics {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #94a3b8;
  }

  .webcam-metric-item strong {
    color: #e2e8f0;
  }

  /* Video Stage Wrapper */
  .webcam-stage-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 340px;
    background: #040711;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

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

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

  /* HUD Corners and Scanline */
  .webcam-hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
  }

  .hud-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #38bdf8;
    opacity: 0.85;
  }

  .hud-corner.top-left {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
  }

  .hud-corner.top-right {
    top: 12px;
    right: 12px;
    border-left: none;
    border-bottom: none;
  }

  .hud-corner.bottom-left {
    bottom: 12px;
    left: 12px;
    border-right: none;
    border-top: none;
  }

  .hud-corner.bottom-right {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
  }

  .hud-scanner-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.85) 50%, transparent 100%);
    box-shadow: 0 0 10px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.4);
    animation: hudScanLoopMobile 3.6s ease-in-out infinite alternate;
  }

  @keyframes hudScanLoopMobile {
    0% { transform: translateY(0); opacity: 0.3; }
    50% { opacity: 0.9; }
    100% { transform: translateY(320px); opacity: 0.3; }
  }

  .hud-target-reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 1px dashed rgba(56, 189, 248, 0.35);
    border-radius: 50%;
  }

  .hud-target-reticle::before,
  .hud-target-reticle::after {
    content: '';
    position: absolute;
    background: rgba(56, 189, 248, 0.5);
  }

  .hud-target-reticle::before {
    top: 50%;
    left: -6px;
    right: -6px;
    height: 1px;
    transform: translateY(-50%);
  }

  .hud-target-reticle::after {
    left: 50%;
    top: -6px;
    bottom: -6px;
    width: 1px;
    transform: translateX(-50%);
  }

  /* Prompt Banner inside stage */
  .webcam-prompt-banner {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 12px 14px;
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    width: calc(100% - 20px);
    max-width: 500px;
  }

  .prompt-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .prompt-text {
    width: 100%;
  }

  .prompt-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 2px;
  }

  .prompt-sub {
    font-size: 0.70rem;
    color: #94a3b8;
    line-height: 1.35;
  }

  .prompt-btn {
    width: 100%;
    justify-content: center;
    padding: 8px 14px;
    font-size: 0.80rem;
    font-weight: 600;
  }

  /* Control Toolbar (Mobile Optimized) */
  .webcam-controls-bar {
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.75);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .webcam-action-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .webcam-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px;
    font-size: 0.76rem;
    font-weight: 600;
    border-radius: var(--radius-sm, 8px);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast, 0.15s ease);
    min-height: 40px;
    touch-action: manipulation;
    width: 100%;
  }

  .webcam-btn.primary {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.35);
  }

  .webcam-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.5);
  }

  .webcam-btn.secondary {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
  }

  .webcam-btn.secondary:hover {
    background: rgba(56, 189, 248, 0.2);
    color: #ffffff;
  }

  .webcam-btn.outline {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
  }

  .webcam-btn.outline:hover,
  .webcam-btn.outline.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #60a5fa;
  }

  .webcam-btn.danger {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
  }

  /* Camera Select Dropdown Wrap */
  .webcam-select-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-sm, 8px);
    padding: 0 8px;
    min-height: 40px;
    gap: 6px;
    grid-column: span 2;
    width: 100%;
  }

  .webcam-select-icon {
    color: #38bdf8;
    font-size: 0.80rem;
    pointer-events: none;
    flex-shrink: 0;
  }

  .webcam-select {
    background: transparent;
    border: none;
    color: #f1f5f9;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    padding: 6px 4px;
    width: 100%;
  }

  .webcam-select option {
    background: #0f172a;
    color: #f8fafc;
    padding: 6px;
  }

  /* Telemetry Details Strip */
  .webcam-telemetry-strip {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(9, 13, 22, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
  }

  .telemetry-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  .telemetry-label {
    color: #64748b;
    font-weight: 500;
  }

  .telemetry-val {
    color: #e2e8f0;
    font-weight: 600;
    word-break: break-all;
  }
}

/* ==========================================================================
   CAMERA ACCESS PERMISSION REQUEST MODAL
   Explicitly asks the user for camera permission before device streaming
   ========================================================================== */
.camera-perm-modal-overlay {
  z-index: 100005 !important;
}

.camera-perm-modal-card {
  max-width: 540px !important;
  border: 1px solid rgba(2, 132, 199, 0.35) !important;
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.35), 0 0 40px rgba(2, 132, 199, 0.15) !important;
}

.camera-perm-spinner {
  font-size: 2.4rem;
  color: var(--primary, #0066ff);
  margin: 14px auto 8px;
  display: inline-block;
}

.camera-perm-hint-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-pill, 9999px);
  padding: 6px 14px;
  font-size: 0.74rem;
  color: #475569;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 6px;
}

.camera-perm-denied-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 4px 0;
  text-align: left;
}

@media (max-width: 640px) {
  .camera-perm-modal-card {
    border-radius: 16px;
    margin: 12px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    width: calc(100% - 24px);
  }

  .camera-perm-modal-card .privacy-modal-body {
    overflow-y: auto;
    padding: 16px;
  }

  .camera-perm-modal-card .privacy-modal-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 16px;
  }

  .camera-perm-modal-card .privacy-modal-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

