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

:root {
  --dark: #0d0d0d;
  --light: #f1faee;
  --gray: #6b6b6b;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark);
  color: var(--light);
  overflow-y: scroll;
}

/* ─── NAV ─── */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 3rem;
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(13,13,13,0.9);
  backdrop-filter: blur(10px);
  z-index: 9999;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__links a,
.nav__links button {
  color: var(--light);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: color 0.3s;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-weight: 400;
}

.nav__links a:hover,
.nav__links button:hover {
  color: var(--gray);
}

/* ─── PRELOADER ─── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.4s ease;
}

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #2a2a2a;
  border-top-color: var(--light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── APPS ─── */
#apps {
  max-width: 100%;
  padding: 4rem 3rem 3rem 3rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#apps.loaded {
  opacity: 1;
}

/* ─── APPS GRID ─── */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  isolation: isolate;
}

@media (min-width: 600px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .apps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  #apps {
    padding: 4rem 0.75rem 1.5rem 0.75rem;
  }
  .apps-grid {
    gap: 0.75rem;
  }
}

/* ─── APP CARD ─── */
.app-card {
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  transition: border-color 0.3s;
  text-decoration: none;
  display: block;
  z-index: 1;
}

.app-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.25s ease;
  z-index: 0;
}

.app-card:hover .app-card__bg {
  transform: scale(1.07);
}

.app-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.app-card img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

.app-card__text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--light);
}

/* ─── FOOTER ─── */
.footer {
  padding: 3rem;
  border-top: 1px solid #2a2a2a;
  margin-top: 3rem;
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer__social a img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  transition: opacity 0.3s;
}

.footer__social a:hover img {
  opacity: 0.7;
}

.footer__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 0.25rem;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--gray);
}