:root,
[data-bs-theme="light"] {
  --bs-primary: #fbb244;
  --bs-primary-rgb: 251, 178, 68;
  --bs-primary-text-emphasis: #64471b;
  --bs-primary-bg-subtle: #fef0da;
  --bs-primary-border-subtle: #fde0b4;
  --bs-link-color: #fbb244;
  --bs-link-color-rgb: 251, 178, 68;
  --bs-link-hover-color: #fbb244;
  --bs-link-hover-color-rgb: 251, 178, 68;
}

.btn-primary {
  --bs-btn-color: #000000;
  --bs-btn-bg: #fbb244;
  --bs-btn-border-color: #fbb244;
  --bs-btn-hover-color: #000000;
  --bs-btn-hover-bg: #fcbe60;
  --bs-btn-hover-border-color: #fbba57;
  --bs-btn-focus-shadow-rgb: 38, 27, 10;
  --bs-btn-active-color: #000000;
  --bs-btn-active-bg: #fcc169;
  --bs-btn-active-border-color: #fbba57;
  --bs-btn-disabled-color: #000000;
  --bs-btn-disabled-bg: #fbb244;
  --bs-btn-disabled-border-color: #fbb244;
}

.btn-outline-primary {
  --bs-btn-color: #fbb244;
  --bs-btn-border-color: #fbb244;
  --bs-btn-focus-shadow-rgb: 251, 178, 68;
  --bs-btn-hover-color: #000000;
  --bs-btn-hover-bg: #fbb244;
  --bs-btn-hover-border-color: #fbb244;
  --bs-btn-active-color: #000000;
  --bs-btn-active-bg: #fbb244;
  --bs-btn-active-border-color: #fbb244;
  --bs-btn-disabled-color: #fbb244;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #fbb244;
}

[data-bs-theme="dark"] {
  --bs-link-color: #fbb244;
  --bs-link-color-rgb: 251, 178, 68;
  --bs-link-hover-color: #fbb244;
  --bs-link-hover-color-rgb: 251, 178, 68;
}

/* Typography & Spacing System - Responsive and Harmonious */
:root {
  --font-size-hero: clamp(2.5rem, 5vw, 4rem);
  --font-size-h1: clamp(2rem, 4vw, 3.5rem);
  --font-size-h2: clamp(1.5rem, 3vw, 2.5rem);
  --font-size-h3: clamp(1.25rem, 2.5vw, 2rem);
  --font-size-h4: clamp(1.1rem, 2vw, 1.5rem);
  --font-size-body-large: clamp(1.1rem, 1.8vw, 1.4rem);
  --font-size-body: clamp(1rem, 1.5vw, 1.2rem);
  --font-size-small: clamp(0.9rem, 1.2vw, 1rem);
  --font-size-xs: clamp(0.8rem, 1vw, 0.9rem);

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Font Weight Hierarchy */
  --font-weight-thin: 200;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing System */
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(0.75rem, 1.5vw, 1rem);
  --space-md: clamp(1rem, 2vw, 1.5rem);
  --space-lg: clamp(1.5rem, 3vw, 2rem);
  --space-xl: clamp(2rem, 4vw, 3rem);
  --space-2xl: clamp(2.5rem, 5vw, 4rem);
  --space-3xl: clamp(3rem, 6vw, 5rem);
  --space-4xl: clamp(4rem, 8vw, 6rem);
  --space-5xl: clamp(5rem, 10vw, 8rem);
}

/* Pulse glow effect */
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    text-shadow: 0 0 5px rgba(251, 176, 64, 0.5),
      0 0 10px rgba(251, 176, 64, 0.3);
  }

  50% {
    text-shadow: 0 0 10px rgba(251, 176, 64, 0.8),
      0 0 20px rgba(251, 176, 64, 0.5), 0 0 30px rgba(251, 176, 64, 0.3);
  }
}

/* Typography classes */
.font-hero {
  font-size: var(--font-size-hero);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-bold);
}

.font-h1 {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-semibold);
}

