:root {
  --color-primary: #1A1625;
  --color-secondary: #2E2540;
  --color-accent: #7C3AED;
}

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

body { 
  font-family: 'Manrope', 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;
  transition: all 0.3s ease;
}

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

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Decorative Elements */
.decor-grid-dots {
  background-image: radial-gradient(circle at 1px 1px, rgba(124, 58, 237, 0.2) 1px, transparent 0);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: linear-gradient(rgba(124, 58, 237, 0.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(124, 58, 237, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(124, 58, 237, 0.05) 10px,
    rgba(124, 58, 237, 0.05) 20px
  );
}

.decor-mesh {
  background: linear-gradient(45deg, rgba(124, 58, 237, 0.1), rgba(46, 37, 64, 0.1));
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(225deg, rgba(124, 58, 237, 0.1), transparent);
  border-radius: 0 0 0 100%;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, rgba(124, 58, 237, 0.1), transparent);
  border-radius: 0 100% 0 0;
}

.decor-glow-element {
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.15), transparent 70%);
  filter: blur(20px);
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%237C3AED' stroke-width='1' opacity='0.1'%3E%3Ccircle cx='50' cy='50' r='20'/%3E%3Ccircle cx='50' cy='50' r='35'/%3E%3Ccircle cx='50' cy='50' r='50'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

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

/* Transform utilities */
.rotate-180 { 
  transform: rotate(180deg); 
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Form styling */
input:focus, textarea:focus, select:focus {
  outline: none;
  ring: 2px;
  ring-color: rgba(124, 58, 237, 0.2);
  border-color: var(--color-accent);
}

/* Product badge styling */
.product-badge {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1A1625;
  font-weight: 600;
  text-shadow: none;
}

/* Rating stars */
.star-rating {
  color: #FFD700;
}

/* Testimonial cards hover effect */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* FAQ accordion */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-content.open {
  max-height: 500px;
}

/* Order form styling */
.order-form {
  background: linear-gradient(135deg, #FAF5FF 0%, #EDE9FE 100%);
}

.form-group {
  position: relative;
}

.form-error {
  color: #DC2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

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

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

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff33;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hero section background */
.hero-bg {
  background: linear-gradient(135deg, #FAF5FF 0%, #EDE9FE 50%, #F3E8FF 100%);
}

/* Section spacing */
.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 1024px) {
  .section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* Ingredient card styling */
.ingredient-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF5FF 100%);
  border: 1px solid rgba(124, 58, 237, 0.1);
  transition: all 0.3s ease;
}

.ingredient-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.3);
}

/* Benefit icons */
.benefit-icon {
  background: linear-gradient(135deg, var(--color-accent) 0%, #A855F7 100%);
  color: white;
}

/* Trust badge styling */
.trust-badge {
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.1);
}