:root {
  color-scheme: light;
  --bg: #f3efe5;
  --panel: rgba(255, 251, 245, 0.82);
  --ink: #171717;
  --muted: #5b5b5b;
  --line: rgba(23, 23, 23, 0.12);
  --resilience: #15616d;
  --construction: #b85042;
  --wellness: #4f772d;
  --insurance: #7a4f24;
  --frontier: #0f6c78;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(21, 97, 109, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(184, 80, 66, 0.18), transparent 32%),
    linear-gradient(135deg, #f7f0df 0%, #f1ebe3 40%, #ece7df 100%);
}

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

.hero {
  margin-bottom: 36px;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0 0 16px;
  max-width: 12ch;
  font-size: clamp(2.5rem, 8vw, 4.8rem);
  line-height: 0.95;
}

.lead {
  margin: 0;
  max-width: 54rem;
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--muted);
}

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

.tool-card {
  position: relative;
  display: block;
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  overflow: hidden;
}

.tool-card::after {
  content: "";
  position: absolute;
  inset: auto -15% -35% auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  opacity: 0.16;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(23, 23, 23, 0.12);
}

.tool-card h2 {
  margin: 18px 0 12px;
  font-size: 1.8rem;
}

.tool-card p {
  margin: 0;
  max-width: 28rem;
  line-height: 1.6;
  color: var(--muted);
}

.tool-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resilience {
  border-color: rgba(21, 97, 109, 0.24);
}

.resilience .tool-tag {
  background: rgba(21, 97, 109, 0.12);
  color: var(--resilience);
}

.resilience::after {
  background: var(--resilience);
}

.construction {
  border-color: rgba(184, 80, 66, 0.24);
}

.construction .tool-tag {
  background: rgba(184, 80, 66, 0.12);
  color: var(--construction);
}

.construction::after {
  background: var(--construction);
}

.wellness {
  border-color: rgba(79, 119, 45, 0.24);
}

.wellness .tool-tag {
  background: rgba(79, 119, 45, 0.12);
  color: var(--wellness);
}

.wellness::after {
  background: var(--wellness);
}

.insurance {
  border-color: rgba(122, 79, 36, 0.24);
}

.insurance .tool-tag {
  background: rgba(122, 79, 36, 0.12);
  color: var(--insurance);
}

.insurance::after {
  background: var(--insurance);
}

.frontier {
  border-color: rgba(15, 108, 120, 0.24);
}

.frontier .tool-tag {
  background: rgba(15, 108, 120, 0.12);
  color: var(--frontier);
}

.frontier::after {
  background: var(--frontier);
}

@media (max-width: 760px) {
  .portal-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 40px;
  }

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

  .tool-card {
    min-height: 220px;
    padding: 22px;
  }
}
