:root {
  --color-primary: #1E3A5F;
  --color-secondary: #2D5080;
  --color-accent: #00D9FF;
}

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { font-family: 'Space Grotesk', system-ui, sans-serif; }

::selection { background: rgba(0, 217, 255, .22); }

a, button { -webkit-tap-highlight-color: transparent; }

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

/* Focus ring */
:where(a, button, input, select, textarea):focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 217, 255, .22);
  border-radius: 9999px;
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease-out, transform .6s ease-out;
  will-change: opacity, transform;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Context animation: slide_left */
[data-animate="slide_left"] {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
[data-animate="slide_left"].is-visible {
  opacity: 1;
  transform: translateX(0);
}

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

/* Decorative backgrounds */
.decor-grid-dots {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(30, 58, 95, .12) 1px, transparent 0);
  background-size: 18px 18px;
}
.decor-grid-lines {
  background-image:
    linear-gradient(to right, rgba(30, 58, 95, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 58, 95, .08) 1px, transparent 1px);
  background-size: 42px 42px;
}
.decor-diagonal {
  background-image:
    repeating-linear-gradient(135deg, rgba(0, 217, 255, .12) 0 2px, transparent 2px 12px);
}
.decor-mesh {
  background-image:
    radial-gradient(900px 420px at 15% 20%, rgba(0, 217, 255, .18), transparent 60%),
    radial-gradient(700px 360px at 85% 35%, rgba(45, 80, 128, .20), transparent 60%),
    radial-gradient(800px 420px at 55% 90%, rgba(30, 58, 95, .12), transparent 60%);
  filter: saturate(1.1);
}

.decor-subtle { opacity: .06; }
.decor-moderate { opacity: .10; }
.decor-bold { opacity: .18; }

.decor-gradient-blur { position: relative; }
.decor-gradient-blur::before,
.decor-gradient-blur::after{
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
  filter: blur(32px);
  opacity: .30;
}
.decor-gradient-blur::before{
  background: radial-gradient(420px 260px at 25% 35%, rgba(0,217,255,.35), transparent 70%);
}
.decor-gradient-blur::after{
  background: radial-gradient(520px 300px at 80% 65%, rgba(30,58,95,.25), transparent 70%);
}

.decor-corner-tr { position: relative; }
.decor-corner-tr::after{
  content:"";
  position:absolute;
  top:-1px; right:-1px;
  width: 120px; height: 120px;
  background: radial-gradient(closest-side, rgba(0,217,255,.22), transparent);
  pointer-events:none;
  border-top-right-radius: 24px;
  opacity: .8;
}
.decor-corner-bl { position: relative; }
.decor-corner-bl::before{
  content:"";
  position:absolute;
  bottom:-1px; left:-1px;
  width: 140px; height: 140px;
  background: radial-gradient(closest-side, rgba(45,80,128,.18), transparent);
  pointer-events:none;
  border-bottom-left-radius: 24px;
  opacity: .8;
}

.decor-glow-element { position: relative; }
.decor-glow-element::before{
  content:"";
  position:absolute;
  inset: -12%;
  background: radial-gradient(closest-side, rgba(0,217,255,.18), transparent 65%);
  filter: blur(18px);
  z-index: 0;
  pointer-events:none;
}

.decor-rings-svg {
  background-image:
    radial-gradient(circle at center, transparent 0 34%, rgba(0,217,255,.12) 34% 35%, transparent 35% 48%, rgba(30,58,95,.10) 48% 49%, transparent 49% 62%, rgba(45,80,128,.10) 62% 63%, transparent 63% 100%);
}

/* Cookie toggle */
.cookie-toggle{
  position: relative;
  width: 44px;
  height: 26px;
  background: #d1d5db;
  border-radius: 9999px;
  transition: background .2s ease;
}
.cookie-toggle::after{
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 9999px;
  transition: transform .2s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
}
.peer:checked + .cookie-toggle::after{ transform: translateX(18px); }

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