:root {
  --color-primary: #0D4F6F;
  --color-secondary: #1E6B8A;
  --color-accent: #00BCD4;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Urbanist', system-ui, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(0, 188, 212, 0.22);
}

/* 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 button primitives */
.btn-base {
  border-radius: 0.5rem;
}

.btn-soft {
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.14);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.btn-soft:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
}

.nav-link {
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link:active {
  transform: translateY(1px);
}

/* Focus rings */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.25);
  border-radius: 0.5rem;
}

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

/* Decorative backgrounds */
.decor-grid-dots {
  background-image: radial-gradient(rgba(13, 79, 111, 0.18) 1px, transparent 1px);
  background-size: 16px 16px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(to right, rgba(13, 79, 111, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 79, 111, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(0, 188, 212, 0.12) 0px,
    rgba(0, 188, 212, 0.12) 2px,
    transparent 2px,
    transparent 10px
  );
}

.decor-mesh {
  background:
    radial-gradient(1200px 600px at 15% 20%, rgba(0,188,212,0.18) 0%, transparent 55%),
    radial-gradient(900px 520px at 85% 10%, rgba(30,107,138,0.20) 0%, transparent 55%),
    radial-gradient(1000px 560px at 70% 85%, rgba(13,79,111,0.22) 0%, transparent 60%);
}

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

.decor-gradient-blur::before {
  left: -180px;
  top: -220px;
  background: radial-gradient(circle at 30% 30%, rgba(0,188,212,0.9), transparent 60%);
}

.decor-gradient-blur::after {
  right: -220px;
  bottom: -260px;
  background: radial-gradient(circle at 30% 30%, rgba(30,107,138,0.9), transparent 60%);
}

.decor-corner-tr::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, rgba(0,188,212,0.45), transparent 60%);
  border-bottom-left-radius: 1.25rem;
  pointer-events: none;
}

.decor-corner-bl::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 160px;
  height: 160px;
  background: linear-gradient(315deg, rgba(13,79,111,0.45), transparent 60%);
  border-top-right-radius: 1.25rem;
  pointer-events: none;
}

.decor-glow-element {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 30px 90px rgba(0, 188, 212, 0.15);
}

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

/* Form helper */
.input-surface {
  border-radius: 0.75rem;
  border: 1px solid rgba(17,24,39,0.12);
  background: rgba(255,255,255,0.92);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.input-surface:focus {
  border-color: rgba(0,188,212,0.6);
  box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.18);
}

.helper-error {
  color: #b91c1c;
}

.helper-ok {
  color: #047857;
}