/* ─── Custom Properties ─────────────────────────────── */
:root {
  --bg-white: #ffffff;
  --bg-cream: #f8faf9;
  --bg-mint: #ecfdf5;
  --emerald: #10b981;
  --emerald-light: #34d399;
  --emerald-dark: #059669;
  --emerald-50: #ecfdf5;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --text-dark: #111827;
  --text-gray: #4b5563;
  --text-light: #9ca3af;
  --border: #e5e7eb;
}

html {
  scroll-behavior: smooth;
}

/* ─── Animations ───────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes float-reverse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-3deg); }
}

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

@keyframes kick-ball {
  0% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(10px) rotate(90deg); }
  50% { transform: translateX(0) rotate(180deg); }
  75% { transform: translateX(-10px) rotate(270deg); }
  100% { transform: translateX(0) rotate(360deg); }
}

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
}

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

@keyframes wave {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

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

.animate-float-reverse {
  animation: float-reverse 5s ease-in-out infinite;
}

.animate-bounce-gentle {
  animation: bounce-gentle 3s ease-in-out infinite;
}

.animate-kick-ball {
  animation: kick-ball 4s ease-in-out infinite;
}

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

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

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

/* ─── Scroll Reveal ────────────────────────────────── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Mobile Menu ──────────────────────────────────── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
  max-height: 300px;
}

/* ─── Feature Cards ────────────────────────────────── */
.feature-card {
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  background: white;
}

.feature-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.08);
  transform: translateY(-4px);
}

/* ─── Step Connector ──────────────────────────────── */
.step-badge {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ─── Gradient Text ────────────────────────────────── */
.text-gradient-emerald {
  background: linear-gradient(135deg, #059669, #10b981, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #d97706, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Stat Counter Shimmer ─────────────────────────── */
.stat-number {
  background: linear-gradient(90deg, var(--emerald), var(--gold), var(--emerald));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Pricing Card ─────────────────────────────────── */
.pricing-popular {
  border: 2px solid var(--emerald);
  box-shadow: 0 8px 40px rgba(16, 185, 129, 0.12);
}

/* ─── Hero Pattern ─────────────────────────────────── */
.hero-grass-pattern {
  background-image:
    radial-gradient(ellipse at 50% 100%, rgba(16, 185, 129, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(16, 185, 129, 0.03) 100%);
}

/* ─── Prediction Card Glow ─────────────────────────── */
.prediction-card {
  transition: all 0.3s ease;
}
.prediction-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

/* ─── Field pattern for sections ──────────────────── */
.field-lines-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Crect fill='none' stroke='%2310b98108' stroke-width='1' x='50' y='0' width='300' height='400'/%3E%3Cline x1='50' y1='200' x2='350' y2='200' stroke='%2310b98108' stroke-width='1'/%3E%3Ccircle cx='200' cy='200' r='60' fill='none' stroke='%2310b98108' stroke-width='1'/%3E%3Ccircle cx='200' cy='200' r='3' fill='%2310b98108'/%3E%3C/svg%3E");
  background-size: 400px 400px;
}

/* ─── Navbar Scrolled ─────────────────────────────── */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
