/* MarketMate Global CSS - Inspired by Kiro.dev Design System */

/* ===================================
   CSS Variables & Theme Configuration
   =================================== */

:root {
  /* Primary Colors - Using custom purple */
  --primary-purple: #7c3aed;
  --primary-purple-dark: #6d28d9;
  --primary-purple-light: #8b5cf6;
  --primary-purple-lighter: #a78bfa;
  --primary-purple-lightest: #c4b5fd;
  
  /* Gradient Colors */
  --gradient-start: #7c3aed;
  --gradient-mid: #8b5cf6;
  --gradient-end: #a78bfa;
  
  /* Neutral Colors */
  --black: #000000;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Background Colors */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #141414;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #e5e7eb;
  --text-tertiary: #9ca3af;
  --text-muted: #6b7280;
  
  /* Border Colors */
  --border-default: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.05);
  --border-focus: var(--primary-purple);
  
  /* Shadow Colors */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.5);
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;
  --space-5xl: 6rem;
  --space-4xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
  
  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ===================================
   Base Reset & Global Styles
   =================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
}

/* ===================================
   Typography System
   =================================== */

/* Font Face Definitions (AWS Diatype-like fallback) */
@font-face {
  font-family: 'MarketMate Sans';
  src: local(-apple-system), local(BlinkMacSystemFont);
  font-weight: 400;
}

@font-face {
  font-family: 'MarketMate Sans';
  src: local(-apple-system), local(BlinkMacSystemFont);
  font-weight: 500;
}

@font-face {
  font-family: 'MarketMate Sans';
  src: local(-apple-system), local(BlinkMacSystemFont);
  font-weight: 600;
}

@font-face {
  font-family: 'MarketMate Sans';
  src: local(-apple-system), local(BlinkMacSystemFont);
  font-weight: 700;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'MarketMate Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.875rem;
  font-weight: 600;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

h5 {
  font-size: 1.25rem;
  font-weight: 500;
}

h6 {
  font-size: 1.125rem;
  font-weight: 500;
}

/* Body Text */
p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  line-height: 1.6;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.5;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1.5;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.6;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.6;
}

/* Text Utilities */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-muted { color: var(--text-muted); }
.text-purple { color: var(--primary-purple); }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ===================================
   Links
   =================================== */

a {
  color: var(--primary-purple);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-purple-light);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--primary-purple);
  outline-offset: 2px;
}

/* ===================================
   Buttons
   =================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn:focus {
  outline: 2px solid var(--primary-purple);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  color: var(--white);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-purple-dark), var(--gradient-start));
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(124, 58, 237, 0.6);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--bg-card-hover);
  border-color: var(--primary-purple);
  color: var(--primary-purple);
}

/* Ghost Button */
.btn-ghost {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid transparent;
}

.btn-ghost:hover:not(:disabled) {
  background-color: rgba(124, 58, 237, 0.1);
  color: var(--primary-purple);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.875rem;
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.125rem;
}

/* Button with Icon */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ===================================
   Forms & Inputs
   =================================== */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Form Validation States */
.form-input.is-invalid,
.form-textarea.is-invalid,
.form-select.is-invalid {
  border-color: #ef4444;
}

.form-input.is-valid,
.form-textarea.is-valid,
.form-select.is-valid {
  border-color: #10b981;
}

.form-error {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.875rem;
  color: #ef4444;
}

.form-hint {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: var(--space-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.form-check-input[type="radio"] {
  border-radius: var(--radius-full);
}

.form-check-input:checked {
  background-color: var(--primary-purple);
  border-color: var(--primary-purple);
}

.form-check-label {
  cursor: pointer;
  user-select: none;
}

/* ===================================
   Cards & Containers
   =================================== */

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg);
}

.card-header {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-default);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.card-subtitle {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.card-body {
  color: var(--text-secondary);
}

.card-footer {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-default);
}

/* Gradient Card */
.card-gradient {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.card-gradient:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
}

/* ===================================
   Utilities
   =================================== */

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }

/* Flexbox */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.align-stretch { align-items: stretch; }

/* Gap */
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Margin */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-xs); }
.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); }
.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-xs); }
.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); }

