:root {
  --color-primary: #1A1A1A;
  --color-secondary: #404040;
  --color-accent: #111111;
}

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
}

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;
}

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);
}

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

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

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

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(26,26,26,0.04) 10px,
    rgba(26,26,26,0.04) 11px
  );
}

.decor-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(26,26,26,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(64,64,64,0.06) 0%, transparent 50%);
}

.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.10; }
.decor-bold { opacity: 0.20; }

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

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

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, transparent 50%, rgba(26,26,26,0.06) 50%);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(315deg, transparent 50%, rgba(26,26,26,0.06) 50%);
  pointer-events: none;
}

.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26,26,26,0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

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

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

.order-form-input:focus {
  border-color: #1A1A1A;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}

.order-form-input.error {
  border-color: #ef4444;
}

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

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

/* Mobile menu animation */
#mobile-menu {
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

#mobile-menu.menu-open {
  display: block;
}

/* Slider */
.testimonial-slider {
  display: flex;
  transition: transform 0.4s ease-out;
}

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

/* FAQ item */
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
}

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

/* Badge */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #1A1A1A;
  color: #fff;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* Newsletter form feedback */
.newsletter-success {
  color: #16a34a;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

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

/* Benefit list */
.benefit-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.benefit-check-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: #1A1A1A;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}

@media (max-width: 768px) {
  .decor-gradient-blur::before,
  .decor-gradient-blur::after {
    display: none;
  }
}