: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: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* =====================
   Button Base 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;
}

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

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

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

/* =====================
   Utility
   ===================== */
.rotate-180 { transform: rotate(180deg); }

/* =====================
   Decorative Backgrounds
   ===================== */
.decor-grid-dots {
  background-image: radial-gradient(circle, var(--color-accent) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(var(--color-primary) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-primary) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

.decor-mesh {
  background-image:
    radial-gradient(at 40% 20%, hsla(270, 80%, 70%, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsla(260, 70%, 50%, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(280, 80%, 60%, 0.1) 0px, transparent 50%);
}

/* Intensity Modifiers */
.decor-subtle  { opacity: 0.05; }
.decor-moderate { opacity: 0.10; }
.decor-bold    { opacity: 0.20; }

/* Gradient Blur Blobs */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.25) 0%, transparent 70%);
  border-radius: 9999px;
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(69, 54, 96, 0.2) 0%, transparent 70%);
  border-radius: 9999px;
  pointer-events: none;
  z-index: 0;
}

/* Corner Accents */
.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, transparent 50%, rgba(167, 139, 250, 0.12) 50%);
  pointer-events: none;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 180px;
  height: 180px;
  background: linear-gradient(315deg, transparent 50%, rgba(46, 36, 64, 0.1) 50%);
  pointer-events: none;
}

/* Glow Element */
.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.18) 0%, transparent 65%);
  border-radius: 9999px;
  pointer-events: none;
  z-index: 0;
}

/* Concentric Rings SVG */
.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='90' fill='none' stroke='%23A78BFA' stroke-width='0.5' opacity='0.3'/%3E%3Ccircle cx='100' cy='100' r='70' fill='none' stroke='%23A78BFA' stroke-width='0.5' opacity='0.2'/%3E%3Ccircle cx='100' cy='100' r='50' fill='none' stroke='%23A78BFA' stroke-width='0.5' opacity='0.15'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 300px 300px;
  background-position: center;
}

/* =====================
   Star Ratings
   ===================== */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #F59E0B;
}

/* =====================
   Testimonial Slider
   ===================== */
.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-slide {
  flex: 0 0 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .testimonial-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-slide {
    flex: 0 0 33.333%;
  }
}

/* =====================
   FAQ Accordion
   ===================== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, opacity 0.35s ease-out;
  opacity: 0;
}

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

/* =====================
   Order Form
   ===================== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.5rem;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.875rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #A78BFA;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

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

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

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

/* =====================
   Hero Price Badge
   ===================== */
.price-badge {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border: 1px solid rgba(167, 139, 250, 0.3);
}

/* =====================
   Benefit Cards
   ===================== */
.benefit-card {
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid rgba(167, 139, 250, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(167, 139, 250, 0.2);
}

/* =====================
   Section Accent Lines
   ===================== */
.section-title-line {
  display: inline-block;
  position: relative;
}

.section-title-line::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  border-radius: 2px;
}

/* =====================
   Mobile Menu Transition
   ===================== */
#mobile-menu {
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

/* =====================
   Ingredient Card Hover
   ===================== */
.ingredient-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ingredient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(167, 139, 250, 0.18);
}

/* =====================
   Progress Bar (How It Works)
   ===================== */
.step-connector {
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent) 0%, rgba(167, 139, 250, 0.2) 100%);
}

/* =====================
   Pulse Animation (CTA)
   ===================== */
@keyframes pulse-accent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(167, 139, 250, 0); }
}

.btn-pulse {
  animation: pulse-accent 2.5s infinite;
}

/* =====================
   Guarantee Badge
   ===================== */
.guarantee-badge {
  background: linear-gradient(135deg, #FAF5FF, #F3E8FF);
  border: 2px dashed rgba(167, 139, 250, 0.4);
}

/* =====================
   Scrollbar Styling
   ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 3px; }