:root {
  --color-primary: #0F1729;
  --color-secondary: #1E293B;
  --color-accent: #3B82F6;
  --color-bg-light: #EFF6FF;
  --color-bg-alt: #DBEAFE;
  --font-main: 'Plus Jakarta Sans', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Button / CTA 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%;
}

/* ─── 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 patterns ─── */
.decor-grid-dots {
  background-image: radial-gradient(circle, #3B82F6 1px, transparent 1px);
  background-size: 28px 28px;
}

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

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(59,130,246,0.05) 0px,
    rgba(59,130,246,0.05) 1px,
    transparent 1px,
    transparent 12px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(30,41,59,0.2) 0%, transparent 60%);
}

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

/* Gradient blur blobs */
.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(59,130,246,0.18);
  top: -100px;
  right: -100px;
}

.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  background: rgba(15,23,41,0.25);
  bottom: -80px;
  left: -80px;
}

/* Corner accents */
.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: linear-gradient(135deg, transparent 50%, rgba(59,130,246,0.12) 50%);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 200px; height: 200px;
  background: linear-gradient(315deg, transparent 50%, rgba(59,130,246,0.12) 50%);
  pointer-events: none;
}

/* Glow element */
.decor-glow-element {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(59,130,246,0.22) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* ─── Order form ─── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #E2E8F0;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #0F172A;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font-main);
}

.form-input:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

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

/* ─── Star rating ─── */
.stars {
  color: #F59E0B;
  letter-spacing: 0.05em;
}

/* ─── Accent badge ─── */
.badge-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: rgba(59,130,246,0.1);
  color: #3B82F6;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(59,130,246,0.2);
}

/* ─── Section accent line ─── */
.section-accent-line {
  display: block;
  width: 48px;
  height: 3px;
  background: #3B82F6;
  border-radius: 9999px;
  margin: 0.75rem auto 0;
}

/* ─── Ingredient card hover ─── */
.ingredient-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ingredient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(59,130,246,0.12);
}

/* ─── Testimonial card ─── */
.testimonial-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,23,41,0.1);
}

/* ─── Bento grid first child ─── */
@media (min-width: 768px) {
  .bento-grid > *:first-child {
    grid-column: span 2;
  }
}

/* ─── Progress bar ─── */
.progress-bar {
  height: 6px;
  background: #E2E8F0;
  border-radius: 9999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3B82F6, #60A5FA);
  border-radius: 9999px;
  transition: width 1s ease-out;
}

/* ─── Form spinner ─── */
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── FAQ item ─── */
.faq-question {
  cursor: pointer;
  user-select: none;
}

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

/* ─── Guarantee badge ─── */
.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 0.5rem;
  color: #16A34A;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ─── Sticky order button (mobile) ─── */
@media (max-width: 767px) {
  .sticky-cta-mobile {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 40;
  }
}