/* ============================================================================
   HeAIth Sophisticated Theme System

   Architecture: 3-Tier Design Token System
   - Primitive Tokens: Base values (color scales, spacing, typography)
   - Semantic Tokens: Contextual meanings (primary, secondary, text, bg)
   - Component Tokens: Specific implementations (button, card, form)

   Research Foundation:
   - WCAG 2.1 Level AA Compliance (4.5:1 contrast ratio minimum)
   - Cognitive Load Theory (clear hierarchy, consistent patterns)
   - Healthcare Color Psychology (slate blue=trust/calm/professionalism, amber=warmth/care, rose=compassion)
   - Butterick's Typography Principles (readability, hierarchy)
   - Design Token Best Practices (CSS custom properties)
   - Modern Micro-Interactions (2025 trends - subtle, purposeful, elegant)
   - Glassmorphism & Elegant Effects (backdrop-filter, smooth transitions)
   ============================================================================ */

/* ============================================================================
   PRIMITIVE TOKENS - Base Design Values
   ============================================================================ */

:root {
  /* Color Primitives - Slate Blue Scale (Trust, Calm, Professionalism, Sophistication) */
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #355C7D;
  --color-slate-700: #2a4a63;
  --color-slate-800: #1e3548;
  --color-slate-900: #0f172a;
  --color-slate-950: #020617;

  /* Color Primitives - Primary Scale (Sophisticated Slate Blue) */
  --color-primary-50: #f8fafc;
  --color-primary-100: #f1f5f9;
  --color-primary-200: #e2e8f0;
  --color-primary-300: #cbd5e1;
  --color-primary-400: #94a3b8;
  --color-primary-500: #64748b;
  --color-primary-600: #355C7D;
  --color-primary-700: #2a4a63;
  --color-primary-800: #1e3548;
  --color-primary-900: #0f172a;
  --color-primary-950: #020617;

  /* Color Primitives - Amber Scale (Warmth, Optimism, Care) */
  --color-amber-50: #fffbeb;
  --color-amber-100: #fef3c7;
  --color-amber-200: #fde68a;
  --color-amber-300: #fcd34d;
  --color-amber-400: #fbbf24;
  --color-amber-500: #f59e0b;
  --color-amber-600: #d97706;
  --color-amber-700: #b45309;
  --color-amber-800: #92400e;
  --color-amber-900: #78350f;

  /* Color Primitives - Rose Scale (Compassion, Modern Wellness, Empathy) */
  --color-rose-50: #fff1f2;
  --color-rose-100: #ffe4e6;
  --color-rose-200: #fecdd3;
  --color-rose-300: #fda4af;
  --color-rose-400: #fb7185;
  --color-rose-500: #f43f5e;
  --color-rose-600: #e11d48;
  --color-rose-700: #be123c;
  --color-rose-800: #9f1239;
  --color-rose-900: #881337;

  /* Color Primitives - Indigo Scale (Deep Trust, Clinical Excellence) */
  --color-indigo-50: #eef2ff;
  --color-indigo-100: #e0e7ff;
  --color-indigo-200: #c7d2fe;
  --color-indigo-300: #a5b4fc;
  --color-indigo-400: #818cf8;
  --color-indigo-500: #6366f1;
  --color-indigo-600: #4f46e5;
  --color-indigo-700: #4338ca;
  --color-indigo-800: #3730a3;
  --color-indigo-900: #312e81;

  /* Color Primitives - Green Scale (Success, Growth, Healing) */
  --color-green-50: #f0fdf4;
  --color-green-100: #dcfce7;
  --color-green-200: #bbf7d0;
  --color-green-300: #86efac;
  --color-green-400: #4ade80;
  --color-green-500: #22c55e;
  --color-green-600: #16a34a;
  --color-green-700: #15803d;
  --color-green-800: #166534;
  --color-green-900: #14532d;

  /* Color Primitives - Neutral Scale (Professional, Clean, Slate-Tinted) */
  --color-neutral-50: #fafaf9;
  --color-neutral-100: #f5f5f4;
  --color-neutral-200: #e7e5e4;
  --color-neutral-300: #d6d3d1;
  --color-neutral-400: #a8a29e;
  --color-neutral-500: #78716c;
  --color-neutral-600: #57534e;
  --color-neutral-700: #44403c;
  --color-neutral-800: #292524;
  --color-neutral-900: #1c1917;
  --color-neutral-950: #0c0a09;

  /* Spacing Primitives - 4px Base Grid System */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 6rem;     /* 96px */
  --space-5xl: 8rem;     /* 128px */

  /* Typography Primitives - Modular Scale (1.250 - Major Third) */
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.563rem;    /* 25px */
  --font-size-3xl: 1.953rem;    /* 31px */
  --font-size-4xl: 2.441rem;    /* 39px */
  --font-size-5xl: 3.052rem;    /* 49px */

  /* Line Height Primitives - Butterick's Recommendations */
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 1.75;

  /* Font Weight Primitives */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Font Family Primitives - System Font Stack */
  --font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;

  /* Border Radius Primitives */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* Shadow Primitives - Sophisticated Depth System with Green Tinting */
  --shadow-xs: 0 1px 2px 0 rgb(53 92 125 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(53 92 125 / 0.1), 0 1px 2px -1px rgb(53 92 125 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(53 92 125 / 0.1), 0 2px 4px -2px rgb(53 92 125 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(53 92 125 / 0.15), 0 4px 6px -4px rgb(53 92 125 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(53 92 125 / 0.2), 0 8px 10px -6px rgb(53 92 125 / 0.15);
  --shadow-2xl: 0 25px 50px -12px rgb(53 92 125 / 0.25);

  /* Glow Effects */
  --glow-slate: 0 0 20px rgb(53 92 125 / 0.3);
  --glow-amber: 0 0 20px rgb(245 158 11 / 0.3);
  --glow-rose: 0 0 20px rgb(244 63 94 / 0.3);

  /* Transition Primitives - Elegant Easing Functions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Custom Easing for Micro-Interactions */
  --ease-in-out-smooth: cubic-bezier(0.45, 0.05, 0.55, 0.95);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);

  /* Z-Index Primitives */
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1100;
  --z-fixed: 1200;
  --z-modal: 1300;
  --z-popover: 1400;
  --z-tooltip: 1500;

  /* Blur Primitives for Glassmorphism */
  --blur-sm: 8px;
  --blur-md: 12px;
  --blur-lg: 16px;
  --blur-xl: 24px;
}

/* ============================================================================
   SEMANTIC TOKENS - Light Theme (Default)
   ============================================================================ */

:root {
  /* Semantic Color - Primary (Royal Dark Green for Growth & Healing) */
  --color-primary: var(--color-slate-700);
  --color-primary-hover: var(--color-slate-800);
  --color-primary-active: var(--color-slate-900);
  --color-primary-light: var(--color-slate-100);
  --color-primary-dark: var(--color-slate-900);

  /* Semantic Color - Secondary (Amber for Warmth & Care) */
  --color-secondary: var(--color-amber-500);
  --color-secondary-hover: var(--color-amber-600);
  --color-secondary-active: var(--color-amber-700);
  --color-secondary-light: var(--color-amber-100);

  /* Semantic Color - Accent (Rose for Compassion & Wellness) */
  --color-accent: var(--color-rose-500);
  --color-accent-hover: var(--color-rose-600);
  --color-accent-light: var(--color-rose-100);

  /* Semantic Color - Feedback States */
  --color-success: var(--color-green-600);
  --color-success-light: var(--color-green-100);
  --color-warning: var(--color-amber-500);
  --color-warning-light: var(--color-amber-100);
  --color-error: var(--color-rose-600);
  --color-error-light: var(--color-rose-100);

  /* Semantic Color - Text (WCAG AA Compliant) */
  --color-text-heading: var(--color-neutral-900);
  --color-text-body: var(--color-neutral-800);
  --color-text-muted: var(--color-neutral-600);
  --color-text-placeholder: var(--color-neutral-400);
  --color-text-inverse: var(--color-neutral-50);
  --color-text-on-primary: #ffffff;

  /* Semantic Color - Backgrounds */
  --color-bg-base: #ffffff;
  --color-bg-subtle: var(--color-neutral-50);
  --color-bg-elevated: #ffffff;
  --color-bg-overlay: rgba(53, 92, 125, 0.1);

  /* Gradient Backgrounds */
  --gradient-primary: linear-gradient(135deg, var(--color-slate-600) 0%, var(--color-slate-800) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--color-amber-400) 0%, var(--color-amber-600) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-rose-400) 0%, var(--color-rose-600) 100%);
  --gradient-hero: linear-gradient(135deg, var(--color-slate-50) 0%, var(--color-slate-100) 50%, var(--color-amber-50) 100%);

  /* Animated Gradient */
  --gradient-animated: linear-gradient(270deg, var(--color-slate-600), var(--color-slate-700), var(--color-amber-500));

  /* Semantic Color - Borders */
  --color-border-base: var(--color-neutral-200);
  --color-border-strong: var(--color-neutral-300);
  --color-border-focus: var(--color-primary);

  /* Semantic Color - Interactive States */
  --color-interactive-hover: var(--color-slate-50);
  --color-interactive-active: var(--color-slate-100);

  /* Glass Morphism Colors */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
}


/* ============================================================================
   COMPONENT TOKENS - Button Styles
   ============================================================================ */

:root {
  /* Golden Ratio Button Proportions */
  /* For 16px font: ideal height ~42px, padding-x = height */
  --btn-padding-x: 2.625rem;    /* 42px - golden ratio */
  --btn-padding-y: 0.8125rem;   /* 13px - golden ratio */
  --btn-min-width: 10.5rem;     /* 168px */
  --btn-border-radius: var(--radius-xl);
  --btn-font-size: var(--font-size-base);
  --btn-font-weight: var(--font-weight-semibold);
  --btn-letter-spacing: 0.025em;

  /* Smooth transitions */
  --btn-transition-base: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --btn-transition-glow: box-shadow 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Small button proportions */
  --btn-sm-padding-x: 1.75rem;  /* 28px */
  --btn-sm-padding-y: 0.5rem;   /* 8px */
  --btn-sm-font-size: var(--font-size-sm);
  --btn-sm-min-width: 7rem;     /* 112px */
}

/* ============================================================================
   COMPONENT TOKENS - Card Styles
   ============================================================================ */

:root {
  --card-padding: var(--space-xl);
  --card-border-radius: var(--radius-xl);
  --card-bg: var(--color-bg-elevated);
  --card-border: var(--color-border-base);
  --card-shadow: var(--shadow-sm);
  --card-shadow-hover: var(--shadow-xl);
}

/* ============================================================================
   COMPONENT TOKENS - Form Styles (2025 Best Practices)
   ============================================================================ */

:root {
  /* Input sizing - comfortable touch targets */
  --form-input-padding-x: 1rem;        /* 16px - UX best practice */
  --form-input-padding-y: 0.75rem;     /* 12px - comfortable height */
  --form-input-min-height: 3rem;       /* 48px - good touch target */
  --form-input-border-radius: var(--radius-lg);

  /* Colors */
  --form-input-bg: var(--color-bg-base);
  --form-input-border: var(--color-border-base);
  --form-input-border-hover: var(--color-primary);
  --form-input-border-focus: var(--color-primary);

  /* Typography */
  --form-label-font-size: var(--font-size-sm);
  --form-label-font-weight: var(--font-weight-semibold);
  --form-input-font-size: var(--font-size-base);

  /* Transitions - smooth but not slow */
  --form-transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   BASE STYLES - Reset & Foundation
   ============================================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-body);
  background-color: var(--color-bg-base);
  transition: background-color var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
}