/* Padding */
.p-0 { padding: 0; }
.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.px-0 { padding-left: 0; padding-right: 0; }
.px-xs { padding-left: var(--space-xs); padding-right: var(--space-xs); }
.px-sm { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-lg { padding-left: var(--space-lg); padding-right: var(--space-lg); }
.px-xl { padding-left: var(--space-xl); padding-right: var(--space-xl); }
.py-0 { padding-top: 0; padding-bottom: 0; }
.py-xs { padding-top: var(--space-xs); padding-bottom: var(--space-xs); }
.py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

/* Width & Height */
.w-100 { width: 100%; }
.w-auto { width: auto; }
.h-100 { height: 100%; }
.h-auto { height: auto; }
.min-h-screen { min-height: 100vh; }

/* Border Radius */
.rounded-0 { border-radius: 0; }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-none { box-shadow: none; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Position */
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

/* Z-index */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ===================================
   Animations & Transitions
   =================================== */

/* Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn var(--transition-slow) ease-in-out;
}

/* Slide Up */
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-up {
  animation: slideUp var(--transition-slow) ease-out;
}

/* Pulse */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Spin */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Gradient Animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* Glow Effect */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.8), 0 0 40px rgba(124, 58, 237, 0.4);
  }
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Hover Lift */
.hover-lift {
  transition: transform var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* ===================================
   Special Components
   =================================== */

/* Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}

.badge-primary {
  background-color: var(--primary-purple);
  color: var(--white);
  border-color: var(--primary-purple);
}

.badge-success {
  background-color: #10b981;
  color: var(--white);
  border-color: #10b981;
}

.badge-warning {
  background-color: #f59e0b;
  color: var(--white);
  border-color: #f59e0b;
}

.badge-danger {
  background-color: #ef4444;
  color: var(--white);
  border-color: #ef4444;
}

/* Progress Bar */
.progress {
  width: 100%;
  height: 0.5rem;
  background-color: var(--bg-card);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow) ease-out;
}

/* Divider */
.divider {
  height: 1px;
  background-color: var(--border-default);
  margin: var(--space-lg) 0;
}

.divider-vertical {
  width: 1px;
  height: 100%;
  background-color: var(--border-default);
  margin: 0 var(--space-lg);
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--border-default);
  border-radius: 50%;
  border-top-color: var(--primary-purple);
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  width: 1rem;
  height: 1rem;
}

.spinner-lg {
  width: 2.5rem;
  height: 2.5rem;
  border-width: 3px;
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  visibility: hidden;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-card);
  color: var(--text-primary);
  text-align: center;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  white-space: nowrap;
  z-index: var(--z-tooltip);
  opacity: 0;
  transition: opacity var(--transition-fast);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-default);
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* ===================================
   Footer Component Enhancement
   =================================== */

.footer-enhanced {
  background-color: var(--bg-tertiary);
  border-top: 1px solid var(--border-default);
  padding: var(--space-5xl) 0 var(--space-2xl);
  position: relative;
}

.footer-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.02) 0%, rgba(0, 0, 0, 0.05) 100%);
  pointer-events: none;
}

.footer-enhanced > .container {
  position: relative;
  z-index: 2;
}

/* Footer Main Section */
.footer-main {
  margin-bottom: var(--space-3xl);
}

/* Brand Section */
.footer-brand {
  margin-bottom: var(--space-3xl);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.brand-logo {
  height: 40px;
  width: auto;
  transition: opacity var(--transition-base);
}

.brand-logo:hover {
  opacity: 0.8;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  max-width: 320px;
}

/* Footer Columns */
.footer-column {
  margin-bottom: var(--space-2xl);
}

.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link-item {
  margin-bottom: var(--space-md);
}

.footer-link-item:last-child {
  margin-bottom: 0;
}

.footer-link {
  display: inline-block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: all var(--transition-base);
  position: relative;
}

.footer-link:hover {
  color: var(--primary-purple);
  text-decoration: none;
  transform: translateX(2px);
}

.footer-link:focus {
  outline: 2px solid var(--primary-purple);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Footer Bottom Section */
.footer-bottom {
  padding-top: var(--space-xl);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border-default) 20%,
    var(--border-default) 80%,
    transparent 100%
  );
  margin-bottom: var(--space-xl);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-copyright p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin: 0;
  font-weight: 400;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.footer-social-link {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-base);
  position: relative;
}

.footer-social-link:hover {
  color: var(--primary-purple);
  text-decoration: none;
}

