/* AllPixelWave WordPress Theme - Upgraded Studio Design System v2.0 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  font-feature-settings: "ss01" on, "cv11" on;
  overflow-x: hidden;
}
::selection {
  color: #ffffff;
  background: hsl(224, 97%, 64%);
}
:focus-visible {
  outline: 2px solid hsla(224, 97%, 64%, 0.85);
  outline-offset: 3px;
}
details summary::-webkit-details-marker {
  display: none;
}
details summary {
  list-style: none;
}

/* Custom sleek scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: hsl(228, 49%, 7%);
}
::-webkit-scrollbar-thumb {
  background: hsl(225, 24%, 24%);
  border-radius: 9999px;
  border: 2px solid hsl(228, 49%, 7%);
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(224, 65%, 48%);
}

/* Signature Hero & Visual Effects */
.apw-wave-grid {
  background-image:
    linear-gradient(hsla(220, 60%, 82%, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, hsla(220, 60%, 82%, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 35%, transparent 80%);
}
.apw-text-gradient {
  background: linear-gradient(110deg, #ffffff 10%, #c7d2fe 52%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.apw-btn-gradient {
  background: linear-gradient(105deg, #8b5cf6 0%, #6366f1 48%, #38bdf8 100%);
  box-shadow: 0 14px 36px -14px rgba(99, 102, 241, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 240ms ease, filter 240ms ease;
}
.apw-btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -14px rgba(99, 102, 241, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  filter: brightness(1.06);
}
.apw-glass-card {
  background: linear-gradient(180deg, hsla(228, 38%, 14%, 0.92) 0%, hsla(228, 42%, 10%, 0.94) 100%);
  border: 1px solid hsla(225, 28%, 28%, 0.65);
  box-shadow: 0 24px 64px -40px rgba(3, 7, 18, 0.85), inset 0 1px 0 hsla(220, 60%, 95%, 0.06);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 260ms ease, box-shadow 260ms ease;
}
.apw-glass-card:hover {
  transform: translateY(-4px);
  border-color: hsla(224, 97%, 68%, 0.5);
  box-shadow: 0 30px 72px -34px rgba(59, 130, 246, 0.22), inset 0 1px 0 hsla(220, 60%, 95%, 0.12);
}
.apw-pricing-featured {
  background: linear-gradient(180deg, hsla(236, 46%, 18%, 0.96) 0%, hsla(228, 44%, 11%, 0.98) 100%);
  border: 1px solid hsla(232, 92%, 72%, 0.58);
  box-shadow: 0 28px 80px -30px rgba(99, 102, 241, 0.42), inset 0 1px 0 hsla(232, 100%, 88%, 0.22);
}
.apw-pricing-featured:hover {
  border-color: hsla(232, 95%, 76%, 0.85);
  box-shadow: 0 34px 90px -28px rgba(99, 102, 241, 0.55), inset 0 1px 0 hsla(232, 100%, 90%, 0.3);
}
.pixelwave-mark {
  filter: drop-shadow(0 0 26px hsla(224, 97%, 64%, 0.34));
}

/* Keyframes */
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
.animate-ping {
  animation: ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes apw-hero-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.apw-hero-enter {
  animation: apw-hero-enter 800ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes apw-spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.apw-spin-slow {
  animation: apw-spin-slow 72s linear infinite;
}
@keyframes apw-orbit-drift {
  from { transform: translate3d(0, 0, 0) rotate(-4deg); }
  to { transform: translate3d(0, -12px, 0) rotate(4deg); }
}
.apw-orbit-drift {
  animation: apw-orbit-drift 14s ease-in-out infinite alternate;
}

/* Scroll Reveal */
.apw-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 650ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js-ready .apw-reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(22px);
}

/* Concept Lightbox Modal */
.apw-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(5, 8, 22, 0.82);
  backdrop-filter: blur(10px);
}
.apw-modal.is-open {
  display: flex;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* SureCart Dark Theme Integration */
:root,
body.surecart-theme-dark,
body.surecart-theme-light {
  --sc-color-primary-500: hsl(224, 97%, 64%);
  --sc-color-primary-600: hsl(224, 90%, 56%);
  --sc-color-primary-text: #ffffff;
  --sc-color-white: hsl(228, 38%, 12%);
  --sc-color-gray-50: hsl(228, 43%, 10%);
  --sc-color-gray-100: hsl(229, 28%, 16%);
  --sc-color-gray-200: hsl(225, 24%, 22%);
  --sc-color-gray-300: hsl(225, 24%, 30%);
  --sc-color-gray-400: hsl(220, 16%, 58%);
  --sc-color-gray-500: hsl(220, 16%, 72%);
  --sc-color-gray-600: hsl(220, 20%, 84%);
  --sc-color-gray-700: hsl(220, 25%, 90%);
  --sc-color-gray-800: hsl(220, 30%, 94%);
  --sc-color-gray-900: hsl(220, 30%, 96%);
  --sc-input-background-color: hsl(228, 49%, 8%);
  --sc-input-background-color-hover: hsl(228, 49%, 10%);
  --sc-input-background-color-focus: hsl(228, 49%, 10%);
  --sc-input-border-color: hsl(225, 24%, 30%);
  --sc-input-border-color-focus: hsl(224, 97%, 64%);
  --sc-input-color: hsl(220, 30%, 96%);
  --sc-input-label-color: hsl(220, 20%, 88%);
  --sc-input-border-radius-medium: 0.75rem;
  --sc-panel-background-color: hsl(228, 38%, 12%);
  --sc-panel-border-color: hsl(225, 24%, 22%);
  --sc-font-sans: "DM Sans", sans-serif;
}

/* Override SureCart blank checkout template light inline backgrounds */
html,
body.surecart-template,
body.surecart-template .wp-block-surecart-checkout-form,
body.surecart-template sc-checkout,
body.surecart-template sc-columns,
body.surecart-template .wp-block-surecart-columns {
  background-color: hsl(228, 49%, 8%) !important;
  color: hsl(220, 30%, 96%) !important;
}
body.surecart-template sc-column.has-white-background-color,
body.surecart-template .wp-block-surecart-column.has-white-background-color {
  background-color: hsl(228, 38%, 12%) !important;
  border-right: 1px solid hsl(225, 24%, 22%) !important;
}
body.surecart-template sc-column,
body.surecart-template .wp-block-surecart-column {
  background-color: hsl(228, 49%, 8%) !important;
  color: hsl(220, 30%, 96%) !important;
}
.apw-sc-wrapper sc-checkout,
.apw-sc-wrapper sc-product-list,
.apw-sc-wrapper sc-card {
  color: hsl(220, 30%, 96%);
}