.font-h2 {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-semibold);
}

.font-h3 {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-normal);
  font-weight: var(--font-weight-medium);
}

.font-h4 {
  font-size: var(--font-size-h4);
  line-height: var(--line-height-normal);
  font-weight: var(--font-weight-medium);
}

.font-body-large {
  font-size: var(--font-size-body-large);
  line-height: var(--line-height-relaxed);
  font-weight: var(--font-weight-light);
}

.font-body {
  font-size: var(--font-size-body);
  line-height: var(--line-height-normal);
  font-weight: var(--font-weight-normal);
}

.font-small {
  font-size: var(--font-size-small);
  line-height: var(--line-height-normal);
  font-weight: var(--font-weight-normal);
}

/* Weight utilities */
.weight-thin {
  font-weight: var(--font-weight-thin) !important;
}

.weight-light {
  font-weight: var(--font-weight-light) !important;
}

.weight-normal {
  font-weight: var(--font-weight-normal) !important;
}

.weight-medium {
  font-weight: var(--font-weight-medium) !important;
}

.weight-semibold {
  font-weight: var(--font-weight-semibold) !important;
}

.weight-bold {
  font-weight: var(--font-weight-bold) !important;
}

/* Spacing utilities */
.section-padding {
  padding: var(--space-3xl) 0;
}

.section-padding-sm {
  padding: var(--space-2xl) 0;
}

.section-padding-lg {
  padding: var(--space-4xl) 0;
}

.spacing-section-gap {
  margin-bottom: var(--space-2xl);
}

/* Improved cards */
.improved-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: var(--space-lg);
  transition: all 0.3s ease;
  height: 100%;
}

.improved-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(251, 176, 64, 0.3);
  transform: translateY(-5px);
}

/* Stats improvements */
.stats-container {
  background: rgba(21, 21, 21, 0.8);
  border-radius: 16px;
  padding: var(--space-2xl);
  margin: var(--space-3xl) 0;
}

.stat-item {
  text-align: center;
  padding: var(--space-md);
}

.stat-number {
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: #fbb040;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Component cards */
.component-card {
  background: rgba(21, 21, 21, 0.8);
  border-radius: 12px;
  padding: var(--space-lg);
  transition: all 0.3s ease;
  height: 100%;
  text-align: center;
}

.component-card:hover {
  transform: translateY(-10px);
  background: rgba(21, 21, 21, 0.9);
}

.component-card img {
  border-radius: 8px;
  margin-bottom: var(--space-md);
  transition: transform 0.3s ease;
}

.component-card:hover img {
  transform: scale(1.05);
}

.component-card a {
  color: #bebebe;
  text-decoration: none;
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-medium);
  transition: color 0.3s ease;
}

.component-card:hover a {
  color: #fbb040;
}

/* Table improvements */
.improved-table {
  background: rgba(21, 21, 21, 0.9);
  border-radius: 12px;
  overflow: hidden;
  margin: var(--space-2xl) 0;
}

.improved-table td {
  padding: var(--space-md);
  font-size: var(--font-size-body);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.improved-table td:first-child {
  font-weight: var(--font-weight-medium);
  color: #fbb040;
  width: 35%;
}

.improved-table td:last-child {
  font-weight: var(--font-weight-light);
  color: #ffffff;
}

/* Feature list */
.feature-list {
  text-align: center;
  margin: var(--space-3xl) 0;
}

.feature-item {
  display: inline-block;
  margin: var(--space-xs) 0;
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
}

.feature-bullet {
  color: #fbb040;
  margin: 0 var(--space-sm);
}

/* Responsive utilities */
@media (max-width: 768px) {
  .mobile-center {
    text-align: center !important;
  }

  .mobile-stack {
    margin-bottom: var(--space-lg);
  }

  .stat-item {
    margin-bottom: var(--space-lg);
  }

  /* Extra spacing for mobile to prevent overlap */
  .container[style*="margin-top: 15vh"] {
    margin-top: 20vh !important;
  }
}