/* ============================================================================
   TYPOGRAPHY SYSTEM - Butterick's Principles
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
  transition: color var(--transition-base);
}

.display-1 {
  font-size: var(--font-size-5xl);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease infinite;
}

.display-2 {
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.01em;
}

.heading-3 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-snug);
}

.heading-4 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-snug);
}

.body-large {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-body);
}

.body-regular {
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-body);
  max-width: 65ch;
}

.body-small {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  color: var(--color-text-muted);
}

p {
  margin-bottom: var(--space-md);
  transition: color var(--transition-base);
}

code {
  font-family: var(--font-family-mono);
  font-size: 0.9em;
  background-color: var(--color-interactive-hover);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-base);
}

/* ============================================================================
   LAYOUT COMPONENTS
   ============================================================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}


/* ============================================================================
   HEADER COMPONENT - Glass Morphism
   ============================================================================ */

.header {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-xl));
  -webkit-backdrop-filter: blur(var(--blur-xl));
  border-bottom: 1px solid var(--glass-border);
  padding: var(--space-lg) 0;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xl);
}

.logo {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  cursor: pointer;
  transition: transform var(--transition-base);
}

.logo:hover {
  transform: translateX(4px);
}

.logo-text {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  line-height: 1;
  position: relative;
}

.logo-tagline {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
  transition: color var(--transition-base);
}

