:root {
  /* Cosmic Dark Mode Color Palette */
  --color-primary: #b026ff;
  --color-secondary: #4c1d95;
  --color-background: #050508;
  --color-footer-bg: #020203;
  --color-button: #d946ef;
  --color-surface: #0a0a10;
  --color-text-primary: #e9d5ff;
  --color-text-secondary: #c4b5fd;
  --color-text-muted: #8b5cf6;
  
  /* Soft Organic Gradients */
  --gradient-cosmic: linear-gradient(135deg, #b026ff 0%, #4c1d95 50%, #1e1b4b 100%);
  --gradient-button: linear-gradient(135deg, #d946ef 0%, #b026ff 50%, #7c3aed 100%);
  --gradient-surface: linear-gradient(180deg, rgba(176, 38, 255, 0.1) 0%, rgba(76, 29, 149, 0.05) 100%);
  
  /* Organic Shadows */
  --shadow-soft: 0 10px 30px -10px rgba(176, 38, 255, 0.3);
  --shadow-glow: 0 0 20px rgba(217, 70, 239, 0.4);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --shadow-float: 0 25px 50px -20px rgba(176, 38, 255, 0.2);
  
  /* Border Radius - Organic */
  --radius-small: 16px;
  --radius-medium: 20px;
  --radius-large: 24px;
  --radius-xl: 32px;
  
  /* Typography - Round & Friendly */
  --font-primary: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing - Generous & Breathing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
}

/* Base Reset & Cosmic Body */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  background: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.7;
  letter-spacing: 0.025em;
  overflow-x: hidden;
}

/* Typography - Round & Friendly Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-md) 0;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-cosmic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

p {
  margin: 0 0 var(--space-md) 0;
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-button);
  text-shadow: 0 0 10px rgba(217, 70, 239, 0.5);
}

/* Cosmic Section Backgrounds */
section {
  background: var(--color-background);
  padding: var(--space-2xl) 0;
  position: relative;
}

section:nth-child(even) {
  background: var(--color-surface);
}

section.cosmic-bg {
  background: var(--gradient-surface);
  position: relative;
}

section.cosmic-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(176, 38, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(217, 70, 239, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Organic Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 1;
}

/* Soft & Organic Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-large);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 48px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-button);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -10px rgba(217, 70, 239, 0.6);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

/* Organic Cards */
.card {
  background: rgba(10, 10, 16, 0.8);
  border-radius: var(--radius-medium);
  padding: var(--space-lg);
  border: 1px solid rgba(176, 38, 255, 0.2);
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176, 38, 255, 0.5), transparent);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-float);
  border-color: rgba(217, 70, 239, 0.4);
}

.card-cosmic {
  background: var(--gradient-surface);
  border: 1px solid rgba(176, 38, 255, 0.3);
  box-shadow: var(--shadow-card);
}

.card-cosmic:hover {
  box-shadow: var(--shadow-glow);
}

/* Cosmic Navigation */
.nav {
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(176, 38, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-cosmic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-lg);
}

.nav-link {
  color: var(--color-text-secondary);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-small);
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--color-primary);
  background: rgba(176, 38, 255, 0.1);
}

/* Hero Section - Cosmic */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-background);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(176, 38, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(217, 70, 239, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 10%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-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;
}

/* Forms - Organic */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid rgba(176, 38, 255, 0.2);
  border-radius: var(--radius-small);
  background: rgba(10, 10, 16, 0.8);
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(176, 38, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

/* Grid System - Cosmic */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-cols-1 { grid-template-columns: 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); }

/* 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-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Footer - Cosmic */
.footer {
  background: var(--color-footer-bg);
  border-top: 1px solid rgba(176, 38, 255, 0.2);
  padding: var(--space-2xl) 0 var(--space-lg) 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.footer-content {
  text-align: center;
}

.footer-text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Animations - Subtle & Organic */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { box-shadow: var(--shadow-glow); }
  50% { box-shadow: 0 0 30px rgba(217, 70, 239, 0.6); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  section {
    padding: var(--space-lg) 0;
  }
  
  .card {
    padding: var(--space-md);
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

.rounded { border-radius: var(--radius-small); }
.rounded-lg { border-radius: var(--radius-medium); }
.rounded-xl { border-radius: var(--radius-large); }

.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-glow { box-shadow: var(--shadow-glow); }
.shadow-card { box-shadow: var(--shadow-card); }

/* Scrollbar Styling - Cosmic */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-background);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-cosmic);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-button);
}

/* Selection Styling */
::selection {
  background: rgba(176, 38, 255, 0.3);
  color: var(--color-text-primary);
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-small);
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(176, 38, 255, 0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}


/* 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;
    }
}