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

/* =====================
   BUTTON NORMALIZATION
   ===================== */
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);
}

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

/* =====================
   DECORATIVE PATTERNS
   ===================== */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(0, 217, 255, 0.15) 1px, transparent 1px);
  background-size: 28px 28px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(0, 217, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.07) 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) 11px
  );
}

.decor-mesh {
  background:
    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.08) 0%, transparent 60%);
}

/* Gradient blur blobs */
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.decor-gradient-blur::before {
  width: 400px;
  height: 400px;
  background: rgba(0, 217, 255, 0.12);
  top: -100px;
  right: -100px;
}

.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  background: rgba(30, 58, 95, 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, rgba(0, 217, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

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

.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

/* =====================
   CUSTOM COMPONENTS
   ===================== */

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

/* Order form */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-family: 'Outfit', system-ui, sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  color: #111827;
}

.form-input:focus {
  outline: none;
  border-color: #00D9FF;
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.15);
}

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

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

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

/* Gradient CTA button */
.btn-gradient {
  background: linear-gradient(to right, #00D9FF, #1E3A5F);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 217, 255, 0.3);
}

.btn-gradient:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 217, 255, 0.4);
}

/* Badge */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: linear-gradient(135deg, #00D9FF, #1E3A5F);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

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

/* Ingredient card */
.ingredient-card {
  background: #fff;
  border: 1.5px solid #E0F5FF;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.ingredient-card:hover {
  border-color: #00D9FF;
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.15);
  transform: translateY(-2px);
}

/* Benefit card */
.benefit-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid #f3f4f6;
}

.benefit-card:hover {
  box-shadow: 0 8px 30px rgba(0, 217, 255, 0.12);
  transform: translateY(-2px);
}

.benefit-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #E0F5FF, #F0FAFF);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #1E3A5F;
}

/* Testimonial */
.testimonial-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid #E0F5FF;
  text-align: center;
}

.testimonial-quote {
  font-size: 3rem;
  line-height: 1;
  color: #00D9FF;
  opacity: 0.4;
  font-family: Georgia, serif;
}

/* Section divider */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #00D9FF, #1E3A5F);
  border-radius: 9999px;
  margin: 0 auto 1.5rem;
}

/* Progress / step indicator */
.step-number {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #00D9FF, #1E3A5F);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* FAQ item */
.faq-item {
  padding: 1.25rem;
  background: #fff;
  border: 1.5px solid #E0F5FF;
  border-radius: 0.75rem;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: #00D9FF;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}

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

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

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

/* Loader spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px 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); }
}

/* Sticky header shadow on scroll */
.header-scrolled {
  box-shadow: 0 2px 16px rgba(30, 58, 95, 0.08);
}

/* Responsive table */
@media (max-width: 640px) {
  .responsive-table { font-size: 0.85rem; }
  .responsive-table th, .responsive-table td { padding: 0.5rem; }
}

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