:root {
  --bg-light: #F8FAFC;
  --bg-card: rgba(255, 255, 255, 0.72);
  --border-light: rgba(255, 255, 255, 0.85);
  --text-main: #0F172A;
  --text-muted: #64748B;
  --accent-sky: #0284C7;
  --accent-glow: rgba(14, 165, 233, 0.25);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #F8FAFC;
  /* Subtle, ultra-soft engineering dot-matrix grid */
  background-image: radial-gradient(rgba(148, 163, 184, 0.13) 1px, transparent 1px);
  background-size: 28px 28px;
  color: #1E293B;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* iOS Safari prevent auto-zoom on input focus */
@media (max-width: 640px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Defensive SVG sizing */
svg {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  flex-shrink: 0;
}

/* Luxury Light Glassmorphism Navigation */
.glass-nav {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 
              0 0 0 1px rgba(226, 232, 240, 0.6),
              inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Luxury Light Glassmorphism Panels */
.glass-panel {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05),
              0 0 0 1px rgba(226, 232, 240, 0.7),
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
}

.glass-button {
  background: #0F172A;
  color: #FFFFFF !important;
  border: 1px solid rgba(15, 23, 42, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.25);
}

.glass-button:hover {
  background: #1E293B;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.35);
  transform: translateY(-1.5px);
}

.glass-button-secondary {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  color: #0F172A;
  border: 1px solid rgba(203, 213, 225, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px 0 rgba(15, 23, 42, 0.04), inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
}

.glass-button-secondary:hover {
  background: #FFFFFF;
  border-color: #94A3B8;
  color: #0284C7;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.08);
}

.glass-card-hover {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(14, 165, 233, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -12px rgba(14, 165, 233, 0.15), 
              0 0 0 1px rgba(14, 165, 233, 0.35),
              inset 0 1px 2px 0 rgba(255, 255, 255, 1);
}

/* Animations */
@keyframes pulse-slow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

.animate-blob {
  animation: pulse-slow 8s infinite alternate;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Canvas Background */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