.logo:hover .logo-tagline {
  color: var(--color-primary);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
  align-items: center;
}

.nav-link {
  color: var(--color-text-body);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
  position: relative;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
  border-radius: var(--radius-full);
}

.nav-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-interactive-hover);
  border-radius: var(--radius-md);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.nav-link:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.nav-link:hover::before {
  width: 80%;
}

.nav-link:hover::after {
  opacity: 1;
}

.nav-link:focus {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 4px;
}

/* ============================================================================
   NAVIGATION TOGGLE - Sophisticated Hamburger Menu
   ============================================================================ */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 3rem;
  height: 3rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.625rem;
  position: relative;
  z-index: calc(var(--z-sticky) + 10);
  margin-left: auto;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-base);
}

.nav-toggle:hover {
  background-color: var(--color-interactive-hover);
}

.nav-toggle:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  background-color: var(--color-primary-light);
}

.nav-toggle-icon {
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Elegant Hamburger to X animation */
.nav-toggle[aria-expanded="true"] .nav-toggle-icon:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ============================================================================
   RESPONSIVE NAVIGATION - Full Width, Sophisticated
   ============================================================================ */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .header-content {
    position: static;
  }

  /* Full viewport width dropdown */
  .nav {
    position: fixed;
    top: calc(var(--space-lg) * 2 + 3.5rem);
    left: 0;
    right: 0;
    width: 100vw;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-xl));
    -webkit-backdrop-filter: blur(var(--blur-xl));
    border-top: 1px solid var(--color-border-base);
    border-bottom: 1px solid var(--color-border-base);
    box-shadow: 0 10px 40px -10px rgba(124, 58, 237, 0.2);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 400ms cubic-bezier(0.4, 0, 0.2, 1),
                opacity 300ms cubic-bezier(0.4, 0, 0.2, 1),
                visibility 300ms;
    z-index: var(--z-sticky);
  }

  .nav.nav-open {
    max-height: 100vh;
    opacity: 1;
    visibility: visible;
  }

  /* Clean list layout */
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid var(--color-border-base);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  /* Sophisticated nav links */
  .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--space-lg) var(--space-xl);
    text-align: left;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    border-radius: 0;
    position: relative;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 60%;
    background: var(--gradient-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link:focus {
    background: linear-gradient(90deg, var(--color-primary-light) 0%, transparent 100%);
    color: var(--color-primary);
    padding-left: calc(var(--space-xl) + var(--space-md));
    transform: translateX(0);
  }

  .nav-link:hover::before,
  .nav-link:focus::before {
    width: 4px;
  }

  /* Add subtle icons or indicators */
  .nav-link:hover::after,
  .nav-link:focus::after {
    content: '→';
    display: inline-block;
    margin-left: auto;
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    animation: slide-right 600ms ease-in-out infinite alternate;
  }
}

