/* MCP family design language: paper, ink, mono details, one accent per server.
   Shared by hackerearth-mcp, security-mcp and icon-mcp. Only the accent differs. */

:root {
  --paper: #fafaf7;
  --paper-deep: #f1f0e9;
  --card: #ffffff;
  --ink: #16161a;
  --ink-soft: #33333c;
  --muted: #6a6a72;
  --line: #e4e3da;
  --accent: #7c3aed;
  --accent-deep: #5b21b6;
  --accent-tint: #f0eafd;
  --term-bg: #121216;
  --term-ink: #d7d7de;
  --term-dim: #8b8b96;
  --radius: 16px;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-tint); }

.wrap { width: min(1060px, 100% - 3rem); margin-inline: auto; }

a { color: var(--accent-deep); }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; }
.back { text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.back:hover { color: var(--ink); }
.brandmark { display: flex; align-items: center; gap: 0.55rem; font-family: var(--mono); font-weight: 600; font-size: 0.98rem; }
.brandmark .prompt {
  font-family: var(--mono); font-weight: 700; color: #fff;
  background: var(--accent); border-radius: 7px;
  padding: 0.14rem 0.45rem; font-size: 0.85rem; line-height: 1.3;
}

/* ---------- hero ---------- */
.hero { padding: 3rem 0 3.8rem; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-block;
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--accent-deep); background: var(--accent-tint);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.42rem 0.85rem; margin-bottom: 1.3rem;
}

h1 { font-size: clamp(2.4rem, 4.8vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.07; margin-bottom: 1.2rem; }
.hl { color: var(--accent-deep); box-shadow: inset 0 -0.32em 0 var(--accent-tint); }

.sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 34rem; margin-bottom: 2rem; }
.sub code, .install code { font-family: var(--mono); font-size: 0.92em; background: var(--accent-tint); padding: 0.1em 0.4em; border-radius: 6px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.cta-row.center { justify-content: center; }
.btn {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 1.02rem; text-decoration: none;
  padding: 0.95rem 1.9rem; border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent-deep); border: 1.5px solid var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }

.stats { display: flex; gap: 2.4rem; flex-wrap: wrap; margin-top: 2.2rem; }
.stats strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--accent-deep); line-height: 1.15; }
.stats span { color: var(--muted); font-size: 0.92rem; }

/* ---------- terminal card ---------- */
.term {
  background: var(--term-bg);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem 1.4rem;
  box-shadow: 0 24px 48px -24px rgba(18, 18, 22, 0.5);
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--term-ink);
  overflow-x: auto;
}
.term .bar { display: flex; gap: 6px; margin-bottom: 1rem; }
.term .bar span { width: 11px; height: 11px; border-radius: 50%; background: #34343e; }
.term .bar span:first-child { background: #ff5f57; }
.term .bar span:nth-child(2) { background: #febc2e; }
.term .bar span:nth-child(3) { background: #28c840; }
.term p { white-space: pre-wrap; word-break: break-word; }
.term .who { color: var(--accent); filter: brightness(1.6); font-weight: 600; }
.term .out { color: var(--term-dim); }
.term .ok { color: #4ade80; }

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--paper-deep); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; text-align: center; margin-bottom: 0.8rem; }
.lede { text-align: center; color: var(--muted); max-width: 38rem; margin: 0 auto 2.8rem; }

.tools { display: grid; gap: 1.25rem; max-width: 780px; margin: 0 auto; }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; }
.tool .sig { font-family: var(--mono); font-size: 0.88rem; font-weight: 600; color: var(--accent-deep); background: var(--accent-tint); display: inline-block; padding: 0.3rem 0.7rem; border-radius: 8px; margin-bottom: 0.8rem; }
.tool h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.tool p { color: var(--ink-soft); }
.tool ul { list-style: none; margin-top: 0.9rem; display: grid; gap: 0.45rem; }
.tool ul li { position: relative; padding-left: 1.6em; color: var(--ink-soft); }
.tool ul li::before {
  content: ""; position: absolute; left: 0; top: 0.28em;
  width: 1em; height: 1em; border-radius: 50%;
  background: var(--accent-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 0.62em no-repeat;
}

/* ---------- install ---------- */
.install {
  max-width: 720px; margin: 0 auto;
  background: var(--term-bg); color: var(--term-ink);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  font-family: var(--mono); font-size: 0.95rem;
  box-shadow: 0 24px 48px -24px rgba(18, 18, 22, 0.45);
  overflow-x: auto;
}
.install .dollar { color: var(--accent); filter: brightness(1.6); font-weight: 700; }
.install-note { text-align: center; color: var(--muted); margin-top: 1.2rem; font-size: 0.97rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 920px; margin: 2.8rem auto 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; }
.step .n { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--accent); margin-bottom: 0.5rem; }
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); }
.step code { font-family: var(--mono); font-size: 0.88em; background: var(--accent-tint); padding: 0.1em 0.4em; border-radius: 6px; }

/* ---------- family ---------- */
.family { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 920px; margin: 0 auto; }
@media (max-width: 760px) { .family { grid-template-columns: 1fr; } }
.fam-card {
  display: block; text-decoration: none;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.fam-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.fam-card .fname { font-family: var(--mono); font-weight: 600; color: var(--ink); display: block; margin-bottom: 0.35rem; }
.fam-card .fdesc { color: var(--muted); font-size: 0.95rem; }
.fam-card.current { border-color: var(--accent); background: var(--accent-tint); }
.fam-card.current .fdesc { color: var(--ink-soft); }

/* ---------- final ---------- */
.final { background: var(--ink); color: #f4f4f0; text-align: center; padding: 4.8rem 0; }
.final h2 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.final p { color: #a9a9b3; margin-bottom: 2rem; }
.final .btn-ghost { color: #fff; border-color: #ffffff70; }
.final .btn-ghost:hover { background: #ffffff1f; border-color: #fff; }

footer { padding: 2rem 0 2.8rem; text-align: center; color: var(--muted); font-size: 0.92rem; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent-deep); }
