:root {
  --color-primary: #1E3A5F;
  --color-secondary: #2D5080;
  --color-accent: #00D9FF;
}

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

body {
  font-family: 'Space Grotesk', 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%;
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

/* Decorative elements */
.decor-grid-dots {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.1) 10px, rgba(255,255,255,0.1) 20px);
}

.decor-mesh {
  background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(0, 217, 255, 0.1), transparent),
              radial-gradient(ellipse 80% 80% at 80% 50%, rgba(30, 58, 95, 0.1), transparent),
              radial-gradient(ellipse 80% 80% at 0% 50%, rgba(45, 80, 128, 0.1), transparent);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.3) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(30, 58, 95, 0.2) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

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

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

.decor-glow-element {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cpattern id='a' patternUnits='userSpaceOnUse' width='60' height='60' patternTransform='translate(-1,-1)'%3e%3ccircle cx='30' cy='30' r='25' fill='none' stroke='%2300D9FF' stroke-width='1' stroke-opacity='0.1'/%3e%3ccircle cx='30' cy='30' r='15' fill='none' stroke='%231E3A5F' stroke-width='1' stroke-opacity='0.1'/%3e%3c/pattern%3e%3c/defs%3e%3crect width='100%25' height='100%25' fill='url(%23a)'/%3e%3c/svg%3e");
}

.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.1; }
.decor-bold { opacity: 0.2; }

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

.form-select {
  @apply w-full px-4 py-3 border border-gray-300 rounded-xl focus:ring-2 focus:ring-accent focus:border-transparent bg-white;
}

.form-checkbox {
  @apply rounded focus:ring-accent focus:ring-2 text-accent border-gray-300;
}

/* Product badge */
.product-badge {
  @apply inline-flex items-center gap-1 px-3 py-1 bg-accent/10 text-accent rounded-full text-sm font-semibold;
}

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

.rating-star {
  @apply w-5 h-5 text-yellow-400 fill-current;
}

/* Loading spinner */
.loading-spinner {
  @apply inline-block w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin;
}

/* Testimonial slider */
.testimonial-slider {
  @apply flex gap-6 transition-transform duration-500 ease-in-out;
}

.testimonial-slide {
  @apply flex-none w-full md:w-1/2 lg:w-1/3;
}

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

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

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

/* Utility classes */
.text-balance {
  text-wrap: balance;
}

.container-padding {
  @apply px-4 sm:px-6 lg:px-8;
}

.section-padding {
  @apply py-16 lg:py-20;
}