:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: #171b25;
  --panel-hover: #1d2433;
  --text: #f7f8ff;
  --muted: #b4bbca;
  --line: rgba(255, 255, 255, 0.19);
  --line-strong: rgba(255, 255, 255, 0.34);
  --accent: #8ab4ff;
  --accent-2: #d7bcff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0;
}

.intro {
  max-width: 680px;
  margin-bottom: 28px;
}

.eyebrow,
.kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.7rem, 6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  margin: 0;
  max-width: 540px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.5;
}

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

.card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
  opacity: 0.95;
}

.card::after {
  content: "Open";
  position: absolute;
  right: 22px;
  bottom: 20px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 170ms ease, transform 170ms ease;
}

.card:nth-child(2)::before {
  background: #d7bcff;
}

.card:nth-child(3)::before {
  background: #8de0d4;
}

.card:nth-child(4)::before {
  background: #ffcf7a;
}

.card:nth-child(5)::before {
  background: #ff9fb5;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: var(--panel-hover);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.48);
  outline: none;
}

.card:hover::after,
.card:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.card strong {
  display: block;
  margin-top: auto;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.08;
}

.card span:last-child {
  min-height: 56px;
  padding-right: 48px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.48;
}

.muted {
  opacity: 0.74;
}

@media (max-width: 960px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, 1120px);
    padding: 44px 0;
  }

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

  .card {
    min-height: 160px;
  }
}
