/* ==========================================
   CYBERSENTINELLE AI - DESIGN SYSTEM 2024
   Modern, Professional, User-Friendly
   ========================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* ==========================================
   DESIGN TOKENS - MODERN COLOR SYSTEM
   ========================================== */

:root {
  /* Primary Colors - AI Futuristic Electric */
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-400: #00bcd4;
  --primary-500: #0099ff;
  --primary-600: #0066cc;
  --primary-700: #004499;
  --primary-800: #002266;
  --primary-900: #001133;
  
  /* AI Neon Colors */
  --neon-blue: #00f5ff;
  --neon-purple: #8a2be2;
  --neon-green: #39ff14;
  --electric-blue: #0080ff;

  /* Secondary Colors - AI Purple Gradient */
  --secondary-50: #faf5ff;
  --secondary-100: #f3e8ff;
  --secondary-500: #a855f7;
  --secondary-600: #9333ea;
  --secondary-700: #7c3aed;

  /* Accent Colors - Electric Orange */
  --accent-50: #fff7ed;
  --accent-100: #ffedd5;
  --accent-500: #ff6b35;
  --accent-600: #ea580c;

  /* Neutral Colors - Sophisticated Grays */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Semantic Colors */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-light: var(--gray-400);
  --text-white: #ffffff;

  --bg-primary: #ffffff;
  --bg-secondary: var(--gray-50);
  --bg-dark: var(--gray-900);

  /* Spacing Scale - 8pt Grid */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
}

/* ==========================================
   TYPOGRAPHY SYSTEM
   ========================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.heading-1 {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.heading-2 {
  font-size: var(--text-4xl);
  font-weight: 700;
}

.heading-3 {
  font-size: var(--text-3xl);
  font-weight: 600;
}

.heading-4 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

.text-lead {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-body {
  font-size: var(--text-base);
  line-height: 1.6;
}

.text-small {
  font-size: var(--text-sm);
  color: var(--text-light);
}

/* ==========================================
   COMPONENT SYSTEM
   ========================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: #ffffff !important;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(255, 107, 53, 0.6);
  background: linear-gradient(135deg, var(--neon-blue), var(--electric-blue));
  color: #ffffff !important;
  border: 2px solid var(--neon-blue);
  animation: buttonPulse 0.6s ease-in-out;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-500), var(--secondary-600));
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-outline {
  background: transparent;
  color: var(--neon-blue);
  border: 2px solid var(--neon-blue);
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.btn-outline:hover {
  background: var(--neon-blue);
  color: var(--text-white);
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.5);
  transform: translateY(-2px);
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-outline:hover::before {
  left: 100%;
}

.btn-lg {
  padding: var(--space-5) var(--space-16);
  font-size: var(--text-xl);
  min-width: 240px;
  height: 60px;
}

/* Cards */
.card {
  background: var(--bg-primary);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-8);
  transition: all var(--transition-base);
  border: 1px solid var(--gray-200);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--neon-blue), var(--electric-blue));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  box-shadow: 0 8px 25px rgba(0, 153, 255, 0.3);
  animation: iconGlow 3s ease-in-out infinite alternate;
}

.card-icon i {
  font-size: var(--text-2xl);
  color: var(--text-white);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes iconGlow {
  from {
    box-shadow: 0 8px 25px rgba(0, 153, 255, 0.3);
  }
  to {
    box-shadow: 0 8px 35px rgba(0, 245, 255, 0.6);
  }
}

/* ==========================================
   LAYOUT SYSTEM
   ========================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

.section-alt {
  background: var(--bg-secondary);
}

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.max-w-4xl {
  max-width: 56rem;
  margin: 0 auto;
}

.max-w-2xl {
  max-width: 42rem;
  margin: 0 auto;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all var(--transition-base);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.navbar-brand img {
  height: 40px;
  margin-right: var(--space-3);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.navbar-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-base);
  position: relative;
}

.navbar-link.btn.btn-primary {
  color: #ffffff !important;
  font-weight: 600;
}

.navbar-link:hover {
  color: var(--primary-600);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-600);
  transition: width var(--transition-base);
}

.navbar-link:hover::after {
  width: 100%;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  background: linear-gradient(135deg, 
    var(--primary-900) 0%, 
    var(--primary-800) 25%, 
    var(--secondary-700) 75%, 
    var(--neon-purple) 100%);
  color: var(--text-white);
  padding: var(--space-24) 0 var(--space-20);
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  animation: gradientShift 8s ease-in-out infinite;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 245, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 153, 255, 0.2) 0%, transparent 50%);
  opacity: 0.8;
  animation: particleFloat 12s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circuit" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 0 10 L 10 10 L 10 0 M 10 10 L 20 10 M 10 10 L 10 20" fill="none" stroke="rgb(0,245,255)" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100%" height="100%" fill="url(%23circuit)"/></svg>');
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  margin-bottom: var(--space-6);
  text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
  animation: textGlow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
  margin-bottom: var(--space-10);
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

/* ==========================================
   SECTIONS
   ========================================== */

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-subtitle {
  max-width: 600px;
  margin: 0 auto;
}

/* Value Proposition */
.value-prop {
  text-align: center;
  padding: var(--space-4);
}

.value-prop-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  color: var(--primary-600);
}

.value-prop-title {
  margin-bottom: var(--space-3);
}

/* Process Steps */
.process-step {
  position: relative;
  text-align: center;
  padding: var(--space-6);
}

.process-number {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: var(--text-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 auto var(--space-6);
}

/* Stats */
.stat {
  text-align: center;
  padding: var(--space-6);
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--primary-600);
  margin-bottom: var(--space-2);
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  text-align: center;
}

.footer-text {
  margin-bottom: var(--space-2);
}

.footer-link {
  color: var(--primary-400);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--primary-300);
}

/* ==========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ========================================== */

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.25rem;
    --text-4xl: 1.875rem;
    --space-20: 3rem;
    --space-24: 4rem;
  }

  .navbar-container {
    flex-direction: column;
    gap: var(--space-4);
  }

  .navbar-menu {
    gap: var(--space-6);
  }

  .hero {
    padding: var(--space-16) 0 var(--space-12);
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 var(--space-4);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--text-3xl);
  }

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

  .card {
    padding: var(--space-6);
  }
}

/* ==========================================
   ANIMATIONS & MICRO-INTERACTIONS
   ========================================== */

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes gradientShift {
  0%, 100% {
    background: linear-gradient(135deg, 
      var(--primary-900) 0%, 
      var(--primary-800) 25%, 
      var(--secondary-700) 75%, 
      var(--neon-purple) 100%);
  }
  50% {
    background: linear-gradient(135deg, 
      var(--secondary-700) 0%, 
      var(--neon-purple) 25%, 
      var(--primary-800) 75%, 
      var(--neon-blue) 100%);
  }
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(10px) translateY(-5px);
  }
  50% {
    transform: translateX(-5px) translateY(-10px);
  }
  75% {
    transform: translateX(-10px) translateY(5px);
  }
}

@keyframes textGlow {
  from {
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
  }
  to {
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.8), 0 0 40px rgba(138, 43, 226, 0.3);
  }
}

@keyframes buttonPulse {
  0% {
    transform: translateY(-3px) scale(1.05);
  }
  50% {
    transform: translateY(-3px) scale(1.08);
  }
  100% {
    transform: translateY(-3px) scale(1.05);
  }
}

.animate-slide-up {
  animation: slideInUp 0.6s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

/* Scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

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

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Focus states for accessibility */
.btn:focus,
.navbar-link:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  .hero {
    display: none;
  }
  
  body {
    color: black;
    background: white;
  }
}