:root {
  --color-primary: #0066ff;
  --color-primary-dark: #0052cc;
  --color-primary-light: #3385ff;
  --color-bg: #0a0f1a;
  --color-text: #ffffff;
  --color-text-muted: #94a3b8;
  --color-text-secondary: #cbd5e1;
  --color-text-tertiary: #64748b;
  --color-text-primary: #ffffff;
  --color-accent: #60a5fa;
  --color-grid: rgba(96, 165, 250, 0.1);
  --color-surface: rgba(15, 23, 42, 0.95);
  --color-border: rgba(96, 165, 250, 0.1);
  --spacing-unit: 1rem;
}

[data-theme='light'] {
  --color-bg: #ffffff;
  --color-text: #0a0f1a;
  --color-text-muted: #64748b;
  --color-text-secondary: #475569;
  --color-text-tertiary: #94a3b8;
  --color-text-primary: #0a0f1a;
  --color-primary: #0066ff;
  --color-primary-dark: #0052cc;
  --color-primary-light: #3385ff;
  --color-accent: #0066ff;
  --color-grid: rgba(0, 71, 187, 0.08);
  --color-surface: rgba(248, 250, 252, 0.95);
  --color-border: rgba(0, 71, 187, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica',
    'Arial', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0;
  padding: 0;
  position: relative;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Interactive cursor glow */
.cursor-glow {
  position: fixed;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 71, 187, 0.15) 0%,
    rgba(0, 82, 217, 0.08) 25%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  filter: blur(60px);
  mix-blend-mode: screen;
}

[data-theme='light'] .cursor-glow {
  mix-blend-mode: multiply;
  filter: blur(80px);
  opacity: 0.6;
}

@media (hover: none) {
  .cursor-glow {
    display: none;
  }
}

/* Animated grid canvas */
.grid-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Subtle grid background with parallax */
.grid-background {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  transition: background-image 0.3s ease;
}

/* Container - simplified for new layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Theme toggle */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--color-grid);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  color: var(--color-text);
}

.theme-toggle:hover {
  background: var(--color-grid);
  border-color: var(--color-accent);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: inherit;
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme='light'] .theme-toggle .sun-icon {
  display: block;
}

[data-theme='light'] .theme-toggle .moon-icon {
  display: none;
}

/* Feature Icon */
.feature-icon {
  font-size: 2rem;
  filter: grayscale(0.2);
  transition: filter 0.3s ease, transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    padding: 1.5rem 1.5rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.125rem;
  }

  .container {
    padding: 2rem 1.5rem;
  }

  .features {
    gap: 1rem;
  }

  .feature-item {
    min-width: 150px;
    padding: 1rem;
  }

  .footer {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .features {
    flex-direction: column;
  }

  .feature-item {
    width: 100%;
  }

  .cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }
}
