:root {
  --bg: #f3f3ef;
  --surface: #ffffff;
  --surface-soft: #fafaf7;
  --text: #151515;
  --muted: #666666;
  --line: #e5e5de;
  --line-strong: #d0d0c8;
  --shadow: 0 10px 30px rgba(21, 21, 21, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96), transparent 44%);
}

.site-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  padding: 18px 0 28px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.brand-mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #111111;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
}

.hero h1 {
  margin: 18px 0 12px;
  max-width: 14ch;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-copy {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.content {
  margin-top: 18px;
}

.section-panel {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, var(--surface-soft));
}

.section-title-row h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.section-title-row span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-card,
.list-card {
  position: relative;
  padding: 22px;
  border-right: 1px solid var(--line);
  transition: background 140ms ease;
}

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

.list-card {
  min-height: 184px;
}

.tool-card:last-child,
.list-card:last-child {
  border-right: 0;
}

.tool-card:hover,
.list-card:hover {
  background: #fcfcfa;
}

.tool-card-featured {
  background: linear-gradient(180deg, #fefefe, #f8f8f5);
}

.tool-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-type,
.tool-index {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.tool-card h3,
.list-card h3 {
  margin: 56px 0 10px;
  font-size: 1.45rem;
  line-height: 1.15;
}

.tool-card p,
.list-card p,
.about-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.tool-card a {
  position: absolute;
  left: 22px;
  bottom: 22px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.tool-card a:hover,
.about-side a:hover {
  text-decoration: underline;
}

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

.about-panel {
  display: grid;
  grid-template-columns: 2fr 1fr;
}

.about-copy,
.about-side {
  padding: 24px 22px;
}

.about-copy {
  border-right: 1px solid var(--line);
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.about-side a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer p,
.footer span {
  margin: 0;
}

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

  .tool-card:nth-child(2),
  .list-card:nth-child(2) {
    border-right: 0;
  }

  .tool-card:nth-child(1),
  .tool-card:nth-child(2),
  .list-card:nth-child(1),
  .list-card:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

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

  .about-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 18px, 1180px);
    padding: 18px 0 36px;
  }

  .hero h1 {
    margin-top: 16px;
    max-width: 100%;
  }

  .hero-copy {
    font-size: 0.95rem;
    line-height: 1.75;
  }

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

  .tool-card,
  .list-card,
  .tool-card:nth-child(1),
  .tool-card:nth-child(2),
  .list-card:nth-child(1),
  .list-card:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tool-card:last-child,
  .list-card:last-child {
    border-bottom: 0;
  }

  .section-title-row,
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .tool-card,
  .list-card,
  .about-copy,
  .about-side {
    padding: 18px;
  }
}
