/* ============================================
   ENTERPRISE INFRASTRUCTURE DESIGN SYSTEM
   Upgraded for Premium Dark SaaS & Neon Illumination
   ============================================ */

:root {
  --primary: #1f6250;
  --primary-light: #2a856d;
  --primary-dark: #123b30;
  --accent: #C4806B;
  --accent-light: #e09882;
  --accent-dark: #9e6453;
  
  --white: #FFFFFF;
  --gray-50: #FBFBF9;
  --gray-100: #F5F4F0;
  --gray-200: #E8E6DE;
  --gray-300: #D1CEC4;
  --gray-400: #A8A498;
  --gray-500: #7A7670;
  --gray-600: #5C5854;
  --gray-700: #3E3B38;
  --gray-800: #2A2725;
  --gray-900: #1A1816;
  
  --success: #3B7A4E;
  --warning: #D4953A;
  --danger: #C44B3C;
  --info: #4A7BA7;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --text-2xs: 0.65rem;
  --text-xs: 0.72rem;
  --text-sm: 0.8rem;
  --text-base: 0.88rem;
  --text-md: 0.94rem;
  --text-lg: 1.05rem;
  --text-xl: 1.2rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.8rem;
  --text-5xl: 3.6rem;
  
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;
  --space-5xl: 96px;
  
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-2xl: 12px;
  
  --border-thin: 1px solid var(--gray-200);
  --border-medium: 1px solid var(--gray-300);
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
  
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  --neon-glow: 0 0 20px rgba(31, 98, 80, 0.3);
}

[data-theme="dark"] {
  --white: #0d0b0a;
  --gray-50: #141210;
  --gray-100: #1a1816;
  --gray-200: #211f1c;
  --gray-300: #2d2a26;
  --gray-400: #4a4641;
  --gray-500: #827d75;
  --gray-600: #b0aca5;
  --gray-700: #ccc8c2;
  --gray-800: #e0dcd6;
  --gray-900: #f0ece6;
  
  --border-thin: 1px solid rgba(255, 255, 255, 0.05);
  --border-medium: 1px solid rgba(255, 255, 255, 0.1);
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.5);
  --shadow-md: 0 8px 16px rgba(0,0,0,0.6);
  --shadow-lg: 0 16px 32px rgba(0,0,0,0.7);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--gray-600);
  font-size: var(--text-sm);
  line-height: 1.65;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s ease;
  position: relative;
}

/* Ambient Lighting Blobs */

.blob-1 {
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: var(--primary);
}

.blob-2 {
  top: 40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: var(--accent);
}

.blob-3 {
  bottom: 10%;
  right: 10%;
  width: 700px;
  height: 700px;
  background: var(--primary-light);
}

::selection {
  background: var(--primary);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gray-50);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  position: relative;
  z-index: 2;
}

/* Interactive Node Graph Background Canvas */
#nodeCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ============================================
   NAVIGATION & SCROLL PROGRESS & MEGA MENU
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: rgba(251, 251, 249, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: var(--border-thin);
  transition: all var(--transition-base);
}

[data-theme="dark"] .navbar {
  background: rgba(13, 11, 10, 0.7);
}

.scroll-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 1001;
  transition: width 0.1s linear;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-logo {
  position: absolute;
  left: var(--space-xl);
  font-weight: 800;
  color: var(--gray-900);
  text-decoration: none;
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.03em;
}

.nav-logo-icon {
  background: var(--primary);
  color: var(--white);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.1);
  border: var(--border-thin);
  border-radius: 5px;
  padding: 4px 6px;
}

[data-theme="dark"] .nav-menu {
  background: rgba(255, 255, 255, 0.03);
}

.nav-item-wrapper {
  position: relative;
}

.nav-link {
  padding: 6px 16px;
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  font-size: var(--text-xs);
  border-radius: 5px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: block;
}

.nav-link:hover {
  color: var(--white);
  background: var(--primary);
}

.nav-link.active {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Mega Dropdown Panel Style */
.mega-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 560px;
  background: rgba(255, 255, 255, 0.95);
  border: var(--border-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  backdrop-filter: blur(16px);
}

[data-theme="dark"] .mega-menu-panel {
  background: rgba(20, 18, 16, 0.95);
}

.nav-item-wrapper:hover .mega-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-item {
  display: flex;
  gap: var(--space-md);
  text-decoration: none;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mega-menu-item:hover {
  background: var(--gray-100);
}

.mega-menu-icon {
  color: var(--primary);
  font-size: 14px;
  margin-top: 2px;
}

.mega-menu-info h4 {
  font-size: var(--text-xs);
  color: var(--gray-900);
  font-weight: 600;
  margin-bottom: 2px;
}

.mega-menu-info p {
  font-size: var(--text-2xs);
  color: var(--gray-500);
  line-height: 1.4;
}

.nav-right {
  position: absolute;
  right: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: var(--border-thin);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 13px;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 14px rgba(31, 98, 80, 0.4);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 98, 80, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: var(--border-medium);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(31, 98, 80, 0.05);
}

.btn-lg {
  padding: 12px 28px;
  font-size: var(--text-sm);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--text-xl);
  color: var(--gray-700);
  cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding: 100px 0px 100px 100px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-blend-text {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 900;
  color: var(--primary);
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.04;
  transition: transform 0.1s ease-out, color 0.3s ease;
  will-change: transform;
}

[data-theme="dark"] .hero-blend-text {
  color: var(--gray-300);
  opacity: 0.1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-xl);
  padding: 6px 14px;
  background: rgba(31, 98, 80, 0.1);
  border: 1px solid rgba(31, 98, 80, 0.2);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.hero-label-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--accent);
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.05;
  color: var(--gray-900);
  margin-bottom: var(--space-xl);
  letter-spacing: -0.04em;
}

