/* ==========================================
   GLENN GUILLOUX - AI SOLUTIONS
   Premium Design System v2.0
   Optimized for performance, accessibility, and UX
   ========================================== */

/* CSS Variables */
:root {
  /* Color System */
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  --bg-card: #161616;
  --bg-hover: #1c1c1c;
  
  --brand: #FF2D2D;
  --brand-hover: #FF4444;
  --brand-glow: rgba(255, 45, 45, 0.4);
  
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-tertiary: #808080;
  
  --accent-blue: #3B82F6;
  --accent-green: #10B981;
  --accent-purple: #8B5CF6;
  
  /* WCAG AA Compliant Colors */
  --brand-wcag: #FF4D4D;
  --text-secondary-wcag: #B8B8B8;
  --text-tertiary-wcag: #949494;
  
  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* Shadows */
  --shadow-glow: 0 0 40px var(--brand-glow);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Styles (Accessibility) */
*:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 10001;
  transition: top var(--transition-fast);
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================
   LOADING SCREEN
   ========================================== */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 45, 45, 0.2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================
   SOUND TOGGLE
   ========================================== */
.sound-toggle {
  position: fixed;
  bottom: var(--space-md);
  left: var(--space-md);
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  cursor: pointer;
  z-index: 999;
  transition: all var(--transition-base);
  font-size: 1.25rem;
}

.sound-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--brand);
  color: var(--brand);
  transform: scale(1.05);
}

.sound-toggle.active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

/* Language Toggle */
.lang-toggle {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 999;
  transition: all var(--transition-base);
  font-weight: 600;
  font-size: 0.875rem;
}

.lang-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ==========================================
   NETWORK CANVAS
   ========================================== */
.network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
}

/* Hide canvas when reduced motion preferred */
@media (prefers-reduced-motion: reduce) {
  .network-canvas {
    display: none;
  }
}

/* ==========================================
   BACKGROUND EFFECTS
   ========================================== */
.premium-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: orbFloat 20s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 45, 45, 0.3), transparent 70%);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
  bottom: -150px;
  right: -150px;
  animation-delay: -5s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(30px, -30px, 0) scale(1.1); }
  66% { transform: translate3d(-20px, 20px, 0) scale(0.9); }
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

/* ==========================================
   SCROLL PROGRESS
   ========================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent-purple));
  z-index: 10000;
  transform-origin: left;
  width: 0%;
  transition: width 0.1s linear;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav-premium {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
}

.nav-premium.scrolled {
  padding: var(--space-xs) var(--space-md);
  background: rgba(5, 5, 5, 0.95);
}

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

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--brand), var(--accent-purple));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

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

.nav-link:hover::after,
.nav-link:focus::after {
  width: 60%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
}

.nav-cta:hover,
.nav-cta:focus {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--space-xl) + 60px) 0 var(--space-xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(255, 45, 45, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero Badge - WCAG AA Compliant */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 45, 45, 0.15);
  border: 1px solid rgba(255, 77, 77, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-wcag);
  margin-bottom: var(--space-md);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}

.title-line {
  display: block;
}

.title-line-accent {
  color: var(--brand);
  text-shadow: 0 0 60px var(--brand-glow);
}

/* Glitch Text Effect - WCAG AA Compliant */
.glitch-text {
  position: relative;
  display: inline-block;
  color: var(--brand-wcag);
}

.glitch-text:hover {
  animation: glitch-skew 0.3s ease-in-out;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.glitch-text:hover::before {
  animation: glitch-anim-1 0.4s linear;
  color: var(--brand);
  z-index: -1;
  opacity: 0.8;
}

.glitch-text:hover::after {
  animation: glitch-anim-2 0.4s linear;
  color: var(--accent-blue);
  z-index: -2;
  opacity: 0.8;
}

@keyframes glitch-skew {
  0% { transform: skew(0deg); }
  20% { transform: skew(-2deg); }
  40% { transform: skew(2deg); }
  60% { transform: skew(-1deg); }
  80% { transform: skew(1deg); }
  100% { transform: skew(0deg); }
}

@keyframes glitch-anim-1 {
  0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  20% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 2px); }
  40% { clip-path: inset(40% 0 40% 0); transform: translate(3px, -2px); }
  60% { clip-path: inset(60% 0 20% 0); transform: translate(-2px, 1px); }
  80% { clip-path: inset(80% 0 0 0); transform: translate(2px, -1px); }
}