/* Subtle arrow animation */
@keyframes slide-right {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(4px);
  }
}

/* Desktop - hide toggle, show nav normally */
@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    display: block !important;
    position: static !important;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* ============================================================================
   HERO SECTION - Animated Gradient Background
   ============================================================================ */

.hero {
  padding: var(--space-5xl) 0 var(--space-4xl);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--color-slate-200) 0%, transparent 70%);
  animation: rotate-gradient 20s linear infinite;
  opacity: 0.3;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text-heading);
  margin-bottom: var(--space-lg);
  line-height: var(--line-height-tight);
  animation: fade-in-up 0.8s var(--ease-out-back);
}

.hero-description {
  font-size: var(--font-size-xl);
  color: var(--color-text-body);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fade-in-up 0.8s var(--ease-out-back) 0.2s both;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-in-up 0.8s var(--ease-out-back) 0.4s both;
}

/* ============================================================================
   SHOWCASE SECTION
   ============================================================================ */

.showcase {
  padding: var(--space-4xl) 0;
  background-color: var(--color-bg-subtle);
  transition: background-color var(--transition-slow);
}

.section-title {
  font-size: var(--font-size-4xl);
  text-align: center;
  margin-bottom: var(--space-3xl);
  color: var(--color-text-heading);
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.showcase-section {
  margin-bottom: var(--space-4xl);
  animation: fade-in 0.6s ease-out;
}

.showcase-subtitle {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-xl);
  color: var(--color-text-heading);
  position: relative;
  padding-left: var(--space-md);
}

