:root {
  color-scheme: dark;
  --bg: #090a09;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-hover: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f0e8;
  --muted: rgba(244, 240, 232, 0.66);
  --subtle: rgba(244, 240, 232, 0.46);
  --amber: #f4a340;
  --red: #ff665c;
  --green: #75c79a;
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Avenir Next", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 32%),
    radial-gradient(circle at 16% 0%, rgba(244, 163, 64, 0.12), transparent 24%),
    radial-gradient(circle at 88% 0%, rgba(117, 199, 154, 0.07), transparent 22%),
    var(--bg);
}

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

.shell {
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
}

.brand span,
.tool-count {
  color: var(--subtle);
  font-size: 0.82rem;
  line-height: 1.4;
}

.tool-count {
  white-space: nowrap;
}

.hero {
  max-width: 720px;
  padding: 78px 0 34px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: 0;
}

.lede {
  max-width: 42rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

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

.tool-card {
  position: relative;
  display: grid;
  gap: 28px;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--amber);
}

.tool-card[data-accent="red"]::before {
  background: var(--red);
}

.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--panel-hover);
  outline: none;
}

.tool-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--subtle);
  font-size: 0.78rem;
  line-height: 1.4;
}

.tool-card__body {
  display: grid;
  gap: 12px;
  align-self: end;
}

.tool-card__body strong {
  font-size: clamp(1.42rem, 2.2vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.tool-card__body small {
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

.tool-card__action {
  align-self: end;
  width: fit-content;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

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

  .topbar,
  .brand {
    align-items: flex-start;
  }

  .topbar {
    flex-direction: column;
    gap: 8px;
    padding-bottom: 14px;
  }

  .brand {
    flex-direction: column;
    gap: 3px;
  }

  .hero {
    padding: 46px 0 26px;
  }

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

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

  .tool-card__topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
