/* FSS landing page — no frameworks, no external assets. */
:root {
  --bg: #0b0f14;
  --bg-raised: #111826;
  --border: #1f2a3a;
  --text: #d7e0ea;
  --text-dim: #8a99ab;
  --green: #34d399;
  --yellow: #fbbf24;
  --red: #f87171;
  --accent: #34d399;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { max-width: 60rem; margin: 0 auto; padding: 0 1.5rem; }

code { font-family: var(--mono); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.cursor { animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

.site-header nav a { color: var(--text-dim); margin-left: 1.5rem; font-size: 0.95rem; }
.site-header nav a:hover { color: var(--text); }

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding: 5rem 0 3rem; text-align: center; }

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tagline {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  color: var(--text-dim);
  font-size: 1.125rem;
}

.tagline code { color: var(--text); font-size: 0.95em; }

.install {
  margin: 2.5rem auto 0;
  max-width: 42rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
}

.install code { color: var(--green); font-size: 0.95rem; white-space: nowrap; }

/* ── Terminal demo ──────────────────────────────────────── */
.terminal {
  margin: 3rem 0;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(255 255 255 / 0.03);
  border-bottom: 1px solid var(--border);
}

.dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
  margin-left: 0.75rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.terminal pre {
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.7;
}

.t-bold { font-weight: 700; color: var(--text); }
.t-green { color: var(--green); }
.t-yellow { color: var(--yellow); }
.t-red { color: var(--red); }

/* ── Command cards ──────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin: 3rem 0;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.card h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.card h2 code { color: var(--accent); }
.card p { color: var(--text-dim); font-size: 0.95rem; }
.card p code { color: var(--text); font-size: 0.9em; }

.exit-codes {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.8rem !important;
  color: var(--green) !important;
}

/* ── Why ────────────────────────────────────────────────── */
.why { margin: 4rem 0; }
.why h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.why ul { list-style: none; }
.why li {
  padding: 0.75rem 0 0.75rem 1.75rem;
  position: relative;
  color: var(--text-dim);
}
.why li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--green);
}
.why li strong { color: var(--text); }
.why li code { color: var(--text); font-size: 0.9em; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}