.hero-title-emphasis {
  background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  padding-right: 5px;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: var(--text-md);
  color: var(--gray-500);
  margin-bottom: var(--space-2xl);
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.hero-visual-wrapper {
  position: relative;
  perspective: 1000px;
}

.hero-svg {
  width: 100%;
  height: auto;
  min-height: 450px;
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-visual-wrapper:hover .hero-svg {
  transform: rotateY(0deg) rotateX(0deg);
}

.hero-status {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: rgba(251, 251, 249, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-xl);
  transform: translateZ(30px);
  transition: transform 0.3s ease;
  width: 320px;
}

[data-theme="dark"] .hero-status {
  background: rgba(20, 18, 16, 0.85);
}

.hero-status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: var(--border-thin);
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: statusPulse 2s infinite;
}

.hero-status-title {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.hero-status-item {
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
}

.hero-status-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.hero-status-value {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--gray-900);
}

.hero-status-sub {
  font-size: 9px;
  color: var(--success);
  margin-top: 4px;
}

/* Brands Section */
.brands-trust {
  padding: var(--space-xl) 0 var(--space-3xl);
  position: relative;
  z-index: 2;
}

.brands-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 3rem;
  opacity: 0.85;
}

.brand-item {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gray-500);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.brand-item i {
  font-size: 1.4rem;
  color: var(--gray-600);
  transition: color 0.3s ease;
}

.brand-item:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.brand-item:hover i {
  color: var(--primary-light);
}

/* Stats with Sparkline */
.stats-section {
  position: relative;
  z-index: 10;
  margin: 0;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,0.02);
  border: var(--border-thin);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
}

.stat-item {
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  border-right: var(--border-thin);
  transition: all var(--transition-base);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  background: rgba(255,255,255,0.04);
}

.stat-value {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sparkline-svg {
  width: 100px;
  height: 24px;
  margin: var(--space-sm) auto 0;
  display: block;
}

.sparkline-polyline {
  fill: none;
  stroke: var(--primary-light);
  stroke-width: 1.5;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 2.5s ease-out forwards;
}

.stat-item:hover .sparkline-polyline {
  stroke: var(--accent-light);
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* Sections */
.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section-alt {
  background: rgba(0,0,0,0.2);
  border-top: var(--border-thin);
  border-bottom: var(--border-thin);
}

.section-header {
  margin-bottom: var(--space-4xl);
}

.section-header-centered {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-4xl);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-md);
  display: block;
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 480px;
}

/* Module Cards */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
  position: relative;
  z-index: 2;
}

.module-card {
  background: var(--white);
  border: var(--border-thin);
  border-radius: var(--radius-xl);
  padding: 0;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  border-color: rgba(31, 98, 80, 0.5);
}

.module-card::before {
  content: '';
  position: absolute;
  inset: 0;
  /* background: radial-gradient(500px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(31, 98, 80, 0.12), transparent 60%); */
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.module-card:hover::before {
  opacity: 1;
}

.module-image-header {
  width: 100%;
  height: 160px;
  position: relative;
  overflow: hidden;
  border-bottom: var(--border-thin);
}

.module-image-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(60%) contrast(1.2);
  transition: transform 0.5s, filter 0.5s;
}

.module-card:hover .module-image-header img {
  transform: scale(1.05);
  filter: grayscale(0%) contrast(1.1);
}

.module-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--white) 100%);
}

.module-content {
  padding: var(--space-xl);
  position: relative;
  z-index: 2;
  flex-grow: 1;
}

.module-icon {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border: var(--border-medium);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--primary-light);
  margin-top: -40px;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 3;
  box-shadow: var(--shadow-sm);
}

.module-card h3 {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.module-card p {
  font-size: var(--text-xs);
  color: var(--gray-500);
  line-height: 1.6;
}

/* Industries Masonry */
.industries-section {
  position: relative;
  overflow: hidden;
}

.industries-pattern-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

.industries-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  position: relative;
  z-index: 2;
}

