:root {
  color-scheme: light dark;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --bg: linear-gradient(160deg, #f8f9ff 0%, #f0f4ff 30%, #ffffff 100%);
  --bg-dark: radial-gradient(circle at 20% 20%, #1d2532 0%, #0f121a 60%);
  --text: #0f172a;
  --muted: #475569;
  --tile-bg: rgba(255, 255, 255, 0.85);
  --tile-border: rgba(15, 23, 42, 0.08);
  --tile-hover: rgba(99, 102, 241, 0.12);
  --accent: #6366f1;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--bg-dark);
    --text: #f8fafc;
    --muted: #cbd5f5;
    --tile-bg: rgba(15, 23, 42, 0.7);
    --tile-border: rgba(148, 163, 184, 0.2);
    --tile-hover: rgba(99, 102, 241, 0.22);
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.6);
  }
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg);
  color: var(--text);
}

.wrap {
  width: min(480px, 94vw);
  padding: 3rem clamp(1.5rem, 2.5vw, 3rem);
  border-radius: 32px;
  background-color: var(--tile-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--tile-border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 2.9rem);
  font-weight: 600;
  margin: 0;
}

.lede {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.grid {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.grid-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 1.1rem;
}

.tile {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.3rem;
  background: var(--tile-bg);
  border-radius: 20px;
  border: 1px solid var(--tile-border);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease,
    background-color 180ms ease, box-shadow 180ms ease;
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--tile-bg) 70%, var(--tile-hover));
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.25);
}

.tile:focus-visible {
  outline: none;
}

.tile-logo img {
  width: clamp(52px, 5vw, 64px);
  height: auto;
  display: block;
}

.hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.hint a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.hint a:hover,
.hint a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .wrap {
    padding: 2.4rem 1.6rem;
    border-radius: 24px;
  }

  .tile {
    padding: 1.1rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
