/* OMNI Tech Website Styles
 * Theme-aware CSS with dark/light mode support
 */

/* ==========================================
   CSS VARIABLES - Theme System
   ========================================== */
:root {
  /* Dark mode (default) - Navy & Orange/Green Theme */
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --bg-card: #1E293B;
  --bg-elevated: #334155;
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-bright: #FFFFFF;

  /* Brand Colors */
  --accent-orange: #FF5A1A;
  --accent-green: #66D933;
  --accent-orange-glow: rgba(255, 90, 26, 0.4);
  --accent-green-glow: rgba(102, 217, 51, 0.4);

  /* UI Colors */
  --border: rgba(255, 90, 26, 0.2);
  --border-hover: rgba(255, 90, 26, 0.4);
  --glow: rgba(255, 90, 26, 0.3);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--accent-orange), var(--accent-green));
  --gradient-bg-radial: radial-gradient(circle at 70% 30%, rgba(255, 90, 26, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 30% 80%, rgba(102, 217, 51, 0.08) 0%, transparent 50%);

  /* Transitions */
  --theme-transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Light mode overrides */
[data-theme="light"] {
  --bg-primary: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-elevated: #E2E8F0;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-bright: #020617;
  --border: rgba(255, 90, 26, 0.2);
  --border-hover: rgba(255, 90, 26, 0.4);
  --gradient-bg-radial: radial-gradient(circle at 70% 30%, rgba(255, 90, 26, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 30% 80%, rgba(102, 217, 51, 0.05) 0%, transparent 50%);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-accent-orange {
  color: var(--accent-orange);
  font-weight: 700;
}

/* ==========================================
   BASE STYLES
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Mono', monospace;
  /* Updated to Space Mono for body */
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--theme-transition);
}

::selection {
  background: var(--accent-orange);
  color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-orange);
  border-radius: 3px;
}

/* ==========================================
   NAVIGATION - LIQUID GLASS EFFECT
   ========================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Liquid Glass Effect */
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

/* Light mode glass effect */
[data-theme="light"] nav {
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* Glass highlight overlay */
nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  border-radius: inherit;
}

[data-theme="light"] nav::before {
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0) 100%);
}

/* Make all nav items interactive */
.logo,
.nav-right,
.tubelight-nav {
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo:hover .logo-img {
  opacity: 0.85;
  transform: scale(1.02);
}

/* Invert logo in light mode */
[data-theme="light"] .logo-img {
  filter: brightness(0) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* TUBELIGHT NAVBAR STYLES */
.tubelight-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
}

.tubelight-container {
  display: flex;
  align-items: center;
  gap: 8px;
  /* No background - items sit directly on glass bar */
  background: transparent;
  border: none;
  backdrop-filter: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  transition: all 0.3s ease;
}

[data-theme="light"] .tubelight-container {
  background: transparent;
  border: none;
  box-shadow: none;
}

.tubelight-item {
  position: relative;
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tubelight-item.icon-item {
  padding: 0.65rem 1rem;
  /* Tighter padding for icon */
}

[data-theme="light"] .tubelight-item {
  color: rgba(0, 0, 0, 0.6);
}

.tubelight-item:hover {
  color: var(--accent-orange);
}

.tubelight-item.active {
  color: var(--accent-orange);
  background: rgba(255, 90, 26, 0.1);
}

/* LAMP EFFECT (Glow) */
.lamp-effect {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  border-radius: 9999px;
  overflow: hidden;
  /* Contains the blur leak */
}

/* The top light source */
.lamp-line {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent-orange);
  border-radius: 2px 2px 0 0;
  z-index: 2;
}

/* Glow layers matching the React component's blurs */
.lamp-glow-lg {
  position: absolute;
  top: -2px;
  left: -10px;
  width: 40px;
  height: 20px;
  background: var(--accent-orange);
  opacity: 0.2;
  filter: blur(12px);
  border-radius: 50%;
}

.lamp-glow-md {
  position: absolute;
  top: -1px;
  left: -5px;
  width: 30px;
  height: 15px;
  background: var(--accent-orange);
  opacity: 0.3;
  filter: blur(8px);
  border-radius: 50%;
}

.lamp-glow-sm {
  position: absolute;
  top: 0;
  left: 5px;
  width: 10px;
  height: 10px;
  background: var(--accent-orange);
  opacity: 0.3;
  filter: blur(4px);
  border-radius: 50%;
}

/* Downward beam/wash */
.lamp-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 90, 26, 0.15) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tubelight-item.active .lamp-beam {
  opacity: 1;
}

/* Remove old nav link styles */


/* ==========================================
   THEME TOGGLE (Spring Animation - JS Controlled)
   ========================================== */
.theme-toggle-spring {
  position: relative;
  width: 48px;
  height: 28px;
  padding: 2px;
  border-radius: 9999px;
  background-color: rgba(120, 120, 120, 0.15);
  border: none;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
}

.toggle-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--bg-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  /* Transitions are set via JavaScript */
}

.toggle-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  /* Transitions are set via JavaScript */
}

.icon-svg {
  width: 16px;
  height: 16px;
  color: var(--text-primary);
}

.theme-toggle-spring:hover {
  background-color: rgba(120, 120, 120, 0.25);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-orange);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-orange);
}

.nav-links a:hover::after {
  width: 100%;
}

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