.showcase-subtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

/* ============================================================================
   CARD COMPONENT - Sophisticated Hover Effects
   ============================================================================ */

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--card-border-radius);
  padding: var(--card-padding);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-elevated {
  box-shadow: var(--card-shadow);
}

.card-elevated:hover {
  box-shadow: var(--card-shadow-hover), var(--glow-slate);
  transform: translateY(-8px);
  border-color: var(--color-primary);
}

.card-bordered {
  border: 2px solid var(--card-border);
  transition: all var(--transition-slow);
}

.card-bordered:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg), var(--glow-slate);
  transform: translateY(-4px);
}

.card-interactive {
  cursor: pointer;
  border: 2px solid var(--card-border);
}

.card-interactive:hover {
  box-shadow: var(--shadow-xl), var(--glow-slate);
  transform: translateY(-8px) scale(1.02);
  border-color: var(--color-primary);
}

.card-interactive:active {
  transform: translateY(-4px) scale(1.01);
}

.card-header {
  margin-bottom: var(--space-md);
}

.card-header h4 {
  margin: 0;
  color: var(--color-text-heading);
  transition: color var(--transition-base);
}

.card:hover .card-header h4 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-body {
  margin-bottom: var(--space-lg);
}

.card-body p {
  margin: 0;
  color: var(--color-text-body);
}

.card-footer {
  display: flex;
  gap: var(--space-sm);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

/* ============================================================================
   BUTTON COMPONENT - Clean & Sophisticated (2025 Best Practices)

   Research-Based Design:
   - Golden ratio proportions (1.618:1)
   - Subtle micro-interactions
   - Smooth gradient shifts (20-25° hue)
   - Professional hover states
   - No gimmicky effects
   ============================================================================ */

.btn {
  /* Layout */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);

  /* Spacing - Golden Ratio Based */
  padding: var(--btn-padding-y) var(--btn-padding-x);
  min-width: var(--btn-min-width);

  /* Typography */
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  font-family: var(--font-family-sans);
  line-height: 1;
  letter-spacing: var(--btn-letter-spacing);
  text-decoration: none;
  white-space: nowrap;

  /* Visual */
  border: none;
  border-radius: var(--btn-border-radius);
  cursor: pointer;
  position: relative;

  /* Smooth Transitions */
  transition: var(--btn-transition-base), var(--btn-transition-glow);

  /* Allow shadows to breathe - no overflow hidden */
  will-change: transform, box-shadow;
}

/* Focus State - Accessibility */
.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--color-primary-light);
}

/* Active State - Subtle Feedback */
.btn:active {
  transform: scale(0.98) translateY(1px);
}

/* Disabled State */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.4);
}

/* ============================================================================
   LINK BUTTON OVERRIDES - Clean anchor styling when used as buttons
   ============================================================================ */

/* Remove default link styling when button classes are applied */
a.btn {
  text-decoration: none;
}

a.btn:hover {
  text-decoration: none;
}

/* Ensure colored buttons maintain their text colors */
a.btn-primary,
a.btn-primary:hover,
a.btn-primary:visited,
a.btn-primary:active,
a.btn-primary:focus {
  color: var(--color-text-on-primary);
}

a.btn-secondary,
a.btn-secondary:hover,
a.btn-secondary:visited,
a.btn-secondary:active,
a.btn-secondary:focus {
  color: var(--color-text-on-primary);
}

/* ============================================================================
   PRIMARY BUTTON - Gradient with Smooth Hover
   ============================================================================ */

.btn-primary {
  background: var(--gradient-primary);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: var(--color-text-on-primary);
  box-shadow: var(--shadow-md), 0 0 0 0 rgb(53 92 125 / 0);
  position: relative;

  /* Subtle inner highlight for depth */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--btn-border-radius);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), transparent 50%, rgba(0, 0, 0, 0.05));
  pointer-events: none;
}

