@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-oled: #050508;
  --card-surface: #0C0C12;
  --card-surface-hover: #11111A;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.18);
  --accent-emerald: #10B981;
  --text-primary: #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-muted: #52525B;
  --spring-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bounce-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-oled);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-variant-numeric: tabular-nums;
}

/* Explicit Responsive Navigation Rules (Bulletproof on all screens) */
@media (max-width: 767px) {
  .desktop-nav { display: none !important; }
  .mobile-only { display: flex !important; }
  .desktop-only { display: none !important; }

  /* Prevent iOS Safari auto-zoom on input focus */
  input, select, textarea {
    font-size: 16px !important;
  }
}

@media (min-width: 768px) {
  .desktop-nav { display: flex !important; }
  .mobile-only { display: none !important; }
  .desktop-only { display: flex !important; }
}

/* iOS & Android Safe Areas */
.safe-top {
  padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
}

.safe-bottom {
  padding-bottom: max(0.6rem, env(safe-area-inset-bottom, 0px));
}

/* Sleek Minimal Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  transition: background 0.2s ease;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Animations with Spring Physics */
@keyframes springFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes checkmarkPop {
  0% { transform: scale(0.6); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes gentlePulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.animate-fadeIn {
  animation: springFadeIn 0.3s var(--spring-ease) forwards;
}

.animate-pop {
  animation: checkmarkPop 0.25s var(--bounce-ease) forwards;
}

/* Human Spotlight Effect on Cards */
.spotlight-card {
  position: relative;
  background: var(--card-surface);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.2s var(--spring-ease);
}

.spotlight-card:hover {
  border-color: var(--border-hover);
  background-color: var(--card-surface-hover);
}

/* Interactive Buttons */
button, .touch-btn {
  touch-action: manipulation;
  transition: transform 0.12s var(--spring-ease), opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

button:active, .touch-btn:active {
  transform: scale(0.96);
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Toast Notification */
#nex-toast {
  transition: transform 0.3s var(--spring-ease), opacity 0.3s ease;
}
