: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: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  height: auto;
}

::selection {
  background: rgba(124, 58, 237, 0.18);
}

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

/* Inputs - consistent premium feel */
input[type="text"],
input[type="tel"],
input[type="email"],
textarea,
select {
  outline: none;
}

.input-premium {
  border-radius: 0.75rem;
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: white;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.input-premium:focus {
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.12);
}

.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.14);
}

/* Animations (context: slide_right) */
[data-animate] {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
  will-change: opacity, transform;
}

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

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

/* Decorative Elements */
.decor-subtle { opacity: .06; }
.decor-moderate { opacity: .10; }
.decor-bold { opacity: .18; }

.decor-grid-dots {
  background-image: radial-gradient(rgba(124, 58, 237, 0.35) 1px, transparent 1px);
  background-size: 18px 18px;
}

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

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

.decor-mesh {
  background:
    radial-gradient(800px circle at 15% 10%, rgba(124, 58, 237, 0.18), transparent 45%),
    radial-gradient(700px circle at 85% 25%, rgba(46, 37, 64, 0.22), transparent 45%),
    radial-gradient(700px circle at 35% 90%, rgba(124, 58, 237, 0.14), transparent 45%);
}

.decor-gradient-blur {
  position: relative;
}

.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 9999px;
  filter: blur(42px);
  pointer-events: none;
}

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

.decor-gradient-blur::after {
  bottom: -300px;
  right: -220px;
  background: radial-gradient(circle at 60% 60%, rgba(46, 37, 64, 0.40), transparent 62%);
}

.decor-corner-tr,
.decor-corner-bl {
  position: relative;
}

.decor-corner-tr::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), transparent 65%);
  border-bottom-left-radius: 1.25rem;
  pointer-events: none;
}

.decor-corner-bl::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 140px;
  height: 140px;
  background: linear-gradient(315deg, rgba(124, 58, 237, 0.22), transparent 62%);
  border-top-right-radius: 1.25rem;
  pointer-events: none;
}

.decor-glow-element {
  position: relative;
}

.decor-glow-element::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.28), transparent 60%);
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%237C3AED' stroke-opacity='0.14'%3E%3Ccircle cx='260' cy='260' r='80'/%3E%3Ccircle cx='260' cy='260' r='130'/%3E%3Ccircle cx='260' cy='260' r='180'/%3E%3Ccircle cx='260' cy='260' r='230'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 520px 520px;
}

/* Utility: hide scroll when mobile menu open */
.no-scroll {
  overflow: hidden;
}

/* Subtle glass card */
.glass-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 24, 39, 0.10);
  backdrop-filter: blur(14px);
}

/* Better tap targets on mobile */
@media (max-width: 768px) {
  a, button {
    -webkit-tap-highlight-color: transparent;
  }
}

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