:root {
  --color-primary: #1E3A5F;
  --color-secondary: #2D5080;
  --color-accent: #00D9FF;
  --color-bg-light: #F0FAFF;
  --color-bg-alt: #E0F5FF;
}

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

body {
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── 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 (gated so bots/screenshots see full content) ── */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s 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, rgba(0, 217, 255, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(0, 217, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0, 217, 255, 0.04) 10px,
    rgba(0, 217, 255, 0.04) 20px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(0, 217, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(30, 58, 95, 0.1) 0%, transparent 60%);
}

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

/* Decorative blobs */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(30, 58, 95, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(0, 217, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(0, 217, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.decor-glow-element {
  position: relative;
}
.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at center, rgba(0, 217, 255, 0.2) 0%, transparent 65%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* ── Star Rating ── */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
}

/* ── Testimonial Slider ── */
.testimonial-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-track {
  overflow: hidden;
}

/* ── Order Form ── */
.order-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
  outline: none;
  background: white;
}

.order-form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

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

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

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

/* ── FAQ Accordion ── */
.faq-answer {
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
}

.faq-answer.open {
  opacity: 1;
}

/* ── Hero gradient ── */
.hero-gradient {
  background: linear-gradient(135deg, #F0FAFF 0%, #E0F5FF 50%, #ffffff 100%);
}

/* ── Accent line ── */
.accent-line {
  display: inline-block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* ── Badge ── */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: linear-gradient(135deg, var(--color-accent), #0099cc);
  color: white;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── Section backgrounds ── */
.bg-primary-custom { background-color: var(--color-primary); }
.bg-secondary-custom { background-color: var(--color-secondary); }
.bg-accent-custom { background-color: var(--color-accent); }
.bg-light-custom { background-color: var(--color-bg-light); }
.bg-alt-custom { background-color: var(--color-bg-alt); }

/* ── Ingredient card hover ── */
.ingredient-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ingredient-card:hover {
  transform: translateY(-4px);
}

/* ── Benefit alternating layout ── */
.benefit-row:nth-child(even) .benefit-image {
  order: 2;
}
.benefit-row:nth-child(even) .benefit-content {
  order: 1;
}

/* ── Scrollbar (optional polish) ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ── Mobile menu transition ── */
#mobile-menu {
  transition: opacity 0.2s ease;
}

/* ── Sticky header compensation ── */
.sticky-offset {
  scroll-margin-top: 6rem;
}

/* ── Print ── */
@media print {
  header, footer, #cookie-consent { display: none !important; }
  main { padding-top: 0 !important; }
}