:root {
  --color-primary: #2E2440;
  --color-secondary: #453660;
  --color-accent: #A78BFA;
}

html { scroll-behavior: smooth; scroll-padding-top: 8.5rem; }
body { font-family: 'DM Sans', system-ui, sans-serif; }

img { max-width: 100%; height: auto; }

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

/* Subtle premium focus ring */
:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.55);
  outline-offset: 3px;
  border-radius: 0.75rem;
}

/* Inputs */
.input-base {
  width: 100%;
  border: 1px solid rgb(229 231 235);
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  line-height: 1.2rem;
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.input-base::placeholder { color: rgb(156 163 175); }
.input-base:focus { border-color: rgba(167, 139, 250, 0.85); box-shadow: 0 0 0 6px rgba(167, 139, 250, 0.14); outline: none; }
.input-error { border-color: rgb(239 68 68) !important; box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.12) !important; }

.form-hint { font-size: 0.85rem; color: rgb(107 114 128); }
.form-error { font-size: 0.85rem; color: rgb(220 38 38); }

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

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

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

/* Decorative backgrounds (if classes exist in HTML) */
.decor-mesh {
  background:
    radial-gradient(1200px 500px at 10% 0%, rgba(167, 139, 250, 0.22), transparent 50%),
    radial-gradient(1000px 420px at 90% 20%, rgba(167, 139, 250, 0.12), transparent 55%),
    radial-gradient(900px 400px at 40% 110%, rgba(46, 36, 64, 0.14), transparent 55%);
}

.decor-grid-dots {
  background-image: radial-gradient(rgba(46,36,64,.18) 1px, transparent 1px);
  background-size: 18px 18px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(to right, rgba(46,36,64,.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46,36,64,.10) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(135deg, rgba(167,139,250,.12), rgba(167,139,250,.12) 6px, transparent 6px, transparent 16px);
}

.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: "";
  position: absolute;
  inset: auto auto 0 auto;
  width: 520px;
  height: 520px;
  filter: blur(50px);
  border-radius: 9999px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::before {
  left: -140px;
  bottom: -220px;
  background: rgba(167, 139, 250, 0.45);
}

.decor-gradient-blur::after {
  right: -180px;
  top: -260px;
  background: rgba(46, 36, 64, 0.25);
}

.decor-subtle { opacity: 0.06; }
.decor-moderate { opacity: 0.10; }
.decor-bold { opacity: 0.18; }

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