:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --ink: #14171f;
  --muted: #5c6472;
  --line: #dfe3ec;
  --surface: #ffffff;
  --surface-strong: #f9fafc;
  --accent: #0f9f7a;
  --accent-dark: #087258;
  --focus: #2563eb;
  --shadow: 0 18px 50px rgba(21, 28, 45, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(15, 159, 122, 0.1), transparent 34%),
    linear-gradient(315deg, rgba(250, 180, 40, 0.13), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 72px 0;
}

.intro {
  max-width: 720px;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  min-height: 230px;
  padding: 24px;
  overflow: hidden;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.app-card::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.12;
  pointer-events: none;
}

.app-card-imposter::before {
  background: linear-gradient(135deg, #0f9f7a, transparent 58%);
}

.app-card-3xt::before {
  background: linear-gradient(135deg, #d4502f, transparent 58%);
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 23, 31, 0.2);
  box-shadow: 0 22px 60px rgba(21, 28, 45, 0.15);
}

.app-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.logo-slot,
.card-copy,
.card-action {
  position: relative;
  z-index: 1;
}

.logo-slot {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.fallback-logo {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
}

.card-copy {
  align-self: start;
  min-width: 0;
}

.app-name,
.app-description,
.card-action {
  display: block;
}

.app-name {
  font-size: 1.75rem;
  font-weight: 850;
  line-height: 1.1;
}

.app-description {
  max-width: 30rem;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.card-action {
  grid-column: 1 / -1;
  align-self: end;
  width: fit-content;
  min-height: 42px;
  padding: 11px 16px;
  color: #ffffff;
  font-weight: 800;
  background: var(--ink);
  border-radius: 8px;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 560px);
    padding: 48px 0;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .app-card {
    grid-template-columns: 1fr;
    min-height: 250px;
  }

  .logo-slot {
    width: 78px;
    height: 78px;
  }

  .app-logo,
  .fallback-logo {
    width: 54px;
    height: 54px;
  }
}