.nav-cta {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  padding: 0.75rem 1.5rem;

  /* Island Style */
  background: rgba(15, 23, 42, 0.6);
  /* Dark Mode Default */
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);

  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s ease;
}

[data-theme="light"] .nav-cta {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-cta:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: rgba(255, 90, 26, 0.1);
  box-shadow: 0 0 15px rgba(255, 90, 26, 0.2);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 3rem;
  position: relative;
  overflow: hidden;
}

/* Liquid Gradient Canvas */
#webGLApp {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-bg-radial);
  transition: var(--theme-transition);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 90, 26, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 90, 26, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 60% 40%, black 20%, transparent 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

/* Hero Eyebrow */


/* Hero Headline */
.hero-headline {
  font-family: 'Syncopate', sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  /* Decreased gap */
}

.headline-gradient {
  display: block;
  background: linear-gradient(90deg,
      #FF5A1A 0%,
      #F5A623 35%,
      #8BC34A 70%,
      #66D933 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--accent-orange);
  /* Fallback */
  margin-bottom: 8px;
}

.headline-solid {
  display: inline;
  color: var(--text-bright);
}

/* Hero Subhead */
.hero-subhead {
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.hero-subhead strong {
  color: var(--accent-orange);
  font-weight: 700;
}

/* Metrics Strip */
.metrics-strip {
  display: flex;
  flex-direction: row;
  gap: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

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

.metric-value {
  font-family: 'Syncopate', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-orange);
  line-height: 1;
}

.metric-label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 2;
  color: var(--text-primary);
}

.scroll-indicator:hover {
  opacity: 1;
}

.chevron-icon {
  animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {

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

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

/* Hero Responsive: Tablet */
@media (max-width: 1023px) {
  .hero {
    padding: 120px 2rem 60px;
  }

  .hero-headline {
    font-size: 48px;
  }

  .hero-subhead {
    font-size: 16px;
  }

  .metrics-strip {
    gap: 48px;
  }

  .metric-value {
    font-size: 36px;
  }
}

/* Hero Responsive: Mobile */
@media (max-width: 767px) {
  .hero {
    padding: 120px 1.5rem 60px;
  }

  .hero-headline {
    font-size: 36px;
  }

  .hero-subhead {
    font-size: 15px;
    max-width: 100%;
  }

  .metrics-strip {
    flex-direction: column;
    gap: 32px;
  }

  .metric-value {
    font-size: 28px;
  }

  .scroll-indicator {
    display: none;
  }
}

/* ==========================================
   PRODUCT 3D CONTAINER
   ========================================== */
.product-3d-container {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  max-height: 750px;
  margin: -90px 0 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

#rack-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* Static image fallback for mobile or if 3D fails */
.rack-fallback {
  display: none;
  width: 100%;
  max-width: 600px;
  padding: 2rem;
}

.rack-fallback-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 1px rgba(255, 90, 26, 0.3);
}

[data-theme="light"] .rack-fallback-img {
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.15),
    0 0 1px rgba(255, 90, 26, 0.3);
}

/* Hide fallback when 3D is active */
.product-3d-container.threejs-active .rack-fallback {
  display: none !important;
}

/* ==========================================
   SVG WAVY CONNECTION LINES
   ========================================== */
.rack-tree-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
}

.product-3d-container:hover .rack-tree-svg,
.rack-labels.visible~.rack-tree-svg,
.rack-tree-svg.visible {
  opacity: 1;
}

/* Connection Lines - Wavy Dotted */
.connection-line {
  fill: none;
  stroke: rgba(255, 90, 26, 0.6);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
  filter: drop-shadow(0 0 4px rgba(255, 90, 26, 0.4));
  opacity: 0;
}

/* Staggered animation for each line */
.line-1 {
  animation: drawLine 1s ease forwards 0.3s;
}

.line-2 {
  animation: drawLine 1s ease forwards 0.5s;
}

.line-3 {
  animation: drawLine 1s ease forwards 0.7s;
}

.line-4 {
  animation: drawLine 1s ease forwards 0.9s;
}

.line-5 {
  animation: drawLine 1s ease forwards 1.1s;
}

@keyframes drawLine {
  0% {
    opacity: 0;
    stroke-dashoffset: 300;
  }

  100% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

/* Glow Pulse Animation after draw completes */
.rack-tree-svg.visible .connection-line {
  animation: drawLine 1s ease forwards, linePulse 3s ease-in-out infinite 1.5s;
}

.rack-tree-svg.visible .line-1 {
  animation-delay: 0.3s, 1.8s;
}

.rack-tree-svg.visible .line-2 {
  animation-delay: 0.5s, 2s;
}

.rack-tree-svg.visible .line-3 {
  animation-delay: 0.7s, 2.2s;
}

.rack-tree-svg.visible .line-4 {
  animation-delay: 0.9s, 2.4s;
}

.rack-tree-svg.visible .line-5 {
  animation-delay: 1.1s, 2.6s;
}

@keyframes linePulse {

  0%,
  100% {
    stroke: rgba(255, 90, 26, 0.4);
    filter: drop-shadow(0 0 2px rgba(255, 90, 26, 0.3));
  }

  50% {
    stroke: rgba(255, 90, 26, 0.8);
    filter: drop-shadow(0 0 8px rgba(255, 90, 26, 0.6));
  }
}

/* Light mode adjustments */
[data-theme="light"] .connection-line {
  stroke: rgba(255, 90, 26, 0.7);
  filter: drop-shadow(0 0 3px rgba(255, 90, 26, 0.3));
}

/* ==========================================
   GLASS EFFECT LABELS
   ========================================== */
.glass-label .glass-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.glass-label:hover .glass-card {
  background: rgba(255, 90, 26, 0.2);
  border-color: rgba(255, 90, 26, 0.5);
  box-shadow: 0 6px 24px rgba(255, 90, 26, 0.15);
  transform: translateX(-5px);
}

[data-theme="light"] .glass-label .glass-card {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .glass-label:hover .glass-card {
  background: rgba(255, 90, 26, 0.15);
  border-color: rgba(255, 90, 26, 0.4);
}

.label-emoji {
  font-size: 1.4rem;
  line-height: 1;
}

.glass-label .label-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Ambient Animation for Glass Labels */
.glass-label .glass-card {
  animation: cardFloat 6s ease-in-out infinite;
}

/* Staggered animation delays */
.glass-label:nth-child(1) .glass-card {
  animation-delay: 0s;
}

.glass-label:nth-child(2) .glass-card {
  animation-delay: 1.2s;
}

.glass-label:nth-child(3) .glass-card {
  animation-delay: 2.4s;
}

.glass-label:nth-child(4) .glass-card {
  animation-delay: 3.6s;
}

.glass-label:nth-child(5) .glass-card {
  animation-delay: 4.8s;
}

@keyframes cardFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
  }

  50% {
    transform: translateY(-4px) rotate(0.5deg);
    box-shadow: 0 10px 30px rgba(255, 90, 26, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 90, 26, 0.3);
  }
}

/* Interactive Rack Labels */
.rack-labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  visibility: hidden;
  opacity: 0;
}

