:root {
  --bg: #12141a;
  --panel: #181c24;
  --panel-alt: #1e232c;
  --border: #2a3038;
  --border-soft: #232830;
  --text: #e9e7de;
  --text-muted: #8b93a1;
  --text-faint: #565d6b;
  --accent: #e0b23c;
  --accent-soft: rgba(224, 178, 60, 0.14);
  --accent-2: #4fb3a9;
  --danger: #e0605c;
  --radius: 12px;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: 'Space Grotesk', var(--mono);
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

code {
  font-family: var(--mono);
  background: var(--panel-alt);
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  padding: 0 4px;
  font-size: 0.92em;
  color: var(--accent-2);
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 40%, transparent 100%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}

/* Hero */

.hero { margin-bottom: 40px; }

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 46px);
  letter-spacing: -0.01em;
  color: var(--accent);
}

.cursor {
  display: inline-block;
  color: #fff;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hint {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 0;
  padding: 7px 14px;
  border-radius: var(--radius);
  background: rgba(94, 245, 94, 0.12);
  border: 1px solid rgba(107, 245, 94, 0.3);
  max-width: fit-content;
}

.hint-icon {
  flex: none;
  color: #7ff585;
  font-size: 15px;
}

.hint-text {
  margin: 0;
  color: #7ff585;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .hint {
    max-width: none;
    align-items: flex-start;
    padding: 14px 16px;
  }
  .hint-icon { margin-top: 2px; }
}

.lede {
  margin: 0;
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Tool grid */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.tool-card:hover {
  border-color: var(--accent);
  background: var(--panel-alt);
  transform: translateY(-2px);
}

.tool-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tool-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-card-icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--panel-alt);
  border: 1px solid var(--border-soft);
  color: var(--accent);
  font-size: 13px;
}

.tool-card-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15.5px;
  color: #fff;
  flex: 1;
}

.tool-card-arrow {
  flex: none;
  font-size: 12px;
  color: var(--text-faint);
  transition: transform 0.15s ease, color 0.15s ease;
}

.tool-card:hover .tool-card-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

.tool-card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.tool-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.tag {
  font-size: 11px;
  color: var(--text-faint);
  background: var(--panel-alt);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 3px 9px;
}

/* Footer */

.foot {
  color: var(--text-faint);
  font-size: 12px;
  text-align: center;
}

.foot a {
  color: var(--text-muted);
}

.foot a:hover { color: var(--accent); }

/* Responsive */

@media (max-width: 720px) {
  .wrap { padding: 44px 18px 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .tool-card { transition: none; }
}
