:root {
  --color-primary: #1E3A5F;
  --color-secondary: #2D5080;
  --color-accent: #00D9FF;
  --color-bg-light: #F0FAFF;
  --color-bg-alt: #E0F5FF;
}

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

body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
}

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

/* ─── Scroll animations ───────────────────────── */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

html.js-anim html.js-anim [data-animate].is-visible {
  opacity: 1;
  transform: translateY(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; }
html.js-anim [data-animate][data-delay="600"] { transition-delay: 0.6s; }

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

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

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(30,58,95,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,58,95,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0,217,255,0.05) 10px,
    rgba(0,217,255,0.05) 11px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(ellipse at top left, rgba(0,217,255,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(30,58,95,0.15) 0%, transparent 50%);
}

/* ─── Accent elements ─────────────────────────── */
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::before {
  width: 300px;
  height: 300px;
  top: -80px;
  left: -80px;
  background: rgba(0,217,255,0.12);
}

.decor-gradient-blur::after {
  width: 250px;
  height: 250px;
  bottom: -60px;
  right: -60px;
  background: rgba(30,58,95,0.12);
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at top right, rgba(0,217,255,0.15), transparent 70%);
  pointer-events: none;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at bottom left, rgba(0,217,255,0.12), transparent 70%);
  pointer-events: none;
}

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

.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(0,217,255,0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  border-radius: 9999px;
}

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

/* ─── Star rating display ─────────────────────── */
.star-filled { color: #f59e0b; }
.star-empty  { color: #d1d5db; }

/* ─── Order form ──────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-family: 'Nunito Sans', system-ui, sans-serif;
  transition: border-color 0.2s ease;
  background: white;
  color: #111827;
}

.form-input:focus {
  outline: none;
  border-color: #1E3A5F;
}

.form-input.error {
  border-color: #ef4444;
}

.form-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

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

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

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

/* ─── Product badge ───────────────────────────── */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: linear-gradient(135deg, #1E3A5F, #2D5080);
  color: white;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── Price display ───────────────────────────── */
.price-old {
  text-decoration: line-through;
  color: #9ca3af;
}

.price-new {
  color: #1E3A5F;
  font-weight: 700;
}

/* ─── Section accent line ─────────────────────── */
.section-accent-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #00D9FF, #1E3A5F);
  border-radius: 9999px;
  margin: 0 auto 1.5rem;
}

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

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(30,58,95,0.12);
}

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

.rating-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #00D9FF, #1E3A5F);
}

/* ─── Notification toast ──────────────────────── */
#toast {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ─── Spinner ─────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

/* ─── Lucide icon alignment ───────────────────── */
[data-lucide] {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ─── Custom scrollbar ────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #1E3A5F; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2D5080; }