/* Seafaro Design System v2.0 */
/* Based on Modern Redesign Specification */

/* ============================================
   1. Design Tokens (CSS Custom Properties)
   ============================================ */

:root {
  /* Primary - Deep Ocean */
  --color-primary-900: #0a1628;
  --color-primary-800: #0f2744;
  --color-primary-700: #163a5f;
  --color-primary-600: #1e4d7b;
  --color-primary-500: #2563eb;
  --color-primary-400: #60a5fa;
  --color-primary-300: #93c5fd;
  --color-primary-200: #bfdbfe;
  --color-primary-100: #dbeafe;
  --color-primary-50: #eff6ff;

  /* Accent - Sunset Gold */
  --color-accent-600: #d97706;
  --color-accent-500: #f59e0b;
  --color-accent-400: #fbbf24;
  --color-accent-300: #fcd34d;

  /* Neutrals - Slate */
  --color-neutral-950: #020617;
  --color-neutral-900: #0f172a;
  --color-neutral-800: #1e293b;
  --color-neutral-700: #334155;
  --color-neutral-600: #475569;
  --color-neutral-500: #64748b;
  --color-neutral-400: #94a3b8;
  --color-neutral-300: #cbd5e1;
  --color-neutral-200: #e2e8f0;
  --color-neutral-100: #f1f5f9;
  --color-neutral-50: #f8fafc;

  /* Semantic */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Surfaces */
  --surface-primary: #ffffff;
  --surface-elevated: #ffffff;
  --surface-sunken: #f8fafc;
  --surface-dark: #0f172a;

  /* Font Families */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Type Scale (Major Third - 1.25) */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  --text-7xl: 4.5rem;      /* 72px */

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;

  /* Spacing System (4px base unit) */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Section Spacing */
  --section-sm: var(--space-16);
  --section-md: var(--space-24);
  --section-lg: var(--space-32);

  /* Border Radius */
  --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;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Colored shadows for elevation */
  --shadow-primary: 0 4px 14px 0 rgb(37 99 235 / 0.25);
  --shadow-accent: 0 4px 14px 0 rgb(245 158 11 / 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-bounce: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   2. Base Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-neutral-900);
  background: var(--surface-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   3. Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-neutral-900);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  color: var(--color-neutral-600);
  line-height: var(--leading-relaxed);
}

.text-display {
  font-family: var(--font-display);
}

/* ============================================
   4. Layout Utilities
   ============================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-sm {
  max-width: 800px;
}

.container-lg {
  max-width: 1400px;
}

/* ============================================
   5. Navigation
   ============================================ */

.nav-modern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.nav-modern[data-scrolled="true"] {
  box-shadow: var(--shadow-md);
}

.nav-modern .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-modern .nav-logo img {
  height: 40px;
  width: auto;
}

.nav-modern .nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-modern .nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-neutral-600);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-modern .nav-link:hover {
  color: var(--color-primary-600);
}

.nav-modern .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary-500);
  transition: width var(--transition-base);
}

.nav-modern .nav-link:hover::after,
.nav-modern .nav-link.active::after {
  width: 100%;
}

.nav-modern .nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-modern {
    height: 64px;
  }

  .nav-modern .nav-menu {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }
}

/* ============================================
   6. Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
}

.btn-primary {
  background: var(--color-primary-500);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary {
  background: transparent;
  color: var(--color-primary-600);
  border: 1.5px solid var(--color-primary-200);
}

.btn-secondary:hover {
  background: var(--color-primary-50);
  border-color: var(--color-primary-300);
}

.btn-ghost {
  background: transparent;
  color: var(--color-neutral-600);
}

.btn-ghost:hover {
  background: var(--color-neutral-100);
  color: var(--color-neutral-900);
}

.btn-white {
  background: white;
  color: var(--color-primary-700);
  box-shadow: var(--shadow-lg);
}

.btn-white:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* Button Sizes */
.btn-sm {
  height: 32px;
  padding: 0 16px;
  font-size: var(--text-xs);
}

.btn-md {
  height: 40px;
  padding: 0 20px;
}

.btn-lg {
  height: 48px;
  padding: 0 28px;
  font-size: var(--text-base);
}

.btn-xl {
  height: 56px;
  padding: 0 32px;
  font-size: var(--text-base);
  border-radius: var(--radius-full);
}

/* ============================================
   7. Form Elements
   ============================================ */

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-neutral-700);
  margin-bottom: 6px;
}

.form-input,
.form-select {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--color-neutral-300);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: white;
  color: var(--color-neutral-900);
  transition: all var(--transition-fast);
}

