:root {
  --color-primary: #0F1729;
  --color-secondary: #1E293B;
  --color-accent: #3B82F6;
  --color-bg-light: #EFF6FF;
  --color-bg-alt: #DBEAFE;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { font-family: 'Space Grotesk', system-ui, sans-serif; }

/* Button fixes */
button, .btn, [class*="btn-"], a[href="#order_form"] {
  white-space: nowrap;
  min-width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

form button[type="submit"] {
  white-space: normal;
  width: 100%;
  display: flex;
}

/* Animations */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
html.js-anim html.js-anim [data-animate].is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Rotate utility */
.rotate-180 { transform: rotate(180deg); }

/* Decorative backgrounds */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(59,130,246,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}
.decor-grid-lines {
  background-image: linear-gradient(rgba(59,130,246,0.08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(59,130,246,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}
.decor-diagonal {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(59,130,246,0.05) 10px,
    rgba(59,130,246,0.05) 20px
  );
}
.decor-mesh {
  background-image: radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.12) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 20%, rgba(15,23,41,0.1) 0%, transparent 60%);
}

/* Accent decorative blobs */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(15,23,41,0.12) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -80px;
  left: -80px;
  pointer-events: none;
  z-index: 0;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(59,130,246,0.15), transparent);
  pointer-events: none;
}
.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(59,130,246,0.12), transparent);
  pointer-events: none;
}

.decor-glow-element {
  filter: drop-shadow(0 0 40px rgba(59,130,246,0.3));
}

/* Intensity modifiers */
.decor-subtle { opacity: 0.5; }
.decor-moderate { opacity: 0.75; }
.decor-bold { opacity: 1; }

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(135deg, #0F1729 0%, #1E293B 50%, #0F1729 100%);
}

/* Accent gradient text */
.text-gradient {
  background: linear-gradient(135deg, #3B82F6, #60A5FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59,130,246,0.15);
}

/* Star rating */
.star-filled { color: #F59E0B; }
.star-empty { color: #E5E7EB; }

/* Form styles */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  background: #fff;
}
.form-input:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.form-input.error {
  border-color: #EF4444;
}
.form-error {
  color: #EF4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}
.form-error.visible {
  display: block;
}

/* Order form badge */
.badge-popular {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

/* Price display */
.price-new {
  font-size: 2.25rem;
  font-weight: 700;
  color: #0F1729;
  line-height: 1;
}
.price-old {
  font-size: 1rem;
  color: #9CA3AF;
  text-decoration: line-through;
}
.price-badge {
  background: #FEE2E2;
  color: #DC2626;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Testimonial quote marks */
.quote-mark {
  font-size: 5rem;
  line-height: 1;
  color: #DBEAFE;
  font-family: Georgia, serif;
  leading-trim: both;
}

/* Sticky CTA mobile */
@media (max-width: 767px) {
  .sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 0.875rem 1rem;
    background: #fff;
    border-top: 1px solid #E5E7EB;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  }
}

/* Section transitions */
section { position: relative; overflow: hidden; }

/* Lucide icon sizing helpers */
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 2rem; height: 2rem; }

/* Ingredient card */
.ingredient-card {
  background: #fff;
  border: 2px solid #DBEAFE;
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.ingredient-card:hover {
  border-color: #3B82F6;
  transform: translateY(-2px);
}

/* FAQ card */
.faq-card {
  background: #F9FAFB;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

/* Mobile menu animation */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
#mobile-menu.menu-open {
  display: block;
}

/* Guarantee badge */
.guarantee-badge {
  border: 2px dashed #3B82F6;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  background: #EFF6FF;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #1E40AF;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Progress bar */
.progress-bar {
  height: 8px;
  border-radius: 9999px;
  background: #DBEAFE;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3B82F6, #60A5FA);
  border-radius: 9999px;
  transition: width 1s ease;
}

/* Notification toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #0F1729;
  color: #fff;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 200;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}