/* ==========================================================================
   Legacy Microtronix — Design System v2
   R&A Supply Solutions Pvt Ltd
   Professional dark theme — inspired by Linear, Vercel, Stripe
   Clean, restrained, credible
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;450;500;600;700;800&family=JetBrains+Mono:wght@400;500&family=Outfit:wght@800&family=Montserrat:ital,wght@0,800;1,800&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Zinc-based neutral palette */
  --bg-primary: #09090b;
  --bg-secondary: #18181b;
  --bg-tertiary: #27272a;
  --bg-elevated: #1c1c1f;
  --bg-input: #18181b;

  /* Accent — restrained blue */
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-subtle: rgba(59, 130, 246, 0.08);
  --accent-border: rgba(59, 130, 246, 0.25);

  /* Status */
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.08);
  --success-border: rgba(34, 197, 94, 0.2);
  --warning: #eab308;
  --warning-bg: rgba(234, 179, 8, 0.08);
  --warning-border: rgba(234, 179, 8, 0.2);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.08);
  --danger-border: rgba(239, 68, 68, 0.2);

  /* Text */
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* Borders */
  --border: #27272a;
  --border-hover: #3f3f46;
  --border-subtle: #1f1f23;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1120px;
  --nav-height: 64px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 200ms;
  --duration-slow: 350ms;
}

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

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

body {
  font-family: var(--font-primary);
  background: transparent;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Cinematic Video Background ---------- */
.video-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3; /* Deepest layer */
  overflow: hidden;
  background-color: var(--bg-primary); /* Fallback to black if video doesn't load */
  pointer-events: none; /* Ensure it never blocks Chatbot clicks */
}

.video-bg {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0.6; /* Increased visibility significantly */
  transform: scale(1.4); /* Zooms in to crop out the black bars burned into the MP4 */
}

/* Hide Apple/Android native play button when blocked by Low Power Mode */
video::-webkit-media-controls { display: none !important; }
video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
video::-webkit-media-controls-play-button { display: none !important; }

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* Smoother tonal transition from a subtle navy to pure site background black */
  background: 
    radial-gradient(circle at center, transparent 30%, rgba(4, 7, 18, 0.6) 100%),
    linear-gradient(to bottom, rgba(6, 10, 24, 0.4) 0%, rgba(9, 9, 11, 0.85) 75%, rgba(9, 9, 11, 1) 100%);
}

#circuit-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2; /* Sits above the video, but behind the text */
  pointer-events: none;
}

/* ---------- Custom Logo Split Text ---------- */
.half-blue {
  background: linear-gradient(to right, #ffffff 50%, var(--accent) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ---------- Pure CSS Animated Background ---------- */
.css-bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-primary); /* Dark Base */
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
  width: 60vw;
  height: 60vw;
  background: rgba(59, 130, 246, 0.4); /* Blue */
  top: -10%;
  left: -10%;
  animation-duration: 25s;
}

.orb-2 {
  width: 50vw;
  height: 50vw;
  background: rgba(124, 58, 237, 0.3); /* Purple */
  bottom: -20%;
  right: -10%;
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

.orb-3 {
  width: 40vw;
  height: 40vw;
  background: rgba(14, 165, 233, 0.25); /* Cyan */
  top: 40%;
  left: 30%;
  animation-duration: 28s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 10%) scale(1.1); }
  100% { transform: translate(-5%, -5%) scale(0.9); }
}

a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover { color: var(--text-primary); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ---------- Global Map Animation (Search Page) ---------- */
.search-map-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) 0;
  animation: fadeIn 0.5s ease-out;
}

.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-bottom: var(--space-lg);
}

.map-svg {
  width: 100%;
  height: auto;
  opacity: 0.15;
}

.map-node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--accent);
  opacity: 0;
}