.rack-labels.visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s ease 0.2s;
}

.rack-label {
  position: absolute;
  display: flex;
  align-items: flex-start;
  top: var(--label-top, 50%);
  pointer-events: auto;
}

/* Left side labels - stretch from left edge to rack */
.rack-label.left {
  left: 2%;
  right: 64%;
  /* Dot will be at rack's left edge (~36% from left) */
  flex-direction: row;
}

.rack-label.left .label-content {
  flex-shrink: 0;
  flex-grow: 0;
}

.rack-label.left .label-line {
  order: 1;
  flex-grow: 1;
  /* Line stretches to fill space */
  flex-shrink: 0;
}

.rack-label.left .label-dot {
  order: 2;
  flex-shrink: 0;
  position: relative;
}

/* Right side labels - closer to rack with shorter lines */
.rack-label.right {
  left: 58%;
  /* Dot closer to rack's right edge */
  right: 5%;
  flex-direction: row;
}

.rack-label.right .label-content {
  flex-shrink: 0;
  text-align: left;
}

.rack-label.right .label-line {
  flex-grow: 0;
  width: 30px;
  /* Fixed short line */
}

/* Label content box */
.label-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.8rem 1rem;
  border-radius: 6px;
  width: 220px;
  /* Increased to fit new content */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

/* Bring hovered label to front */
.rack-label:hover {
  z-index: 100;
}

.label-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.label-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.label-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.6rem 0 0.5rem;
  line-height: 1.4;
}

.label-fact {
  font-size: 0.75rem;
  color: var(--accent-orange);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.rack-label.right .label-fact {
  justify-content: flex-end;
}

.fact-icon {
  font-size: 1rem;
}

.rack-label.left .label-content {
  transform-origin: center right;
}

.rack-label.right .label-content {
  transform-origin: center left;
}

/* Connector Lines */
.label-line {
  height: 1px;
  background: var(--border);
  width: 60px;
  transition: all 0.3s ease;
  margin-top: 1.1rem;
  /* Align with title center approx */
}

.rack-label.left .label-line {
  background: linear-gradient(90deg, var(--border), var(--accent-orange));
}

/* Connection dot */
.label-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-orange);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 10px var(--accent-orange);
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-top: calc(1.1rem - 5px);
  /* Align with line */
}

/* Hover states */
.rack-label:hover .label-content {
  border-color: var(--accent-orange);
  box-shadow: 0 8px 32px rgba(255, 90, 26, 0.25);
}

.rack-label:hover .label-title {
  color: var(--accent-orange);
}

.rack-label:hover .label-details {
  max-height: 300px;
  /* Increased to prevent clipping */
  opacity: 1;
  margin-top: 0.5rem;
}

.rack-label:hover .label-line {
  background: var(--accent-orange);
  box-shadow: 0 0 15px rgba(255, 90, 26, 0.5);
  height: 3px;
}

.rack-label:hover .label-dot {
  transform: scale(1.4);
  box-shadow: 0 0 20px var(--accent-orange), 0 0 40px rgba(255, 90, 26, 0.4);
}

