@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #080b0d;
  --panel: rgba(15, 21, 23, 0.9);
  --panel-strong: #12191b;
  --line: rgba(220, 255, 244, 0.14);
  --line-strong: rgba(100, 241, 220, 0.56);
  --text: #f5f8f2;
  --muted: #a8b5af;
  --dim: #73817b;
  --green: #bbff2a;
  --cyan: #64f1dc;
  --amber: #ffbe4d;
  --coral: #ff6b5f;
  --violet: #c29bff;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(100, 241, 220, 0.12), transparent 0 18rem),
    radial-gradient(circle at 88% 28%, rgba(255, 190, 77, 0.1), transparent 0 16rem),
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(180deg, #080b0d 0%, #0e1113 52%, #080a0c 100%);
  background-size: auto, auto, 88px 88px, 88px 88px, auto;
  color: var(--text);
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
}

main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.toolkit {
  padding: clamp(32px, 6vw, 78px) 0;
}

.section-head {
  display: grid;
  gap: 18px;
  max-width: 850px;
  margin-bottom: clamp(28px, 5vw, 60px);
}

h1,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.1rem, 8vw, 7.3rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.section-head p {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.tool-list {
  display: grid;
  gap: 16px;
}

.tool-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tool-card.is-featured {
  background:
    linear-gradient(135deg, rgba(100, 241, 220, 0.12), transparent 42%),
    var(--panel-strong);
}

.tool-link {
  display: grid;
  grid-template-columns: 56px minmax(0, 0.9fr) minmax(360px, 1.1fr) auto;
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
  min-height: 280px;
  padding: clamp(18px, 3vw, 30px);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.tool-link:hover,
.tool-link:focus-visible {
  background: rgba(255, 255, 255, 0.035);
  outline: none;
}

.tool-number,
.tool-kicker,
.tool-cta {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tool-number {
  align-self: start;
  color: var(--cyan);
}

.tool-copy {
  display: grid;
  gap: 10px;
}

.tool-kicker {
  color: var(--cyan);
}

.tool-copy h3 {
  max-width: 10ch;
  font-size: clamp(2.1rem, 4.8vw, 4.9rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.tool-copy p {
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.tool-shot {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: #0b0f13;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.tool-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.tool-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  padding: 0 14px;
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.tool-card:hover,
.tool-card:focus-within {
  border-color: var(--line-strong);
}

.tool-card:hover .tool-cta,
.tool-card:focus-within .tool-cta {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #06100d;
}

@media (max-width: 980px) {
  .tool-link {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .tool-shot,
  .tool-cta {
    grid-column: 2;
  }

  .tool-cta {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  main {
    width: min(1240px, calc(100% - 22px));
  }

  .toolkit {
    padding: 28px 0;
  }

  .section-head {
    margin-bottom: 24px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.75rem, 14vw, 3.6rem);
    overflow-wrap: break-word;
  }

  .section-head p {
    max-width: 100%;
    font-size: 0.98rem;
  }

  .tool-link {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: auto;
    padding: 16px;
  }

  .tool-number,
  .tool-shot,
  .tool-cta {
    grid-column: auto;
  }

  .tool-copy h3 {
    max-width: 12ch;
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .tool-copy p {
    font-size: 0.94rem;
  }

  .tool-cta {
    width: 100%;
  }
}
