@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg-dark: #050505;
  --bg-card: #0d0d0d;
  --color-red-400: #ff6568;
  --color-red-500: #fb2c36;
  --color-red-600: #dc2626;
  --color-red-700: #bf000f;
  --color-red-800: #9f0712;
  --color-red-900: #82181a;
  --color-red-950: #460809;
  --border-red: rgba(220, 38, 38, 0.45);
  --border-red-bright: rgba(255, 30, 60, 0.7);
  --glow-red: 0 0 25px rgba(255, 30, 60, 0.85), 0 0 50px rgba(220, 0, 40, 0.5);
  --glow-red-lg: 0 0 40px rgba(255, 30, 60, 0.95), 0 0 80px rgba(255, 0, 50, 0.7), 0 0 120px rgba(220, 0, 40, 0.4);
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
}

/* Hide Default OS Cursor Everywhere */
html, body, *, *::before, *::after, a, button, input, select, textarea, [role="button"] {
  cursor: none !important;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  color: #ffffff;
  font-family: var(--font-main);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Red Dot Cursor & Targeting Reticle */
#custom-cursor-dot {
  pointer-events: none;
  position: fixed;
  z-index: 1000000;
  width: 9px;
  height: 9px;
  background-color: #ff0033;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px #ff0033, 0 0 16px #ff1a38, 0 0 28px rgba(255, 0, 50, 0.95), 0 0 45px rgba(255, 0, 50, 0.6);
  transition: width 0.15s ease, height 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

#custom-cursor-dot.hovering {
  width: 12px;
  height: 12px;
  background-color: #ffffff;
  box-shadow: 0 0 12px #ffffff, 0 0 25px #ff0033, 0 0 45px #ff0033, 0 0 70px rgba(255, 0, 50, 1);
}

#custom-cursor {
  pointer-events: none;
  position: fixed;
  z-index: 999999;
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(255, 40, 60, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), 
              height 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), 
              border-color 0.2s, 
              background-color 0.2s,
              box-shadow 0.2s;
  mix-blend-mode: screen;
}

#custom-cursor.hovering {
  width: 50px;
  height: 50px;
  border-color: #ff0033;
  background-color: rgba(255, 0, 50, 0.12);
  box-shadow: 0 0 25px rgba(255, 0, 50, 0.85), inset 0 0 15px rgba(255, 0, 50, 0.45);
}

@media (pointer: coarse) {
  #custom-cursor, #custom-cursor-dot {
    pointer-events: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  html, body, *, a, button {
    cursor: auto !important;
    -webkit-tap-highlight-color: rgba(255, 0, 50, 0.25);
  }
}

/* Ambient Cyber Laser Scan Line Moving Across Background */
.laser-scanner-line {
  position: fixed;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 20, 50, 0.1) 10%,
    rgba(255, 0, 50, 0.85) 50%,
    rgba(255, 20, 50, 0.1) 90%,
    transparent 100%
  );
  box-shadow: 0 0 15px #ff0033, 0 0 30px #ff0033, 0 0 50px rgba(255, 0, 50, 0.85);
  animation: laserScan 6s linear infinite;
  opacity: 0.85;
}

@keyframes laserScan {
  0% {
    top: -5px;
    opacity: 0;
  }
  5% {
    opacity: 0.95;
  }
  95% {
    opacity: 0.95;
  }
  100% {
    top: 100vh;
    opacity: 0;
  }
}

/* Atmospheric Noise & Scanlines */
.noise::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

.scanline::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
}

