:root {
  --color-primary: #1F2937;
  --color-secondary: #374151;
  --color-accent: #64748B;
  --color-bg-light: #F8FAFC;
  --color-bg-alt: #F1F5F9;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Button resets ─────────────────────────────────────────── */
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);
}

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

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

.decor-grid-lines {
  background-image:
    linear-gradient(to right, rgba(100,116,139,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(100,116,139,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(100,116,139,0.05) 20px,
    rgba(100,116,139,0.05) 40px
  );
}

.decor-mesh {
  background-image:
    linear-gradient(135deg, rgba(100,116,139,0.06) 25%, transparent 25%),
    linear-gradient(225deg, rgba(100,116,139,0.06) 25%, transparent 25%),
    linear-gradient(315deg, rgba(100,116,139,0.06) 25%, transparent 25%),
    linear-gradient(45deg, rgba(100,116,139,0.06) 25%, transparent 25%);
  background-size: 30px 30px;
}

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

/* ── Blob / glow decorations ───────────────────────────────── */
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.decor-gradient-blur::before {
  width: 400px;
  height: 400px;
  background: rgba(100,116,139,0.12);
  top: -100px;
  right: -100px;
}
.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  background: rgba(31,41,55,0.08);
  bottom: -80px;
  left: -80px;
}

.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(100,116,139,0.15) 0%, transparent 70%);
  border-radius: 9999px;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: linear-gradient(135deg, rgba(100,116,139,0.12) 0%, transparent 70%);
  border-radius: 0 0 0 200px;
  pointer-events: none;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 200px; height: 200px;
  background: linear-gradient(315deg, rgba(100,116,139,0.12) 0%, transparent 70%);
  border-radius: 0 200px 0 0;
  pointer-events: none;
}

/* ── Rings SVG pattern ─────────────────────────────────────── */
.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='100' cy='100' r='40' fill='none' stroke='%2364748B' stroke-opacity='0.08' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='70' fill='none' stroke='%2364748B' stroke-opacity='0.06' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='95' fill='none' stroke='%2364748B' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Slider testimonials ───────────────────────────────────── */
.testimonials-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* ── Star rating ───────────────────────────────────────────── */
.star-filled  { color: #F59E0B; }
.star-empty   { color: #D1D5DB; }

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

.form-input:focus {
  border-color: #64748B;
  box-shadow: 0 0 0 3px rgba(100,116,139,0.15);
}

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

.form-error-msg {
  color: #EF4444;
  font-size: 0.78rem;
  margin-top: 0.3rem;
  display: none;
}

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

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

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

/* ── Badge ─────────────────────────────────────────────────── */
.badge-new {
  background: linear-gradient(135deg, #64748B, #1F2937);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F8FAFC; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ── Selection ─────────────────────────────────────────────── */
::selection {
  background: rgba(100,116,139,0.2);
  color: #1F2937;
}

/* ── Mobile menu transition ────────────────────────────────── */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* ── Section heading underline ─────────────────────────────── */
.section-heading-underline {
  position: relative;
  display: inline-block;
}

.section-heading-underline::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #64748B, #1F2937);
  border-radius: 2px;
}

/* ── Benefit card hover ────────────────────────────────────── */
.benefit-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* ── Ingredient card ───────────────────────────────────────── */
.ingredient-card {
  transition: transform 0.2s ease;
}

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

/* ── Trust strip ───────────────────────────────────────────── */
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

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

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

/* ── Pulse animation for CTA ───────────────────────────────── */
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(100,116,139,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(100,116,139,0); }
}

.cta-pulse {
  animation: pulse-soft 2.5s infinite;
}