:root {
  --primary-900: #0f3823;
  --primary-800: #14532d;
  --primary-700: #15803d;
  --primary-600: #16a34a;
  --primary-500: #22c55e;
  --primary-100: #dcfce7;
  --primary-50:  #f0fdf4;
  
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;

  --dark-950: #090e13;
  --dark-900: #0f172a;
  --dark-800: #1e293b;
  --dark-700: #334155;
  
  --light-bg: #f8fafc;
  --card-border: rgba(22, 163, 74, 0.12);
}

body > .bg-slate-900.text-slate-300 {
  display: none;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #1e293b;
  background-color: #ffffff;
}

body {
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #16a34a;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #15803d;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseSubtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

.animate-float {
  animation: floatSlow 4s ease-in-out infinite;
}

.animate-pulse-subtle {
  animation: pulseSubtle 3s ease-in-out infinite;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(22, 101, 52, 0.1), 0 8px 10px -6px rgba(22, 101, 52, 0.08);
  border-color: rgba(22, 163, 74, 0.35);
}

.bg-cane-pattern {
  background-image: radial-gradient(rgba(22, 163, 74, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(9, 14, 19, 0.75) 0%, rgba(15, 23, 42, 0.88) 100%);
}

.hero-overlay-subtle {
  background: linear-gradient(180deg, rgba(9, 14, 19, 0.65) 0%, rgba(15, 23, 42, 0.82) 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 9999px;
  background: rgba(5, 46, 22, 0.78);
  color: #bbf7d0;
  box-shadow: 0 8px 24px rgba(5, 46, 22, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  border-radius: 9999px;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  animation: heroBadgePulse 3s ease-in-out infinite;
}

@keyframes heroBadgePulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45);
  }
  50% {
    opacity: 0.72;
    box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.08);
  }
}

@media (max-width: 640px) {
  .hero-badge {
    align-items: flex-start;
    border-radius: 1rem;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge-dot {
    animation: none;
  }
}

.nav-link.active {
  color: #16a34a !important;
  font-weight: 600;
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #16a34a;
  border-radius: 2px;
}

.form-input-focus:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

#news-articles-grid .news-article-card {
  opacity: 1;
  visibility: visible;
  transform: none;
}

#news-articles-grid .news-article-card:hover {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  #news-articles-grid .news-article-card,
  #news-articles-grid .news-article-card:hover {
    transform: none;
  }
}

#news-articles-grid {
  min-height: 18rem;
}

#news-articles-grid:empty {
  visibility: hidden;
}

#news-articles-grid:not(:empty) {
  visibility: visible;
}
