/* Motion system */
:root {
  --hx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hx-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --hx-duration: 0.55s;
}

.proton-load-intro:not([hidden]) {
  --intro-hold: 1240ms;
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  z-index: 9999;
  pointer-events: none;
  background: radial-gradient(ellipse at center, #14263e, #080f19 68%);
  animation: intro-reveal 480ms ease-out var(--intro-hold) both;
}

.proton-load-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(144px, 36vw, 188px);
  aspect-ratio: 1;
  animation: orbit-exit 480ms cubic-bezier(.32, .05, .2, 1) var(--intro-hold) both;
}

.proton-load-ring {
  --track-width: 2px;
  position: absolute;
  inset: 0;
  padding: var(--track-width);
  border-radius: 50%;
  background: conic-gradient(from 24deg, #799fc938 0%, #799fc938 73%, #4587c982 87%, #d5efff 99%, #799fc938);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: orbit-spin 1250ms linear infinite;
}

.proton-load-ring-inner {
  --track-width: 1px;
  inset: 12px;
  background: conic-gradient(from 206deg, #799fc925 0%, #799fc925 76%, #78b7fc 97%, #799fc925);
  animation: orbit-spin 1750ms linear infinite reverse;
}

.proton-load-mark {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 64%;
  animation: mark-float 1480ms ease-in-out both;
}

.proton-load-mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -28%;
  background: radial-gradient(ellipse, #60b8ff70, #387cce20 45%, transparent 70%);
  opacity: .6;
  animation: mark-halo 1240ms ease-in-out both;
}

.proton-load-mark img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 14px #71b6fb55);
}

.proton-load-logo {
  animation: mark-glow 1240ms ease-in-out both;
}

.proton-load-mark .proton-load-reflection {
  opacity: 0;
  filter: brightness(1.9);
  animation: mark-sweep 540ms ease-in-out 290ms both;
}

.proton-load-ripple {
  position: absolute;
  inset: 0;
  border: 1px solid #b8dcff;
  border-radius: 50%;
  animation: orbit-ripple 440ms cubic-bezier(.15, .5, .3, 1) calc(var(--intro-hold) - 35ms) both;
}

@keyframes mark-float {
  0% { opacity: 0; transform: translate(-6px, 12px) rotate(-13deg) scale(.82); }
  24% { opacity: 1; }
  52% { transform: translate(6px, -14px) rotate(11deg) scale(1.04); }
  100% { opacity: 1; transform: translate(-3px, 1px) rotate(-4deg) scale(1); }
}

@keyframes mark-halo {
  0%, 100% { opacity: .35; }
  55% { opacity: 1; }
}

@keyframes mark-glow {
  0%, 100% { filter: drop-shadow(0 0 6px #63b1f977); }
  55% { filter: drop-shadow(0 0 7px #b8e8ffcc) drop-shadow(0 0 18px #4ea6ffee); }
}

@keyframes orbit-spin { to { transform: rotate(1turn); } }

@keyframes mark-sweep {
  from { clip-path: polygon(-28% 0, -8% 0, -30% 100%, -50% 100%); opacity: .8; }
  to { clip-path: polygon(128% 0, 148% 0, 126% 100%, 106% 100%); opacity: .8; }
}

@keyframes orbit-ripple {
  from { transform: scale(.97); opacity: 0; }
  18% { opacity: .6; }
  to { transform: scale(2.7); opacity: 0; }
}

@keyframes orbit-exit {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1.45); opacity: 0; }
}

@keyframes intro-reveal {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

.proton-load-intro[data-reduced-motion]:not([hidden]) {
  animation: intro-reveal 260ms ease-out 450ms both;
}

.proton-load-intro[data-reduced-motion] :is(
  .proton-load-orbit, .proton-load-ring, .proton-load-mark,
  .proton-load-logo, .proton-load-reflection, .proton-load-ripple
),
.proton-load-intro[data-reduced-motion] .proton-load-mark::before {
  animation: none;
}

.proton-load-intro[data-reduced-motion] .proton-load-ripple { opacity: 0; }

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

a,
button,
.hx-panel,
.hx-btn-primary,
.hx-btn-ghost {
  -webkit-tap-highlight-color: transparent;
}

/* Smoother panels */
.hx-panel {
  transition:
    border-color var(--hx-duration) var(--hx-ease),
    box-shadow var(--hx-duration) var(--hx-ease),
    transform var(--hx-duration) var(--hx-ease),
    background-color var(--hx-duration) var(--hx-ease);
}

.hx-panel-glow {
  transition:
    border-color var(--hx-duration) var(--hx-ease),
    box-shadow var(--hx-duration) var(--hx-ease),
    transform var(--hx-duration) var(--hx-ease);
}

.hx-panel-glow:hover {
  transform: translateY(-4px);
}

/* Buttons */
.hx-btn-primary,
.hx-btn-ghost {
  transition:
    transform 0.35s var(--hx-ease),
    box-shadow 0.35s var(--hx-ease),
    background-color 0.35s var(--hx-ease),
    border-color 0.35s var(--hx-ease),
    color 0.35s var(--hx-ease);
}

.hx-btn-primary:active,
.hx-btn-ghost:active {
  transform: translateY(0) scale(0.98);
}

/* Product card media frame */
.hx-product-card-media {
  aspect-ratio: 16 / 10;
}

/* Borderless status chips */
.hx-chip {
  border: none;
  background: transparent;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
}

/* Hero entrance */
.hx-enter {
  opacity: 0;
  transform: translateY(18px);
  animation: hx-enter var(--hx-duration) var(--hx-ease-out) forwards;
}

.hx-enter-delay-1 { animation-delay: 0.08s; }
.hx-enter-delay-2 { animation-delay: 0.16s; }
.hx-enter-delay-3 { animation-delay: 0.24s; }
.hx-enter-delay-4 { animation-delay: 0.32s; }
.hx-enter-delay-5 { animation-delay: 0.4s; }
.hx-enter-delay-6 { animation-delay: 0.48s; }

@keyframes hx-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Soft logo breath */
.hx-logo-soft {
  animation: hx-logo-soft 5.5s var(--hx-ease) infinite;
}

@keyframes hx-logo-soft {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 28px rgba(143,200,255, 0.4));
  }
  50% {
    transform: translateY(-6px) scale(1.02);
    filter: drop-shadow(0 0 42px rgba(143,200,255, 0.55));
  }
}

/* Scroll reveals */
.hx-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--hx-ease-out),
    transform 0.7s var(--hx-ease-out);
  will-change: opacity, transform;
}

