:root {
  --color-primary: #0F1729;
  --color-secondary: #1E293B;
  --color-accent: #3B82F6;
  --color-bg-light: #EFF6FF;
  --color-bg-alt: #DBEAFE;
}

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

/* ── Header scroll state ── */
#site-header.scrolled {
  background-color: rgba(15, 23, 41, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.25);
}

#site-header.scrolled .nav-link {
  color: rgba(255,255,255,0.8);
}

/* When not scrolled on non-hero pages */
#site-header.solid {
  background-color: #0F1729;
  box-shadow: 0 1px 10px rgba(0,0,0,0.2);
}

/* ── Button base ── */
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%;
  display: flex;
}

/* ── Animations ── */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: translateX(2rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

html.js-anim [data-animate][data-delay="100"] { transition-delay: 0.1s; }
html.js-anim [data-animate][data-delay="200"] { transition-delay: 0.2s; }
html.js-anim [data-animate][data-delay="300"] { transition-delay: 0.3s; }
html.js-anim [data-animate][data-delay="400"] { transition-delay: 0.4s; }
html.js-anim [data-animate][data-delay="500"] { transition-delay: 0.5s; }

/* ── Rotate utility ── */
.rotate-180 { transform: rotate(180deg); }

/* ── Decorative backgrounds ── */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(59,130,246,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(59,130,246,0.04) 10px,
    rgba(59,130,246,0.04) 20px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(at 40% 20%, rgba(59,130,246,0.15) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(15,23,41,0.1) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(59,130,246,0.08) 0px, transparent 50%);
}

/* ── Decorative accent elements ── */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  pointer-events: none;
  top: -100px;
  right: -100px;
  z-index: 0;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
  bottom: -80px;
  left: -80px;
  z-index: 0;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: linear-gradient(225deg, rgba(59,130,246,0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 200px; height: 200px;
  background: linear-gradient(45deg, rgba(59,130,246,0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ── Intensity modifiers ── */
.decor-subtle { opacity: 0.5; }
.decor-moderate { opacity: 0.75; }
.decor-bold { opacity: 1; }

/* ── FAQ accordion ── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
}

.faq-answer.open {
  max-height: 500px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* ── Star rating ── */
.star-rating {
  color: #F59E0B;
  letter-spacing: 1px;
}

/* ── Form styles ── */
.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1.5px solid #E2E8F0;
  border-radius: 9999px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: #0F1729;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.form-input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.form-error-msg {
  color: #EF4444;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  padding-left: 1rem;
  display: none;
}

.form-error-msg.visible {
  display: block;
}

/* ── Notification toast ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  background: #0F1729;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  max-width: 340px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success { background: #059669; }
.toast.error { background: #DC2626; }

/* ── Section utility ── */
.section-primary {
  background-color: #0F1729;
  color: white;
}

.section-light {
  background-color: #EFF6FF;
}

.section-alt {
  background-color: #DBEAFE;
}

/* ── Hero gradient overlay ── */
.hero-gradient {
  background: linear-gradient(135deg, #0F1729 0%, #1E293B 50%, #0F2040 100%);
}

/* ── Card hover lift ── */
.card-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15,23,41,0.12);
}

/* ── Gradient text ── */
.text-gradient {
  background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Benefit icon wrapper ── */
.benefit-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(59,130,246,0.15) 0%, rgba(59,130,246,0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Progress bar ── */
.progress-bar {
  height: 6px;
  border-radius: 9999px;
  background: #DBEAFE;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #3B82F6, #60A5FA);
  width: 0%;
  transition: width 1.2s ease-out;
}

/* ── Scroll indicator ── */
@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.scroll-indicator {
  animation: bounce-slow 2s ease-in-out infinite;
}

/* ── Mobile menu transition ── */
#mobile-menu {
  transition: opacity 0.2s ease;
}

/* ── Guarantee badge ── */
.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: #3B82F6;
  font-weight: 500;
}

/* ── Responsive image ── */
img {
  max-width: 100%;
  height: auto;
}

/* ── Print ── */
@media print {
  #site-header, footer, #cookie-consent { display: none; }
}