: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: 'Work 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 ────────────────────────────────────── */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

html.js-anim html.js-anim [data-animate].is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Header Scroll States ─────────────────────────────────── */
#site-header.scrolled {
  background-color: rgba(30, 58, 95, 0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

#site-header.scrolled .header-logo-text {
  color: #ffffff;
}

#site-header.scrolled .header-nav-link {
  color: rgba(255, 255, 255, 0.85);
}

#site-header:not(.scrolled) {
  background-color: transparent;
}

/* ── Decorative Patterns ──────────────────────────────────── */
.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(at 40% 20%, rgba(0, 217, 255, 0.12) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(30, 58, 95, 0.15) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(45, 80, 128, 0.1) 0px, transparent 50%);
}

/* ── Decorative Accents ───────────────────────────────────── */
.decor-gradient-blur::before {
  content: '';
  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;
  top: -100px;
  right: -100px;
  z-index: 0;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 58, 95, 0.2) 0%, transparent 70%);
  pointer-events: none;
  bottom: -80px;
  left: -80px;
  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.12) 0%, transparent 60%);
  border-radius: 0 0 0 100%;
  pointer-events: none;
}

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

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

.decor-rings-svg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.decor-rings-svg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(0, 217, 255, 0.08);
  box-shadow:
    0 0 0 60px rgba(0, 217, 255, 0.04),
    0 0 0 120px rgba(0, 217, 255, 0.02),
    0 0 0 180px rgba(0, 217, 255, 0.01);
}

/* ── Intensity Modifiers ──────────────────────────────────── */
.decor-subtle { opacity: 0.5; }
.decor-moderate { opacity: 1; }
.decor-bold { opacity: 1.5; filter: brightness(1.2); }

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

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

/* ── Card Hover Effects ───────────────────────────────────── */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

/* ── Form Inputs ──────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 9999px;
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  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.75rem;
  margin-top: 0.25rem;
  padding-left: 1rem;
  display: none;
}

.form-error.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: 500px;
}

.faq-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* ── Accent gradient text ─────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #00D9FF 0%, #2D5080 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero gradient bg ─────────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg, #1E3A5F 0%, #2D5080 50%, #1a4570 100%);
}

/* ── Benefit icon wrapper ─────────────────────────────────── */
.icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(0, 217, 255, 0.05));
  flex-shrink: 0;
}

/* ── Ingredient card image ────────────────────────────────── */
.ingredient-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(0, 217, 255, 0.2);
}

/* ── Progress bar ─────────────────────────────────────────── */
.progress-bar {
  height: 6px;
  border-radius: 9999px;
  background: #e5e7eb;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #00D9FF, #1E3A5F);
  transition: width 1s ease;
}

/* ── Testimonial quote ────────────────────────────────────── */
.quote-mark {
  font-size: 5rem;
  line-height: 1;
  color: rgba(0, 217, 255, 0.2);
  font-family: Georgia, serif;
  display: block;
  margin-bottom: -2rem;
}

/* ── Badge ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* ── Responsive tweaks ────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-gradient {
    min-height: 100svh;
  }
}

/* ── Order form section ───────────────────────────────────── */
#order_form {
  scroll-margin-top: 4rem;
}

/* ── Smooth image loading ─────────────────────────────────── */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}