: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: 'Manrope', system-ui, sans-serif;
  line-height: 1.6;
}

/* 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;
  transition: all 0.2s ease;
}

form button[type="submit"] {
  white-space: normal;
  width: 100%;
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateX(-2rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateX(0);
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-600 {
  transition-duration: 600ms;
}

.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

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

.bg-gradient-accent {
  background: linear-gradient(135deg, var(--color-accent), #0099CC);
}

/* Decorative elements */
.decor-grid-dots {
  background-image: radial-gradient(circle, #00D9FF 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: linear-gradient(#00D9FF 1px, transparent 1px),
                    linear-gradient(90deg, #00D9FF 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    #00D9FF 10px,
    #00D9FF 11px
  );
}

.decor-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, #00D9FF15 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, #1E3A5F15 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, #2D508015 0%, transparent 50%);
  pointer-events: none;
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, #00D9FF, transparent);
  filter: blur(60px);
  opacity: 0.1;
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(-45deg, var(--color-accent), transparent);
  opacity: 0.1;
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--color-primary), transparent);
  opacity: 0.1;
  pointer-events: none;
}

.decor-glow-element {
  position: relative;
}

.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--color-accent)20, transparent 70%);
  filter: blur(20px);
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300D9FF' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='5'/%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3Ccircle cx='30' cy='30' r='25'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

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

/* Form styling */
.form-input {
  @apply w-full px-4 py-3 rounded-xl border border-gray-300 focus:border-accent focus:ring-2 focus:ring-accent/20 outline-none transition-all;
}

.form-label {
  @apply block text-sm font-medium text-gray-700 mb-2;
}

/* Custom checkbox */
.checkbox-custom {
  @apply relative inline-flex items-center;
}

.checkbox-custom input[type="checkbox"] {
  @apply sr-only;
}

.checkbox-custom .checkmark {
  @apply w-5 h-5 border-2 border-gray-300 rounded bg-white flex items-center justify-center transition-all;
}

.checkbox-custom input[type="checkbox"]:checked + .checkmark {
  @apply bg-accent border-accent;
}

.checkbox-custom .checkmark i {
  @apply w-3 h-3 text-white opacity-0 transition-opacity;
}

.checkbox-custom input[type="checkbox"]:checked + .checkmark i {
  @apply opacity-100;
}

/* Rating stars */
.rating-stars {
  @apply flex items-center gap-1;
}

.rating-stars .star {
  @apply w-4 h-4 text-yellow-400;
}

.rating-stars .star.filled {
  @apply text-yellow-400;
}

.rating-stars .star.empty {
  @apply text-gray-300;
}

/* Product badge */
.product-badge {
  @apply inline-flex items-center gap-1 px-2 py-1 rounded-full text-xs font-medium;
}

.badge-bestseller {
  @apply bg-yellow-100 text-yellow-800;
}

.badge-new {
  @apply bg-green-100 text-green-800;
}

.badge-popular {
  @apply bg-blue-100 text-blue-800;
}

/* Loading states */
.loading {
  @apply opacity-50 pointer-events-none;
}

.spinner {
  @apply animate-spin w-4 h-4;
}

/* Responsive utilities */
@media (max-width: 640px) {
  .mobile-stack > * {
    @apply w-full mb-4;
  }
  
  .mobile-text-center {
    @apply text-center;
  }
}

/* FAQ accordion styles */
.faq-item {
  @apply border-b border-gray-200 last:border-b-0;
}

.faq-question {
  @apply w-full text-left py-4 flex items-center justify-between font-medium text-gray-900 hover:text-primary transition-colors;
}

.faq-answer {
  @apply pb-4 text-gray-600 leading-relaxed;
}

.faq-icon {
  @apply w-5 h-5 transition-transform duration-200;
}

/* Testimonial styles */
.testimonial-card {
  @apply bg-gray-50 p-6 rounded-xl;
}

.testimonial-quote {
  @apply text-gray-600 mb-4 italic;
}

.testimonial-author {
  @apply font-medium text-gray-900;
}

.testimonial-rating {
  @apply flex items-center gap-1 mb-3;
}

/* Success/Error messages */
.alert {
  @apply p-4 rounded-xl mb-4;
}

.alert-success {
  @apply bg-green-50 text-green-800 border border-green-200;
}

.alert-error {
  @apply bg-red-50 text-red-800 border border-red-200;
}

/* CTA button styles */
.cta-primary {
  @apply bg-accent text-white shadow-lg shadow-accent/30 hover:shadow-xl hover:shadow-accent/40 rounded-xl px-8 py-4 font-semibold transition-all duration-300;
}

/* Order form specific styles */
.order-form {
  @apply bg-white p-8 rounded-2xl shadow-xl border;
}

.order-summary {
  @apply bg-gray-50 p-6 rounded-xl mb-6;
}

.price-display {
  @apply text-3xl font-bold text-primary;
}

.guarantee-badge {
  @apply inline-flex items-center gap-2 text-sm text-green-700 bg-green-50 px-3 py-1 rounded-full;
}