:root {
  --bg: #0A0E27;
  --card: #1A1F3A;
  --cyan: #00D9FF;
  --green: #39FF14;
  --text: #FFFFFF;
  --text-muted: #A0AEC0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

.font-space {
  font-family: 'Space Grotesk', sans-serif;
}

.bg-background {
  background-color: var(--bg);
}

.bg-card {
  background-color: var(--card);
}

.text-cyan-400 {
  color: var(--cyan);
}

.text-green-400 {
  color: var(--green);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes glow {
  0%, 100% { 
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5)); 
  }
  50% { 
    filter: drop-shadow(0 0 40px rgba(57, 255, 20, 0.5)); 
  }
}

@keyframes slideFromDown {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideFromUp {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out;
}

.animate-slideUp {
  animation: slideUp 0.5s ease-out;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--cyan);
  border-radius: 2px;
}

/* Prevent text selection during swipe */
.select-none {
  user-select: none;
  -webkit-user-select: none;
}

/* Touch action for swipe */
[class*="touch-"] {
  touch-action: pan-y;
}

/* Gradient text fallback */
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

/* Button active states */
button:active {
  transform: scale(0.95);
}

/* Card hover glow */
.bg-card:hover {
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.1);
}

/* Safe area padding for mobile */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .pb-24 {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom));
  }
}

/* Responsive adjustments */
@media (max-width: 380px) {
  .text-5xl {
    font-size: 2.5rem;
  }
  
  .text-4xl {
    font-size: 2rem;
  }
  
  .w-48 {
    width: 10rem;
  }
  
  .h-48 {
    height: 10rem;
  }
}

/* Desktop enhancements */
@media (min-width: 768px) {
  .min-h-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .max-w-md {
    max-width: 28rem;
  }
  
  .grid-cols-2 {
    max-width: 600px;
    margin: 0 auto;
  }
}