@keyframes glitch-anim-2 {
  0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  20% { clip-path: inset(60% 0 20% 0); transform: translate(3px, -2px); }
  40% { clip-path: inset(40% 0 40% 0); transform: translate(-3px, 2px); }
  60% { clip-path: inset(20% 0 60% 0); transform: translate(2px, -1px); }
  80% { clip-path: inset(0 0 80% 0); transform: translate(-2px, 1px); }
}

/* Reduced motion for glitch */
@media (prefers-reduced-motion: reduce) {
  .glitch-text:hover {
    animation: none;
  }
  .glitch-text::before,
  .glitch-text::after {
    display: none;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary-wcag);
  max-width: 480px;
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-glow {
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--brand-glow); }
  50% { box-shadow: 0 0 40px var(--brand-glow), 0 0 60px var(--brand-glow); }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Magnetic Button Effect (CSS-only fallback) */
.magnetic-btn {
  transition: transform 0.2s ease;
}

.magnetic-btn:hover {
  transform: scale(1.02);
}

.magnetic-btn:active {
  transform: scale(0.98);
}

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

.btn-sm {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brand);
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(255, 45, 45, 0.3), transparent 70%);
  z-index: -1;
  filter: blur(40px);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 45, 45, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand);
  animation: scan 3s ease-in-out infinite;
  opacity: 0;
  will-change: transform, opacity;
}

@keyframes scan {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* Reduced motion for scan */
@media (prefers-reduced-motion: reduce) {
  .scan-line {
    animation: none;
    opacity: 0.3;
    top: 50%;
  }
}

.detection-box {
  position: absolute;
  border: 1px solid var(--brand);
  background: rgba(255, 45, 45, 0.1);
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--brand);
  opacity: 0.8;
  border-radius: 4px;
}

@keyframes detection-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.detection-label {
  display: block;
  font-size: 0.75rem;
}

.detection-conf {
  display: block;
  opacity: 0.7;
}

/* Floating Cards */
.floating-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(calc(-50% + var(--x)), calc(-50% + var(--y)), 0);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: var(--shadow-card);
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--delay);
  will-change: transform;
}

@keyframes float {
  0%, 100% { transform: translate3d(calc(-50% + var(--x)), calc(-50% + var(--y)), 0); }
  50% { transform: translate3d(calc(-50% + var(--x)), calc(-50% + var(--y) - 15px), 0); }
}

/* Reduced motion for floating cards */
@media (prefers-reduced-motion: reduce) {
  .float-card {
    animation: none;
  }
}

.float-card i {
  color: var(--brand);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-tertiary);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--text-tertiary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%, 100% { top: 8px; opacity: 1; }
  50% { top: 20px; opacity: 0; }
}

/* ==========================================
   CONTAINER & SECTIONS
   ========================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xl) 0;
}

.section-header {
  margin-bottom: var(--space-lg);
  max-width: 600px;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.section-title span {
  color: var(--text-tertiary);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary-wcag);
  line-height: 1.7;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-section {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

/* Loading Skeleton */
.services-grid.loading {
  pointer-events: none;
}