.form-input:hover,
.form-select:hover {
  border-color: var(--color-neutral-400);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.form-input::placeholder {
  color: var(--color-neutral-400);
}

/* ============================================
   8. Hero Section
   ============================================ */

.hero-modern {
  position: relative;
  min-height: 90vh;
  max-height: 900px;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-700) 100%);
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero-pattern {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-8);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-neutral-300);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 800;
  color: white;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-neutral-300);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  line-height: var(--leading-relaxed);
}

/* Hero Search Bar */
.hero-search {
  max-width: 800px;
  margin: 0 auto var(--space-12);
}

.search-bar {
  display: flex;
  align-items: center;
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-2);
  box-shadow: var(--shadow-2xl);
}

.search-bar .search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  color: var(--color-neutral-400);
}

.search-bar .search-input {
  flex: 1;
  border: none;
  padding: var(--space-4) var(--space-4);
  font-size: var(--text-lg);
  background: transparent;
  color: var(--color-neutral-900);
}

.search-bar .search-input:focus {
  outline: none;
}

.search-bar .search-input::placeholder {
  color: var(--color-neutral-400);
}

.search-bar .search-select {
  width: 160px;
  padding: var(--space-3) var(--space-4);
  border: none;
  border-left: 1px solid var(--color-neutral-200);
  background: transparent;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-neutral-700);
  cursor: pointer;
}

.search-bar .search-select:focus {
  outline: none;
}

.search-bar .search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-primary-500);
  border: none;
  border-radius: var(--radius-xl);
  color: white;
  cursor: pointer;
  transition: all var(--transition-base);
}

.search-bar .search-submit:hover {
  background: var(--color-primary-600);
  transform: scale(1.05);
  box-shadow: var(--shadow-primary);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
}

.hero-stats .stat {
  text-align: center;
  position: relative;
}

.hero-stats .stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: calc(var(--space-12) / -2);
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-stats .stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: white;
  line-height: var(--leading-none);
  margin-bottom: var(--space-2);
}

.hero-stats .stat-label {
  font-size: var(--text-sm);
  color: var(--color-neutral-400);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

@media (max-width: 768px) {
  .hero-modern {
    min-height: auto;
    padding: var(--space-24) 0 var(--space-16);
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-subtitle {
    font-size: var(--text-lg);
  }

  .search-bar {
    flex-direction: column;
    padding: var(--space-4);
    gap: var(--space-3);
  }

  .search-bar .search-input,
  .search-bar .search-select {
    width: 100%;
    border-left: none;
    border-bottom: 1px solid var(--color-neutral-200);
    padding: var(--space-4);
  }

  .search-bar .search-select:last-of-type {
    border-bottom: none;
  }

  .search-bar .search-submit {
    width: 100%;
    height: 48px;
    border-radius: var(--radius-lg);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-6);
  }

  .hero-stats .stat {
    flex: 1 1 40%;
  }

  .hero-stats .stat::after {
    display: none;
  }

  .hero-stats .stat-number {
    font-size: var(--text-3xl);
  }
}

/* ============================================
   9. Market Data Section
   ============================================ */

.market-data-section {
  background: var(--surface-sunken);
  padding: var(--section-md) 0;
}

.market-data-container {
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-12);
}

.market-data-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.market-data-header h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.market-data-header p {
  font-size: var(--text-lg);
  color: var(--color-neutral-500);
}

/* Data Cards Grid */
.data-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.data-card {
  background: var(--surface-sunken);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.data-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.data-card-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-neutral-500);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
}

.data-card-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-neutral-900);
}

.data-card-value.accent {
  color: var(--color-primary-500);
}

.data-card-meta {
  font-size: var(--text-sm);
  color: var(--color-neutral-500);
  margin-top: var(--space-2);
}

/* Empty State */
.market-data-empty {
  text-align: center;
  padding: var(--space-16) var(--space-8);
}

.market-data-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  background: var(--color-primary-100);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-500);
}

.market-data-empty h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.market-data-empty p {
  color: var(--color-neutral-500);
  margin-bottom: var(--space-6);
}

.popular-searches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.search-chip {
  padding: var(--space-2) var(--space-4);
  background: var(--color-neutral-100);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-neutral-600);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.search-chip:hover {
  background: var(--color-primary-100);
  color: var(--color-primary-600);
}

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

  .market-data-container {
    padding: var(--space-6);
  }
}

/* ============================================
   10. Feature Cards Section
   ============================================ */

.features-section {
  padding: var(--section-md) 0;
}

.features-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.features-header h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.features-header p {
  font-size: var(--text-lg);
  color: var(--color-neutral-500);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.feature-card {
  background: white;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-200);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-100);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-600);
  margin-bottom: var(--space-5);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.feature-card p {
  font-size: var(--text-base);
  color: var(--color-neutral-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary-600);
  text-decoration: none;
}

