:root {
  --bg: #f7f3ea;
  --panel: rgba(255, 252, 247, 0.88);
  --ink: #1d1a17;
  --muted: #6a625b;
  --accent: #b74d2c;
  --accent-soft: #f1c7a9;
  --border: rgba(29, 26, 23, 0.12);
  --shadow: 0 18px 40px rgba(65, 42, 28, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(183, 77, 44, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(52, 96, 147, 0.12), transparent 24%),
    linear-gradient(180deg, #fbf8f1 0%, var(--bg) 100%);
}

.page {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.98;
}

.subtitle {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-link-row {
  margin: 14px 0 0;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(183, 77, 44, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  text-decoration: none;
}

.hero-link:hover {
  background: rgba(255, 255, 255, 0.92);
}

.panel {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.capabilities-grid {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.cap-block {
  display: grid;
  gap: 10px;
}

.cap-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.cap-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
}

.cap-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.status-on {
  background: #ddeed9;
  color: #234d1e;
}

.status-off {
  background: #f4dfd6;
  color: #7d341f;
}

.search-row,
.section-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.search-row {
  justify-content: stretch;
}

.search-label,
.hint,
.meta-text {
  color: var(--muted);
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fffdf9;
}

button {
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  transition:
    transform 140ms ease,
    opacity 140ms ease;
}

button:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

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

.card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(65, 42, 28, 0.08);
  border-color: rgba(183, 77, 44, 0.28);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.score {
  min-width: 52px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #5b2a18;
  font-size: 12px;
}

.repo {
  margin-bottom: 8px;
  font-family: "Courier New", monospace;
  color: #24445f;
  word-break: break-all;
}

.desc {
  min-height: 48px;
  color: var(--muted);
  line-height: 1.5;
}

.command {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: #1d1a17;
  color: #f4ede5;
  white-space: pre-wrap;
  word-break: break-all;
}

.empty,
.detail-empty {
  color: var(--muted);
}

.detail-card {
  display: grid;
  gap: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 20px, 1100px);
    padding-top: 28px;
  }

  .search-row,
  .section-head,
  .cap-head {
    flex-direction: column;
    align-items: stretch;
  }
}