/* Grid background pattern */
.grid-bg {
  background-image: 
    linear-gradient(rgba(220, 38, 38, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 38, 38, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* High-Intensity Glow & Neon Utilities */
.glow-red {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 60, 80, 0.95), 
               0 0 25px rgba(255, 0, 50, 0.9), 
               0 0 50px rgba(220, 0, 40, 0.75),
               0 0 80px rgba(255, 0, 50, 0.5);
}

.glow-red-title {
  text-shadow: 0 0 15px rgba(255, 40, 60, 1),
               0 0 35px rgba(255, 0, 40, 0.9),
               0 0 75px rgba(220, 0, 30, 0.75),
               0 0 110px rgba(255, 0, 50, 0.45);
}

.glow-box {
  box-shadow: 0 0 30px rgba(255, 0, 50, 0.55), 0 0 60px rgba(220, 0, 40, 0.3);
}

.glow-box-intense {
  box-shadow: 0 0 40px rgba(255, 0, 50, 0.75), 0 0 80px rgba(220, 0, 40, 0.45), inset 0 0 25px rgba(255, 0, 50, 0.25);
}

.neon-border-subtle {
  box-shadow: 0 0 20px rgba(255, 0, 50, 0.35), inset 0 0 15px rgba(255, 0, 50, 0.15);
  border: 1px solid rgba(255, 40, 60, 0.55);
}

.neon-border-intense {
  border: 1.5px solid #ff1a35 !important;
  box-shadow: 0 0 25px rgba(255, 26, 53, 0.85), 0 0 50px rgba(255, 0, 40, 0.5), inset 0 0 20px rgba(255, 26, 53, 0.3) !important;
}

.neon-badge {
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid #ff2a40;
  box-shadow: 0 0 15px rgba(255, 42, 64, 0.65), inset 0 0 10px rgba(255, 42, 64, 0.3);
  color: #ff6b7e;
}

/* Pulse animation for primary CTA buttons */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 22px rgba(255, 26, 53, 0.7), 0 0 45px rgba(220, 0, 40, 0.4);
    transform: scale(1);
    border-color: #ff334b;
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 30, 60, 1), 0 0 80px rgba(255, 0, 50, 0.8), 0 0 15px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
    border-color: #ff667a;
  }
}

.btn-pulse {
  animation: pulse-glow 2.2s ease-in-out infinite;
}

/* Neon halo for hero graphics */
.neon-halo {
  filter: drop-shadow(0 0 25px rgba(255, 0, 50, 0.85)) drop-shadow(0 0 60px rgba(220, 0, 40, 0.5));
}

/* Glitch animation */
@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(3px, -2px); }
  60% { transform: translate(-2px, -2px); }
  80% { transform: translate(2px, 2px); }
  100% { transform: translate(0); }
}

.glitch:hover {
  color: #ff2c3b;
  text-shadow: 0 0 12px #ff0033;
  animation: glitch 0.35s ease-in-out;
}

