/* CSS Variables for Design System */
:root {
  /* Colors */
  --primary-color: #2563EB;
  --secondary-color: #1E40AF;
  --background-color: #FFFFFF;
  --footer-bg-color: #1F2937;
  --button-color: #2563EB;
  --section-bg-light: #F9FAFB;
  --section-bg-white: #FFFFFF;
  --section-bg-medium: #F3F4F6;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  
  /* Organic Gradients */
  --organic-gradient-primary: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  --organic-gradient-soft: linear-gradient(135deg, #E0E7FF 0%, #DBEAFE 50%, #BFDBFE 100%);
  --organic-gradient-accent: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
  
  /* Soft Shadows */
  --shadow-soft-light: 0 4px 20px -8px rgba(37, 99, 235, 0.15);
  --shadow-soft-medium: 0 10px 30px -12px rgba(37, 99, 235, 0.2);
  --shadow-soft-deep: 0 20px 50px -15px rgba(37, 99, 235, 0.25);
  --shadow-footer: 0 -8px 25px -10px rgba(0, 0, 0, 0.1);
  
  /* Border Radius */
  --radius-soft: 16px;
  --radius-organic: 20px;
  --radius-rounded: 24px;
  
  /* Typography */
  --font-primary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-secondary: 'Nunito', 'Inter', sans-serif;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.875rem;
  font-weight: 600;
}

h5 {
  font-size: 1.5rem;
  font-weight: 600;
}

h6 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

/* Container System */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-md);
}

/* Card Components - Organic Design */
.card {
  background: var(--background-color);
  border-radius: var(--radius-organic);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(37, 99, 235, 0.08);
  box-shadow: var(--shadow-soft-light);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-soft-medium);
  transform: translateY(-2px);
}

.card-header {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  margin-bottom: var(--space-md);
}

.card-title {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--space-xs);
}

/* Button System - Organic Style */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--radius-soft);
  font-family: var(--font-secondary);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  line-height: 1.5;
  min-width: 120px;
}

.btn-primary {
  background: var(--organic-gradient-primary);
  color: white;
  box-shadow: var(--shadow-soft-light);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  color: white;
  box-shadow: var(--shadow-soft-medium);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--section-bg-light);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-soft-light);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-soft-medium);
}

.btn-accent {
  background: var(--organic-gradient-accent);
  color: white;
  box-shadow: var(--shadow-soft-light);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%);
  color: white;
  box-shadow: var(--shadow-soft-medium);
}

/* Section Layouts */
.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-light {
  background-color: var(--section-bg-light);
}

.section-white {
  background-color: var(--section-bg-white);
}

.section-medium {
  background-color: var(--section-bg-medium);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: var(--space-md);
  font-family: var(--font-secondary);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Header Component */
.header {
  background: var(--background-color);
  padding: var(--space-md) 0;
  box-shadow: var(--shadow-soft-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--font-secondary);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  font-weight: 600;
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-soft);
  transition: all 0.2s ease;
}

.nav a:hover {
  background: var(--section-bg-light);
  color: var(--primary-color);
}

/* Footer Component */
.footer {
  background: var(--footer-bg-color);
  color: white;
  padding: var(--space-2xl) 0 var(--space-lg);
  box-shadow: var(--shadow-footer);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.footer-section {
  margin-bottom: var(--space-xl);
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-md);
  font-family: var(--font-secondary);
}

.footer-text {
  color: #9CA3AF;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

/* Feature Cards - Organic Layout */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.feature-card {
  background: var(--background-color);
  border-radius: var(--radius-rounded);
  padding: var(--space-xl);
  text-align: center;
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: var(--shadow-soft-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--organic-gradient-primary);
}

.feature-card:hover {
  box-shadow: var(--shadow-soft-deep);
  transform: translateY(-4px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-md);
  background: var(--organic-gradient-soft);
  border-radius: var(--radius-organic);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
  font-family: var(--font-secondary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Hero Section */
.hero {
  background: var(--organic-gradient-soft);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: var(--organic-gradient-primary);
  border-radius: 50%;
  opacity: 0.05;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: var(--space-md);
  font-family: var(--font-secondary);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Form Components */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  font-size: 1rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-soft);
  font-size: 1rem;
  font-family: var(--font-primary);
  background: var(--background-color);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .nav {
    display: none;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .card {
    padding: var(--space-md);
  }
  
  .feature-card {
    padding: var(--space-md);
  }
  
  .header-content {
    padding: 0 var(--space-sm);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for better accessibility */
button:focus,
.btn:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading states */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}