/* Forge suite site. Plain CSS, no frameworks, no external fonts. */

:root {
  --ink: #212529;
  --muted: #5c636a;
  --line: #dee2e6;
  --bg: #f8f9fa;
  --card: #ffffff;
  --code-bg: #f1f3f5;
  --accent: #e8590c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--ink); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand img { display: block; }

.site-header nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}

.site-header nav a:hover { color: var(--ink); }

/* Hero */

.hero {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
}

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

.hero h1 {
  margin: 0 0 16px;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 640px;
  margin: 0 0 28px;
  font-size: 18px;
  color: var(--muted);
}

.hero-cta { margin: 0 0 16px; }

.hero-note {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.hero-note code {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 14px;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--card);
  color: var(--ink);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  margin-right: 12px;
}

.btn-ghost { border-color: var(--line); }

/* Tools */

.tools { padding: 56px 0 24px; }

.tools-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tools-head h2,
.how h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.01em;
}

#filter {
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  width: 260px;
  max-width: 100%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.logo {
  flex: none;
  border-radius: 14px;
}

.card h3 {
  margin: 2px 0 4px;
  font-size: 19px;
}

.tagline {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.cmd code {
  font-size: 14px;
  white-space: nowrap;
}

.copy {
  flex: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
}

.example {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
}

.example span { font-weight: 600; color: var(--ink); }

.example code {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 13px;
  word-break: break-all;
}

.card .btn {
  margin-top: auto;
  text-align: center;
  border-color: var(--accent);
  color: var(--accent);
}

.card .btn:hover {
  background: var(--accent);
  color: #fff;
}

.no-results {
  margin: 24px 0;
  color: var(--muted);
}

/* How it works */

.how {
  padding: 48px 0 64px;
}

.how h2 { margin-bottom: 24px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.steps strong {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}

.steps span { color: var(--muted); font-size: 15px; }

.steps code {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 13px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 32px 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p { margin: 4px 0; }

@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 38px; }
  .btn-dark { margin-bottom: 8px; }
}
