:root {
  --bg: #07111b;
  --panel: rgba(10, 24, 37, 0.82);
  --panel-strong: #0d2233;
  --panel-soft: rgba(7, 17, 27, 0.72);
  --line: rgba(154, 177, 192, 0.18);
  --text: #eef5f9;
  --muted: #94a8b5;
  --accent: #f59e0b;
  --accent-strong: #ff7849;
  --accent-soft: rgba(245, 158, 11, 0.14);
  --green: #39d98a;
  --green-soft: rgba(57, 217, 138, 0.14);
  --blue: #4dabf7;
  --blue-soft: rgba(77, 171, 247, 0.14);
  --violet: #b197fc;
  --violet-soft: rgba(177, 151, 252, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(57, 217, 138, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(177, 151, 252, 0.12), transparent 34%),
    linear-gradient(180deg, #08111a 0%, #04090e 100%);
}

a {
  color: inherit;
}

code {
  font-family: "IBM Plex Sans", sans-serif;
}

.page-shell {
  width: min(1320px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.hero,
.panel {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  padding: 28px;
  border-radius: 28px;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
  max-width: 12ch;
}

.hero-text,
.meta-text,
.panel-note,
.tool-copy,
.mini-stat span,
.meta-label {
  color: var(--muted);
}

.hero-text {
  margin: 14px 0 0;
  max-width: 64ch;
  line-height: 1.65;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.primary-button,
.secondary-button,
.tool-link {
  appearance: none;
  border-radius: 999px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.primary-button {
  border: 0;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #091018;
  font-weight: 700;
}

.secondary-button,
.tool-link {
  border: 1px solid rgba(154, 177, 192, 0.22);
  background: rgba(7, 17, 27, 0.82);
  color: var(--text);
}

.secondary-button {
  padding: 13px 20px;
  font-weight: 600;
}

.primary-button:hover,
.secondary-button:hover,
.tool-card:hover,
.tool-link:hover {
  transform: translateY(-2px);
}

.panel-inset {
  display: grid;
  gap: 14px;
  align-content: end;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(13, 34, 51, 0.98), rgba(8, 20, 30, 0.94));
  border: 1px solid var(--line);
}

.mini-stat {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.mini-stat strong {
  font-size: 1.45rem;
}

.meta-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.panel {
  border-radius: 24px;
  padding: 22px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.tool-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 34, 51, 0.96), rgba(8, 20, 30, 0.96));
  text-decoration: none;
  color: inherit;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.tool-card:hover {
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.tool-topline,
.tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tool-badges,
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge,
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 17, 27, 0.82);
  font-size: 0.88rem;
}

.badge.pages,
.category-chip.pages {
  background: var(--blue-soft);
  border-color: rgba(77, 171, 247, 0.28);
}

.badge.worker,
.category-chip.worker {
  background: var(--green-soft);
  border-color: rgba(57, 217, 138, 0.28);
}

.badge.utility,
.category-chip.utility {
  background: var(--accent-soft);
  border-color: rgba(245, 158, 11, 0.28);
}

.badge.board,
.category-chip.board {
  background: var(--violet-soft);
  border-color: rgba(177, 151, 252, 0.28);
}

.tool-name {
  font-size: 1.3rem;
}

.tool-copy {
  margin: 0;
  line-height: 1.6;
}

.tool-url {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  overflow-wrap: anywhere;
  background: rgba(7, 17, 27, 0.72);
  border: 1px solid rgba(154, 177, 192, 0.16);
  color: #d9e7f1;
}

.tool-link {
  padding: 11px 16px;
  font-weight: 600;
}

.tool-arrow {
  color: var(--accent);
  font-size: 1.1rem;
}

.category-chip {
  text-decoration: none;
  color: var(--text);
}

.category-chip:hover {
  border-color: rgba(245, 158, 11, 0.38);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 20px, 1320px);
    padding: 16px 0 28px;
  }

  .hero,
  .panel {
    padding: 18px;
    border-radius: 22px;
  }

  .panel-header,
  .tool-topline,
  .tool-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-links {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .tool-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