/* Green accent for AI App Server only */
.rack-label[data-module="appserver"] .label-dot {
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.rack-label[data-module="appserver"] .label-line {
  background: linear-gradient(90deg, var(--border), var(--accent-green));
}

.rack-label[data-module="appserver"]:hover .label-content {
  border-color: var(--accent-green);
  box-shadow: 0 8px 32px rgba(102, 217, 51, 0.25);
}

.rack-label[data-module="appserver"]:hover .label-title {
  color: var(--accent-green);
}

.rack-label[data-module="appserver"] .label-fact {
  color: var(--accent-green);
}

.rack-label[data-module="appserver"]:hover .label-line {
  background: var(--accent-green);
  box-shadow: 0 0 15px rgba(102, 217, 51, 0.5);
}

.rack-label[data-module="appserver"]:hover .label-dot {
  box-shadow: 0 0 20px var(--accent-green), 0 0 40px rgba(102, 217, 51, 0.4);
}

/* Staggered entrance animation - only when visible */
.rack-label {
  opacity: 0;
  transform: translateX(-20px);
}

.rack-label.right {
  transform: translateX(20px);
}

.rack-labels.visible .rack-label {
  animation: labelSlideIn 0.6s ease forwards;
}

.rack-labels.visible .rack-label:nth-child(1) {
  animation-delay: 0.1s;
}

.rack-labels.visible .rack-label:nth-child(2) {
  animation-delay: 0.25s;
}

.rack-labels.visible .rack-label:nth-child(3) {
  animation-delay: 0.4s;
}

.rack-labels.visible .rack-label:nth-child(4) {
  animation-delay: 0.55s;
}

.rack-labels.visible .rack-label:nth-child(5) {
  animation-delay: 0.7s;
}

@keyframes labelSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Pulsing dot animation */
.label-dot::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  animation: dotPulse 2s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes dotPulse {

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

  50% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Specs Row Below 3D */
.product-specs-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.spec-box-large {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem 3rem;
  text-align: center;
  min-width: 200px;
  flex: 1;
  max-width: 280px;
  transition: all 0.3s ease;
}

.spec-box-large:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
}

.spec-box-large .spec-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.spec-box-large .spec-value {
  font-family: 'Space Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
}

.spec-box-large .spec-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ==========================================
   HERO STATS
   ========================================== */
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: left;
}

.stat-value {
  font-family: 'Space Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* ==========================================
   SECTION STYLES
   ========================================== */
section {
  padding: 8rem 3rem;
  position: relative;
}

/* ==========================================
   PARTNERS SECTION
   ========================================== */
.partners-section {
  width: 100%;
  background-color: var(--bg-primary);
  padding: 120px 3rem;
  transition: var(--theme-transition);
}

.partners-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}

.partners-section .section-subhead {
  margin-bottom: 60px;
}

/* Partners Logos - Two side by side */
.partners-logos {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.partner-link {
  text-decoration: none;
}

.partner-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.partner-logo-card:hover {
  transform: translateY(-4px);
}

.partner-logo-img {
  max-width: 200px;
  max-height: 80px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

/* GateSpeed logo - invert in dark mode for visibility */
.partner-logo-img[alt="GateSpeed"] {
  filter: brightness(0) invert(1);
}

[data-theme="light"] .partner-logo-img[alt="GateSpeed"] {
  filter: none;
}

/* Intel logo - invert in light mode for visibility */
.partner-logo-img[alt="Intel"] {
  filter: none;
}

[data-theme="light"] .partner-logo-img[alt="Intel"] {
  filter: brightness(0);
}

.partner-caption {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.partner-logo-card:hover .partner-caption {
  color: var(--accent-orange);
}

/* Partners Responsive - Mobile */
@media (max-width: 767px) {
  .partners-section {
    padding: 60px 1.5rem;
  }

  .partners-logos {
    flex-direction: column;
    gap: 24px;
  }

  .partner-logo-card {
    padding: 30px 40px;
  }

  .partner-logo-img {
    max-width: 150px;
  }
}

/* ==========================================
   WHAT WE DO SECTION
   ========================================== */
.what-we-do {
  width: 100%;
  background-color: var(--bg-secondary);
  padding: 120px 3rem;
  transition: var(--theme-transition);
}

.what-we-do-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}

/* ==========================================
   GLOBAL SECTION HEADERS
   ========================================== */

/* Standardized Eyebrow (Label with Line) */
.section-tag,
.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  color: var(--text-bright);
  display: inline-block;
  width: fit-content;
}

.hero-eyebrow,
.eyebrow-line {
  display: none !important;
}

/* Add the orange line automatically for these classes */


/* Ensure consistent Headlines */
.section-headline,
.section-title {
  font-family: 'Syncopate', sans-serif;
  font-size: 54px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-bright);
  margin-bottom: 24px;
  text-align: left;
  letter-spacing: -1px;
}

/* Dual Column Title Layout */
.dual-column-title {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}

.title-column {
  display: flex;
  flex-direction: column;
}

.title-column .headline-solid,
.title-column .headline-gradient {
  display: block;
  line-height: 1.15;
}

@media (max-width: 768px) {
  .dual-column-title {
    gap: 1rem;
  }

  .section-headline,
  .section-title {
    font-size: 36px;
  }
}

/* Ensure consistent Subheads */
.section-subhead,
.section-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 64px;
  max-width: 640px;
  margin-bottom: 64px;
  text-align: left;
}

/* Unified Section Spacing (match Hero) */
.what-we-do,
#products,
.rack-comparison,
#contact {
  padding: 100px 3rem;
  position: relative;
}

/* Header Container Reset - Consistent with Partners/Contact */
.what-we-do-container,
.section-header,
.comparison-header {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

/* Individual Card */
.wwd-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.wwd-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
}

