:root {
  --color-primary: #1A1625;
  --color-secondary: #2E2540;
  --color-accent: #7C3AED;
}

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

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

/* Header transparency */
#main-header {
  background: transparent;
}

#main-header.scrolled {
  background: rgba(26, 22, 37, 0.95);
  backdrop-filter: blur(12px);
}

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

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

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

/* Decorative elements */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(124, 58, 237, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

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

.decor-diagonal {
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(124, 58, 237, 0.03) 10px, rgba(124, 58, 237, 0.03) 20px);
}

.decor-mesh {
  background: radial-gradient(at 40% 20%, rgba(124, 58, 237, 0.1) 0px, transparent 50%),
              radial-gradient(at 80% 0%, rgba(168, 85, 247, 0.1) 0px, transparent 50%),
              radial-gradient(at 0% 50%, rgba(139, 69, 19, 0.05) 0px, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent);
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1), transparent);
  border-radius: 50%;
  filter: blur(30px);
  z-index: -1;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(225deg, rgba(124, 58, 237, 0.1), transparent);
  z-index: -1;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, rgba(124, 58, 237, 0.1), transparent);
  z-index: -1;
}

.decor-glow-element {
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.2);
}

.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='%237C3AED' fill-opacity='0.05'%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");
}

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

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

.form-select {
  @apply w-full px-4 py-3 rounded-full border border-gray-300 focus:border-accent focus:ring-2 focus:ring-accent/20 outline-none transition-colors appearance-none bg-white;
}

/* Loading spinner */
.spinner {
  border: 2px solid #f3f4f6;
  border-top: 2px solid #7C3AED;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success/Error messages */
.alert {
  @apply px-4 py-3 rounded-lg text-sm font-medium;
}

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

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

/* FAQ accordion */
.faq-item.active .faq-answer {
  max-height: 500px;
}

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

/* Rating stars */
.rating-stars {
  color: #FCD34D;
}

/* Price styling */
.price-highlight {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(168, 85, 247, 0.05));
}

/* Responsive utilities */
@media (max-width: 640px) {
  .mobile-stack > * {
    margin-bottom: 1rem;
  }
  
  .mobile-center {
    text-align: center;
  }
}