:root {
  /* Colors - Light Theme */
  --bg-color: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #5a5a5a;
  --accent-gold: #e6a619;
  /* Slightly darker gold for better contrast on white */
  --accent-gold-dim: #b38520;
  --accent-blue: #0066cc;

  --gradient-main: linear-gradient(135deg, var(--accent-gold) 0%, #f59e0b 100%);
  --gradient-dark: linear-gradient(to bottom, #ffffff, #f1f1f1);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.05);
  --card-bg: #ffffff;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

  /* Typography */
  --font-main: 'Outfit', sans-serif;

  /* Spacing */
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Container */
  --container-width: 1200px;
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Utilities */
.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

#main-header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  /* Optional: Add gold accent to part of logo if desired */
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-gold);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background: radial-gradient(circle at center, #ffffff 0%, #f0f4f8 100%);
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-icon {
  color: var(--accent-gold);
}

.hero-content {
  z-index: 2;
  position: relative;
  max-width: 800px;
  padding: 0 var(--spacing-sm);
}

#hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--gradient-main);
  color: #000000;
  font-weight: 700;
  border-radius: 50px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 15px rgba(230, 166, 25, 0.3);
  border: 2px solid transparent;
  /* Prepare for border transition */
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(230, 166, 25, 0.4);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold-dim);
  box-shadow: none;
}

.cta-button.secondary:hover {
  background: rgba(230, 166, 25, 0.05);
  color: var(--accent-gold);
  box-shadow: 0 4px 15px rgba(230, 166, 25, 0.1);
}

.hero-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(46, 143, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

/* --- Impact Numbers Section --- */
#stats-section {
  padding: var(--spacing-md) 0;
  background: white;
  margin-top: -2rem;
  /* Overlap effect if desired, or just spacing */
  position: relative;
  z-index: 5;
}

/* --- Hero Stats --- */
/* --- Hero Stats (Pills) --- */
.hero-stats-pills {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
  color: var(--text-primary);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.pill-icon {
  font-size: 1.2rem;
}

.pill-text strong {
  color: var(--text-primary);
  /* Keep text clean black/dark */
  font-weight: 800;
}

/* Cleanup old stats section styles */
.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xl);
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--glass-border);
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  font-family: var(--font-main);
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: #eaeaea;
}

@media (max-width: 768px) {
  .stats-grid {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

/* --- B2B Carousel Styles --- */
#category-carousel {
  padding: var(--spacing-md) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.carousel-container {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: var(--spacing-md);
  width: max-content;
  animation: scroll 30s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.category-card {
  background: white;
  border: 1px solid var(--glass-border);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 250px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-gold);
}

.cat-icon {
  font-size: 1.8rem;
}

.category-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}


/* Global Card & Input Styles */
.card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: var(--spacing-md);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Form Styles Override for Light Mode */
.form-container {
  background: #ffffff !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--card-shadow);
}

.form-container label {
  color: var(--text-primary) !important;
  font-weight: 600;
}

.form-container input,
.form-container select,
.form-container textarea {
  background: #f8f9fa !important;
  border: 1px solid #e1e4e8 !important;
  color: var(--text-primary) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
  background: #ffffff !important;
  border-color: var(--accent-gold) !important;
  box-shadow: 0 0 0 3px rgba(230, 166, 25, 0.1);
}

.items-header {
  background: #f8f9fa !important;
  color: var(--text-primary) !important;
  border: 1px solid #e1e4e8;
}

.item-row {
  background: #ffffff !important;
  border-bottom: 1px solid #f1f1f1;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* simple hide for now, will add mobile menu js */
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-color);
    padding: var(--spacing-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--glass-border);
    animation: slideDown 0.3s ease forwards;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .mobile-menu-btn {
    display: block;
  }

  #hero h1 {
    font-size: 2.5rem;
  }
}