.services-grid.loading .service-card {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: var(--space-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  transition: all var(--transition-slow);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card:hover,
.service-card:focus-within {
  background: var(--bg-hover);
  border-color: rgba(255, 45, 45, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-content {
  z-index: 2;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 45, 45, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.service-icon i {
  font-size: 1.25rem;
  color: var(--brand);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-description {
  font-size: 0.9375rem;
  color: var(--text-secondary-wcag);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.service-features {
  list-style: none;
  margin-bottom: var(--space-sm);
}

.service-features li {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brand);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.service-link:hover,
.service-link:focus {
  gap: 0.75rem;
}

.service-preview {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-slow);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
}

.service-card:hover .service-preview,
.service-card:focus-within .service-preview {
  opacity: 1;
}

.service-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.preview-overlay {
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.preview-label {
  display: block;
  color: var(--brand);
}

.preview-status {
  display: block;
  color: var(--text-tertiary);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Code Preview */
.code-preview {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: var(--space-sm);
}

.code-keyword {
  color: var(--brand);
}

.code-line {
  margin: 0.25rem 0;
}

.code-line.blink::after {
  content: '|';
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

/* Neural Viz */
.neural-viz {
  position: relative;
  width: 200px;
  height: 200px;
}

.neural-node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--brand);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 72deg)) translateX(60px);
  animation: neural-pulse 2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.2s);
}

@keyframes neural-pulse {
  0%, 100% { transform: translate(-50%, -50%) rotate(calc(var(--i) * 72deg)) translateX(60px) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) rotate(calc(var(--i) * 72deg)) translateX(60px) scale(1.5); opacity: 0.5; }
}

/* Reduced motion for neural viz */
@media (prefers-reduced-motion: reduce) {
  .neural-node {
    animation: none;
    opacity: 0.8;
  }
}

.neural-connections {
  position: absolute;
  inset: 0;
}

/* Data Stream */
.data-stream {
  padding: var(--space-sm);
}

.data-point {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0;
  animation: data-reveal 4s ease-in-out infinite;
  animation-delay: var(--delay);
  will-change: opacity, transform;
}

@keyframes data-reveal {
  0%, 100% { opacity: 0; transform: translate3d(-10px, 0, 0); }
  20%, 80% { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Reduced motion for data stream */
@media (prefers-reduced-motion: reduce) {
  .data-point {
    opacity: 1;
    animation: none;
  }
}

/* ==========================================
   PHILOSOPHY SECTION
   ========================================== */
.philosophy-section {
  background: var(--bg-secondary);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.philosophy-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: var(--space-md);
  position: relative;
  transition: all var(--transition-base);
}

.philosophy-card:hover,
.philosophy-card:focus {
  border-color: rgba(255, 45, 45, 0.3);
  transform: translateY(-4px);
}

.philosophy-number {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 45, 45, 0.1);
  line-height: 1;
}

.philosophy-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  padding-right: 3rem;
}

.philosophy-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary-wcag);
  line-height: 1.7;
}

.tech-stack {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-stack h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
}

.tech-grid {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-sm);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  min-width: 80px;
  transition: all var(--transition-fast);
}

.tech-item:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.tech-item i {
  font-size: 1.5rem;
  color: var(--brand);
}

.tech-item span {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ==========================================
   PROCESS SECTION
   ========================================== */
.process-section {
  background: var(--bg-secondary);
  padding: var(--space-xl) 0;
}

.process-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand), rgba(255, 45, 45, 0.1));
}

.process-step {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 2px solid var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  flex-shrink: 0;
  z-index: 1;
}

.step-content {
  padding-top: 0.75rem;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.9375rem;
  color: var(--text-secondary-wcag);
  line-height: 1.6;
}

/* ==========================================
   AI VISION LAB
   ========================================== */
.lab-section {
  background: var(--bg-primary);
}

.lab-container {
  max-width: 1000px;
  margin: 0 auto;
}

.upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.upload-zone:hover,
.upload-zone:focus {
  border-color: var(--brand);
  background: rgba(255, 45, 45, 0.02);
}

.upload-zone.dragover {
  border-color: var(--brand);
  background: rgba(255, 45, 45, 0.05);
  transform: scale(1.02);
}

.upload-zone:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.upload-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 45, 45, 0.1);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.upload-icon i {
  font-size: 2rem;
  color: var(--brand);
}

.upload-zone h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.upload-zone p {
  color: var(--text-secondary-wcag);
  margin-bottom: var(--space-md);
}

.upload-btn {
  margin-top: var(--space-sm);
}

.upload-processing {
  padding: var(--space-xl) 0;
}

.processing-animation {
  position: relative;
  width: 200px;
  height: 150px;
  margin: 0 auto var(--space-md);
  background: var(--bg-tertiary);
  border-radius: 12px;
  overflow: hidden;
  will-change: transform;
}

