.apps-page { background: var(--navy); }
.apps-main {
  position: relative;
  min-height: 100vh;
  padding: 150px 0 110px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 82% 18%, rgba(31, 197, 162, 0.16), transparent 36%),
    radial-gradient(circle at 14% 86%, rgba(245, 166, 35, 0.1), transparent 32%),
    linear-gradient(135deg, #051426 0%, #08233b 56%, #071a2f 100%);
}
.apps-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255,255,255,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.apps-hero { position: relative; text-align: center; }
.apps-hero .eyebrow { justify-content: center; }
.apps-hero h1 { margin: 0; font-size: clamp(38px, 5vw, 56px); line-height: 1.2; letter-spacing: -0.03em; }
.apps-summary { max-width: 520px; margin: 16px auto 0; color: rgba(255, 255, 255, 0.66); font-size: 17px; }

.app-grid { margin: 64px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 44px; list-style: none; }
.app-tile {
  width: 112px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: white;
  background: none;
  border: 0;
  border-radius: 20px;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease;
}
.app-tile:hover { transform: translateY(-4px); }
.app-tile:focus-visible { outline: 3px solid var(--honey); outline-offset: 4px; }
.app-icon { width: 88px; height: 88px; border-radius: 21px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.folder-icon {
  width: 88px;
  height: 88px;
  padding: 13px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 21px;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.folder-icon img { display: block; width: 100%; aspect-ratio: 1; border-radius: 7px; }
.app-name { font-size: 15px; font-weight: 600; }

.folder { width: min(360px, calc(100vw - 40px)); padding: 0; color: white; background: transparent; border: 0; }
.folder::backdrop { background: rgba(3, 14, 26, 0.55); backdrop-filter: blur(10px); }
.folder[open] .folder-panel { animation: folder-in 200ms ease-out; }
.folder-panel {
  padding: 22px 22px 18px;
  background: rgba(12, 38, 62, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.folder h2 { margin: 0 0 18px; font-size: 20px; text-align: center; }
.folder-apps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; list-style: none; }
.folder-apps a { padding: 12px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; border-radius: 16px; text-align: center; transition: background-color 180ms ease; }
.folder-apps a:hover, .folder-apps a:focus-visible { background: rgba(255, 255, 255, 0.08); }
.folder-apps img { width: 64px; height: 64px; border-radius: 15px; }
.folder-apps span { font-size: 15px; font-weight: 600; }
.folder-apps small { color: rgba(255, 255, 255, 0.6); font-size: 12px; }
.folder-close {
  margin: 16px auto 0;
  padding: 8px 20px;
  display: block;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.folder-close:hover { color: white; background: rgba(255, 255, 255, 0.14); }

@keyframes folder-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 760px) {
  .apps-main { padding: 118px 0 80px; }
  .app-grid { margin-top: 48px; gap: 28px 14px; }
  .app-tile { width: 100px; }
  .app-icon, .folder-icon { width: 76px; height: 76px; }
  .folder-icon { padding: 11px; gap: 7px; }
}
