:root {
  --brand-green: #1a472a;
  --brand-green-dark: #0d3320;
  --brand-green-light: #2d5f3f;
  --brand-gold: #d4af37;
  --brand-gold-light: #e8c547;
  --brand-gold-dark: #b8962e;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--brand-green);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-green-dark);
}

/* Animation utilities */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Brand gradient backgrounds */
.bg-brand-gradient {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
}

.bg-brand-gradient-light {
  background: linear-gradient(135deg, var(--brand-green-light) 0%, var(--brand-green) 100%);
}

/* Gold gradient for CTAs */
.bg-gold-gradient {
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-dark) 100%);
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Glass stat cards for Hero */
.glass-stat {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.glass-stat:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Gold glow text shadow for hero headings */
.text-glow-gold {
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.3), 0 0 80px rgba(212, 175, 55, 0.15);
}

/* Hero radial gradient background utility */
.hero-bg-gradient {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(45,95,63,0.5) 0%, rgba(26,71,42,0.9) 40%, #0d3320 70%, #081f12 100%);
}

/* Section padding consistent */
.section-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* Calculator card shadow */
.calculator-shadow {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Hover lift effect */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Text gradient */
.text-gradient-gold {
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  background: rgba(0, 0, 0, 0.5);
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 1rem;
  background: var(--brand-green);
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.skip-to-content:focus {
  top: 0;
}

/* CTA Pulse Animation */
@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}
.animate-cta-pulse {
  animation: ctaPulse 2s infinite;
}

/* Glow effect for important elements */
.glow-gold {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Timeline connector */
.timeline-line {
  position: absolute;
  top: 2rem;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-green) 0%, var(--brand-gold) 50%, var(--brand-green) 100%);
  z-index: 0;
}
@media (max-width: 768px) {
  .timeline-line {
    display: none;
  }
}

/* Promo code highlight */
.promo-code-box {
  background: linear-gradient(135deg, rgba(212,175,55,0.15) 0%, rgba(212,175,55,0.05) 100%);
  border: 1px dashed var(--brand-gold);
  transition: all 0.3s ease;
}
.promo-code-box:hover {
  background: linear-gradient(135deg, rgba(212,175,55,0.25) 0%, rgba(212,175,55,0.1) 100%);
  border-style: solid;
  transform: scale(1.02);
}

/* Trust badge */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.9);
}

/* Sticky bottom bar */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 0.75rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.sticky-cta-bar.visible {
  transform: translateY(0);
}

/* Enhanced card hover */
.card-3d {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}
.card-3d:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Stats counter */
.stat-item {
  position: relative;
}
.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}
.stat-item:last-child::after {
  display: none;
}
@media (max-width: 1024px) {
  .stat-item:nth-child(2)::after {
    display: none;
  }
}
@media (max-width: 768px) {
  .stat-item::after {
    display: none;
  }
}

/* Ribbon / Tag */
.ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-dark) 100%);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-bottom-left-radius: 0.5rem;
  z-index: 10;
}

/* Step number ring */
.step-ring {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-light) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(26, 71, 42, 0.15);
  position: relative;
  z-index: 2;
}

/* Hero Logo */
.hero-logo-wrap {
  display: inline-block;
}
.hero-logo {
  width: auto;
  height: 88px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.hero-logo:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}
@media (max-width: 640px) {
  .hero-logo {
    height: 64px;
  }
}
@media (max-width: 390px) {
  .hero-logo {
    height: 52px;
  }
}

/* Benefit tag */
.benefit-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Hero floating orbs animation */
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 10px) scale(1.02); }
}

@keyframes floatOrbSlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-40px, 20px) rotate(5deg); }
  66% { transform: translate(30px, -30px) rotate(-3deg); }
}

.animate-float-orb {
  animation: floatOrb 12s ease-in-out infinite;
}

.animate-float-orb-slow {
  animation: floatOrbSlow 18s ease-in-out infinite;
}

/* Staggered fade-in animation for hero elements */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-fade-in {
  opacity: 0;
  animation: heroFadeIn 0.7s ease-out forwards;
}

.hero-fade-in-delay-1 { animation-delay: 0.1s; }
.hero-fade-in-delay-2 { animation-delay: 0.2s; }
.hero-fade-in-delay-3 { animation-delay: 0.3s; }
.hero-fade-in-delay-4 { animation-delay: 0.4s; }
.hero-fade-in-delay-5 { animation-delay: 0.5s; }
.hero-fade-in-delay-6 { animation-delay: 0.6s; }

/* Stat card with icon */
.stat-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

/* Trust badge row */
.trust-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
}

/* Rebate tag compact */
.rebate-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  transition: all 0.3s ease;
  white-space: nowrap;
}
.rebate-tag:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.25);
  transform: translateY(-1px);
}

/* Glow text effect for hero title */
.text-glow-white {
  text-shadow: 0 0 60px rgba(255,255,255,0.15), 0 0 120px rgba(255,255,255,0.08);
}

/* Hero panel card */
.hero-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
}
.hero-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

/* Stat highlight number */
.stat-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Title accent line */
.title-accent-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-gold), transparent);
  border-radius: 2px;
}

/* Shimmer effect for CTA */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.btn-shimmer {
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

/* Print styles */
@media print {
  .fixed, .hover-lift, .bg-gold-gradient, .bg-brand-gradient {
    position: static !important;
    background: #000 !important;
    color: #fff !important;
  }
  nav, footer, .mobile-menu-overlay, .sticky-cta-bar, .floating-cta {
    display: none !important;
  }
  .section-padding {
    padding: 20px 0 !important;
  }
}
