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

html {
  background: #000;
  color: #fff;
  font-family: "Inter", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
.site-header {
  text-align: center;
  padding: 56px 24px 36px;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1rem;
  color: #777;
  font-weight: 400;
  margin-top: 8px;
}

/* App grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 28px 16px;
  padding: 8px 36px 100px;
  width: 100%;
  max-width: 680px;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  animation: fadeUp 0.35s ease both;
}

.app-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  transition: transform 0.2s ease;
}

.app-card:hover .app-card-icon {
  transform: scale(1.1);
}

.app-card-name {
  font-size: 0.68rem;
  text-align: center;
  color: #888;
  line-height: 1.35;
}

/* Footer */
.bottom-icons {
  position: fixed;
  bottom: 12px;
  right: 14px;
  display: flex;
  gap: 20px;
}

.bottom-icon {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

.bottom-icon:hover { color: #fff; }

/* Staggered fade-in */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.app-card:nth-child(1)  { animation-delay: 0.03s; }
.app-card:nth-child(2)  { animation-delay: 0.06s; }
.app-card:nth-child(3)  { animation-delay: 0.09s; }
.app-card:nth-child(4)  { animation-delay: 0.12s; }
.app-card:nth-child(5)  { animation-delay: 0.15s; }
.app-card:nth-child(6)  { animation-delay: 0.18s; }
.app-card:nth-child(7)  { animation-delay: 0.21s; }
.app-card:nth-child(8)  { animation-delay: 0.24s; }
.app-card:nth-child(9)  { animation-delay: 0.27s; }
.app-card:nth-child(10) { animation-delay: 0.30s; }
.app-card:nth-child(11) { animation-delay: 0.33s; }
.app-card:nth-child(12) { animation-delay: 0.36s; }
.app-card:nth-child(13) { animation-delay: 0.39s; }
.app-card:nth-child(14) { animation-delay: 0.42s; }
.app-card:nth-child(15) { animation-delay: 0.45s; }
.app-card:nth-child(16) { animation-delay: 0.48s; }
.app-card:nth-child(17) { animation-delay: 0.51s; }
.app-card:nth-child(18) { animation-delay: 0.54s; }

/* Responsive */
@media (max-width: 500px) {
  h1 { font-size: 2.6rem; }
  .apps-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 20px 100px;
    gap: 24px 12px;
  }
  .app-card-icon { width: 62px; height: 62px; }
}

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