: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: 'DM Sans', system-ui, sans-serif;
}

/* ─── Button base ─────────────────────────────────── */
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 backgrounds ──────────────────────── */
.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.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

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

.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: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  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(46, 37, 64, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ─── Corner accents ──────────────────────────────── */
.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(124, 58, 237, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

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

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

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

.stars i {
  color: #F59E0B;
  fill: #F59E0B;
}

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

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

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

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

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

/* ─── Accordion ───────────────────────────────────── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

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

/* ─── Badge ───────────────────────────────────────── */
.badge-new {
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

/* ─── Ingredient card hover ───────────────────────── */
.ingredient-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

/* ─── Smooth image load ───────────────────────────── */
img {
  transition: opacity 0.3s ease;
}

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

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

::-webkit-scrollbar-thumb {
  background: #7C3AED;
  border-radius: 9999px;
}

/* ─── Utility ─────────────────────────────────────── */
.text-accent { color: #7C3AED; }
.bg-accent { background-color: #7C3AED; }
.border-accent { border-color: #7C3AED; }
.bg-primary { background-color: #1A1625; }
.bg-secondary { background-color: #2E2540; }
.bg-bg-light { background-color: #FAF5FF; }
.bg-bg-alt { background-color: #EDE9FE; }

/* ─── CTA accent button ───────────────────────────── */
.btn-accent {
  background-color: #7C3AED;
  color: white;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.30);
  transition: box-shadow 0.2s, background-color 0.2s;
}

.btn-accent:hover {
  background-color: #6D28D9;
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.40);
}

/* ─── Section dividers ────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.2), transparent);
}

/* ─── Guarantee badge ─────────────────────────────── */
.guarantee-badge {
  border: 1.5px dashed rgba(124, 58, 237, 0.4);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(124, 58, 237, 0.04);
}