.hx-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hx-reveal-delay-1 { transition-delay: 0.08s; }
.hx-reveal-delay-2 { transition-delay: 0.16s; }
.hx-reveal-delay-3 { transition-delay: 0.24s; }
.hx-reveal-delay-4 { transition-delay: 0.32s; }
.hx-reveal-delay-5 { transition-delay: 0.4s; }
.hx-reveal-delay-6 { transition-delay: 0.48s; }

/* Product card polish */
a.hx-panel.group {
  transition:
    transform 0.5s var(--hx-ease),
    border-color 0.5s var(--hx-ease),
    box-shadow 0.5s var(--hx-ease);
}

a.hx-panel.group:hover {
  transform: translateY(-6px);
}

a.hx-panel.group h3 {
  transition: color 0.35s var(--hx-ease);
}

/* Product description polish */
.hx-product-body p,
.hx-product-body li,
.hx-product-body div {
  margin: 0 0 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.hx-product-body strong,
.hx-product-body b {
  color: #eef6ff;
  font-weight: 600;
}

.hx-product-body ul,
.hx-product-body ol {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.hx-product-body a {
  color: #8fc8ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Hide broken empty captcha shells until SellAuth injects one */
altcha-widget:empty,
.altcha:empty {
  display: none !important;
}

/* Number input cleanup on PDP */
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type='number'] {
  -moz-appearance: textfield;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hx-enter,
  .hx-logo-soft,
  .hx-reveal,
  .hx-panel,
  .hx-panel-glow,
  .hx-btn-primary,
  .hx-btn-ghost,
  a.hx-panel.group {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
.hx-stat-label { color: #c7d9e9; font-size: 0.75rem; letter-spacing: 0.14em; }

.hx-counter { position: relative; font-variant-numeric: tabular-nums; }
.hx-counter-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hx-digit { display: inline-block; height: 1.12em; overflow: hidden; vertical-align: bottom; }
.hx-reel, .hx-reel > span { display: block; }
.hx-reel > span { height: 1.12em; line-height: 1.12em; text-align: center; }
.hx-counter.is-rolling .hx-reel { animation: hx-digit-roll 3s cubic-bezier(.35,.05,.25,1) 350ms both; }
@keyframes hx-digit-roll {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-100% + 1.12em)); }
}
@media (prefers-reduced-motion: reduce) {
  .hx-counter.is-rolling .hx-reel { animation-timing-function: linear; }
}

.hx-storefront {
  position: relative;
  isolation: isolate;
}
.hx-storefront::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  filter: blur(0.8px);
  background:
    radial-gradient(ellipse at top left, #386aa455, transparent 55%),
    radial-gradient(ellipse at bottom right, #1d456e55, transparent 55%),
    url("./proton-contours.svg") center / cover no-repeat;
}

.proton-orbit {
  position:absolute; z-index:1; isolation:isolate; pointer-events:none;
  right:6%; bottom:18%; width:clamp(68px,11.5vw,160px); aspect-ratio:1;
  transform:rotate(-27deg);
}
.proton-orbit-core {
  position:absolute; z-index:1; inset:0; border-radius:50%;
  background:
    radial-gradient(circle at 33% 23%,#c8e8ff70,transparent 37%),
    radial-gradient(ellipse at 33% 27%,#78b7ef 0%,#3c6897 32%,#263c59 59%,#0c1726 78%);
  box-shadow:inset 2px 2px 7px #b4dbff75, inset -7px -10px 16px #07111ead, 0 14px 35px #040a1275;
}
.proton-orbit-core::after {
  content:""; position:absolute; inset:0; border-radius:inherit;
  background:repeating-linear-gradient(160deg,transparent 0 12%,#b3dfff1f 15%,transparent 21%);
  mask-image:radial-gradient(circle at 33% 25%,black,transparent 78%);
}
.proton-orbit::before,.proton-orbit::after {
  content:""; position:absolute; inset:33% -26%; border-radius:50%;
  border:clamp(4px,.55vw,8px) solid #709bc7;
  box-shadow:inset 0 0 0 1px #d0eaff80,0 0 0 1px #aacfff4d;
}
.proton-orbit::before { z-index:0; opacity:.58; }
.proton-orbit::after { z-index:2; clip-path:inset(49% -3% -10%); border-bottom-color:#b9dbf6; }
.proton-orbit { animation:proton-orbit-float 3s ease-in-out infinite alternate; }
@keyframes proton-orbit-float { to { transform:translateY(-24px) rotate(-10deg); } }

@media (max-width: 800px) {
  .proton-orbit { top: 26%; bottom: auto; right: 7%; width: clamp(38px, 8vw, 64px); }
}
@media (min-width: 801px) {
  .proton-orbit { animation-name: proton-orbit-desktop-float; }
}

@keyframes proton-orbit-desktop-float {
  to { transform: translateY(-40px) rotate(-10deg); }
}

@media (prefers-reduced-motion: reduce) {
  .proton-orbit { animation: none; }
}

@media (min-width: 801px) and (prefers-reduced-motion: reduce) {
  .proton-orbit { animation: proton-orbit-gentle-bob 2s ease-in-out 2 alternate; }
}

@keyframes proton-orbit-gentle-bob {
  to { transform: translateY(-6px) rotate(-27deg); }
}

.hx-storefront :is(#products, #faq) .hx-panel,
.hx-storefront .hx-stats-panel {
  background-color: rgb(10 23 37 / 62%);
  border-color: rgb(143 200 255 / 20%);
  box-shadow: inset 0 1px 0 rgb(190 225 255 / 10%), 0 14px 36px rgb(0 0 0 / 22%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Store catalog */
.hx-catalog-heading {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1;
}

.hx-catalog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 600px) {
  .hx-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .hx-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.hx-catalog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.125rem;
  transition-property: opacity, transform, border-color, background-color;
}

.hx-catalog-art {
  --poster-glow: 65 115 207;
  --poster-light: 87% 53%;
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  container-type: inline-size;
  isolation: isolate;
  background:
    radial-gradient(circle at 15% 42%, #b7d9ff 0 .6px, transparent 1px),
    radial-gradient(circle at 80% 19%, #c0defb 0 .6px, transparent 1px),
    radial-gradient(circle at 72% 70%, #739cc8 0 .7px, transparent 1px),
    radial-gradient(circle at 26% 79%, #739cc8 0 .6px, transparent 1px),
    radial-gradient(circle at 52% 13%, #a2bfdc 0 .6px, transparent 1px),
    radial-gradient(ellipse 68% 47% at var(--poster-light), rgb(var(--poster-glow) / 45%), transparent 100%),
    radial-gradient(ellipse 38% 34% at 36% 74%, rgb(53 103 185 / 24%), transparent 100%),
    radial-gradient(ellipse 48% 52% at 15% 7%, #263852, transparent 95%),
    linear-gradient(162deg, #131e2e, #080e18 83%);
}

.hx-catalog-card:nth-child(3n + 2) .hx-catalog-art {
  --poster-glow: 76 119 214;
  --poster-light: 92% 49%;
}

.hx-catalog-card:nth-child(3n) .hx-catalog-art {
  --poster-glow: 66 123 205;
  --poster-light: 79% 55%;
}

.hx-catalog-art::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 39%, rgb(186 211 239 / 14%) 55%, transparent 72%),
    conic-gradient(from 104deg at 84% 18%, transparent 0deg 12deg, rgb(99 147 234 / 9%) 27deg, transparent 64deg);
  mask-image: linear-gradient(#000 12%, rgb(0 0 0 / 78%) 60%, transparent);
}

.hx-catalog-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--cl-primary, #8fc8ff);
  pointer-events: none;
}

.hx-catalog-artwork {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  place-items: center;
  padding: .75rem .9rem;
  text-align: center;
}

.hx-catalog-wumpus {
  position: absolute;
  top: 23%;
  left: 8%;
  width: clamp(3rem, 22cqw, 6.25rem);
  height: auto;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hx-catalog-wumpus {
    animation: hx-catalog-jetpack 4.8s ease-in-out infinite;
  }

  .hx-catalog-card:nth-child(even) .hx-catalog-wumpus {
    animation-delay: -2.4s;
  }
}

@keyframes hx-catalog-jetpack {
  0%, 100% { transform: translate(-4px, 3px) rotate(-8deg); }
  45% { transform: translate(11px, -10px) rotate(6deg); }
  72% { transform: translate(5px, -3px) rotate(1deg); }
}

.hx-catalog-art-title {
  grid-row: 2;
  color: #f8fbff;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.125rem, 8.6cqw, 2.25rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.055em;
  text-wrap: balance;
  text-shadow: 0 0 .36em rgb(226 242 255 / 45%);
  overflow-wrap: anywhere;
}

.hx-catalog-art-title > span {
  color: #6cafff;
  text-shadow: 0 0 .4em rgb(58 127 247 / 60%);
}

.hx-catalog-art-brand {
  grid-row: 3;
  align-self: end;
  margin-bottom: .5rem;
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  color: #83b9ff;
  font-size: clamp(.75rem, 4cqw, 1.0625rem);
  font-weight: 700;
  letter-spacing: -.035em;
}

.hx-catalog-art-brand img { width: 1.375rem; height: auto; }

.hx-catalog-art-brand strong { color: #f8fbff; }

.hx-catalog-stock {
  position: absolute;
  inset: .5rem auto auto .625rem;
  max-width: calc(100% - 1.5rem);
  padding: .25rem .625rem;
  border: 1px solid rgb(210 228 244 / 22%);
  border-radius: 999px;
  background: #101c28;
  color: #dce8f2;
  font-size: .75rem;
  font-weight: 600;
}

.hx-catalog-stock-available { color: #b4edce; }
.hx-catalog-stock-out { color: #ffc5c9; }

.hx-catalog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.hx-catalog-card-title {
  font-size: clamp(1.0625rem, 2vw, 1.375rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.hx-catalog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: .75rem;
  border-top: 1px solid rgb(143 200 255 / 13%);
}

.hx-catalog-card-action {
  display: grid;
  place-items: center;
  flex: 0 0 2.5rem;
  height: 2.5rem;
  border: 1px solid rgb(143 200 255 / 30%);
  border-radius: .625rem;
  background-color: rgb(143 200 255 / 13%);
  color: #e0f2ff;
  font-size: 1.25rem;
  transition: background-color .2s, color .2s;
}

.hx-storefront #products .hx-catalog-card:is(:hover, :focus-visible) {
  background-color: rgb(25 50 72 / 76%);
  border-color: rgb(143 200 255 / 55%);
}

.hx-catalog-card:is(:hover, :focus-visible) .hx-catalog-card-action {
  background-color: #b4dcff;
  color: #10253a;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hx-catalog-card.is-visible:hover { transform: translateY(-2px); }
}

.hx-product-banner-fallback {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 25%, #213d56, #0c1825 74%);
}

.hx-product-caption-label { font-size: .8125rem; color: #afc4d8; }
.hx-product-banner-image,
.hx-product-banner-fallback {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background-color: #0b1724;
}
.hx-product-banner-caption { display: grid; gap: .25rem; padding: 1.25rem; }
.hx-product-body { overflow-wrap: anywhere; }
.hx-product-body :is(img, video, iframe, table) { max-width: 100%; }
.hx-product-body img { height: auto; border-radius: .5rem; }
.hx-product-body :is(h2, h3, h4) { margin: 1.25rem 0 .5rem; font-weight: 600; }
.hx-product-body pre { overflow: auto; }
.hx-storefront :is(a, button, input):focus-visible {
  outline: 2px solid #8fc8ff;
  outline-offset: 3px;
}
.hx-storefront button:disabled { cursor: not-allowed; opacity: .55; }