:root {
  --color-primary: #2C3E50;
  --color-secondary: #3D5266;
  --color-accent: #48C9B0;
  --color-bg-light: #F0FDFA;
  --color-bg-alt: #CCFBF1;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { font-family: 'DM Sans', system-ui, sans-serif; }

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

/* Scroll Animations — gated so bots/no-JS see full content */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: translateX(2rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
html.js-anim html.js-anim [data-animate].is-visible {
  opacity: 1;
  transform: translateX(0);
}

html.js-anim [data-animate][data-anim-delay="100"] { transition-delay: 0.1s; }
html.js-anim [data-animate][data-anim-delay="200"] { transition-delay: 0.2s; }
html.js-anim [data-animate][data-anim-delay="300"] { transition-delay: 0.3s; }
html.js-anim [data-animate][data-anim-delay="400"] { transition-delay: 0.4s; }
html.js-anim [data-animate][data-anim-delay="500"] { transition-delay: 0.5s; }

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

/* Decorative patterns */
.decor-grid-dots {
  background-image: radial-gradient(circle, var(--color-primary) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(to right, var(--color-primary) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-primary) 1px, transparent 1px);
  background-size: 40px 40px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    var(--color-accent) 10px,
    var(--color-accent) 11px
  );
}

.decor-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, var(--color-accent) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, var(--color-secondary) 0%, transparent 50%);
}

.decor-subtle { opacity: 0.04; }
.decor-moderate { opacity: 0.08; }
.decor-bold { opacity: 0.18; }

/* Gradient blur blob */
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}
.decor-gradient-blur::before {
  width: 400px;
  height: 400px;
  background: var(--color-accent);
  opacity: 0.12;
  top: -100px;
  right: -100px;
}
.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  background: var(--color-primary);
  opacity: 0.10;
  bottom: -80px;
  left: -80px;
}

/* Corner accents */
.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, var(--color-accent) 0%, transparent 60%);
  opacity: 0.12;
  pointer-events: none;
}
.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, var(--color-accent) 0%, transparent 60%);
  opacity: 0.12;
  pointer-events: none;
}

/* Glow element */
.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 9999px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.10;
  filter: blur(60px);
  pointer-events: none;
}

/* Star rating */
.star-rating {
  display: inline-flex;
  gap: 2px;
  color: #FBBF24;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 3px; }

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

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(72, 201, 176, 0.15);
}

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

/* Badge */
.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  background: rgba(72, 201, 176, 0.15);
  color: var(--color-accent);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Benefit card hover */
.benefit-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(44, 62, 80, 0.12);
}

/* Ingredient card */
.ingredient-card {
  transition: transform 0.25s ease;
}
.ingredient-card:hover {
  transform: translateY(-3px);
}

/* Section separator */
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 9999px;
  margin: 0 auto;
}

/* Guarantee badge */
.guarantee-badge {
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: white;
}

/* Price display */
.price-main {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.price-old {
  text-decoration: line-through;
  color: #9CA3AF;
  font-size: 1.125rem;
}

.price-save {
  display: inline-block;
  background: #DCFCE7;
  color: #16A34A;
  padding: 0.2rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Mobile menu transition */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
#mobile-menu.menu-open {
  display: block;
}

/* Accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer.open {
  max-height: 500px;
}

/* Trust bar */
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4B5563;
}

/* Testimonial quote */
.quote-mark {
  font-size: 5rem;
  line-height: 0.5;
  color: var(--color-accent);
  opacity: 0.3;
  font-family: Georgia, serif;
  margin-bottom: 0.5rem;
}

/* Order form card */
.order-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 25px 60px rgba(44, 62, 80, 0.15);
  overflow: hidden;
}

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-alt) 100%);
  border: 1px solid rgba(72, 201, 176, 0.2);
}

/* Step number */
.step-number {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Progress bar animation */
@keyframes progressFill {
  from { width: 0%; }
  to { width: var(--progress-width); }
}

.progress-fill {
  animation: progressFill 1.2s ease-out forwards;
}

/* Fade in */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Pulse CTA */
@keyframes pulseCta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(72, 201, 176, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(72, 201, 176, 0); }
}

.cta-pulse {
  animation: pulseCta 2.5s ease-in-out infinite;
}