:root {
  --primary: #8cbf3f;
  --primary-600: #6f9d2d;
  --primary-700: #547923;
  --primary-800: #435f20;
  --primary-400: #9bcc3e;
  --primary-300: #b2d76a;
  --primary-200: #cee69e;
  --primary-100: #e5f3cc;
  --primary-50: #f4f9e8;
  --accent: #8cbf3f;
  --bg-light: #ffffff;
  --bg-surface: #f9fbf6;
  --bg-surface-2: #f2f7ec;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-light);
  color: var(--text-primary);
}

::selection {
  background-color: rgba(140, 191, 63, 0.3);
  color: #0f172a;
}

.hero-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(140, 191, 63, 0.15) 1px, transparent 0);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1) 70%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1) 70%, transparent 90%);
}

.glass-card {
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.aceternity-border {
  position: relative;
}

.aceternity-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(120% 120% at 50% 0%, rgba(140, 191, 63, 0.35), transparent 70%),
              radial-gradient(120% 120% at 50% 100%, rgba(111, 157, 45, 0.25), transparent 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.aceternity-border:hover::before {
  opacity: 1;
}

.floating-blur {
  filter: blur(90px);
  will-change: transform, opacity;
}

.pulse-glow {
  box-shadow: 0 0 0 0 rgba(140, 191, 63, 0.4);
  animation: pulse-glow 2.2s infinite;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(140, 191, 63, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(140, 191, 63, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(140, 191, 63, 0);
  }
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #8cbf3f, #547923);
  transition: width 0.25s ease-out;
}

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

/* Gradient background text utility for Light Mode */
.brand-gradient-text {
  background: linear-gradient(135deg, #547923 0%, #6f9d2d 40%, #8cbf3f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Primary Button in Light Mode */
.brand-btn-gradient {
  background: linear-gradient(135deg, #8cbf3f 0%, #7caf30 100%);
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.brand-btn-gradient:hover {
  background: linear-gradient(135deg, #9bcc3e 0%, #83b934 100%);
  color: #ffffff;
}

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