/* ==========================================================================
   Tap2Profit - Custom Styles & Micro-Animations
   Mobile-First • High Conversion • Ultra Fast
   ========================================================================== */

:root {
  --color-primary: #0866FF;
  --color-primary-hover: #0052cc;
  --color-secondary: #00B7FF;
  --color-dark: #080B12;
  --color-text-main: #101114;
  --color-text-sub: #60646C;
  --color-bg-gray: #F6F7F9;
  --color-gold: #FFB800;
  --radius-card: 18px;
  --radius-btn: 14px;
}

/* Base resets & typography */
html {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  color: var(--color-text-main);
  background-color: #FFFFFF;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(8, 102, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(8, 102, 255, 0);
  }
}

@keyframes nfcWave {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes shineEffect {
  0% {
    transform: translateX(-100%) rotate(25deg);
  }
  100% {
    transform: translateX(200%) rotate(25deg);
  }
}

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

@keyframes tapCardMotion {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  30% {
    transform: translate(30px, -15px) rotate(8deg);
  }
  45% {
    transform: translate(18px, -5px) rotate(4deg);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==========================================================================
   UTILITY CLASSES & INTERACTION ENHANCEMENTS
   ========================================================================== */

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

@keyframes logoPulseBreath {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 4px 12px rgba(8, 102, 255, 0.15));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 10px 24px rgba(8, 102, 255, 0.35));
  }
}

@keyframes radarSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-logo-pulse {
  animation: logoPulseBreath 2s infinite ease-in-out;
}

.radar-spinner {
  animation: radarSpin 2.2s linear infinite;
}

.animate-subtle-float {
  animation: subtleFloat 3.5s infinite ease-in-out;
}

.screen-transition {
  animation: fadeInScale 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Primary Button with subtle glow */
.btn-primary-action {
  background: linear-gradient(135deg, #0866FF 0%, #0056df 100%);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.btn-primary-action:hover {
  background: linear-gradient(135deg, #0056df 0%, #0046b8 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -5px rgba(8, 102, 255, 0.4);
}

.btn-primary-action:active {
  transform: translateY(1px);
}

.btn-primary-action::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 70%
  );
  transform: translateX(-100%) rotate(25deg);
  animation: shineEffect 5s infinite ease-in-out;
}

/* Dark Offer Card Gradient */
.dark-offer-card {
  background: radial-gradient(circle at top right, #161c28 0%, #080B12 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(8, 11, 18, 0.6);
}

/* NFC Wave Emitter */
.nfc-wave-ring {
  position: absolute;
  border-radius: 9999px;
  border: 2px solid #00B7FF;
  animation: nfcWave 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.nfc-wave-ring:nth-child(2) {
  animation-delay: 0.6s;
}

.nfc-wave-ring:nth-child(3) {
  animation-delay: 1.2s;
}

/* Progress bar dynamic easing */
.progress-bar-fill {
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Interactive Tap Demo Wrapper */
.nfc-demo-wrapper.nfc-active .demo-card {
  animation: tapCardMotion 1.8s ease forwards;
}

.nfc-demo-wrapper.nfc-active .demo-phone-review {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  transition: all 0.4s 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Touch feedback for mobile cards */
.quiz-option-card {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

/* Glassmorphism subtle overlays */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
