:root {
  --color-primary: #2E2440;
  --color-secondary: #453660;
  --color-accent: #A78BFA;
  --bg-light: #FAF5FF;
  --bg-alt: #F3E8FF;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { font-family: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

::selection { background: rgba(167, 139, 250, 0.35); }

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

[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 focus ring */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.35);
  border-radius: 0.75rem;
}

/* Header (transparent -> solid on scroll) */
.site-header {
  transition: background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease, color 240ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background-color: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #111827;
  border-bottom-color: rgba(229,231,235,0.9);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}
.site-header.is-scrolled .nav-link {
  color: rgba(17,24,39,0.72);
}
.site-header.is-scrolled .nav-link:hover {
  color: rgba(17,24,39,1);
}

/* Decorative patterns (premium, subtle) */
.decor-grid-dots {
  background-image: radial-gradient(rgba(167,139,250,0.35) 1px, transparent 1px);
  background-size: 18px 18px;
}
.decor-grid-lines {
  background-image:
    linear-gradient(to right, rgba(167,139,250,0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(167,139,250,0.18) 1px, transparent 1px);
  background-size: 26px 26px;
}
.decor-diagonal {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(167,139,250,0.18),
    rgba(167,139,250,0.18) 1px,
    transparent 1px,
    transparent 12px
  );
}
.decor-mesh {
  background-image:
    radial-gradient(600px 260px at 15% 10%, rgba(167,139,250,0.35), transparent 60%),
    radial-gradient(700px 340px at 85% 20%, rgba(46,36,64,0.35), transparent 60%),
    radial-gradient(700px 360px at 40% 95%, rgba(69,54,96,0.35), transparent 60%);
}

.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 520px;
  height: 520px;
  border-radius: 9999px;
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
}
.decor-gradient-blur::before {
  top: -220px;
  left: -140px;
  background: radial-gradient(circle at 30% 30%, rgba(167,139,250,0.75), transparent 62%);
}
.decor-gradient-blur::after {
  bottom: -260px;
  right: -180px;
  background: radial-gradient(circle at 70% 60%, rgba(46,36,64,0.75), transparent 62%);
}

.decor-corner-tr::before,
.decor-corner-bl::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  pointer-events: none;
  opacity: 0.18;
  background: conic-gradient(from 180deg, rgba(167,139,250,1), rgba(46,36,64,1), rgba(167,139,250,1));
  filter: blur(0px);
}
.decor-corner-tr::before { top: -80px; right: -80px; border-radius: 9999px; }
.decor-corner-bl::before { bottom: -90px; left: -90px; border-radius: 9999px; }

.decor-glow-element {
  position: relative;
}
.decor-glow-element::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 9999px;
  background: radial-gradient(circle at 30% 30%, rgba(167,139,250,0.28), transparent 62%);
  filter: blur(22px);
  z-index: -1;
  pointer-events: none;
}

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

/* Small helpers */
.text-balance { text-wrap: balance; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.no-tap-highlight { -webkit-tap-highlight-color: transparent; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] { transition: none; }
  .site-header { transition: none; }
}