.footer-social-link:focus {
  outline: 2px solid var(--primary-purple);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Footer Responsive Design */
@media (max-width: 480px) {
  .footer-enhanced {
    padding: var(--space-2xl) 0 var(--space-lg);
  }
  
  .footer-main {
    margin-bottom: var(--space-xl);
  }
  
  .footer-brand {
    margin-bottom: var(--space-xl);
    text-align: center;
  }
  
  .brand-wrapper {
    justify-content: center;
    margin-bottom: var(--space-sm);
  }
  
  .brand-logo {
    height: 32px;
  }
  
  .brand-name {
    font-size: 1.25rem;
  }
  
  .brand-description {
    text-align: center;
    margin: 0 auto;
    font-size: 0.9rem;
    max-width: 280px;
  }
  
  .footer-column {
    margin-bottom: var(--space-lg);
  }
  
  .footer-column:nth-child(even) {
    padding-left: 0;
  }
  
  .footer-heading {
    margin-bottom: var(--space-sm);
    font-size: 0.85rem;
    text-align: center;
  }
  
  .footer-links {
    text-align: center;
  }
  
  .footer-link {
    font-size: 0.8rem;
    display: block;
    padding: var(--space-xs) 0;
  }
  
  .footer-link-item {
    margin-bottom: var(--space-xs);
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
  
  .footer-social {
    gap: var(--space-md);
    justify-content: center;
  }
  
  .footer-copyright p {
    font-size: 0.8rem;
  }
  
  .footer-social-link {
    font-size: 0.8rem;
  }
}

@media (max-width: 767px) {
  .footer-enhanced {
    padding: var(--space-3xl) 0 var(--space-xl);
  }
  
  .footer-main {
    margin-bottom: var(--space-2xl);
  }
  
  .footer-brand {
    margin-bottom: var(--space-2xl);
    text-align: center;
  }
  
  .brand-wrapper {
    justify-content: center;
    margin-bottom: var(--space-md);
  }
  
  .brand-description {
    text-align: center;
    margin: 0 auto;
  }
  
  .footer-column {
    margin-bottom: var(--space-xl);
  }
  
  .footer-column:nth-child(even) {
    padding-left: var(--space-lg);
  }
  
  .footer-heading {
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
  }
  
  .footer-link {
    font-size: 0.85rem;
  }
  
  .footer-link-item {
    margin-bottom: var(--space-sm);
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
  
  .footer-social {
    gap: var(--space-lg);
  }
}

@media (min-width: 768px) {
  .footer-column {
    margin-bottom: 0;
  }
  
  .footer-brand {
    margin-bottom: 0;
    padding-right: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .footer-enhanced {
    padding: var(--space-5xl) 0 var(--space-3xl);
  }
  
  .footer-main {
    margin-bottom: var(--space-4xl);
  }
  
  .brand-description {
    max-width: 380px;
    font-size: 1.05rem;
  }
  
  .footer-heading {
    font-size: 1.05rem;
  }
  
  .footer-link {
    font-size: 0.95rem;
  }
}

/* Animation Enhancements */
.footer-enhanced .footer-link-item {
  transform: translateY(0);
  transition: transform var(--transition-base);
}

.footer-enhanced:hover .footer-link-item:hover {
  transform: translateY(-1px);
}

/* Focus Management for Accessibility */
.footer-enhanced a:focus-visible {
  outline: 2px solid var(--primary-purple);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Additional Utility Classes for Footer */
.footer-utility-spacing {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
}

.footer-section-divider {
  height: 1px;
  background: var(--border-default);
  margin: var(--space-2xl) 0;
  opacity: 0.6;
}

/* ===================================
   Responsive Grid System
   =================================== */

.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-md);
  padding-left: var(--space-md);
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(var(--space-md) * -1);
  margin-left: calc(var(--space-md) * -1);
}

.col {
  flex: 1 0 0%;
  padding-right: var(--space-md);
  padding-left: var(--space-md);
}

/* Grid Columns */
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Responsive Grid Breakpoints */
@media (min-width: 768px) {
  .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
  .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* ===================================
   Accessibility
   =================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--primary-purple);
  outline-offset: 2px;
}

/* ===================================
   Print Styles
   =================================== */

@media print {
  body {
    background-color: white;
    color: black;
  }
  
  .no-print {
    display: none !important;
  }
}
/* ===================================
   Section Improvements
   =================================== */

.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section + .section {
  margin-top: var(--space-xl);
}

.bg-dark-800 {
  position: relative;
}

.bg-dark-800::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.03) 0%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
  z-index: 1;
}

