/* Nexra Shop - Core & Theme Styling */
:root {
  --bg: #0c0a15;
  --fg: #f2eefc;
  --mute: #9d96b8;
  --lilac: #c4a5ff;
  --lilac2: #e4d4ff;
  --lilac-deep: #9a6bff;
  --ink: #1a0b33;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-hi: rgba(255, 255, 255, 0.2);
  --line: rgba(255, 255, 255, 0.12);
  --ok: #6ee7b7;
  --warn: #fcd34d;
  --discord: #aab4ff;
  --display: 'Sora', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.6 var(--body);
  padding-block: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--bg);
}

/* Floating neon ambient blur blobs */
.blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blobs i {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}

.blobs i:nth-child(1) {
  width: 520px;
  height: 520px;
  left: -120px;
  top: -100px;
  background: #7c3aed;
}

.blobs i:nth-child(2) {
  width: 460px;
  height: 460px;
  right: -140px;
  top: 22%;
  background: #c084fc;
  animation-delay: -6s;
  opacity: 0.35;
}

.blobs i:nth-child(3) {
  width: 420px;
  height: 420px;
  left: 25%;
  bottom: -160px;
  background: #6d28d9;
  animation-delay: -11s;
  opacity: 0.4;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--lilac2);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--display);
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

.eyebrow {
  font: 700 11px/1 var(--body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lilac);
}

/* Keyframe animations */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop {
  0% {
    opacity: 0;
    transform: scale(0.86) translateY(16px);
  }
  60% {
    opacity: 1;
    transform: scale(1.025);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes popout {
  to {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeout {
  to { opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes spark {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.2);
  }
}

@keyframes starpop {
  0% { transform: scale(1); }
  50% { transform: scale(1.5) rotate(12deg); }
  100% { transform: scale(1); }
}

@keyframes glowpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 165, 255, 0.5); }
  50% { box-shadow: 0 0 0 9px rgba(196, 165, 255, 0); }
}

.rise {
  animation: rise 0.7s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}

.popin {
  animation: pop 0.6s var(--spring) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

.bob {
  animation: bob 6s ease-in-out infinite;
}

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

