/* Shared page foundation. */

/* ── Hide Global Viewport Scrollbar (keeps scrolling functional) ── */
/* html {
  scrollbar-width: none; // Hides scrollbar in Firefox
  -ms-overflow-style: none; // Hides scrollbar in IE/Edge
  scroll-behavior: smooth; // <-- ADD THIS LINE
} */

@media (min-width: 48rem) {
  html {
    font-size: clamp(0.75rem, 1.1713vw, 2.8125rem);
  }
}

.section-container {
  max-width: 75rem;
  /* 1200px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  /* 24px */
  padding-right: 1.5rem;
  /* 24px */
}

.hero-container-wide {
  width: 100%;
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem !important; /* Locks left space to exactly 1rem */
  padding-right: 1rem !important; /* Locks right space to exactly 1rem */
}

@media (min-width: 48rem) {
  .hero-container-wide {
    padding-left: 2rem;
    /* 32px */
    padding-right: 2rem;
    /* 32px */
  }
}

@media (min-width: 80rem) {
  .hero-container-wide {
    padding-left: 3rem;
    /* 48px */
    padding-right: 3rem;
    /* 48px */
  }
}

/* ── Hide Global Viewport Scrollbar (keeps scrolling functional) ── */
/* html {
  scrollbar-width: none; // Hides scrollbar in Firefox
  -ms-overflow-style: none; // Hides scrollbar in IE/Edge
}

html::-webkit-scrollbar {
  display: none; // Hides scrollbar in Chrome, Safari, Brave, and Opera
} */

/* Custom scrollbar styles only for scrollable elements inside the page */
/* ::-webkit-scrollbar {
  width: 0.25rem;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 6.1875rem;
} */

.hover-lift {
  transition: transform .25s ease, box-shadow .25s ease;
}

.hover-lift:hover {
  transform: translateY(-0.1875rem);
  /* -3px */
}

.deck-card-item,
.deck-card-item * {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
    /* 20px */
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp .5s ease both;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.d1 {
  animation-delay: .1s;
}

.d2 {
  animation-delay: .2s;
}

.d3 {
  animation-delay: .3s;
}

/* ── Nav height compensation ── */
.nav-offset {
  padding-top: 5.5rem !important;
  /* 80px */
}

@media (max-width: 47.9375rem) {
  .nav-offset {
    padding-top: 4.75rem;
    /* 76px */
  }
}

@media (min-width: 64rem) {
  .nav-offset {
    padding-top: 5.25rem;
    /* 84px */
  }
}

[data-staggered-item] {
  opacity: 0;
  transform: translateY(2.5rem);
  /* 40px */
  transition: opacity 1s cubic-bezier(0.25, 0.1, 0.25, 1), transform 1s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: opacity, transform;
}

[data-staggered-item].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.material-symbols-outlined {
  font-size: 1.5rem;
}

body {
  min-height: 100vh;
}



/* ── Price symbol typography ── */
/* Inherits color and weight from parent; only size is overridden per-context. */
.price-symbol {
  margin-right: 0.1em;
  vertical-align: baseline;
  line-height: inherit;
}

/* ─── Mobile GPU Performance Optimizations ─── */
/* These optimizations reduce the computational cost on mobile devices
   by capping blur radii, removing expensive blend modes, and forcing
   hardware acceleration on glass elements. */
@media (max-width: 768px) {
  /* Cap massive blurs to a mobile-friendly radius (20px vs 80px) */
  #nav-dropdown-backdrop,
  #mg-auth-modal-backdrop,
  #cart-backdrop {
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
  }

  /* Kill the expensive screen blending and SVG math on mobile */
  #nav-dropdown-backdrop::before,
  #mg-auth-modal-backdrop::before,
  #cart-backdrop::before {
    mix-blend-mode: normal !important;
    opacity: 0.03 !important;
  }

  /* Force hardware acceleration on heavy glass cards */
  .glass-panel,
  .liquid-glass,
  .crystal-glass,
  .product-card-glass,
  .use-case-card {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000;
  }
}

/* ── HERO BANNER PAGINATION DOTS (Shared Across Pages) ── */
.hero-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 6.1875rem;
  /* Frosted base */
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(0.5rem) saturate(150%);
  -webkit-backdrop-filter: blur(0.5rem) saturate(150%);
  border: 0.09375rem solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  outline: none;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-0.03125rem);
}

.hero-dot.active {
  width: 1.5rem;
  /* Stronger frost for the active dot */
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(0.75rem) saturate(180%);
  -webkit-backdrop-filter: blur(0.75rem) saturate(180%);
  border: 0.0625rem solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.18), inset 0 0.0625rem 0 rgba(255, 255, 255, 0.2);
}

.hero-dot.active::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 100% 45% at 50% 0%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.12) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-dot.active::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 70% 30% at 50% 100%, rgba(255, 255, 255, 0.45) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 48rem) {
  .hero-dot { width: 0.4375rem; height: 0.4375rem; border-width: 0.0625rem; }
  .hero-dot.active { width: 1.375rem; }
}