/* ========== Base ========== */
:root {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #0a0a0f;
}
::-webkit-scrollbar-thumb {
  background: #2d2d3a;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3d3d4d;
}

/* ========== App Card ========== */
.app-card {
  position: relative;
  display: block;
  padding: 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(24, 24, 34, 0.9), rgba(16, 16, 24, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 255, 0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: 0 20px 50px -20px rgba(124, 92, 255, 0.4);
}

.app-card:hover::before {
  opacity: 1;
}

.app-card.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.app-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--icon-from, #7c5cff), var(--icon-to, #5b3fd9));
  box-shadow: 0 8px 24px -8px var(--icon-from, rgba(124, 92, 255, 0.6));
}

.app-card-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.app-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.app-card-desc {
  font-size: 0.85rem;
  color: rgb(148 163 184);
  line-height: 1.5;
}

.app-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-live {
  background: rgba(34, 197, 94, 0.15);
  color: rgb(74 222 128);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-soon {
  background: rgba(148, 163, 184, 0.1);
  color: rgb(148 163 184);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* ========== Animations ========== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-card {
  animation: fadeUp 0.5s ease both;
}

.app-card:nth-child(1) { animation-delay: 0.05s; }
.app-card:nth-child(2) { animation-delay: 0.1s; }
.app-card:nth-child(3) { animation-delay: 0.15s; }
.app-card:nth-child(4) { animation-delay: 0.2s; }
.app-card:nth-child(5) { animation-delay: 0.25s; }
.app-card:nth-child(6) { animation-delay: 0.3s; }