.btn-primary:hover {
  /* Smooth gradient shift */
  background-position: 100% 50%;

  /* Subtle elevation & glow */
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), 0 0 20px 2px rgb(53 92 125 / 0.25);

  /* Brightness boost */
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-sm);
  filter: brightness(0.95);
}

/* ============================================================================
   SECONDARY BUTTON - Warm Amber Gradient
   ============================================================================ */

.btn-secondary {
  background: var(--gradient-secondary);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: rgba(0, 0, 0, 0.85);
  box-shadow: var(--shadow-md), 0 0 0 0 rgb(245 158 11 / 0);
  position: relative;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--btn-border-radius);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent 50%, rgba(0, 0, 0, 0.05));
  pointer-events: none;
}

.btn-secondary:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), 0 0 20px 2px rgb(245 158 11 / 0.25);
  filter: brightness(1.05);
}

.btn-secondary:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-sm);
  filter: brightness(0.95);
}

/* ============================================================================
   OUTLINE BUTTON - Clean Border with Fill Animation
   ============================================================================ */

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--btn-border-radius);
  background: var(--gradient-primary);
  background-size: 200% 200%;
  background-position: 0% 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-outline:hover {
  color: var(--color-text-on-primary);
  border-color: transparent;
  box-shadow: var(--shadow-md), 0 0 20px 2px rgb(53 92 125 / 0.2);
  transform: translateY(-1px);
}

.btn-outline:hover::before {
  opacity: 1;
}

.btn-outline:active {
  transform: scale(0.98) translateY(1px);
  box-shadow: var(--shadow-sm);
}

/* ============================================================================
   GHOST BUTTON - Minimal with Subtle Background
   ============================================================================ */

.btn-ghost {
  background-color: transparent;
  color: var(--color-text-body);
  box-shadow: none;
  font-weight: var(--font-weight-medium);
}

.btn-ghost:hover {
  background-color: var(--color-interactive-hover);
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:active {
  transform: scale(0.98);
  background-color: var(--color-interactive-active);
}

/* ============================================================================
   BUTTON SIZES
   ============================================================================ */

.btn-sm {
  padding: var(--btn-sm-padding-y) var(--btn-sm-padding-x);
  font-size: var(--btn-sm-font-size);
  min-width: var(--btn-sm-min-width);
  border-radius: var(--radius-lg);
}

/* ============================================================================
   BUTTON GROUP
   ============================================================================ */

.button-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================================
   COLOR SHOWCASE
   ============================================================================ */

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.color-swatch {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-slow);
  cursor: pointer;
}

.color-swatch:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-xl);
}

.color-sample {
  height: 100px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.color-swatch:hover .color-sample {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.color-sample::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 100%);
}

.color-primary .color-sample { background: var(--gradient-primary); }
.color-secondary .color-sample { background: var(--gradient-secondary); }
.color-accent .color-sample { background: var(--gradient-accent); }
.color-indigo .color-sample { background: linear-gradient(135deg, var(--color-indigo-500) 0%, var(--color-indigo-700) 100%); }
.color-success .color-sample { background-color: var(--color-success); }
.color-warning .color-sample { background-color: var(--color-warning); }
.color-error .color-sample { background-color: var(--color-error); }

.color-info h4 {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-xs);
  transition: all var(--transition-base);
}

.color-swatch:hover .color-info h4 {
  color: var(--color-primary);
  transform: translateX(4px);
}

.color-info p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* ============================================================================
   FORM COMPONENTS - Clean & Modern (2025 Best Practices)

   Research-Based Design:
   - 16px horizontal padding (UX standard)
   - 48px minimum height (comfortable touch target)
   - Smooth transitions (250ms)
   - Clear visual feedback
   - Custom select dropdown with arrow
   - No glassmorphism (better readability)
   ============================================================================ */

.form-demo {
  max-width: 600px;
}

.form-group {
  margin-bottom: var(--space-xl);
  animation: fade-in 0.4s ease-out;
}

/* ============================================================================
   LABELS - Left-Aligned Above Fields
   ============================================================================ */

.form-label {
  display: block;
  font-size: var(--form-label-font-size);
  font-weight: var(--form-label-font-weight);
  color: var(--color-text-heading);
  margin-bottom: var(--space-sm);
  transition: color var(--form-transition);
}

