:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
  color: #f7f7f2;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(74, 141, 255, 0.18), transparent 34rem),
    #000;
}

a {
  color: inherit;
}

.shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 38px 0 58px;
}

.top-row {
  display: grid;
  grid-template-columns: minmax(24px, 0.6fr) minmax(180px, 0.9fr) repeat(4, minmax(0, 1fr));
  align-items: center;
  column-gap: 24px;
  width: 100%;
  padding: 0 28px;
}

.brand-logo {
  display: block;
  grid-column: 2;
  grid-row: 1;
  width: min(21vw, 305px);
  height: auto;
  justify-self: start;
  object-fit: contain;
}

.header {
  grid-column: 1 / -1;
  grid-row: 1;
  text-align: center;
  pointer-events: none;
  align-self: center;
}

h1 {
  margin: 0 auto;
  color: #fff;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.55rem, 2.5vw, 2.55rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
}

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  gap: 144px 120px;
  place-content: center;
  align-items: end;
  align-self: stretch;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 0;
}

.app-link {
  --circle-size: clamp(132px, 18vw, 204px);
  position: relative;
  display: grid;
  justify-items: center;
  min-height: calc(var(--circle-size) + 64px);
  padding-top: 18px;
  text-decoration: none;
  outline: none;
}

.app-title {
  position: absolute;
  bottom: 0;
  z-index: 0;
  width: min(100%, 220px);
  min-height: 72px;
  padding: 38px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  color: #fff;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.app-circle {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--circle-size);
  height: var(--circle-size);
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: #141414;
  overflow: hidden;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.72);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.app-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-link:hover .app-circle,
.app-link:focus-visible .app-circle {
  transform: translateY(-8px) scale(1.03);
  border-color: #9ad8c4;
  box-shadow: 0 26px 74px rgba(154, 216, 196, 0.24);
}

.app-link:hover .app-title,
.app-link:focus-visible .app-title {
  transform: translateY(5px);
  border-color: rgba(154, 216, 196, 0.55);
  background: linear-gradient(180deg, rgba(154, 216, 196, 0.18), rgba(255, 255, 255, 0.06));
}

.app-link:focus-visible .app-circle {
  outline: 3px solid #fff;
  outline-offset: 5px;
}

.empty-state {
  max-width: 520px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.empty-state p {
  margin: 0;
  color: #c7c7c2;
}

code {
  color: #9ad8c4;
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 420px);
    padding: 22px 0 42px;
  }

  .top-row {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .brand-logo {
    grid-column: 1;
    width: min(260px, 72vw);
    justify-self: center;
  }

  .header {
    grid-column: 1;
  }

  h1 {
    font-size: clamp(1.35rem, 7vw, 1.9rem);
  }

  .apps {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 28px;
  }

  .app-link {
    --circle-size: clamp(116px, 38vw, 152px);
  }
}
