/*
╔══════════════════════════════════════════════════════════════╗
║  SKYNETLABS DESIGN SYSTEM                                     ║
║  Professional SaaS Design Language                            ║
║  Version: 2025.2.0                                            ║
╚══════════════════════════════════════════════════════════════╝
*/

/* Font Import - Lexend Professional */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   🎨 COLOR SYSTEM
   ============================================ */

:root {
  /* Primary Brand Colors - PROFESSIONAL SAAS THEME */
  --skynet-dark: #100f14;
  --skynet-darker: #030208;
  --skynet-deepest: #000000;
  --skynet-surface: #1f1f23;
  --skynet-surface-alt: #29282d;

  --skynet-primary: #13b973;      /* Professional Green */
  --skynet-primary-glow: rgba(19, 185, 115, 0.3);
  --skynet-primary-dark: #0f9e61;
  --skynet-primary-light: #1ed17f;

  /* Neutral Palette */
  --gray-950: #0a0a0b;
  --gray-900: #1a1a1c;
  --gray-800: #29282d;
  --gray-700: #353539;
  --gray-600: #464646;
  --gray-500: #6e6e73;
  --gray-400: #98989d;
  --gray-300: #c6c7c6;
  --gray-200: #e5e5e5;
  --gray-100: #f7f7f7;

  /* Gradient System - PROFESSIONAL */
  --gradient-primary: linear-gradient(135deg, #13b973 0%, #0f9e61 100%);
  --gradient-primary-hover: linear-gradient(135deg, #1ed17f 0%, #13b973 100%);
  --gradient-dark: linear-gradient(180deg, #030208 0%, #100f14 100%);
  --gradient-surface: linear-gradient(135deg, #1f1f23 0%, #2e2d35 100%);
  --gradient-subtle: linear-gradient(180deg, rgba(19, 185, 115, 0.05) 0%, transparent 100%);

  /* Radial Glows - SUBTLE PROFESSIONAL */
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(19, 185, 115, 0.15) 0%, transparent 70%);
  --gradient-glow-large: radial-gradient(ellipse at center,
    rgba(19, 185, 115, 0.1) 0%,
    transparent 60%);

  /* Mesh Background - SUBTLE DEPTH */
  --gradient-mesh:
    radial-gradient(at 20% 30%, rgba(19, 185, 115, 0.08) 0px, transparent 50%),
    radial-gradient(at 80% 70%, rgba(19, 185, 115, 0.05) 0px, transparent 50%);

  /* Neutral Colors */
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #E9ECEF;
  --gray-200: #DEE2E6;
  --gray-300: #CED4DA;
  --gray-400: #ADB5BD;
  --gray-500: #6C757D;
  --gray-600: #495057;
  --gray-700: #343A40;
  --gray-800: #1A1D2E;
  --gray-900: #0D1117;

  /* Semantic Colors */
  --success: #00FF88;
  --success-glow: rgba(0, 255, 136, 0.3);
  --warning: #FFB800;
  --warning-glow: rgba(255, 184, 0, 0.3);
  --error: #FF4757;
  --error-glow: rgba(255, 71, 87, 0.3);
  --info: #00D4FF;
  --info-glow: rgba(0, 212, 255, 0.3);

  /* Glass Morphism */
  --glass-bg: rgba(26, 29, 46, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(20px);

  /* Shadows - PROFESSIONAL DEPTH */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.6);

  /* Subtle Glow Effects - Professional */
  --shadow-glow-primary: 0 0 20px var(--skynet-primary-glow);
  --shadow-glow-subtle: 0 0 30px rgba(19, 185, 115, 0.2);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 255, 255, 0.05);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 1px rgba(19, 185, 115, 0.3);

  /* ============================================
     📝 TYPOGRAPHY SYSTEM
     ============================================ */

  /* Font Families - PROFESSIONAL */
  --font-display: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Courier New', monospace;

  /* Font Sizes - Professional Scale */
  --text-hero: clamp(48px, 6vw, 68px);
  --text-h1: clamp(40px, 5vw, 56px);
  --text-h2: clamp(32px, 4vw, 44px);
  --text-h3: clamp(28px, 3.5vw, 36px);
  --text-h4: clamp(24px, 3vw, 28px);
  --text-h5: clamp(20px, 2.5vw, 24px);
  --text-h6: clamp(18px, 2vw, 20px);
  --text-xl: 18px;
  --text-lg: 16px;
  --text-base: 15px;
  --text-sm: 14px;
  --text-xs: 12px;

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Font Weights */
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --weight-black: 900;

  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* ============================================
     📏 SPACING SYSTEM
     ============================================ */

  --space-0: 0;
  --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 */
  --space-32: 8rem;      /* 128px */
  --space-40: 10rem;     /* 160px */
  --space-48: 12rem;     /* 192px */
  --space-64: 16rem;     /* 256px */

  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;

  /* ============================================
     🎬 ANIMATION TIMING
     ============================================ */

  --duration-instant: 100ms;
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 700ms;
  --duration-slowest: 1000ms;

  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* ============================================
     🔲 BORDER RADIUS
     ============================================ */

  --radius-none: 0;
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-3xl: 2rem;     /* 32px */
  --radius-full: 9999px;

  /* ============================================
     📐 Z-INDEX LAYERS
     ============================================ */

  --z-background: -1;
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1100;
  --z-fixed: 1200;
  --z-modal-backdrop: 1300;
  --z-modal: 1400;
  --z-popover: 1500;
  --z-tooltip: 1600;
  --z-notification: 1700;
  --z-cursor: 9999;
}

/* ============================================
   🌐 GLOBAL RESET & BASE STYLES
   ============================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  color: var(--white);
  background: var(--skynet-dark);
  overflow-x: hidden;
}

/* Selection Styling */
::selection {
  background: var(--skynet-primary);
  color: var(--skynet-dark);
}

::-moz-selection {
  background: var(--skynet-primary);
  color: var(--skynet-dark);
}

/* ============================================
   📝 TYPOGRAPHY STYLES
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.hero-title {
  font-size: var(--text-hero);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }
h5 { font-size: var(--text-h5); }
h6 { font-size: var(--text-h6); }

p {
  margin-bottom: var(--space-4);
  color: var(--gray-300);
}

a {
  color: var(--skynet-primary);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--white);
  text-shadow: var(--shadow-glow-primary);
}

/* ============================================
   🎯 UTILITY CLASSES
   ============================================ */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-2xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 1536px) {
  .container {
    max-width: var(--container-2xl);
  }
}

/* Section Spacing */
.section {
  padding: var(--space-24) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

/* Text Gradients */
.text-gradient-primary {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-secondary {
  background: linear-gradient(135deg, var(--skynet-secondary) 0%, var(--skynet-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass Morphism */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
}

/* Glow Effects */
.glow-primary {
  box-shadow: var(--shadow-glow-primary);
}

.glow-secondary {
  box-shadow: var(--shadow-glow-secondary);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ============================================
   🎨 ANIMATION KEYFRAMES
   ============================================ */

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px var(--skynet-primary-glow);
  }
  50% {
    box-shadow: 0 0 40px var(--skynet-primary-glow);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   🎯 RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile: 320px - 767px (default) */
/* Tablet: 768px - 1023px */
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Desktop: 1024px - 1439px */
@media (min-width: 1024px) {
  html {
    font-size: 16px;
  }

  .section {
    padding: var(--space-32) 0;
  }
}

/* Large Desktop: 1440px+ */
@media (min-width: 1440px) {
  html {
    font-size: 18px;
  }
}

/* ============================================
   🖨️ PRINT STYLES
   ============================================ */

@media print {
  * {
    background: white !important;
    color: black !important;
  }
}