.form-group:focus-within .form-label {
  color: var(--color-primary);
}

/* ============================================================================
   INPUT FIELDS - Clean & Professional
   ============================================================================ */

.form-input {
  /* Layout */
  width: 100%;
  min-height: var(--form-input-min-height);
  padding: var(--form-input-padding-y) var(--form-input-padding-x);

  /* Typography */
  font-size: var(--form-input-font-size);
  font-family: var(--font-family-sans);
  color: var(--color-text-body);
  line-height: 1.5;

  /* Visual - Clean, no glassmorphism for better readability */
  background-color: var(--form-input-bg);
  border: 2px solid var(--form-input-border);
  border-radius: var(--form-input-border-radius);

  /* Smooth transitions */
  transition: var(--form-transition);

  /* Remove default appearance */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Hover State - Subtle Border Color Change */
.form-input:hover {
  border-color: var(--form-input-border-hover);
}

/* Focus State - Clear Visual Feedback */
.form-input:focus {
  outline: none;
  border-color: var(--form-input-border-focus);
  box-shadow: 0 0 0 4px var(--color-primary-light), var(--shadow-sm);
  /* Minimal lift for feedback - not too much */
  transform: translateY(-1px);
}

/* Placeholder Styling */
.form-input::placeholder {
  color: var(--color-text-placeholder);
  opacity: 1;
}

.form-input:focus::placeholder {
  opacity: 0;
  transition: opacity 200ms ease;
}

/* ============================================================================
   CUSTOM SELECT DROPDOWN - Fully Styled (2025 Best Practices)

   Research-Based Approach:
   - Native select options can't be styled (OS-level rendering)
   - Custom dropdown with divs for full control
   - Accessible with ARIA attributes
   - Smooth animations and rounded corners
   - Keyboard navigation support
   ============================================================================ */

.custom-select {
  position: relative;
  width: 100%;
}

/* Trigger Button */
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--form-input-min-height);
  padding: var(--form-input-padding-y) var(--form-input-padding-x);
  font-size: var(--form-input-font-size);
  font-family: var(--font-family-sans);
  color: var(--color-text-body);
  background-color: var(--form-input-bg);
  border: 2px solid var(--form-input-border);
  border-radius: var(--form-input-border-radius);
  cursor: pointer;
  transition: var(--form-transition);
  user-select: none;
}

.custom-select:hover .custom-select-trigger {
  border-color: var(--form-input-border-hover);
}

.custom-select:focus .custom-select-trigger,
.custom-select[aria-expanded="true"] .custom-select-trigger {
  outline: none;
  border-color: var(--form-input-border-focus);
  box-shadow: 0 0 0 4px var(--color-primary-light), var(--shadow-sm);
}

/* Arrow Icon */
.custom-select-arrow {
  color: var(--color-primary);
  transition: transform var(--form-transition);
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

.custom-select[aria-expanded="true"] .custom-select-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  z-index: var(--z-dropdown);
  background-color: var(--form-input-bg);
  border: 2px solid var(--color-primary);
  border-radius: var(--form-input-border-radius);
  box-shadow: var(--shadow-xl), 0 0 20px 2px rgb(53 92 125 / 0.15);
  max-height: 16rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: opacity var(--form-transition),
              transform var(--form-transition),
              visibility var(--form-transition);

  /* Beautiful scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
}

.custom-select-dropdown::-webkit-scrollbar {
  width: 8px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  border: 2px solid var(--form-input-bg);
}

/* Open State */
.custom-select[aria-expanded="true"] .custom-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown Options - Fully Styled */
.custom-select-option {
  padding: var(--space-md) var(--form-input-padding-x);
  font-size: var(--form-input-font-size);
  color: var(--color-text-body);
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-md);
  margin: var(--space-xs) var(--space-sm);
  position: relative;
}

/* First option */
.custom-select-option:first-child {
  margin-top: var(--space-sm);
}

/* Last option */
.custom-select-option:last-child {
  margin-bottom: var(--space-sm);
}

/* Hover State - Smooth Background */
.custom-select-option:hover {
  background: linear-gradient(135deg, var(--color-slate-100) 0%, var(--color-slate-200) 100%);
  color: var(--color-primary);
  transform: translateX(4px);
  padding-left: calc(var(--form-input-padding-x) + 4px);
}

