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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #080808;
  color: #eaeaea;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
}

.page {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 20px 16px 12px;
  gap: 16px;
  min-height: 100dvh;
}

/* ── HERO ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0 4px;
}

.logo {
  width: 80px;
  filter: drop-shadow(0 0 12px #00ff8866);
}

h1 {
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  color: #f0f0f0;
}

.tagline {
  font-size: clamp(0.75rem, 2.2vw, 0.85rem);
  color: #666;
  text-align: center;
  max-width: 380px;
  line-height: 1.4;
}

/* ── GRID ── */
.apps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
}

/* last card (6th) spans both cols on odd grids — let it sit left naturally */
/* iOS: 2 col all the way */

.app-card {
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-card:hover,
.app-card:active {
  border-color: #00ff88;
  transform: translateY(-2px);
}

/* ── CARD ART ── */
.card-art {
  width: 100%;
  aspect-ratio: 16/7;
  background: #0c0c0c;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #1a1a1a;
  overflow: hidden;
}

.card-art svg {
  width: 70%;
  height: 70%;
  opacity: 0.85;
}

/* ── CARD BODY ── */
.card-body {
  padding: 10px 12px 12px;
}

.card-body h2 {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 600;
  color: #e8e8e8;
  margin-bottom: 2px;
}

.card-body p {
  font-size: clamp(0.68rem, 1.8vw, 0.75rem);
  color: #555;
  line-height: 1.35;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  font-size: 0.7rem;
  color: #333;
  padding: 4px 0 2px;
}

/* ── DESKTOP: 3-col ── */
@media (min-width: 580px) {
  .apps {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .page {
    padding: 24px 24px 14px;
    gap: 20px;
  }
}