.bg-dark-800 > * {
  position: relative;
  z-index: 2;
}

/* Better section titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-xl);
  text-align: center;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

/* ===================================
   Navigation Dropdown
   =================================== */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  position: relative;
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 0.7rem;
  margin-left: 0.5rem;
  transition: transform var(--transition-fast);
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  padding: var(--space-sm) 0;
  margin-top: var(--space-sm);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
  text-decoration: none;
}

.dropdown-item:focus {
  outline: 2px solid var(--primary-purple);
  outline-offset: -2px;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-default);
  margin: var(--space-sm) 0;
}

/* Improved spacing utilities */
.mb-xs { margin-bottom: var(--space-xs); }
.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); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }
.mb-4xl { margin-bottom: var(--space-4xl); }
.mb-5xl { margin-bottom: var(--space-5xl); }

.mt-xs { margin-top: var(--space-xs); }
.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); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }
.mt-4xl { margin-top: var(--space-4xl); }
.mt-5xl { margin-top: var(--space-5xl); }

.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }
.p-3xl { padding: var(--space-3xl); }
.p-4xl { padding: var(--space-4xl); }
.p-5xl { padding: var(--space-5xl); }

/* ===================================
   Grid System Improvements
   =================================== */

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   Pricing Card Fixes
   =================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--color-dark-900, var(--bg-card));
  border: 1px solid var(--color-dark-700, var(--border-default));
  border-radius: var(--border-radius-lg, var(--radius-lg));
  overflow: hidden;
  position: relative;
  height: 100%;
}

.pricing-header {
  flex-shrink: 0;
}