.map-node::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Node Positions (Approximate) */
.node-us { top: 38%; left: 22%; animation: nodeAppear 2s forwards 0.2s; }
.node-eu { top: 32%; left: 51%; animation: nodeAppear 2s forwards 0.4s; }
.node-in { top: 48%; left: 70%; animation: nodeAppear 2s forwards 0.6s; }
.node-cn { top: 42%; left: 78%; animation: nodeAppear 2s forwards 0.8s; }

@keyframes nodeAppear {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  10% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  20% { transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.searching-text {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.text-mono {
  font-family: var(--font-mono);
  letter-spacing: 0;
}

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.8rem; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-5xl) 0;
}

.section + .section {
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header.centered {
  text-align: center;
}

.section-header .overline {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.section-header p {
  max-width: 560px;
  margin-top: var(--space-sm);
  font-size: 1.05rem;
}

.section-header.centered p {
  margin-left: auto;
  margin-right: auto;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo:hover { color: var(--text-primary); }

.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0;
}

.nav-logo .logo-text-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 450;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.nav-links a.active {
  color: var(--text-primary);
}

.nav-cta { margin-left: var(--space-sm); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

/* Accessibility: Focus-visible styles */
.btn:focus-visible,
.nav-links a:focus-visible,
.search-tag:focus-visible,
.industry-badge:focus-visible,
.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-input:focus-visible,
.form-textarea:focus-visible,
.form-select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.btn-lg {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn svg, .btn i {
  width: 16px;
  height: 16px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--duration) var(--ease);
}

.card:hover {
  border-color: var(--border-hover);
}

.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

.card-icon svg, .card-icon i {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.card h3 {
  margin-bottom: var(--space-sm);
}

.card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-xl) var(--space-4xl);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90vw;
  height: 90vw;
  max-width: 900px;
  max-height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero h1 {
  margin-bottom: var(--space-lg);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero p {
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* ---------- Search Component ---------- */
.search-container {
  max-width: 600px;
  margin: 0 auto;
}

.search-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05); /* Lighter to look like real frosted glass */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 4px;
  transition: border-color var(--duration) var(--ease);
}

.search-wrapper:focus-within {
  border-color: var(--accent-border);
}

.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-icon svg, .search-icon i {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  padding: 10px 0;
  width: 100%;
}

.search-input::placeholder {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.search-btn {
  padding: 8px 20px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.search-hint {
  text-align: center;
  margin-top: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.search-hint kbd {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.search-hint kbd:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* Mobile Search Tweaks */
@media (max-width: 768px) {
  .search-wrapper {
    padding: 2px;
    flex-direction: column;
    border-radius: var(--radius-md);
  }
  
  .search-icon {
    display: none; /* Hide icon on mobile to save space */
  }
  
  .search-input {
    padding: 12px 16px;
    font-size: 1rem; /* Larger touch target */
    text-align: center;
  }
  
  .search-btn {
    width: 100%;
    padding: 12px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
  }
}

/* ---------- Search Tags ---------- */
.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.search-tag {
  padding: 5px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.search-tag:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.recent-searches {
  margin-top: var(--space-xl);
}

.recent-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

/* ---------- Search Results ---------- */
.search-results {
  margin-top: var(--space-xl);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.result-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  animation: fadeUp 0.3s var(--ease);
}

.result-card + .result-card {
  margin-top: var(--space-lg);
}

.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  gap: var(--space-md);
}

.result-mpn {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.result-manufacturer {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.result-description {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-available {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.status-limited {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning-border);
}

.status-unavailable {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-available .status-dot { background: var(--success); }
.status-limited .status-dot { background: var(--warning); }
.status-unavailable .status-dot { background: var(--danger); }

.result-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

.result-detail-item .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.result-detail-item .value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.result-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  padding: var(--space-xl) var(--space-2xl);
  background: rgba(24, 24, 27, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  margin-top: calc(var(--space-2xl) * -0.5);
  position: relative;
  z-index: 10;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- How It Works — Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.step { 
  text-align: center;
  padding: var(--space-2xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.step:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  margin: 0 auto var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.step h3 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.step p {
  font-size: 0.85rem;
}

/* ---------- Industry Badges ---------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-sm);
}

.industry-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: border-color var(--duration) var(--ease);
}

.industry-badge:hover {
  border-color: var(--border-hover);
}

.industry-badge .badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.industry-badge .badge-icon svg, .industry-badge .badge-icon i {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
}

.cta-section h2 {
  margin-bottom: var(--space-sm);
}

.cta-section p {
  max-width: 480px;
  margin: 0 auto var(--space-xl);
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color var(--duration) var(--ease);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-border);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2371717a' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  font-size: 0.85rem;
  margin-top: var(--space-md);
  max-width: 280px;
}

.footer-brand .legal-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.footer h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  font-weight: 500;
}

.footer-links a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 3px 0;
  transition: color var(--duration) var(--ease);
}

.footer-links a:hover { color: var(--text-primary); }

.footer-links span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 3px 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: all var(--duration) var(--ease);
}

.footer-social a:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ---------- Page Header ---------- */
.page-header {
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  border-bottom: 1px solid var(--border);
}

.page-header .container {
  max-width: 640px;
}

.page-header .overline {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.page-header h1 {
  margin-bottom: var(--space-md);
}

.page-header p {
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text-primary); }

/* ---------- Content Sections ---------- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }

.content-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-text h2 {
  margin-bottom: var(--space-lg);
}

.content-text p {
  margin-bottom: var(--space-md);
}

.content-text ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.content-text ul li svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}

.contact-card .contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--text-secondary);
}

.contact-card .contact-icon svg, .contact-card .contact-icon i {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

.contact-card h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 0.85rem;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 300px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(80%) invert(92%) contrast(90%) hue-rotate(180deg);
}

/* ---------- Service Detail Cards ---------- */
.service-detail {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xl);
  transition: border-color var(--duration) var(--ease);
}

.service-detail:hover {
  border-color: var(--border-hover);
}

.service-detail + .service-detail {
  margin-top: var(--space-lg);
}

.service-detail .service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.service-detail .service-icon svg, .service-detail .service-icon i {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.service-detail h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.service-detail p {
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-md);
}

.feature-tag {
  padding: 3px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ---------- Loading ---------- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.search-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-3xl);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.search-loading .spinner {
  width: 24px;
  height: 24px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  padding: 10px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-primary);
  z-index: 2000;
  animation: fadeUp 0.25s var(--ease);
}

.toast-success { border-left: 2px solid var(--success); }
.toast-warning { border-left: 2px solid var(--warning); }
.toast-error   { border-left: 2px solid var(--danger); }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Content list bullets */
.content-text ul li::before {
  content: '→';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 999;
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl);
  flex-direction: column;
  gap: 0;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--text-primary);
}

/* ---------- Animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 8px rgba(59, 130, 246, 0.15); }
  50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.25); }
}

/* ---------- Section Label ---------- */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

/* ---------- Info cards (contact page sidebar) ---------- */
.info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.info-card + .info-card {
  margin-top: var(--space-lg);
}

.info-card h4 {
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.info-card p, .info-card li {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.info-card ol {
  counter-reset: steps;
  list-style: none;
}

.info-card ol li {
  counter-increment: steps;
  padding: 6px 0;
  padding-left: 28px;
  position: relative;
}

.info-card ol li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  top: 8px;
}

/* ---------- Component Gallery ---------- */

/* ---------- Advanced Search Result Cards ---------- */
.src-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-2xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  gap: var(--space-xl);
  animation: fadeInUp 0.5s var(--ease) forwards;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease);
}

.src-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  background: rgba(18, 24, 40, 0.4);
}

.src-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
}

.src-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.src-mpn {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.src-mfg {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.src-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: var(--radius-sm);
}

.src-status-icon {
  width: 14px;
  height: 14px;
}

.src-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 800px;
}

.src-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.src-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.src-metric-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.src-metric-value {
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.src-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.src-multiple-sources {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
}

.src-quote-btn {
  padding: 10px 24px;
  font-weight: 600;
}

.search-results-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.results-heading {
  margin: 0;
  font-size: 1.25rem;
}

.results-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 4px 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* ---------- Frequently Sourced Component Cards ---------- */
.component-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.component-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.component-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.cc-image-area {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(0, 0, 0, 0.5); /* consistent dark background */
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cc-image-area img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

.component-card:hover .cc-image-area img {
  transform: scale(1.05); /* very subtle emphasis */
}

.overlay-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.overlay-badge.active {
  background: rgba(74, 222, 128, 0.1);
  color: var(--success);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.overlay-badge.eol {
  background: rgba(248, 113, 113, 0.1);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.cc-content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cc-mpn {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.cc-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-xl);
  flex: 1; /* Pushes footer down */
}

.cc-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: auto;
}

.cc-cta {
  padding: 0;
  color: var(--text-muted);
  font-weight: 600;
  transition: color var(--duration) var(--ease);
  background: transparent;
  border: none;
}

.component-card:hover .cc-cta {
  color: var(--accent);
}
/* ---------- Sound Toggle ---------- */
.sound-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s var(--ease);
}

.sound-toggle:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-border);
  transform: scale(1.05);
}

.sound-toggle.playing {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .content-grid.reverse { direction: ltr; }
  .result-details { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 1.25rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
    --space-4xl: 3rem;
    --space-5xl: 4rem;
  }

  .section { padding: 60px 0; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta.desktop-only { display: none; }

  /* Mobile Menu Overlay */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(9, 9, 11, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }
  .mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-menu a {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: var(--space-xl); }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  .hero h1 { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .search-wrapper {
    flex-direction: column;
    padding: var(--space-sm);
  }
  .search-icon { display: none; }
  .search-input {
    padding: var(--space-md);
    text-align: center;
  }
  .search-btn { width: 100%; padding: var(--space-md); }

  .result-header { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }

  .page-header {
    padding-top: calc(var(--nav-height) + var(--space-2xl));
  }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .modal-content { padding: var(--space-xl); margin: var(--space-md); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  h2 { font-size: 1.75rem; }
  .industries-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Quote Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  padding: var(--space-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.modal-content .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 600px) {
  .modal-content .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Claude Trust Signals & Capabilities ---------- */
.trust-section {
    padding: var(--space-4xl) 0;
    border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

@media (min-width: 640px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .trust-grid { grid-template-columns: repeat(6, 1fr); }
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.trust-badge:hover {
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.05);
}

.trust-badge-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.trust-badge-title {
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.trust-badge-note {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
}

.capability-card {
  padding: var(--space-xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.capability-card:hover {
  border-color: rgba(255, 107, 53, 0.3);
  transform: translateY(-4px);
}

.capability-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.capability-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  transition: color var(--duration) var(--ease);
}

.capability-card:hover .capability-title {
  color: var(--accent);
}

/* ---------- Infinite Scrolling Marquee ---------- */
.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: var(--space-xl) 0;
    position: relative;
    display: flex;
    -webkit-mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - 100px), transparent);
    mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - 100px), transparent);
  }

.marquee-track {
  display: flex;
  gap: var(--space-md);
  padding-left: var(--space-md);
  animation: marquee-scroll 60s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  flex-shrink: 0;
  width: 220px;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--bg-secondary);
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.marquee-item:hover img {
  transform: scale(1.05);
}

.marquee-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.marquee-item:hover .marquee-overlay {
  opacity: 1;
}

.marquee-mpn {
  color: white;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}

/* ---------- News & Insights ---------- */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.3);
}

.news-image {
  height: 180px;
  background: var(--bg-tertiary);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.news-content {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  font-size: 0.75rem;
  color: var(--accent-light);
  font-family: var(--font-mono);
  margin-bottom: var(--space-sm);
  display: flex;
  justify-content: space-between;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.news-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  flex: 1;
}

.news-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-link:hover {
  text-decoration: underline;
}

/* ---------- Manufacturer Logo Carousel ---------- */
.manufacturer-carousel {
  width: 100%;
  overflow: hidden;
  background: var(--bg-tertiary);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  display: flex;
}

.manufacturer-carousel::before,
.manufacturer-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.manufacturer-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-tertiary), transparent);
}

.manufacturer-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-tertiary), transparent);
}

.manufacturer-track {
  display: flex;
  gap: var(--space-4xl);
  padding-left: var(--space-4xl);
  animation: manufacturer-scroll 30s linear infinite;
  align-items: center;
  width: max-content;
}

@keyframes manufacturer-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.manufacturer-logo {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-muted);
  letter-spacing: -0.5px;
  white-space: nowrap;
  opacity: 0.6;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}

.manufacturer-logo:hover {
  opacity: 1;
  color: var(--text-primary);
}

/* ---------- Our Approach Section ---------- */
.approach-section {
    padding: var(--space-4xl) 0;
  }

.approach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

@media (min-width: 768px) {
  .approach-grid { grid-template-columns: repeat(3, 1fr); }
}

.approach-card {
  padding: var(--space-2xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.approach-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.approach-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
}

.approach-card:hover::before {
  transform: scaleX(1);
}

.approach-number {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
}

.approach-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--accent);
}

.approach-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

/* ---------- Product Categories ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

@media (min-width: 768px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

.category-card {
  height: 350px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
  text-decoration: none;
}

.category-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  z-index: 0;
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 9, 11, 0.95) 0%, rgba(9, 9, 11, 0.4) 60%, rgba(9, 9, 11, 0.1) 100%);
  z-index: 1;
}

.category-card:hover .category-bg {
  opacity: 0.6;
  transform: scale(1.05);
}

.category-content {
  position: relative;
  z-index: 2;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-sm);
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.category-list li {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-list li::before {
  content: "→";
  color: var(--accent);
}

/* ---------- Comprehensive Mobile Responsiveness Fixes ---------- */
@media (max-width: 768px) {
  .component-gallery {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    padding: 0 var(--space-sm);
  }

  .carousel-track {
    /* Ensure the carousel doesn't overflow the page horizontally on mobile */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: var(--space-md);
  }

  .carousel-track .component-card {
    min-width: 250px;
    scroll-snap-align: center;
  }

  .search-input {
    font-size: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col h4 {
    margin-top: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    gap: var(--space-md);
  }
  .btn {
    width: 100%;
  }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

                                /* ---------- Final Polished Logo Masterpiece ---------- */
.nav-logo {
  transition: transform 0.3s ease;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Primary State Container */
.logo-primary {
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 2;
}

/* Hover interactions */
.nav-logo:hover .logo-primary {
  opacity: 0 !important;
  transform: translateY(-10px) scale(0.95) !important;
}
.nav-logo:hover .logo-hover {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.nav-logo:hover .logo-subtitle {
  color: #aaa !important;
}

/* Core Wrapper for 2-part animation */
.logo-core-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* LEGACY expands and slides to the left */
.logo-legacy-container {
  display: inline-flex;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  justify-content: flex-end; /* Anchors the text to MICRO while expanding */
  animation: expandLegacy 3s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
  position: relative;
  z-index: 5;
}
@keyframes expandLegacy {
  0% { max-width: 0; opacity: 0; }
  5% { opacity: 1; }
  100% { max-width: 150px; opacity: 1; } /* Large enough to fit LEGACY */
}

.logo-legacy {
  color: var(--text-primary);
  display: inline-block;
  padding-right: 0.1em; /* Slight padding to offset the M negative margin */
}

/* MICRO anchor container */
.logo-micro-container {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
}

/* Glowing Mu Intro */
.logo-mu-intro {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent);
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  font-size: 2rem;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.8), 0 0 20px rgba(59, 130, 246, 0.4);
  /* Effortless, slightly slower fade out */
  animation: swapMu 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}
@keyframes swapMu {
  0% { opacity: 1; transform: translate(-50%, -50%) translateY(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) translateY(-20px); visibility: hidden; }
}

/* The full word MICRO skewed */
.logo-micro-text {
  color: var(--accent);
  display: inline-block;
  font-family: 'Gilroy', 'TT Norms Pro', 'Nexa', 'Mont', 'Outfit', 'Montserrat', sans-serif;
  font-weight: 800;
  font-style: normal; /* Restored to upright to preserve exact geometric structure */
  /* Keep skew to maintain the exact 14deg Y/M merge, scaleX to increase width by 5% */
  transform: scaleX(1.05) skewX(-14deg) translateZ(0); 
  /* Reduce gap by 10% (from -0.32em to -0.35em) */
  margin-left: -0.35em;
  letter-spacing: 0.5px;
  transform-origin: bottom left;
  backface-visibility: hidden;
  position: relative;
  z-index: 6;opacity: 0;
  /* Effortless, slightly slower flip in */
  animation: swapMicro 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}
@keyframes swapMicro {
  0% { opacity: 0; transform: skewX(-14deg) translateY(20px); }
  100% { opacity: 1; transform: skewX(-14deg) translateY(0); }
}

/* LEGACY expands and slides to the left */
.logo-legacy-container {
  display: inline-flex;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  justify-content: flex-end;
  /* Very slow, dramatic, noticeable slide out after MICRO settles */
  animation: expandLegacy 4.5s cubic-bezier(0.16, 1, 0.3, 1) 1.8s forwards;
  position: relative;
  z-index: 5;
}
@keyframes expandLegacy {
  0% { max-width: 0; opacity: 0; }
  2% { opacity: 1; }
  100% { max-width: 150px; opacity: 1; }
}

.logo-legacy {
  color: var(--text-primary);
  display: inline-block;
  padding-right: 0.1em;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.5px; /* Slightly relaxed tracking for better legibility */
  animation: turnGold 2s ease forwards 2.5s; /* Turns gold earlier */
}
@keyframes turnGold {
  0% { color: var(--text-primary); }
  100% { 
    color: #fef3c7; /* Ultra-light warm champagne (almost white) */
    /* text-shadow removed to prevent the overflow:hidden clipping box artifact */
  }
}

/* Glowing trademark */
.logo-reg {
  font-size: 0.35em;
  font-weight: 500;
  margin-left: 3px; /* Reduced to pull it closer to the O */
  position: relative;
  z-index: 10; /* Ensures it renders above MICRO */
  color: #ef4444 !important; /* High definition red */
  text-shadow: 0 0 6px rgba(239, 68, 68, 0.8), 0 0 12px rgba(239, 68, 68, 0.4) !important;
  transform: translateY(-1em) translateZ(0);
  display: inline-block;
  opacity: 0;
  /* Fades in shortly after MICRO flips in, while LEGACY is still sliding (1.0s + 1.2s = 2.2s) */
  animation: regFadeIn 1.5s ease 2.5s forwards; 
}
@keyframes regFadeIn {
  0% { opacity: 0; transform: translateY(-1em) translateZ(0) scale(0.8); }
  100% { opacity: 1; transform: translateY(-1em) translateZ(0) scale(1); }
}
/* Subtitle */
.logo-subtitle {
  transition: color 0.4s ease;
  display: block;
  text-align: center;
  width: 100%;
}

.flip-words {
  display: grid;
  height: 100%;
  width: 100%;
}
.flip-word {
  grid-area: 1/1;
  opacity: 0;
  animation: flipWordAnim 16s infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}
.flip-word:nth-child(1) { animation-delay: 0s; }
.flip-word:nth-child(2) { animation-delay: 4s; }
.flip-word:nth-child(3) { animation-delay: 8s; }
.flip-word:nth-child(4) { animation-delay: 12s; }

@keyframes flipWordAnim {
  0%, 2% { opacity: 0; transform: translateY(10px); }
  5%, 22% { opacity: 1; transform: translateY(0); }
  25%, 100% { opacity: 0; transform: translateY(-10px); }
}

/* ==========================================================================
   Premium Aesthetic PCB Animated Background
   ========================================================================== */
.nav-pcb-bg {
  position: absolute;
  top: 0;
  left: -20px; /* Start slightly offscreen left */
  width: 360px; /* Stop exactly where the logo ends */
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Static structure */
.pcb-base { stroke: rgba(255, 255, 255, 0.04); stroke-width: 1.5; fill: none; stroke-linejoin: bevel; }
.pcb-base-thin { stroke: rgba(255, 255, 255, 0.02); stroke-width: 0.75; fill: none; stroke-linejoin: bevel; }

/* Animated Traces */
.trace-line {
  fill: none;
  stroke-linejoin: bevel;
  stroke-linecap: round;
}

/* Made more transparent to not disturb text */
.trace-gold { stroke: rgba(253, 230, 138, 0.15); stroke-width: 1.2; }
.trace-blue { stroke: rgba(59, 130, 246, 0.15); stroke-width: 1.2; }

/* Data packet flow effect - thinned and softened glow */
.data-packet {
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: bevel;
  stroke-dasharray: 10 300;
}
.packet-gold { stroke: rgba(253, 230, 138, 0.8); filter: drop-shadow(0 0 2px rgba(253, 230, 138, 0.5)); }
.packet-blue { stroke: rgba(96, 165, 250, 0.8); filter: drop-shadow(0 0 2px rgba(96, 165, 250, 0.5)); }

.draw-in {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawTrace 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.flow-1 { animation: flowData 4s linear infinite 1s; }
.flow-2 { animation: flowData 5s linear infinite 2s; }
.flow-3 { animation: flowData 3.5s linear infinite 0.5s; }

@keyframes drawTrace { to { stroke-dashoffset: 0; } }
@keyframes flowData {
  0% { stroke-dashoffset: 310; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { stroke-dashoffset: -10; opacity: 0; }
}

.pcb-via {
  opacity: 0;
  animation: fadeInVia 0.5s ease forwards;
}
.via-gold { fill: #fde68a; filter: drop-shadow(0 0 3px rgba(253, 230, 138, 0.5)); }
.via-blue { fill: #3b82f6; filter: drop-shadow(0 0 3px rgba(59, 130, 246, 0.5)); }
.via-dark { fill: #09090b; stroke-width: 1; }

.v-1 { animation-delay: 2s; }
.v-2 { animation-delay: 2.5s; }
.v-3 { animation-delay: 2.2s; }

@keyframes fadeInVia { to { opacity: 1; } }

/* Trusted Hover Animation */
.nav-logo:hover .logo-tr,
.nav-logo:hover .logo-sted {
  animation: turnGoldHover 0.4s ease forwards 0.2s; /* Slight delay to let it appear white first */
}

@keyframes turnGoldHover {
  0% { color: var(--text-primary); }
  100% { color: #fef3c7; }
}
/* ==========================================================================
   Mega-Menu Styles
   ========================================================================== */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: rgba(10, 10, 12, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: var(--space-xl);
  display: flex;
  gap: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  min-width: 750px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-menu-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-menu-col a {
  padding: 8px 12px !important;
  font-size: 0.9rem !important;
  color: var(--text-secondary) !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
  font-weight: 500;
}

.mega-menu-col a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
  transform: translateX(4px);
}

/* ==========================================================================
   Featured Products Grid
   ========================================================================== */
.featured-grid-section {
  padding: var(--space-xl) var(--space-md);
  background: var(--bg-secondary);
}

.featured-grid-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.featured-grid-header h2 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--text-primary), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.product-image-wrapper {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.product-image {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.product-category {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.product-btn {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

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

@media (max-width: 768px) {
  .mega-menu {
    position: static;
    transform: none;
    min-width: auto;
    flex-direction: column;
    box-shadow: none;
    border: none;
    padding: var(--space-sm);
    display: none;
  }
  
  .nav-dropdown:focus-within .mega-menu,
  .nav-dropdown:hover .mega-menu {
    display: flex;
  }
}

/* ========== Floating RFQ Button ========== */
.floating-rfq {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
  animation: pulse-glow 2s infinite;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.floating-rfq:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.5);
}
@media (max-width: 768px) {
  .floating-rfq {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Adjust Tidio chat to prevent collision with floating RFQ button */
#tidio-chat, #tidio-chat-iframe {
  bottom: 96px !important;
  margin-bottom: 0 !important;
}
@media (max-width: 768px) {
  #tidio-chat, #tidio-chat-iframe {
    bottom: 82px !important;
  }
}


/* ---------- Batch 3: Corporate Credibility & Capabilities ---------- */

/* 1. Manufacturers We Source (Premium Technical Directory) */
.manufacturer-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 2.5rem;
  margin-top: var(--space-xl);
}

.mfr-entry {
  display: flex;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color var(--duration) var(--ease);
}

.mfr-idx {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(0, 240, 255, 0.6);
  margin-right: 1rem;
  margin-top: 2px;
  transition: color var(--duration) var(--ease);
}

.mfr-content {
  display: flex;
  flex-direction: column;
}

.mfr-name {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.mfr-cat {
  font-size: 0.65rem;
  letter-spacing: 1px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
}

.mfr-entry:hover {
  border-bottom-color: rgba(0, 240, 255, 0.4);
}

.mfr-entry:hover .mfr-idx {
  color: rgba(0, 240, 255, 1);
}

/* 2. Sourcing Capabilities, Industries, Quality (Structured Service Cards) */
.capabilities-grid, .industries-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

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

.quality-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.quality-card-grid > .cap-card {
  flex: 0 1 calc(33.333% - (var(--space-xl) * 2/3));
}

.cap-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.cap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.cap-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.02);
}

.cap-card:hover::before {
  transform: scaleX(1);
}

.cap-icon {
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.cap-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.cap-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Quality wrapper header */
.quality-wrapper {
  display: flex;
  flex-direction: column;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
  .manufacturer-matrix { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .industries-card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-card-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-card-grid > .cap-card {
    flex: 0 1 calc(50% - (var(--space-xl) / 2));
  }
}

@media (max-width: 768px) {
  .manufacturer-matrix { grid-template-columns: repeat(2, 1fr); }
  .capabilities-grid { grid-template-columns: 1fr; }
  .industries-card-grid { grid-template-columns: 1fr; }
  .quality-card-grid > .cap-card {
    flex: 0 1 100%;
  }
  .quality-header-flex { flex-direction: column; align-items: flex-start !important; }
}

@media (max-width: 480px) {
  .manufacturer-matrix { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- Featured Inventory Refinement ---------- */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.product-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}

.product-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.02);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.pc-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--accent);
  padding: 1.25rem 1.25rem 0.5rem 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 1;
}

.pc-image-area {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  margin-bottom: 0.5rem;
}

.pc-image-area img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.pc-content {
  padding: 0 1.25rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pc-mpn {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin: 0 0 var(--space-xs) 0;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.pc-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 var(--space-md) 0;
  flex: 1;
}

.pc-cta {
  font-size: 0.85rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
  align-self: flex-start;
}

.pc-cta:hover {
  color: var(--accent);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .product-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .product-gallery {
    grid-template-columns: 1fr;
  }
}