.industry-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 380px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
  isolation: isolate;
}

.industry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 10;
}

.industry-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: grayscale(30%);
}

.industry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 10, 0.1) 0%, rgba(13, 11, 10, 0.7) 50%, rgba(13, 11, 10, 0.98) 100%);
  z-index: 1;
  transition: background var(--transition-slow);
}

.industry-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.industry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transform: translateY(-10px);
  opacity: 0.8;
  transition: all var(--transition-base);
}

.industry-icon {
  width: 48px;
  height: 48px;
  background: rgba(31, 98, 80, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(31, 98, 80, 0.4);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary-light);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.industry-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: #ffffff;
  opacity: 0;
  transform: translateY(-5px);
  transition: all var(--transition-base);
}

.industry-text {
  transform: translateY(35px);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.industry-card h3 {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
}

.industry-card p {
  font-size: var(--text-sm);
  color: var(--gray-400);
  line-height: 1.6;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.industry-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-lg);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent-light);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.industry-card:hover {
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
  border-color: rgba(31, 98, 80, 0.6);
}

.industry-card:hover::before {
  opacity: 1;
}

.industry-card:hover .industry-bg {
  transform: scale(1.08);
  filter: grayscale(0%);
}

.industry-card:hover .industry-overlay {
  background: linear-gradient(180deg, rgba(13, 11, 10, 0.2) 0%, rgba(31, 98, 80, 0.8) 70%, rgba(13, 11, 10, 0.98) 100%);
}

.industry-card:hover .industry-header {
  transform: translateY(0);
  opacity: 1;
}

.industry-card:hover .industry-badge {
  opacity: 1;
  transform: translateY(0);
}

.industry-card:hover .industry-text {
  transform: translateY(0);
}

.industry-card:hover p {
  opacity: 1;
  max-height: 120px;
  margin-top: var(--space-sm);
  color: rgba(255, 255, 255, 0.9);
}

.industry-card:hover .industry-link {
  opacity: 1;
  transform: translateX(0);
}

.industry-card.span-2 {
  grid-column: span 2;
}

/* Testimonials */
.testimonial-slider {
  overflow: visible !important;
  padding: 10px 0 40px !important;
}

.testimonial-card {
  background: var(--white);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  height: 100%;
}

.testimonial-card p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--space-xl);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.testimonial-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-900);
}

.testimonial-role {
  font-size: var(--text-2xs);
  color: var(--gray-400);
}

/* CTA Section */
.cta-section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.cta-wrapper {
  background: var(--primary-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-5xl) var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

.cta-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  mix-blend-mode: screen;
  pointer-events: none;
}

.cta-wrapper h2 {
  position: relative;
  z-index: 2;
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-wrapper p {
  position: relative;
  z-index: 2;
  font-size: var(--text-md);
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background: white;
  color: var(--primary-dark);
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--space-4xl) 0 var(--space-2xl);
  transition: background 0.3s ease;
  position: relative;
  z-index: 2;
}

[data-theme="dark"] .footer {
  background: #090807;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul li a {
  font-size: var(--text-xs);
  color: var(--gray-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer ul li a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  font-size: var(--text-2xs);
  color: var(--gray-500);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 11px;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
}

/* 3D Topology Container */
#topology-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  border-radius: 12px;
  margin: 0 auto;
  background: transparent;
  cursor: grab;
}

#topology-container:active {
  cursor: grabbing;
}

#topology-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0d0b0a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  width: 100%;
  max-width: 500px;
  padding: var(--space-xl);
  font-family: var(--font-mono);
  color: var(--primary-light);
  text-align: left;
}

.preloader-cli {
  font-size: var(--text-xs);
  line-height: 1.5;
  margin-bottom: var(--space-lg);
  height: 120px;
  overflow: hidden;
}

.preloader-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: preloaderSpin 0.8s linear infinite;
}

@keyframes preloaderSpin {
  to { transform: rotate(360deg); }
}

body.loading {
  overflow: hidden;
}

body.loading .navbar,
body.loading .hero,
body.loading main {
  opacity: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin: 0 auto var(--space-2xl);
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual-wrapper {
    max-width: 600px;
    margin: 0 auto;
  }
  .hero-status {
    position: relative;
    bottom: auto;
    left: auto;
    margin: -40px auto 0;
    transform: none;
    width: 100%;
    max-width: 400px;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .industries-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
  .industry-card.span-2 {
    grid-column: auto;
  }
  #topology-container {
    height: 450px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .industries-masonry {
    grid-template-columns: 1fr;
  }
  .modules-grid {
    grid-template-columns: 1fr;
  }
  #topology-container {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .stats-bar {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  #topology-container {
    height: 300px;
  }
}

/* Theme-aware SVG styling */
.hero-svg path,
.hero-svg circle,
.hero-svg line {
  transition: all 0.3s ease;
}