:root {
  --color-primary: #1A1625;
  --color-secondary: #2E2540;
  --color-accent: #7C3AED;
  --color-bg-light: #FAF5FF;
  --color-bg-alt: #EDE9FE;
}

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

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

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

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

/* =====================
   DECORATIVE PATTERNS
   ===================== */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(124,58,237,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

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

.decor-mesh {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(124,58,237,0.08) 0%, transparent 50%);
}

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

/* Gradient blur blobs */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Corner accents */
.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at top right, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at bottom left, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Glow element */
.decor-glow-element {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* =====================
   HERO SECTION
   ===================== */
.hero-bg {
  background: linear-gradient(135deg, #1A1625 0%, #2E2540 50%, #1A1625 100%);
}

/* =====================
   STAR RATING
   ===================== */
.stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

/* =====================
   ORDER FORM
   ===================== */
.order-form-card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 25px 60px rgba(26,22,37,0.15);
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9375rem;
  color: #111827;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
  background: white;
}

.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

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

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

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

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

/* =====================
   TESTIMONIAL QUOTES
   ===================== */
.quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: #7C3AED;
  opacity: 0.25;
  font-family: Georgia, serif;
  display: block;
}

/* =====================
   BADGE
   ===================== */
.badge-popular {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: linear-gradient(135deg, #7C3AED, #9f67fa);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

/* =====================
   BENEFIT CARDS
   ===================== */
.benefit-card {
  background: white;
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px solid #EDE9FE;
  transition: transform 0.2s, box-shadow 0.2s;
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(124,58,237,0.12);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  background: var(--color-bg-alt);
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* =====================
   INGREDIENT CARDS
   ===================== */
.ingredient-card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid #EDE9FE;
  transition: transform 0.2s;
}

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

/* =====================
   SECTION BACKGROUNDS
   ===================== */
.section-bg-light {
  background-color: #FAF5FF;
}

.section-bg-alt {
  background-color: #EDE9FE;
}

.section-bg-dark {
  background-color: #1A1625;
}

/* =====================
   GUARANTEE BADGE
   ===================== */
.guarantee-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #7C3AED, #5b21b6);
  color: white;
  text-align: center;
  box-shadow: 0 8px 24px rgba(124,58,237,0.35);
}

/* =====================
   PROGRESS BAR
   ===================== */
.progress-bar {
  height: 6px;
  background: #EDE9FE;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7C3AED, #9f67fa);
  border-radius: 9999px;
  transition: width 1s ease-out;
}

/* =====================
   NOTIFICATION / ALERTS
   ===================== */
.form-alert {
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: none;
}

.form-alert.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  display: block;
}

.form-alert.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

/* =====================
   LOADING SPINNER
   ===================== */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 9999px;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

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

/* =====================
   MOBILE MENU TRANSITION
   ===================== */
#mobile-menu {
  transition: all 0.2s ease;
}

/* =====================
   UTILITY
   ===================== */
.text-accent { color: #7C3AED; }
.bg-accent { background-color: #7C3AED; }
.border-accent { border-color: #7C3AED; }

.transition-base {
  transition: all 0.2s ease;
}

/* Scroll top button */
#scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: #7C3AED;
  color: white;
  border-radius: 9999px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
  z-index: 40;
  transition: opacity 0.2s, transform 0.2s;
}

#scroll-top:hover {
  transform: translateY(-2px);
}

#scroll-top.visible {
  display: flex;
}