.processing-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.grid-overlay {
  position: absolute;
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  background-image:
    linear-gradient(rgba(255, 45, 45, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 45, 45, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .grid-overlay {
    animation: grid-move 3s linear infinite;
  }
}

@keyframes grid-move {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(20px, 20px, 0); }
}

.hidden {
  display: none !important;
}

/* ==========================================
   SHOWCASE SECTION
   ========================================== */
.showcase-section {
  background: var(--bg-secondary);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.showcase-item {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  border-radius: 20px;
  transition: transform var(--transition-base);
}

.showcase-item:hover,
.showcase-item:focus,
.showcase-item:active {
  transform: translateY(-4px);
}

.showcase-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: var(--space-sm);
}

.showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.showcase-item:hover .showcase-image,
.showcase-item:focus .showcase-image,
.showcase-item:active .showcase-image {
  transform: scale(1.05);
}

.showcase-explode {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.showcase-item:hover .showcase-explode,
.showcase-item:focus .showcase-explode,
.showcase-item:active .showcase-explode {
  opacity: 1;
}

.explode-layer {
  position: absolute;
  border: 1px solid var(--brand);
  border-radius: 20px;
  transition: all var(--transition-slow);
}

.layer-1 {
  inset: 0;
}

.layer-2 {
  inset: -10px;
  opacity: 0.5;
}

.layer-3 {
  inset: -20px;
  opacity: 0.25;
}

.showcase-item:hover .layer-2,
.showcase-item:focus .layer-2,
.showcase-item:active .layer-2 {
  transform: scale(1.02);
}

.showcase-item:hover .layer-3,
.showcase-item:focus .layer-3,
.showcase-item:active .layer-3 {
  transform: scale(1.04);
}

.showcase-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.showcase-content p {
  font-size: 0.875rem;
  color: var(--text-secondary-wcag);
  margin-bottom: var(--space-xs);
}

.showcase-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  color: var(--text-tertiary);
}

/* ==========================================
   WORKFLOWS SECTION
   ========================================== */
.workflows-section {
  background: var(--bg-primary);
}

.workflows-preview {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  overflow: hidden;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.dot.red { background: #FF5F57; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #28CA42; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  flex: 1;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-green);
}

.status-indicator .pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.preview-content {
  padding: var(--space-lg);
}

.workflow-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.workflow-cat {
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: var(--space-md);
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.workflow-cat:hover,
.workflow-cat:focus {
  border-color: var(--brand);
  transform: translateY(-4px);
}

.cat-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 45, 45, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
}

.cat-icon i {
  font-size: 1.25rem;
  color: var(--brand);
}

.workflow-cat h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.workflow-cat p {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.resource-usage {
  display: flex;
  gap: var(--space-md);
}

.resource {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.resource-label {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  width: 40px;
}

.resource-bar {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.resource-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
  transition: width 1s ease;
}

.resource-value {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  min-width: 36px;
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonials-section {
  background: var(--bg-secondary);
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: var(--space-lg);
  text-align: center;
}

.testimonial-quote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-secondary-wcag);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  quotes: '"' '"';
}

.testimonial-quote::before {
  content: open-quote;
  color: var(--brand);
  font-size: 2rem;
  margin-right: 0.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
  font-style: normal;
}

.author-role {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
  background: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info-premium {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  color: var(--brand);
}

.contact-details h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 0.25rem;
}

.contact-details p {
  color: var(--text-primary);
  font-size: 1rem;
}

.contact-details a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-details a:hover {
  color: var(--brand);
}

/* Copy Email Link */
.copy-email {
  position: relative;
  cursor: pointer;
}

.copy-email::after {
  content: '📋';
  margin-left: 0.5rem;
  opacity: 0.5;
  font-size: 0.875rem;
}

.copy-email:hover::after {
  opacity: 1;
}

/* AI Chat Widget */
.ai-chat-widget {
  margin-top: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 45, 45, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-weight: 600;
  color: var(--brand);
}

.ai-chat-header i {
  font-size: 1.125rem;
}

.ai-chat-messages {
  padding: var(--space-md);
  max-height: 200px;
  overflow-y: auto;
}

.ai-chat-input {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-chat-input input {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.625rem 1rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
}

.ai-chat-input input:focus {
  outline: none;
  border-color: var(--brand);
}

.ai-chat-input button {
  width: 40px;
  height: 40px;
  background: var(--brand);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ai-chat-input button:hover,
.ai-chat-input button:focus {
  background: var(--brand-hover);
  transform: scale(1.05);
}

/* AI Chat Messages */
.ai-message,
.user-message {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.ai-message {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  margin-right: 10%;
}

.ai-message p {
  margin: 0;
}

.user-message {
  background: rgba(255, 45, 45, 0.1);
  color: var(--text-primary);
  margin-left: 20%;
  text-align: right;
}

.user-message p {
  margin: 0;
}

/* Contact Form */
.contact-form-premium {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary-wcag);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 45, 45, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

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

/* Contact form - specific styles for index.html form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: var(--space-lg);
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.contact-form .form-group {
  margin-bottom: var(--space-md);
}

.contact-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary-wcag);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 45, 45, 0.1);
}

/* Social links in contact section */
.social-links {
  display: flex;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.125rem;
  transition: all var(--transition-base);
  text-decoration: none;
}

.social-link:hover,
.social-link:focus {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  transform: translateY(-2px);
}

/* Live stats in footer */
.live-stats {
  display: flex;
  gap: var(--space-md);
  font-size: 0.75rem;
  margin-top: var(--space-sm);
}

.live-stat {
  display: flex;
  gap: 0.5rem;
}

.live-label {
  color: var(--text-tertiary);
}

.live-value {
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.live-value.status-online {
  color: var(--accent-green);
}

/* Contact details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  color: var(--brand);
}

.contact-item label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 0.25rem;
  display: block;
}

.contact-item a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  transition: color var(--transition-fast);
}

.contact-item a:hover {
  color: var(--brand);
}

.contact-item span {
  color: var(--text-primary);
  font-size: 1rem;
}

/* ==========================================
   TERMINAL SECTION
   ========================================== */
.terminal-section {
  background: var(--bg-secondary);
  padding-bottom: var(--space-xl);
}

.terminal-window {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-tertiary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-title-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.terminal-title-text {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.terminal-clear {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-tertiary);
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.terminal-clear:hover,
.terminal-clear:focus {
  border-color: var(--brand);
  color: var(--brand);
}

.terminal-body {
  padding: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
}

.terminal-output {
  margin-bottom: var(--space-sm);
}

.terminal-line {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  line-height: 1.6;
}

.terminal-command {
  color: var(--text-primary);
}

.terminal-response {
  color: var(--text-secondary-wcag);
}

.terminal-info {
  color: var(--accent-green);
}

.terminal-prompt {
  color: var(--brand);
  font-weight: 600;
  user-select: none;
}

.terminal-text {
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.terminal-text code {
  background: rgba(255, 45, 45, 0.1);
  color: var(--brand);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.terminal-input-line {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  outline: none;
}

.terminal-input::placeholder {
  color: var(--text-tertiary);
}

/* ==========================================
   ANALYSIS RESULT
   ========================================== */
.analysis-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.result-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detection-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bbox {
  position: absolute;
  border: 2px solid var(--brand);
  background: rgba(255, 45, 45, 0.1);
  border-radius: 4px;
  opacity: 0.8;
}

.bbox-label {
  position: absolute;
  top: -24px;
  left: 0;
  background: var(--brand);
  color: white;
  font-size: 0.625rem;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.result-details h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.analysis-metrics {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.metric {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: var(--space-sm);
  text-align: center;
  flex: 1;
}

.metric-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 0.25rem;
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.analysis-insights {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.analysis-insights h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.analysis-insights ul {
  list-style: none;
}

.analysis-insights li {
  font-size: 0.875rem;
  color: var(--text-secondary-wcag);
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.analysis-insights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
}

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

/* ==========================================
   FOOTER
   ========================================== */
.footer-premium {
  padding: var(--space-xl) 0 var(--space-md);
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  color: var(--text-secondary-wcag);
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: var(--space-md);
}

.social-links {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.125rem;
  transition: all var(--transition-base);
  text-decoration: none;
}

.social-link:hover,
.social-link:focus {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  transform: translateY(-2px);
}

.live-stats {
  display: flex;
  gap: var(--space-md);
  font-size: 0.75rem;
}

.live-stat {
  display: flex;
  gap: 0.5rem;
}

.live-label {
  color: var(--text-tertiary);
}

.live-value {
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.live-value.status-online {
  color: var(--accent-green);
}

.footer-column h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary-wcag);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-bottom .location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.console-hint {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: var(--space-xs);
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: var(--space-md);
  right: calc(var(--space-md) + 60px);
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 999;
  transition: all var(--transition-base);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  transform: translateY(-4px);
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
.toast-notification {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10001;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  border-color: var(--accent-green);
}

.toast-success i {
  color: var(--accent-green);
}

.toast-error {
  border-color: var(--brand);
}

.toast-error i {
  color: var(--brand);
}

.toast-info i {
  color: var(--accent-blue);
}

/* ==========================================
   KONAMI MESSAGE
   ========================================== */
.konami-message {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.konami-message.active {
  opacity: 1;
  visibility: visible;
}

.konami-content {
  background: var(--bg-card);
  border: 1px solid rgba(255, 45, 45, 0.3);
  border-radius: 24px;
  padding: var(--space-xl);
  text-align: center;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.konami-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--brand);
}

.konami-content p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.konami-hint {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: var(--space-sm);
}

.konami-hint code {
  background: var(--bg-tertiary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  color: var(--brand);
}

/* ==========================================
   REVEAL ANIMATIONS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Reduced motion for reveals */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .services-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  
  .workflow-categories {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Mobile Navigation */
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    padding: 12px 16px;
    border-radius: 8px;
  }
  
  .nav-link:hover {
    background: rgba(255, 45, 45, 0.1);
  }
  
  .nav-cta {
    margin-top: 8px;
    justify-content: center;
  }
  
  /* Hero adjustments */
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .stat-divider {
    display: none;
  }
  
  /* Floating cards adjustment */
  .float-card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    animation: none;
    margin-bottom: 0.5rem;
  }
  
  .floating-cards {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  /* Showcase grid */
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  
  /* Workflows */
  .workflow-categories {
    grid-template-columns: 1fr;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .live-stats {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  /* Fixed buttons adjustment */
  .sound-toggle {
    bottom: var(--space-sm);
    left: var(--space-sm);
  }
  
  .lang-toggle {
    bottom: var(--space-sm);
    right: var(--space-sm);
  }
  
  .back-to-top {
    display: none;
  }
  
  /* AI Chat */
  .ai-chat-widget {
    margin-top: var(--space-md);
  }
  
  /* Analysis result mobile */
  .analysis-result {
    grid-template-columns: 1fr;
  }
  
  .analysis-metrics {
    flex-wrap: wrap;
  }
  
  /* Philosophy grid mobile */
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  
  /* Process timeline mobile */
  .timeline-line {
    left: 20px;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }
  
  .process-step {
    gap: var(--space-sm);
  }
}

/* ==========================================
   REDUCED MOTION (Accessibility)
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .scroll-progress {
    display: none;
  }
  
  .gradient-orb {
    animation: none;
  }
  
  .network-canvas {
    display: none;
  }
}

/* ==========================================
   HIGH CONTRAST MODE
   ========================================== */
@media (prefers-contrast: high) {
  :root {
    --brand: #FF0000;
    --text-secondary: #CCCCCC;
    --text-tertiary: #999999;
    --bg-card: #000000;
  }
  
  .hero-badge,
  .service-card,
  .showcase-item,
  .contact-form-premium,
  .terminal-window {
    border-width: 2px;
  }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
  .nav-premium,
  .scroll-progress,
  .sound-toggle,
  .lang-toggle,
  .back-to-top,
  .terminal-section,
  .ai-chat-widget,
  .scroll-indicator,
  .network-canvas,
  .premium-bg,
  .konami-message {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  a {
    text-decoration: underline;
    color: black;
  }
  
  .service-card,
  .showcase-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}