/* Floating animation for icons */
@keyframes floatAnim {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.float-anim {
  animation: floatAnim 3.5s ease-in-out infinite;
  display: inline-block;
}

/* Slide Up */
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

/* Cursor blink for typewriter */
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor-blink {
  animation: cursorBlink 0.9s infinite;
  font-weight: 900;
  color: var(--color-red-500);
}

/* Card hover with neon effect */
.card-hover {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(220, 38, 38, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.card-hover:hover {
  transform: translateY(-6px);
  border-color: #ff2c3b !important;
  box-shadow: 0 12px 35px -5px rgba(255, 0, 50, 0.35), 0 0 25px rgba(255, 0, 50, 0.25);
}

/* Canvas background for embers and connected lines */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Navigation */
nav.scrolled {
  background-color: rgba(5, 5, 5, 0.94) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 30, 60, 0.35) !important;
  box-shadow: 0 4px 25px rgba(255, 0, 50, 0.2), 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: #0c0c0c;
  border: 1.5px solid rgba(255, 30, 60, 0.65);
  box-shadow: 0 0 45px rgba(255, 0, 50, 0.4), inset 0 0 20px rgba(255, 0, 50, 0.15);
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* Payment Method Selection Buttons */
.payment-method-btn {
  border: 1px solid rgba(220, 38, 38, 0.4);
  background: rgba(0, 0, 0, 0.5);
  color: #9ca3af;
  padding: 0.65rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  user-select: none;
}

.payment-method-btn:hover {
  border-color: #ff0033;
  color: #ffffff;
  background: rgba(255, 0, 50, 0.1);
}

.payment-method-btn.active {
  border-color: #ff0033 !important;
  background: rgba(185, 28, 28, 0.35) !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(255, 0, 50, 0.5), inset 0 0 8px rgba(255, 0, 50, 0.3);
}

/* Cyber Toast Notification */
#cyber-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999999;
  background: #0d0d0d;
  border: 1.5px solid #ff0033;
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(255, 0, 50, 0.7), 0 10px 25px rgba(0, 0, 0, 0.8);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

#cyber-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ====================================================
   MOBILE SPECIFIC UI & PERFORMANCE OPTIMIZATIONS
   Strictly scoped to (max-width: 768px)
   Desktop layout, styles & animations remain 100% untouched
   ==================================================== */
@media (max-width: 768px) {
  /* 1. Perfectly Align & Center the "Scroll" Indicator on Mobile */
  #hero-scroll-indicator,
  .scroll-indicator {
    position: absolute !important;
    bottom: 1.5rem !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translate3d(-50%, 0, 0) !important;
    -webkit-transform: translate3d(-50%, 0, 0) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: max-content !important;
    max-width: 100% !important;
    animation: mobileScrollBounce 2s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    will-change: transform;
    pointer-events: none !important;
    z-index: 20 !important;
  }

  #hero-scroll-indicator *,
  .scroll-indicator * {
    transform: none !important;
    -webkit-transform: none !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #hero-scroll-indicator span,
  .scroll-indicator span {
    display: block !important;
    text-align: center !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.15em !important;
    line-height: 1 !important;
    margin: 0 auto !important;
    transform: none !important;
  }

  #hero-scroll-indicator div,
  .scroll-indicator div {
    display: block !important;
    margin: 0 auto !important;
    width: 2px !important;
    height: 32px !important;
    transform: none !important;
  }

  @keyframes mobileScrollBounce {
    0%, 100% {
      transform: translate3d(-50%, 0, 0);
    }
    50% {
      transform: translate3d(-50%, 9px, 0);
    }
  }

  /* 2. Hardware Acceleration for Active Animating Elements */
  #particles-canvas,
  .laser-scanner-line,
  .btn-pulse,
  .float-anim {
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    perspective: 1000px;
  }

  .btn-pulse {
    animation: mobilePulseGlow 2.4s ease-in-out infinite !important;
  }

  @keyframes mobilePulseGlow {
    0%, 100% {
      box-shadow: 0 0 12px rgba(255, 26, 53, 0.6);
      transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }
    50% {
      box-shadow: 0 0 22px rgba(255, 30, 60, 0.85);
      transform: translate3d(0, 0, 0) scale3d(1.02, 1.02, 1);
    }
  }

  .float-anim {
    animation: mobileFloatAnim 3.5s ease-in-out infinite !important;
  }

  @keyframes mobileFloatAnim {
    0%, 100% {
      transform: translate3d(0, 0, 0);
    }
    50% {
      transform: translate3d(0, -6px, 0);
    }
  }

  .laser-scanner-line {
    top: 0 !important;
    box-shadow: 0 0 10px #ff0033 !important;
    animation: mobileLaserScan 8s linear infinite !important;
    will-change: transform, opacity;
  }

  @keyframes mobileLaserScan {
    0% {
      transform: translate3d(0, -5px, 0);
      opacity: 0;
    }
    5% {
      opacity: 0.8;
    }
    95% {
      opacity: 0.8;
    }
    100% {
      transform: translate3d(0, 100vh, 0);
      opacity: 0;
    }
  }

  /* 3. Smooth Course & Anti-Gravity Animation on Mobile */
  #custom-cursor,
  #custom-cursor-dot {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    pointer-events: none !important;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(-100px, -100px, 0);
  }

  #custom-cursor {
    width: 28px !important;
    height: 28px !important;
    border-width: 1.5px !important;
    box-shadow: 0 0 8px rgba(255, 0, 50, 0.45) !important;
  }

  #custom-cursor-dot {
    width: 6px !important;
    height: 6px !important;
    box-shadow: 0 0 6px #ff0033 !important;
  }

  /* 4. Disable Heavy Blur & Backdrop-Filter Bottlenecks on Mobile */
  nav.scrolled,
  .modal-overlay,
  #mobile-menu,
  [class*="backdrop-blur"],
  .backdrop-blur-sm,
  .backdrop-blur-md,
  .backdrop-blur-lg,
  .backdrop-blur {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  nav.scrolled {
    background-color: rgba(6, 6, 6, 0.98) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.85) !important;
  }

  #mobile-menu {
    background-color: rgba(10, 10, 10, 0.98) !important;
  }

  .modal-overlay {
    background-color: rgba(0, 0, 0, 0.92) !important;
  }

  /* Eliminate expensive SVG fractal noise filter redraws & heavy blurs on mobile */
  .noise::before {
    display: none !important;
  }

  .blur-3xl,
  .blur-2xl {
    filter: none !important;
    opacity: 0.12 !important;
  }

  .neon-halo {
    filter: none !important;
  }
}

/* ─── PC VIP Panel Download Button (Red Neon Glow) ─── */
.pc-panel-download-btn {
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.pc-panel-download-btn:hover {
  background-color: #ef4444 !important;
  transform: scale(1.04);
  box-shadow: 0 0 30px rgba(220, 38, 38, 1), 0 0 55px rgba(239, 68, 68, 0.6), 0 0 80px rgba(239, 68, 68, 0.25) !important;
}

.pc-panel-download-btn:active {
  transform: scale(0.97);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.7), 0 0 30px rgba(239, 68, 68, 0.3) !important;
}

