:root {
  /* Astral Color Palette */
  --astral-primary: #1a1a2e;
  --astral-secondary: #16213e;
  --astral-background: #0f0f23;
  --astral-footer: #0a0a1a;
  --astral-button: #4f46e5;
  --astral-accent: #3b82f6;
  --astral-section-1: #1a1a2e;
  --astral-section-2: #16213e;
  --astral-section-3: #1e293b;
  
  /* Organic Elements */
  --organic-radius-sm: 16px;
  --organic-radius-lg: 24px;
  --organic-shadow: 0 10px 30px -10px rgba(26, 26, 46, 0.3);
  --organic-shadow-hover: 0 20px 40px -10px rgba(26, 26, 46, 0.4);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Poppins', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
}

/* Full-Height Reset */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Astral Base Styles */
body {
  font-family: var(--font-primary);
  background: var(--astral-background);
  color: #e2e8f0;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tailwind Override for Full-Width */
.container, .container-fluid {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Row Reset */
.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  color: #f8fafc;
  margin: 0 0 var(--spacing-md) 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: var(--spacing-sm);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
}

h5 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}

h6 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
}

p {
  margin: 0 0 var(--spacing-sm) 0;
  color: #cbd5e1;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Links */
a {
  color: var(--astral-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #60a5fa;
}

/* Buttons - Organic Style */
.btn, button, input[type="submit"], input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--organic-radius-sm);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

/* Primary Button */
.btn-primary, .button-primary {
  background: linear-gradient(135deg, var(--astral-button), #6366f1);
  color: white;
  box-shadow: var(--organic-shadow);
}

.btn-primary:hover, .button-primary:hover {
  background: linear-gradient(135deg, #5b21b6, var(--astral-button));
  box-shadow: var(--organic-shadow-hover);
  transform: translateY(-2px);
  color: white;
}

/* Secondary Button */
.btn-secondary, .button-secondary {
  background: transparent;
  color: var(--astral-accent);
  border: 2px solid var(--astral-accent);
}

.btn-secondary:hover, .button-secondary:hover {
  background: var(--astral-accent);
  color: white;
  box-shadow: var(--organic-shadow);
}

/* Cards - Organic Style */
.card, .card-style {
  background: var(--astral-section-1);
  border-radius: var(--organic-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--organic-shadow);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover, .card-style:hover {
  box-shadow: var(--organic-shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.5), transparent);
}

/* Section Styles */
.section {
  width: 100%;
  padding: var(--spacing-2xl) 0;
  position: relative;
}

.section-alt-1 {
  background: var(--astral-section-1);
}

.section-alt-2 {
  background: var(--astral-section-2);
}

.section-alt-3 {
  background: var(--astral-section-3);
}

/* Forms */
input, textarea, select {
  background: var(--astral-background);
  border: 2px solid transparent;
  border-radius: var(--organic-radius-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  color: #f8fafc;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

input::placeholder, textarea::placeholder {
  color: #64748b;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--astral-button);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Header Styles */
header, .header {
  background: var(--astral-background);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

/* Footer Styles */
footer, .footer {
  background: var(--astral-footer);
  color: #cbd5e1;
  padding: var(--spacing-2xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer h4, .footer h5 {
  color: #f8fafc;
  margin-bottom: var(--spacing-sm);
}

/* Lists */
ul, ol {
  padding-left: var(--spacing-lg);
}

li {
  margin-bottom: var(--spacing-xs);
  color: #cbd5e1;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--astral-section-1);
  border-radius: var(--organic-radius-sm);
  overflow: hidden;
  box-shadow: var(--organic-shadow);
}

th, td {
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
  background: var(--astral-section-2);
  color: #f8fafc;
  font-weight: 600;
}

tr:hover {
  background: rgba(79, 70, 229, 0.05);
}

/* Navigation */
.nav, .navigation {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav a, .navigation a {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--organic-radius-sm);
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav a:hover, .navigation a:hover {
  background: rgba(79, 70, 229, 0.1);
  color: var(--astral-accent);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.1) 0%, transparent 70%),
              var(--astral-background);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(79, 70, 229, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(79, 70, 229, 0.05) 0%, transparent 50%);
}

/* Utilities */
.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(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* Focus States for Accessibility */
button:focus, 
.btn:focus, 
input:focus, 
textarea:focus, 
select:focus, 
a:focus {
  outline: 2px solid var(--astral-button);
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
  }
  
  .container {
    padding-left: var(--spacing-sm) !important;
    padding-right: var(--spacing-sm) !important;
  }
  
  .card {
    padding: var(--spacing-md);
  }
  
  .btn, button {
    padding: var(--spacing-sm) var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .card {
    padding: var(--spacing-sm);
  }
  
  .btn, button {
    width: 100%;
    justify-content: center;
  }
}

/* Selection */
::selection {
  background: var(--astral-button);
  color: white;
}

::-moz-selection {
  background: var(--astral-button);
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--astral-background);
}

::-webkit-scrollbar-thumb {
  background: var(--astral-button);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5b21b6;
}

/* Image responsive */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--organic-radius-sm);
}

/* Loading states for better UX */
.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(79, 70, 229, 0.2);
  border-top-color: var(--astral-button);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Improved accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid #ffffff;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}


/* 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;
    }
}