:root {
  --color-primary: #2E2440;
  --color-secondary: #453660;
  --color-accent: #A78BFA;
  --color-bg-light: #FAF5FF;
  --color-bg-alt: #F3E8FF;
}

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

body {
  font-family: 'Manrope', system-ui, sans-serif;
}

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;
}

html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: translateX(2rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

html.js-anim [data-animate-delay="100"] { transition-delay: 0.1s; }
html.js-anim [data-animate-delay="200"] { transition-delay: 0.2s; }
html.js-anim [data-animate-delay="300"] { transition-delay: 0.3s; }
html.js-anim [data-animate-delay="400"] { transition-delay: 0.4s; }
html.js-anim [data-animate-delay="500"] { transition-delay: 0.5s; }
html.js-anim [data-animate-delay="600"] { transition-delay: 0.6s; }

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
}

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

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

.decor-grid-lines {
  background-image:
    linear-gradient(to right, #A78BFA 1px, transparent 1px),
    linear-gradient(to bottom, #A78BFA 1px, transparent 1px);
  background-size: 40px 40px;
}

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

.decor-mesh {
  background-image:
    radial-gradient(at 40% 20%, #A78BFA33 0px, transparent 50%),
    radial-gradient(at 80% 0%, #2E244022 0px, transparent 50%),
    radial-gradient(at 0% 50%, #F3E8FF44 0px, transparent 50%);
}

.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.10; }
.decor-bold { opacity: 0.20; }

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, #A78BFA44 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  top: -100px;
  right: -100px;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, #453660 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  bottom: -80px;
  left: -80px;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, #A78BFA22, transparent);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, #A78BFA22, transparent);
  pointer-events: none;
}

.decor-glow-element {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, #A78BFA55 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

/* Star ratings */
.stars {
  display: inline-flex;
  gap: 2px;
}

.star {
  color: #F59E0B;
  font-size: 1rem;
}

/* Order form */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 0.75rem;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: #1F2937;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #A78BFA;
  box-shadow: 0 0 0 3px #A78BFA22;
}

.form-input.error {
  border-color: #EF4444;
}

.form-error {
  font-size: 0.8125rem;
  color: #EF4444;
  margin-top: 0.25rem;
  display: none;
}

.form-error.visible {
  display: block;
}

/* Badge */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, #A78BFA, #7C3AED);
  color: #fff;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Benefit cards */
.benefit-card {
  background: #FAF5FF;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.15);
}

/* Testimonial minimal style */
.testimonial-card {
  border-left: 4px solid #A78BFA;
  padding-left: 1.5rem;
}

/* Ingredient cards */
.ingredient-card {
  background: #fff;
  border: 1.5px solid #F3E8FF;
  border-radius: 1rem;
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ingredient-card:hover {
  border-color: #A78BFA;
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.12);
}

/* Mobile menu transition */
#mobile-menu {
  transition: all 0.25s ease-out;
}

/* Gradient text utility */
.text-gradient {
  background: linear-gradient(135deg, #A78BFA, #2E2440);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #A78BFA44, transparent);
}

/* Trust bar */
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6B7280;
}

/* Spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Focus ring */
*:focus-visible {
  outline: 2px solid #A78BFA;
  outline-offset: 2px;
}