:root {
  --color-primary: #1F2937;
  --color-secondary: #374151;
  --color-accent: #64748B;
}

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

/* Premium surfaces */
.surface {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(229,231,235,0.8);
  box-shadow: 0 10px 30px rgba(17,24,39,0.08);
  backdrop-filter: blur(10px);
}

.surface-dark {
  background: rgba(17,24,39,0.65);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
}

.text-balance { text-wrap: balance; }

/* Animations (site-wide) */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate="fade_in"] { transform: none; }
[data-animate="slide_left"] { transform: translateX(28px); }
[data-animate="slide_right"] { transform: translateX(-28px); }
[data-animate="zoom_in"] { transform: scale(0.96); }
[data-animate="zoom_in"].is-visible { transform: scale(1); }

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

/* Decorative elements */
.decor-grid-dots {
  background-image: radial-gradient(rgba(100,116,139,0.18) 1px, transparent 1px);
  background-size: 18px 18px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(to right, rgba(100,116,139,0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(100,116,139,0.10) 1px, transparent 1px);
  background-size: 28px 28px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(100,116,139,0.10),
    rgba(100,116,139,0.10) 12px,
    transparent 12px,
    transparent 24px
  );
}

.decor-mesh {
  background:
    radial-gradient(900px 450px at 20% 10%, rgba(100,116,139,0.18), transparent 55%),
    radial-gradient(700px 380px at 85% 30%, rgba(31,41,55,0.14), transparent 60%),
    radial-gradient(650px 400px at 50% 90%, rgba(55,65,81,0.12), transparent 55%);
}

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

.decor-gradient-blur::before {
  background: radial-gradient(circle at 30% 30%, rgba(100,116,139,0.75), transparent 60%);
  top: -220px;
  left: -240px;
}

.decor-gradient-blur::after {
  background: radial-gradient(circle at 30% 30%, rgba(31,41,55,0.75), transparent 60%);
  bottom: -240px;
  right: -260px;
}

.decor-corner-tr::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 70% 30%, rgba(100,116,139,0.28), transparent 60%);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 70%, rgba(100,116,139,0.22), transparent 65%);
  pointer-events: none;
}

.decor-glow-element {
  position: absolute;
  inset: auto;
  width: 420px;
  height: 420px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(100,116,139,0.30), transparent 60%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.decor-rings-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='rgba(100,116,139,0.22)' stroke-width='1'%3E%3Ccircle cx='400' cy='400' r='80'/%3E%3Ccircle cx='400' cy='400' r='140'/%3E%3Ccircle cx='400' cy='400' r='220'/%3E%3Ccircle cx='400' cy='400' r='310'/%3E%3Ccircle cx='400' cy='400' r='390'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 700px 700px;
}

.decor-subtle { opacity: 0.06; }
.decor-moderate { opacity: 0.12; }
.decor-bold { opacity: 0.20; }

/* Form helpers */
.field-hint { font-size: 0.75rem; line-height: 1rem; color: rgb(107 114 128); }
.input-error { border-color: rgba(239, 68, 68, 0.7) !important; }
.error-text { color: rgb(239 68 68); font-size: 0.75rem; line-height: 1rem; }

/* Accessibility focus */
:focus-visible {
  outline: 3px solid rgba(100,116,139,0.45);
  outline-offset: 2px;
  border-radius: 0.75rem;
}

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