:root {
  --color-primary: #0F1729;
  --color-secondary: #1E293B;
  --color-accent: #3B82F6;
}

html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 5rem; 
}

body { 
  font-family: 'Nunito Sans', 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%;
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateX(-2rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateX(0);
}

.rotate-180 { 
  transform: rotate(180deg); 
}

/* Decorative elements */
.decor-grid-dots {
  background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: linear-gradient(currentColor 1px, transparent 1px), 
                    linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    currentColor,
    currentColor 1px,
    transparent 1px,
    transparent 10px
  );
}

.decor-mesh {
  background: radial-gradient(circle at 20% 50%, currentColor 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, currentColor 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, currentColor 0%, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--color-accent), var(--color-primary));
  opacity: 0.1;
  filter: blur(60px);
  z-index: -1;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(-45deg, currentColor, transparent);
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, currentColor, transparent);
}

.decor-glow-element::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, currentColor, transparent 70%);
  opacity: 0.2;
  filter: blur(40px);
  z-index: -1;
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='currentColor' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='35' fill='none' stroke='currentColor' stroke-width='0.3'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.1; }
.decor-bold { opacity: 0.2; }

/* Order form styles */
.order-form {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
}

.form-field {
  position: relative;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label {
  transform: translateY(-1.5rem) scale(0.875);
  color: var(--color-accent);
}

.form-field label {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  transition: all 0.2s ease;
  pointer-events: none;
  color: #6b7280;
}

.form-field input {
  padding-top: 1.5rem;
}

/* Product showcase */
.product-showcase {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.product-showcase:hover {
  transform: rotateY(5deg) rotateX(5deg);
}

/* Rating stars */
.rating-stars {
  display: inline-flex;
  gap: 2px;
}

.rating-star {
  color: #fbbf24;
}

/* Testimonial cards */
.testimonial-card {
  position: relative;
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  border-left: 4px solid var(--color-accent);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-size: 3rem;
  color: var(--color-accent);
  opacity: 0.3;
  line-height: 1;
}

/* Benefits grid */
.benefit-item {
  text-align: center;
  padding: 2rem 1rem;
}

.benefit-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  border-radius: 1rem;
  color: white;
}

/* Ingredient cards */
.ingredient-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  transition: transform 0.2s ease;
}

.ingredient-card:hover {
  transform: translateY(-4px);
}

.ingredient-image {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
}

/* FAQ accordion */
.faq-item {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.faq-question {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.faq-answer {
  color: #64748b;
  line-height: 1.6;
}

/* Statistics */
.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--color-accent);
  line-height: 1;
}

.stat-label {
  color: #64748b;
  margin-top: 0.5rem;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .product-showcase:hover {
    transform: none;
  }
  
  .decor-gradient-blur::before {
    filter: blur(30px);
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Success/Error states */
.success-message {
  color: #059669;
  background-color: #d1fae5;
  border: 1px solid #a7f3d0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.error-message {
  color: #dc2626;
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}