/* Selected State */
.custom-select-option[aria-selected="true"] {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

/* Active/Focus State */
.custom-select-option:active {
  transform: scale(0.98) translateX(4px);
  background: var(--gradient-primary);
  color: var(--color-text-on-primary);
}

/* Keyboard navigation focus */
.custom-select-option:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

/* Fallback for native select (progressive enhancement) */
select.form-input {
  cursor: pointer;
  padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%237c3aed' d='M4.427 6.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 6H4.604a.25.25 0 00-.177.427z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}

select.form-input::-ms-expand {
  display: none;
}

/* ============================================================================
   TEXTAREA - Vertical Resize Only
   ============================================================================ */

textarea.form-input {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

/* ============================================================================
   HELP TEXT - Contextual Information
   ============================================================================ */

.form-help {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  line-height: 1.5;
  transition: color var(--form-transition);
}

.form-group:focus-within .form-help {
  color: var(--color-primary);
}

/* ============================================================================
   CHECKBOX - Modern Styling
   ============================================================================ */

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: var(--font-size-base);
  color: var(--color-text-body);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: background-color var(--form-transition), color var(--form-transition);
}

.checkbox-label:hover {
  background-color: var(--color-interactive-hover);
  color: var(--color-primary);
}

.form-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: var(--color-primary);
  transition: transform var(--form-transition);
  border-radius: var(--radius-sm);
}

.form-checkbox:hover {
  transform: scale(1.05);
}

.form-checkbox:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============================================================================
   SPACING DEMONSTRATION
   ============================================================================ */

.spacing-demo {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.spacing-item {
  background: var(--gradient-primary);
  color: var(--color-text-on-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  display: inline-block;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.spacing-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md), var(--glow-slate);
}

.spacing-xs { width: var(--space-xs); }
.spacing-sm { width: var(--space-sm); }
.spacing-md { width: var(--space-md); }
.spacing-lg { width: var(--space-lg); }
.spacing-xl { width: var(--space-xl); }
.spacing-2xl { width: var(--space-2xl); }
.spacing-3xl { width: var(--space-3xl); }

/* ============================================================================
   DESIGN TOKEN INFORMATION
   ============================================================================ */

.token-info {
  display: grid;
  gap: var(--space-lg);
}

.token-tier {
  padding: var(--space-xl);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border-radius: var(--radius-xl);
  border-left: 4px solid;
  border-image: var(--gradient-primary) 1;
  transition: all var(--transition-slow);
}

.token-tier:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg), var(--glow-slate);
}

.token-tier h4 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-sm);
}

.token-tier p {
  margin-bottom: var(--space-sm);
}

.token-tier code {
  display: block;
  margin-top: var(--space-sm);
  background-color: var(--color-bg-base);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  border: 1px solid var(--color-border-base);
}

/* ============================================================================
   FOOTER COMPONENT
   ============================================================================ */

.footer {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-xl));
  -webkit-backdrop-filter: blur(var(--blur-xl));
  border-top: 1px solid var(--glass-border);
  padding: var(--space-4xl) 0 var(--space-xl);
  margin-top: var(--space-4xl);
  transition: all var(--transition-slow);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-title {
  font-size: var(--font-size-2xl);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.footer-heading {
  font-size: var(--font-size-lg);
  color: var(--color-text-heading);
  margin: 0;
}

.footer-text {
  color: var(--color-text-muted);
  margin: 0;
  line-height: var(--line-height-relaxed);
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-list li {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  padding-left: var(--space-md);
  position: relative;
  transition: all var(--transition-base);
}

.footer-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition-base);
}

.footer-list li:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

.footer-list li:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* ============================================================================
   ANIMATIONS & KEYFRAMES
   ============================================================================ */

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes rotate-gradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: var(--shadow-md);
  }
  50% {
    box-shadow: var(--shadow-xl), var(--glow-slate);
  }
}

/* ============================================================================
   RESPONSIVE DESIGN - Mobile First Approach
   ============================================================================ */

@media (max-width: 768px) {
  /* Hero section adjustments */
  .hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-description {
    font-size: var(--font-size-lg);
  }

  /* Grid layouts */
  .card-grid {
    grid-template-columns: 1fr;
  }

  .color-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
  .hero-actions,
  .nav {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
  }

  .card {
    break-inside: avoid;
  }
}
