:root {
  --color-primary: #0F2027;
  --color-secondary: #1A3A40;
  --color-accent: #00F5A0;
  --color-bg-light: #ECFDF5;
  --color-bg-alt: #D1FAE5;
}

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

body {
  font-family: 'Urbanist', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Button baseline */
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/no-JS see full content */
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; }
html.js-anim [data-animate][data-delay="600"] { transition-delay: 0.6s; }

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

/* =====================
   DECORATIVE ELEMENTS
   ===================== */

/* Grid dot pattern */
.decor-grid-dots {
  background-image: radial-gradient(circle, var(--color-accent) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Grid line pattern */
.decor-grid-lines {
  background-image:
    linear-gradient(to right, rgba(0,245,160,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,245,160,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Diagonal stripes */
.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0,245,160,0.05) 10px,
    rgba(0,245,160,0.05) 20px
  );
}

/* Mesh gradient */
.decor-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,245,160,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(15,32,39,0.1) 0%, transparent 50%);
}

/* Gradient blur blobs */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,245,160,0.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(26,58,64,0.3) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* Corner accents */
.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(0,245,160,0.15) 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(315deg, rgba(0,245,160,0.12) 0%, transparent 60%);
  border-radius: 0 100% 0 0;
  pointer-events: none;
}

/* Glow element */
.decor-glow-element {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,245,160,0.25) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

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

/* =====================
   PRODUCT IMAGES
   ===================== */
.product-image-glow {
  filter: drop-shadow(0 20px 40px rgba(0,245,160,0.25));
}

/* =====================
   STAR RATINGS
   ===================== */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #F59E0B;
}

/* =====================
   FORM STYLES
   ===================== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 9999px;
  font-family: 'Urbanist', sans-serif;
  font-size: 0.95rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #00F5A0;
  box-shadow: 0 0 0 3px rgba(0,245,160,0.15);
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

.form-error {
  font-size: 0.75rem;
  color: #EF4444;
  margin-top: 0.3rem;
  display: none;
}

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

/* =====================
   ORDER FORM SECTION
   ===================== */
.order-section {
  background: linear-gradient(135deg, #0F2027 0%, #1A3A40 100%);
}

.order-card {
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.18);
}

/* =====================
   INGREDIENT CARD
   ===================== */
.ingredient-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ingredient-card:hover {
  transform: translateY(-4px);
}

/* =====================
   TESTIMONIAL SLIDER
   ===================== */
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  flex: 0 0 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .testimonial-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-slide {
    flex: 0 0 33.333%;
  }
}

/* =====================
   BENEFIT ICON
   ===================== */
.benefit-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: rgba(0,245,160,0.12);
  color: var(--color-accent);
  flex-shrink: 0;
}

/* =====================
   HOW IT WORKS STEPS
   ===================== */
.step-connector {
  position: absolute;
  top: 1.75rem;
  left: calc(50% + 2rem);
  right: calc(-50% + 2rem);
  height: 2px;
  background: linear-gradient(to right, rgba(0,245,160,0.4), rgba(0,245,160,0.1));
}

/* =====================
   PROGRESS BAR
   ===================== */
.progress-bar {
  height: 6px;
  border-radius: 9999px;
  background: #E5E7EB;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #00F5A0, #00c97e);
  transition: width 0.8s ease-out;
}

/* =====================
   BADGE PILL
   ===================== */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.badge-accent {
  background: rgba(0,245,160,0.15);
  color: #00c97e;
  border: 1px solid rgba(0,245,160,0.25);
}

.badge-dark {
  background: rgba(15,32,39,0.08);
  color: #0F2027;
  border: 1px solid rgba(15,32,39,0.12);
}

/* =====================
   SECTION OVERRIDES
   ===================== */
.section-light {
  background-color: #ECFDF5;
}

.section-alt {
  background-color: #D1FAE5;
}

.section-dark {
  background: linear-gradient(135deg, #0F2027 0%, #1A3A40 100%);
}

/* =====================
   ACCORDION (FAQ)
   ===================== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
}

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

/* =====================
   UTILITY
   ===================== */
.text-accent { color: var(--color-accent); }
.bg-accent { background-color: var(--color-accent); }
.border-accent { border-color: var(--color-accent); }

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Ensure Tailwind accent classes work */
.bg-\[#00F5A0\] { background-color: #00F5A0; }
.text-\[#00F5A0\] { color: #00F5A0; }
.text-\[#0F2027\] { color: #0F2027; }
.bg-\[#0F2027\] { background-color: #0F2027; }
.bg-\[#1A3A40\] { background-color: #1A3A40; }
.hover\:bg-\[#00F5A0\]\/90:hover { background-color: rgba(0,245,160,0.9); }

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Alert boxes */
.alert {
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-error {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.alert-success {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}