:root {
  --color-primary: #1A1625;
  --color-secondary: #2E2540;
  --color-accent: #7C3AED;
  --bg-light: #FAF5FF;
  --bg-alt: #EDE9FE;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { font-family: 'Nunito Sans', 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%;
}

/* Accessible focus */
:focus-visible {
  outline: 2px solid rgba(124, 58, 237, 0.55);
  outline-offset: 2px;
}

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

/* Premium micro-details */
.text-balance { text-wrap: balance; }
.backdrop-sheen {
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.45));
}

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

.decor-grid-lines {
  background-image:
    linear-gradient(to right, rgba(124, 58, 237, 0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(124, 58, 237, 0.10) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

.decor-mesh {
  background:
    radial-gradient(1200px 500px at 10% 10%, rgba(124, 58, 237, 0.22), transparent 60%),
    radial-gradient(900px 420px at 85% 25%, rgba(46, 37, 64, 0.22), transparent 55%),
    radial-gradient(700px 420px at 55% 90%, rgba(250, 245, 255, 0.20), transparent 55%);
}

.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::before {
  top: -140px;
  left: -140px;
  background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.9), transparent 60%);
}

.decor-gradient-blur::after {
  bottom: -160px;
  right: -160px;
  background: radial-gradient(circle at 40% 40%, rgba(46, 37, 64, 0.9), transparent 60%);
}

.decor-corner-tr::before,
.decor-corner-bl::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: rgba(124, 58, 237, 0.12);
  pointer-events: none;
  z-index: 0;
}

.decor-corner-tr::before {
  top: 0;
  right: 0;
  border-bottom-left-radius: 48px;
}

.decor-corner-bl::before {
  bottom: 0;
  left: 0;
  border-top-right-radius: 48px;
}

.decor-glow-element {
  position: absolute;
  inset: auto auto 10% 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.20), transparent 62%);
  filter: blur(18px);
  pointer-events: none;
}

.decor-rings-svg {
  background-image:
    radial-gradient(circle at center, transparent 52%, rgba(124, 58, 237, 0.14) 53%, transparent 54%),
    radial-gradient(circle at center, transparent 38%, rgba(124, 58, 237, 0.10) 39%, transparent 40%),
    radial-gradient(circle at center, transparent 24%, rgba(124, 58, 237, 0.08) 25%, transparent 26%);
}

/* Intensity modifiers */
.decor-subtle { opacity: 0.06; }
.decor-moderate { opacity: 0.10; }
.decor-bold { opacity: 0.18; }

/* Cookie modal: prevent layout shift on mobile */
#cookie-consent { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }

/* Small helper for error text if used */
.form-error {
  color: #b91c1c;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}