:root {
  --color-primary: #0F2027;
  --color-secondary: #1A3A40;
  --color-accent: #00F5A0;
  --color-bg-light: #ECFDF5;
  --color-bg-alt: #D1FAE5;
  --font-main: 'Outfit', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* =========================================
   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, 245, 160, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

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

.decor-mesh {
  background-image: radial-gradient(ellipse at 30% 50%, rgba(0, 245, 160, 0.12) 0%, transparent 60%),
                    radial-gradient(ellipse at 70% 20%, rgba(15, 32, 39, 0.08) 0%, transparent 50%);
}

/* Gradient blur blobs */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 245, 160, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

/* Corner accents */
.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(0, 245, 160, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(0, 245, 160, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* Glow element */
.decor-glow-element {
  position: relative;
}
.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at center, rgba(0, 245, 160, 0.2) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Intensity modifiers */
.decor-subtle { opacity: 0.5; }
.decor-moderate { opacity: 1; }
.decor-bold { opacity: 1.4; filter: saturate(1.4); }

/* =========================================
   ACCENT COLOR UTILITIES
   ========================================= */
.text-accent { color: var(--color-accent); }
.bg-accent { background-color: var(--color-accent); }
.border-accent { border-color: var(--color-accent); }
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.text-primary { color: var(--color-primary); }

/* Hover utilities */
.hover\:bg-accent:hover { background-color: var(--color-accent); }
.hover\:text-primary:hover { color: var(--color-primary); }
.hover\:border-accent:hover { border-color: var(--color-accent); }

/* =========================================
   STAR RATING
   ========================================= */
.star-rating {
  display: inline-flex;
  gap: 2px;
  color: #F59E0B;
}

.star-rating .star {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* =========================================
   ORDER FORM
   ========================================= */
.order-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 0.75rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.order-form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.15);
}

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

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

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

/* =========================================
   PRODUCT CARD / HIGHLIGHT
   ========================================= */
.product-glow {
  box-shadow: 0 0 40px rgba(0, 245, 160, 0.15), 0 4px 20px rgba(0, 0, 0, 0.08);
}

.accent-badge {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* =========================================
   SECTION DEFAULTS
   ========================================= */
.section-heading {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-primary);
}

.section-subheading {
  color: #4B5563;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   INGREDIENT CARDS
   ========================================= */
.ingredient-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

/* =========================================
   TESTIMONIAL CARDS
   ========================================= */
.testimonial-card {
  border-radius: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* =========================================
   FAQ CARDS
   ========================================= */
.faq-card {
  border-radius: 1rem;
  transition: box-shadow 0.2s;
}

.faq-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

/* FAQ Accordion */
.faq-answer {
  display: none;
  overflow: hidden;
}

.faq-answer.open {
  display: block;
}

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

/* =========================================
   MOBILE MENU
   ========================================= */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
  max-height: 500px;
}

/* =========================================
   HEADER SCROLL STATE
   ========================================= */
.header-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* =========================================
   UTILITY OVERRIDES
   ========================================= */
.prose-brand h2,
.prose-brand h3 {
  color: var(--color-primary);
  font-weight: 700;
}

.prose-brand p {
  color: #4B5563;
  line-height: 1.75;
}

/* Smooth image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: rgba(0, 245, 160, 0.25);
  color: var(--color-primary);
}