.feature-link svg {
  transition: transform var(--transition-fast);
}

.feature-link:hover svg {
  transform: translateX(4px);
}

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

/* ============================================
   11. CTA Section
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, var(--color-primary-800) 0%, var(--color-primary-900) 100%);
  padding: var(--section-md) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-6);
}

.cta-content > p {
  font-size: var(--text-lg);
  color: var(--color-neutral-300);
  margin-bottom: var(--space-10);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.cta-buttons .btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.cta-buttons .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cta-trust {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
}

.cta-trust span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-neutral-400);
}

.cta-trust svg {
  color: var(--color-success);
}

@media (max-width: 768px) {
  .cta-content h2 {
    font-size: var(--text-3xl);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .cta-trust {
    flex-direction: column;
    gap: var(--space-3);
  }
}

/* ============================================
   12. Footer
   ============================================ */

.footer-modern {
  background: var(--color-neutral-900);
  padding: var(--space-20) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand p {
  color: var(--color-neutral-400);
  font-size: var(--text-base);
  margin: var(--space-4) 0 var(--space-6);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-neutral-800);
  border-radius: var(--radius-lg);
  color: var(--color-neutral-400);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-primary-600);
  color: white;
}

.footer-column h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-neutral-500);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-5);
}

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

.footer-column li {
  margin-bottom: var(--space-3);
}

.footer-column a {
  font-size: var(--text-sm);
  color: var(--color-neutral-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--color-neutral-800);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--color-neutral-500);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

/* ============================================
   13. Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-100 { animation-delay: 100ms; }
.animate-delay-200 { animation-delay: 200ms; }
.animate-delay-300 { animation-delay: 300ms; }
.animate-delay-400 { animation-delay: 400ms; }

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--color-neutral-200) 25%, var(--color-neutral-100) 50%, var(--color-neutral-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   14. Utility Classes
   ============================================ */

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

.text-white { color: white; }
.text-primary { color: var(--color-primary-500); }
.text-accent { color: var(--color-accent-500); }
.text-muted { color: var(--color-neutral-500); }

.bg-white { background: white; }
.bg-sunken { background: var(--surface-sunken); }
.bg-dark { background: var(--surface-dark); }
.bg-primary { background: var(--color-primary-500); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

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

/* ============================================
   15. Mobile Menu
   ============================================ */

.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: white;
  box-shadow: var(--shadow-2xl);
  z-index: 1001;
  transition: right var(--transition-slow);
  padding: var(--space-8);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   16. Autocomplete Component
   ============================================ */

.autocomplete-wrapper {
  position: relative;
  width: 100%;
  z-index: 200;
}

.autocomplete-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.autocomplete-input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 16px;
  border: 1.5px solid var(--color-neutral-300);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: white;
  color: var(--color-neutral-900);
  transition: all var(--transition-fast);
}

.autocomplete-input:hover {
  border-color: var(--color-neutral-400);
}

.autocomplete-input:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.autocomplete-input::placeholder {
  color: var(--color-neutral-400);
}

.autocomplete-input:disabled {
  background: var(--color-neutral-100);
  cursor: not-allowed;
  opacity: 0.7;
}

.autocomplete-clear,
.autocomplete-spinner {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-neutral-400);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.autocomplete-clear:hover {
  color: var(--color-neutral-600);
  background: var(--color-neutral-100);
}

.autocomplete-spinner {
  cursor: default;
  color: var(--color-primary-500);
}

.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: white;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}

.autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.autocomplete-item:hover,
.autocomplete-item-selected {
  background: var(--color-primary-50);
}

.autocomplete-item-selected {
  background: var(--color-primary-100);
}

.autocomplete-item-label {
  flex: 1;
  font-size: var(--text-base);
  color: var(--color-neutral-900);
}

.autocomplete-item-label strong {
  color: var(--color-primary-600);
  font-weight: 600;
}

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

.autocomplete-item-popular {
  position: relative;
}

.autocomplete-popular-badge {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent-600);
  background: var(--color-accent-300);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.autocomplete-separator {
  height: 1px;
  background: var(--color-neutral-200);
  margin: var(--space-2) 0;
}

.autocomplete-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--color-neutral-500);
  font-size: var(--text-sm);
}

/* Autocomplete in open state */
.autocomplete-open .autocomplete-input {
  border-color: var(--color-primary-500);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.autocomplete-open .autocomplete-dropdown {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
}

/* Autocomplete disabled state */
.autocomplete-disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsive autocomplete */
@media (max-width: 768px) {
  .autocomplete-dropdown {
    max-height: 50vh;
  }

  .autocomplete-item {
    padding: 14px 16px;
  }
}
