/* CGuard - Dark Cybersecurity Theme */
/* Matching Figma design with dark gradients and teal accents */

:root {
  /* Dark Theme Colors */
  --bg-dark: #0a0e1a;
  --bg-navy: #0f172a;
  --bg-slate: #1e293b;
  --bg-card: #1a2332;
  --bg-card-hover: #212d3f;
  
  /* Teal/Cyan Accent (Primary) */
  --primary: #22d3ee;
  --primary-dark: #06b6d4;
  --primary-glow: rgba(34, 211, 238, 0.3);
  
  /* Text Colors */
  --text-white: #ffffff;
  --text-gray: #94a3b8;
  --text-muted: #64748b;
  
  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f4f5a 100%);
  --gradient-card: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
  --gradient-primary: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows with glow effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(34, 211, 238, 0.3);
  --shadow-glow-strong: 0 0 40px rgba(34, 211, 238, 0.5);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-gray);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-white);
  margin-bottom: var(--spacing-md);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-gray);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s;
}

a:hover {
  color: var(--primary-dark);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Header/Navigation */
.header {
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(34, 211, 238, 0.1);
  padding: var(--spacing-lg) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  color: var(--bg-dark);
}

.nav-links {
  display: flex;
  gap: var(--spacing-2xl);
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-gray);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--text-white);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-md);
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--text-white);
  transition: all 0.2s;
  position: relative;
  z-index: 1002;
}

.mobile-menu-toggle:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-menu-toggle .menu-icon {
  display: block;
}

.mobile-menu-toggle .close-icon {
  display: none;
}

body.mobile-nav-open .mobile-menu-toggle .menu-icon {
  display: none;
}

body.mobile-nav-open .mobile-menu-toggle .close-icon {
  display: block;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

body.mobile-nav-open .mobile-nav-overlay {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Open State */
.nav-links.mobile-open {
  display: flex;
  transform: translateX(0);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-dark) !important;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
}

.btn-secondary {
  background: transparent;
  border: 2px solid rgba(148, 163, 184, 0.3);
  color: var(--text-gray);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--text-white);
  background: rgba(34, 211, 238, 0.1);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--bg-dark);
}

/* Badge Pill */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--primary);
  background: rgba(34, 211, 238, 0.1);
}

/* Hero Section */
.hero {
  padding: var(--spacing-4xl) 0;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.hero .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-top: var(--spacing-2xl);
  position: relative;
}

.hero-note {
  margin-top: var(--spacing-lg);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Feature Grid */
.features {
  padding: var(--spacing-4xl) 0;
  background: var(--bg-navy);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
}

.feature-card {
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--spacing-lg);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-white);
}

.feature-card p {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.7;
}

/* How It Works Cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-2xl);
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  background: var(--bg-card);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
}

.step-number {
  width: 64px;
  height: 64px;
  background: rgba(34, 211, 238, 0.1);
  border: 2px solid var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 auto var(--spacing-lg);
}

/* CTA Section */
.cta-section {
  padding: var(--spacing-4xl) 0;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  position: relative;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-2xl);
  position: relative;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
  margin-top: var(--spacing-4xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer h4 {
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: var(--spacing-sm);
}

.footer a {
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-navy);
    border-left: 1px solid rgba(148, 163, 184, 0.1);
    flex-direction: column;
    padding: var(--spacing-3xl) var(--spacing-xl);
    padding-top: 80px;
    gap: var(--spacing-md);
    z-index: 1001;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
  }
  
  .nav-links.mobile-open {
    display: flex;
    right: 0;
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links a {
    display: block;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 1rem;
  }
  
  .nav-links a:hover {
    background: rgba(34, 211, 238, 0.1);
  }
  
  .nav-links .btn {
    width: 100%;
    justify-content: center;
    margin-top: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .hero h1 { font-size: 2.75rem; }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    width: 100%;
    right: -100%;
  }
  
  .nav-links.mobile-open {
    right: 0;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-white { color: var(--text-white); }
.text-primary { color: var(--primary); }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.py-4 { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }
.py-5 { padding-top: var(--spacing-2xl); padding-bottom: var(--spacing-2xl); }