/* Card Number */
.card-number {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-orange);
  margin-bottom: 24px;
}

/* Card Title */
.card-title {
  font-family: 'Syncopate', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 16px;
}

/* Card Description */
.card-description {
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Card Bullets */
.card-bullets {
  margin-top: auto;
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.card-bullets li {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
}

.card-bullets li:last-child {
  border-bottom: none;
}

.bullet-indicator {
  color: var(--accent-orange);
  font-size: 14px;
  font-weight: 600;
  margin-right: 12px;
}

/* Scroll Animation Initial State */
.wwd-card {
  opacity: 0;
  transform: translateY(40px);
}

.wwd-card.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.wwd-card[data-card="1"].animate-in {
  transition-delay: 0ms;
}

.wwd-card[data-card="2"].animate-in {
  transition-delay: 150ms;
}

.wwd-card[data-card="3"].animate-in {
  transition-delay: 300ms;
}

/* Responsive: Tablet */
@media (max-width: 1023px) {
  .what-we-do {
    padding: 80px 2rem;
  }

  .section-headline {
    font-size: 36px;
  }

  .section-subhead {
    margin-bottom: 56px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive: Mobile */
@media (max-width: 767px) {
  .what-we-do {
    padding: 80px 1.5rem;
  }

  .section-headline {
    font-size: 28px;
  }

  .section-subhead {
    font-size: 18px;
  }

  .wwd-card {
    padding: 32px;
  }

  .card-title {
    font-size: 20px;
  }
}

/* ==========================================
   PRODUCTS SECTION
   ========================================== */
#products {
  background: var(--bg-primary);
  transition: var(--theme-transition);
}

.products-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.product-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3rem;
  position: relative;
  transition: var(--theme-transition);
}

.product-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 90, 26, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.server-diagram {
  width: 100%;
}

.server-1u {
  height: 44px;
  background: linear-gradient(180deg, #1a1a22 0%, #12121a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.75rem;
  margin-bottom: 6px;
  position: relative;
}

[data-theme="light"] .server-1u {
  background: linear-gradient(180deg, #d5d0c4 0%, #ccc7bb 100%);
  border-color: rgba(0, 0, 0, 0.1);
}

.server-1u::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-orange);
  border-radius: 4px 0 0 4px;
}

.server-1u .leds {
  display: flex;
  gap: 4px;
}

.server-1u .led-sm {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.server-1u .vents {
  flex: 1;
  display: flex;
  gap: 2px;
  justify-content: center;
}

.server-1u .vent-sm {
  width: 2px;
  height: 24px;
  background: var(--bg-primary);
  border-radius: 1px;
}

.server-1u .model {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: var(--accent-orange);
  background: rgba(255, 90, 26, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.server-1u .ports-sm {
  display: flex;
  gap: 3px;
}

.server-1u .port-sm {
  width: 10px;
  height: 8px;
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1px;
}

[data-theme="light"] .server-1u .port-sm {
  border-color: rgba(0, 0, 0, 0.15);
}

.product-info h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.product-info .tagline {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent-orange);
  margin-bottom: 1.5rem;
}

.product-info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ==========================================
   ANIMATED TABS COMPONENT
   ========================================== */
.animated-tabs-section {
  width: 100%;
  max-width: 1400px;
  /* Match other section containers */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Tabs Navigation Pill - Glass Effect */
/* Tabs Navigation Pill - Glass Effect */
.tabs-nav-container {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  /* Glass morphism effect */
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px;
  border-radius: 9999px;
  /* Pill shape */
  align-self: flex-start;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .tabs-nav-container {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tab-btn {
  position: relative;
  padding: 0.6rem 1.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  z-index: 2;
}

[data-theme="light"] .tab-btn {
  color: rgba(0, 0, 0, 0.5);
}

.tab-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .tab-btn:hover {
  color: rgba(0, 0, 0, 0.8);
}

.tab-btn.active {
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .tab-btn.active {
  color: black;
  text-shadow: none;
}

/* Moving Active Background - Glowing Pill */
/* Moving Active Background - Glowing Pill */
.tab-active-bg {
  position: absolute;
  top: 8px;
  left: 0;
  height: calc(100% - 16px);
  background: rgba(255, 90, 26, 0.3);
  box-shadow:
    0 0 20px rgba(255, 90, 26, 0.4),
    0 0 40px rgba(255, 90, 26, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  border: 1px solid rgba(255, 90, 26, 0.5);
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

[data-theme="light"] .tab-active-bg {
  background: rgba(255, 90, 26, 0.15);
  box-shadow:
    0 0 15px rgba(255, 90, 26, 0.3),
    0 0 30px rgba(255, 90, 26, 0.1);
  border-color: rgba(255, 90, 26, 0.4);
}

/* Content Box - No Box, Clean Look */
.tabs-content-box {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0;
  border: none;
  padding: 3rem 0;
  min-height: 20rem;
  position: relative;
  overflow: visible;
}

[data-theme="light"] .tabs-content-box {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Tab Pane Styling */
.tab-pane {
  display: none;
  width: 100%;
  height: 100%;
}

/* Tab Pane Styling */
.tab-pane {
  display: none;
  width: 100%;
  height: 100%;
}

.tab-pane.active {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  /* Give more space to image */
  gap: 4rem;
  align-items: center;
  animation: tabContentIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Animations */
@keyframes tabContentIn {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(8px);
  }

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

.tab-image {
  width: 100%;
  height: 100%;
  min-height: 400px;
  max-height: 600px;
  /* Allow it to be taller */
  object-fit: cover;
  /* Fill the area */
  border-radius: 1.5rem;
  /* More curved corners */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  /* robust shadow */
  transition: transform 0.5s ease;
}

.tab-image:hover {
  transform: scale(1.02);
}

.tab-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.tab-title {
  font-family: 'Syncopate', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.tab-description {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Reuse existing bullet styles but adjust for this context */
.tab-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tab-bullets li {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.tab-bullets .bullet-indicator {
  color: var(--accent-orange);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {
  .animated-tabs-section {
    max-width: 100%;
  }

  .tab-pane.active {
    grid-template-columns: 1fr;
    /* Stack on mobile */
    gap: 2rem;
  }

  .tab-image {
    max-height: 300px;
  }

  .tabs-nav-container {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    /* Allow Scroll if needed */
  }

  .tab-btn {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

.product-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.spec-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  transition: var(--theme-transition);
}

.spec-box .label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.spec-box .value {
  font-family: 'Space Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-orange);
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.4s ease;
}

.product-card:hover {
  border-color: rgba(255, 90, 26, 0.3);
  transform: translateY(-4px);
}

.product-card.featured {
  border-color: var(--accent-orange);
  position: relative;
}

.product-card.featured::after {
  content: 'MOST POPULAR';
  position: absolute;
  top: 1rem;
  right: -2rem;
  background: var(--accent-orange);
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.25rem 2.5rem;
  transform: rotate(45deg);
}

.product-card-header {
  background: var(--bg-elevated);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  transition: var(--theme-transition);
}

.mini-server {
  width: 100%;
  max-width: 200px;
}

.mini-1u {
  height: 28px;
  background: linear-gradient(180deg, #1a1a22 0%, #12121a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 6px;
  margin-bottom: 4px;
}

[data-theme="light"] .mini-1u {
  background: linear-gradient(180deg, #d5d0c4 0%, #ccc7bb 100%);
  border-color: rgba(0, 0, 0, 0.1);
}

.mini-1u::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 4px var(--accent-green);
}

.mini-1u .mini-vents {
  flex: 1;
  display: flex;
  gap: 2px;
  justify-content: center;
}

.mini-1u .mini-vent {
  width: 1px;
  height: 16px;
  background: var(--bg-primary);
}

.mini-1u .mini-ports {
  display: flex;
  gap: 2px;
}

.mini-1u .mini-port {
  width: 6px;
  height: 5px;
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .mini-1u .mini-port {
  border-color: rgba(0, 0, 0, 0.15);
}

.product-card-body {
  padding: 2rem;
}

.product-card .tier {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.product-card h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.product-card .savings {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-card .savings-icon {
  font-size: 1.2rem;
}

.product-card ul {
  list-style: none;
  margin-bottom: 2rem;
}

.product-card ul li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

.product-card ul li:last-child {
  border-bottom: none;
}

.product-card ul li span {
  font-family: 'Space Mono', monospace;
  color: var(--text-bright);
  font-size: 0.8rem;
}

.product-card .cta {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-card .cta:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
}

.product-card.featured .cta {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
}

/* ==========================================
   VALUE PROPS BANNER
   ========================================== */
.value-banner {
  background: var(--bg-secondary);
  padding: 3rem;
  margin-top: 4rem;
  border: 1px solid var(--border);
  transition: var(--theme-transition);
}

.value-banner-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.value-item {
  text-align: center;
}

.value-item .value-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.value-item .value-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.value-item .value-highlight {
  color: var(--accent-orange);
  font-weight: 700;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
#contact {
  background: var(--bg-secondary);
  padding: 120px 3rem;
  transition: var(--theme-transition);
}

.contact-header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
  margin-bottom: 60px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.team-heading {
  font-family: 'Syncopate', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.team-card {
  text-decoration: none;
  display: block;
}

.team-card-content {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.team-card:hover .team-card-content {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(255, 90, 26, 0.15);
}

.team-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.team-icon svg {
  width: 28px;
  height: 28px;
}

.team-details {
  flex: 1;
}

.team-name {
  font-family: 'Syncopate', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.team-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.team-email {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.team-card:hover .team-email {
  color: var(--accent-green);
}

.team-email svg {
  width: 14px;
  height: 14px;
}

/* ==========================================
   HORIZONTAL TEAM CARDS LAYOUT (No Form)
   ========================================== */
.contact-cards-only {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-cards-only .team-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.team-cards-horizontal {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.team-card-vertical {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
  min-width: 280px;
  max-width: 340px;
}

.team-card-vertical:hover {
  border-color: var(--accent-orange);
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(255, 90, 26, 0.2);
}

/* Solid color photo placeholder */
.team-photo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #ffffff;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Light mode - black placeholder */
[data-theme="light"] .team-photo-placeholder {
  background-color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-card-vertical:hover .team-photo-placeholder {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 90, 26, 0.3);
}

.team-details-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.team-details-vertical .team-name {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.team-details-vertical .team-title {
  font-size: 0.7rem;
  max-width: 240px;
  line-height: 1.5;
}

.team-details-vertical .team-email {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
  .team-cards-horizontal {
    flex-direction: column;
    gap: 2rem;
  }

  .team-card-vertical {
    width: 100%;
    max-width: 100%;
  }
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  transition: var(--theme-transition);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
}

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

.form-submit {
  width: 100%;
  padding: 1.25rem;
  background: var(--accent-orange);
  border: none;
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  box-shadow: 0 10px 40px var(--glow);
  transform: translateY(-2px);
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.glass-footer {
  width: 100%;
  padding: 1.5rem 3rem;
  /* Liquid Glass Effect matching Nav */
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 -8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
  margin-top: auto;
}

[data-theme="light"] .glass-footer {
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 -8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-orange);
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered animations for cards */
.service-card:nth-child(1) {
  transition-delay: 0s;
}

.service-card:nth-child(2) {
  transition-delay: 0.1s;
}

.service-card:nth-child(3) {
  transition-delay: 0.2s;
}

.product-card:nth-child(1) {
  transition-delay: 0s;
}

.product-card:nth-child(2) {
  transition-delay: 0.1s;
}

.product-card:nth-child(3) {
  transition-delay: 0.2s;
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */
@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-tag {
    justify-content: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 4rem;
  }

  .products-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {

  .services-grid,
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .value-banner-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .nav-center {
    gap: 1rem;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  /* Hide 3D on mobile, show fallback image */
  #rack-canvas {
    display: none !important;
  }

  .rack-fallback {
    display: block !important;
  }

  .product-3d-container {
    height: 50vh;
    min-height: 350px;
    max-height: 500px;
  }

  /* Hide rack labels on mobile - show fallback list instead */
  .rack-labels {
    display: none;
  }

  .product-specs-row {
    gap: 1rem;
  }

  .spec-box-large {
    padding: 1.5rem 2rem;
    min-width: 150px;
  }
}

/* Medium screens - smaller labels */
@media (max-width: 1400px) {
  .rack-label.left {
    right: 56%;
  }

  .rack-label.right {
    left: 56%;
  }

  .label-content {
    padding: 0.5rem 0.8rem;
    min-width: 100px;
    max-width: 180px;
  }

  .label-title {
    font-size: 0.75rem;
  }

  .label-desc {
    font-size: 0.7rem;
  }

  .label-fact {
    font-size: 0.65rem;
  }
}

@media (max-width: 1100px) {
  .rack-label.left {
    right: 54%;
  }

  .rack-label.right {
    left: 54%;
  }

  .label-content {
    max-width: 140px;
  }

  .label-title {
    font-size: 0.7rem;
  }
}

/* ==========================================
   LIQUID GRADIENT EFFECT
   ========================================== */
#liquid-gradient-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

#liquidGradientCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Gradient Scheme Controls */
.gradient-scheme-controls {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-scheme-btn {
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.gradient-scheme-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

.gradient-scheme-btn.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #0F172A;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 90, 26, 0.4);
}

.gradient-scheme-btn.active:hover {
  background: var(--accent-orange);
  transform: translateY(-2px);
}

/* Light mode adjustments */
[data-theme="light"] .gradient-scheme-controls {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .gradient-scheme-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .gradient-scheme-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
  color: #0F172A;
}

[data-theme="light"] .gradient-scheme-btn.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gradient-scheme-controls {
    bottom: 6rem;
    gap: 0.5rem;
    padding: 0.4rem;
  }

  .gradient-scheme-btn {
    padding: 0.5rem 1rem;
    font-size: 0.65rem;
  }
}

/* ==========================================
   RACK COMPARISON SECTION
   ========================================== */
.rack-comparison {
  background: var(--bg-secondary);
  padding: 100px 3rem;
  transition: var(--theme-transition);
}

.comparison-container {
  max-width: 1400px;
  margin: 0 auto;
}

.comparison-header {
  text-align: center;
  margin-bottom: 60px;
}

.comparison-header .eyebrow {
  justify-content: center;
}

.comparison-header .section-headline {
  font-family: 'Syncopate', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.comparison-header .section-subhead {
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Comparison Grid */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.comparison-rack {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.comparison-rack:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.comparison-rack.legacy {
  --rack-accent: #4488FF;
}

.comparison-rack.omni {
  --rack-accent: var(--accent-orange);
}

/* Rack Header */
.rack-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rack-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ==========================================
   SOFTWARE STACK SECTION
   ========================================== */
.software-stack-section {
  width: 100%;
  max-width: 100%;
  margin-top: 4rem;
  padding: 0;
}

/* Main two-column grid - diagram aligns with header */
.software-main-grid {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  /* Left column narrower, right column for diagram */
  gap: 3rem;
  align-items: start;
  /* Align both columns to top */
}

/* Left column contains header + bullet points */
.software-left-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Match standard spacing between eyebrow and headline */
.software-left-column .section-tag {
  margin-bottom: 0.5rem;
}

.software-left-column .section-subtitle {
  margin-bottom: 1rem;
}

.software-header {
  text-align: left;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.gatespeed-credit {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  display: block;
}

.gatespeed-highlight {
  color: var(--accent-orange);
  font-weight: 700;
}

.software-content-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.software-points {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 0.5rem;
}

.software-point {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.point-title {
  font-family: 'Syncopate', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.point-title::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-orange);
}

.point-desc {
  font-family: 'Space Mono', monospace;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Software Visual Wrapper - contains image + credit */
.software-visual-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
  margin-top: 8rem;
  /* Push diagram down ~25% to align with content */
}

.software-visual {
  width: 85%;
  /* Reduced by 15% */
  height: auto;
  min-height: 425px;
  /* Reduced from 500px by 15% */
  padding: 0;
  background: transparent;
  border-radius: 1.5rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  /* Clip SVG corners to rounded border */
}

[data-theme="light"] .software-visual {
  background: transparent;
}

.stack-image {
  width: 100%;
  height: 100%;
  min-height: 425px;
  /* Reduced from 500px by 15% */
  object-fit: cover;
  border-radius: 1.5rem;
  /* Rounded corners on the image itself */
  transition: transform 0.3s ease;
}

.software-visual:hover .stack-image {
  transform: translateY(-5px);
}

/* GateSpeed Credit - positioned below image */
.software-visual-wrapper .gatespeed-credit {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
  max-width: 100%;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .software-main-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .software-content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.rack-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.comparison-rack.legacy .rack-icon {
  background: rgba(68, 136, 255, 0.15);
  color: #4488FF;
}

.comparison-rack.omni .rack-icon {
  background: rgba(255, 90, 26, 0.15);
  color: var(--accent-orange);
}

.rack-title {
  font-family: 'Syncopate', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin: 0;
}

.rack-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0 0 0;
}

.rack-badge {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.comparison-rack.legacy .rack-badge {
  background: rgba(68, 136, 255, 0.15);
  color: #4488FF;
  border: 1px solid rgba(68, 136, 255, 0.3);
}

.comparison-rack.omni .rack-badge {
  background: rgba(255, 90, 26, 0.15);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 90, 26, 0.3);
}

/* 3D Canvas Container */
.rack-canvas-container {
  position: relative;
  width: 100%;
  height: 550px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
}


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

/* Module Labels */
.rack-module-labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.module-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(-10px);
  animation: moduleFadeIn 0.5s ease forwards;
}

.module-label.right {
  flex-direction: row-reverse;
  transform: translateX(10px);
}

.module-label:nth-child(1) {
  animation-delay: 0.3s;
}

.module-label:nth-child(2) {
  animation-delay: 0.45s;
}

.module-label:nth-child(3) {
  animation-delay: 0.6s;
}

.module-label:nth-child(4) {
  animation-delay: 0.75s;
}

.module-label:nth-child(5) {
  animation-delay: 0.9s;
}

.module-label:nth-child(6) {
  animation-delay: 1.05s;
}

@keyframes moduleFadeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.module-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rack-accent);
  box-shadow: 0 0 10px var(--rack-accent);
  flex-shrink: 0;
}

.module-line {
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--rack-accent), transparent);
}

.module-label.right .module-line {
  background: linear-gradient(90deg, transparent, var(--rack-accent));
}

.module-tag {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.module-label:hover .module-tag {
  border-color: var(--rack-accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Rack Stats */
.rack-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.rack-stat {
  background: var(--bg-card);
  padding: 20px;
  text-align: center;
}

.stat-number {
  font-family: 'Space Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--rack-accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-desc {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Comparison Summary */
.comparison-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.summary-item {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  background: var(--bg-secondary);
  transition: all 0.3s ease;
}

.summary-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.summary-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(255, 90, 26, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
}

.summary-value {
  font-family: 'Syncopate', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 8px;
}

.summary-label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 1024px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

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

@media (max-width: 768px) {
  .rack-comparison {
    padding: 80px 1.5rem;
  }

  .rack-canvas-container {
    height: 350px;
  }

  .rack-stats {
    grid-template-columns: 1fr;
  }

  .comparison-summary {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .rack-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .module-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .gradient-scheme-controls {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 90%;
    border-radius: 16px;
  }

  .gradient-scheme-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.6rem;
  }
}

/* ==========================================
   PRESS START 2P & HERO TEXT UPDATES
   ========================================== */
.momo-wrapper {
  display: block;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.55em;
  /* Smaller size for pixel font readability */
  margin-top: 12px;
  margin-bottom: 16px;
  /* Better spacing for pixel font */
  line-height: 1.4;
  letter-spacing: 0.05em;
  white-space: nowrap;
  /* Forces text onto one line */
  /* Default value for Dark Mode - Text is White */
  color: #FFFFFF;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* Light Mode Overrides (Scheme 4, light bg) */
[data-theme="light"] .momo-wrapper {
  color: #000000;
  /* Re-Imagining in Black */
}

/* Hero Subhead Updates */
.hero-subhead {
  font-family: 'Space Mono', monospace;
  font-size: 21px;
  /* Increased from 18px (+2 points approx) */
  font-weight: 400;
  line-height: 1.7;
  /* Default Dark Mode: Text is White */
  color: #FFFFFF;
  max-width: 640px;
  margin: 0 auto;
}

.hero-subhead strong {
  /* Default Dark Mode: Highlighted words are Bold and Black */
  font-weight: 700;
  color: #000000;
}

/* Light Mode Overrides for Subhead */
[data-theme="light"] .hero-subhead {
  color: #000000;
  /* Pure Black */
}

[data-theme="light"] .hero-subhead strong {
  color: #FFFFFF;
  /* Highlighted words Bold and White */
}