.pricing-features {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pricing-features ul {
  flex: 1;
}

.pricing-card .btn {
  margin: 0 2rem 2rem 2rem;
  width: calc(100% - 4rem);
}

/* ===================================
   Footer Improvements
   =================================== */

footer {
  background: var(--bg-secondary);
  border-top: 2px solid var(--border-default);
  margin-top: var(--space-5xl);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
  opacity: 0.3;
}

.bg-tertiary {
  background-color: var(--bg-tertiary);
}

.border-t {
  border-top: 1px solid;
}

.border-default {
  border-color: var(--border-default);
}

.py-3xl {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

/* ===================================
   Icon Spacing Fixes
   =================================== */

/* FontAwesome Icons with proper spacing */
h1 i,
h2 i,
h3 i,
h4 i,
h5 i,
h6 i,
.text-gradient i,
.btn i,
.form-label i,
.badge i,
.dropdown-item i,
.footer-link i,
a i,
span i,
div i,
p i {
  margin-right: var(--space-sm);
}

/* FontAwesome classes with proper spacing */
.fas,
.far,
.fab,
.fal,
.fad,
.fa-solid,
.fa-regular,
.fa-brands,
.fa-light,
.fa-duotone {
  margin-right: var(--space-sm);
}

/* Fix for icons at the end of elements - only remove margin when truly needed */
/* Only remove right margin for icons that are inside elements where spacing would be unwanted */
.no-icon-spacing i:last-child,
.no-icon-spacing .fas:last-child,
.no-icon-spacing .far:last-child,
.no-icon-spacing .fab:last-child,
.no-icon-spacing .fal:last-child,
.no-icon-spacing .fad:last-child,
.no-icon-spacing .fa-solid:last-child,
.no-icon-spacing .fa-regular:last-child,
.no-icon-spacing .fa-brands:last-child,
.no-icon-spacing .fa-light:last-child,
.no-icon-spacing .fa-duotone:last-child {
  margin-right: 0;
}

/* Fix for icons that are the first child - add left margin if needed */
i:first-child,
.fas:first-child,
.far:first-child,
.fab:first-child,
.fal:first-child,
.fad:first-child,
.fa-solid:first-child,
.fa-regular:first-child,
.fa-brands:first-child,
.fa-light:first-child,
.fa-duotone:first-child {
  margin-left: 0;
}

/* Special case for button icons */
.btn i,
.btn .fas,
.btn .far,
.btn .fab,
.btn .fal,
.btn .fad,
.btn .fa-solid,
.btn .fa-regular,
.btn .fa-brands,
.btn .fa-light,
.btn .fa-duotone {
  margin-right: var(--space-sm);
  vertical-align: middle;
}

/* Special case for form label icons */
.form-label i,
.form-label .fas,
.form-label .far,
.form-label .fab,
.form-label .fal,
.form-label .fad,
.form-label .fa-solid,
.form-label .fa-regular,
.form-label .fa-brands,
.form-label .fa-light,
.form-label .fa-duotone {
  margin-right: var(--space-sm);
  vertical-align: baseline;
}

/* ===================================
   Additional Visual Hierarchy
   =================================== */

.align-center {
  align-items: center;
}

.gap-xl {
  gap: var(--space-xl);
}

/* Additional color variables for dark theme compatibility */
:root {
  --color-dark-900: var(--bg-secondary);
  --color-dark-800: var(--bg-tertiary);
  --color-dark-700: var(--bg-card);
  --color-text-primary: var(--text-primary);
  --color-text-secondary: var(--text-secondary);
  --color-text-muted: var(--text-muted);
  --color-primary-400: var(--primary-purple-lighter);
  --color-primary-500: var(--primary-purple-light);
  --color-success: #10b981;
  --border-radius-lg: var(--radius-lg);
  --border-radius-md: var(--radius-md);
  --border-radius-sm: var(--radius-sm);
}

/* Fix button overflow in pricing cards */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .pricing-card .btn {
    margin: 0 1.5rem 1.5rem 1.5rem;
    width: calc(100% - 3rem);
    font-size: 0.875rem;
    padding: var(--space-sm) var(--space-md);
  }
}

@media (max-width: 480px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   Footer Content Styles
   =================================== */

.site-footer {
  background: var(--bg-secondary);
  border-top: 2px solid var(--border-default);
  margin-top: var(--space-5xl);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
  opacity: 0.5;
}

.footer-content {
  position: relative;
  z-index: 2;
}

/* ===================================
   Hover States
   =================================== */

.hover\:text-primary:hover {
  color: var(--primary-purple);
  text-decoration: none;
}

/* ===================================
   Additional Fixes
   =================================== */

/* Ensure proper spacing in sections */
.section + .section {
  margin-top: 0;
}

/* Fix pricing badge positioning */
.pricing-badge {
  position: absolute;
  top: 0;
  right: 2rem;
  background: var(--color-primary-500, var(--primary-purple));
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0 0 var(--border-radius-sm, var(--radius-sm)) var(--border-radius-sm, var(--radius-sm));
  z-index: 10;
}

/* Ensure pricing cards have equal height */
.pricing-card {
  min-height: 500px;
}

/* Fix hero visual positioning */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Improve feature card hover effects */
.feature-card {
  transition: all var(--transition-base);
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}

/* Fix testimonial card styling */
.testimonial-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-content {
  flex: 1;
}

/* Ensure buttons don't overflow */
.btn {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fix section backgrounds */
.bg-dark-800 {
  background-color: var(--color-dark-800, var(--bg-secondary));
}

/* ===================================
   Pricing Section Specific Fixes
   =================================== */

#pricing {
  overflow-x: hidden;
}

.pricing-grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  contain: layout;
}

.pricing-card .btn.w-100 {
  width: calc(100% - 4rem) !important;
  margin: 0 2rem 2rem 2rem;
}

/* Ensure pricing cards don't cause horizontal scroll */
@media (max-width: 768px) {
  .pricing-card {
    max-width: 100%;
  }
  
  .pricing-card .btn.w-100 {
    width: calc(100% - 3rem) !important;
    margin: 0 1.5rem 1.5rem 1.5rem;
  }
}

/* ===================================
   Final Layout Adjustments
   =================================== */

/* Prevent horizontal overflow */
body {
  overflow-x: hidden;
}

main {
  overflow-x: hidden;
}

.container {
  max-width: 100%;
}

/* Fix grid gaps on smaller screens */
@media (max-width: 1024px) {
  .features-grid {
    gap: 1.5rem;
  }
  
  .grid {
    gap: var(--space-md);
  }
}

EOF < /dev/null