/* firebox — dark infrastructure aesthetic. No frameworks, no build. */

:root {
  --bg: #0a0b0d;
  --bg-soft: #101214;
  --bg-raised: #141619;
  --border: #22262b;
  --border-soft: #1a1d21;
  --text: #eceef1;
  --muted: #9aa0a8;
  --faint: #6b7078;
  --accent: #ff7a1a;
  --accent-soft: rgba(255, 122, 26, 0.10);
  --accent-border: rgba(255, 122, 26, 0.35);
  --green: #3ddc84;
  --code-bg: #0d0e11;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: 2rem; margin-bottom: 8px; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 0.15em 0.45em;
  white-space: nowrap;
}

a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: auto;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff7a1a, #ff3d00);
  box-shadow: 0 0 18px rgba(255, 122, 26, 0.45);
  flex: none;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
  cursor: pointer;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #14100b;
}

.btn-primary:hover { background: #ff8a3d; }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover { border-color: var(--faint); background: var(--bg-soft); }

.btn-small {
  padding: 8px 16px;
  font-size: 0.86rem;
  border-color: var(--border);
  color: var(--text);
}

.btn-small:hover { border-color: var(--accent-border); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 560px;
  background: radial-gradient(ellipse 60% 55% at 30% 20%,
              rgba(255, 122, 26, 0.13), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.pilot-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(61, 220, 132, 0.8);
  flex: none;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 16px;
}

.lede {
  font-size: 1.35rem;
  line-height: 1.45;
  margin-bottom: 12px;
}

.lede::first-line { font-weight: 600; }

.sub {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 32px;
  max-width: 34em;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- terminal ---------- */
.terminal {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  font-size: 0.82rem;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-soft);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2e3339;
}

.terminal-bar span:first-child { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }

.terminal-body {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--mono);
  line-height: 1.7;
  color: #c9ced4;
}

.terminal-body code {
  background: none;
  border: none;
  padding: 0;
  white-space: pre;
  font-size: 1em;
}

.t-dim { color: var(--faint); }
.t-str { color: #a8d8a8; }
.t-out { color: #8b93a0; }
.t-c { color: #5c636e; font-style: italic; }
.t-k { color: #ff9e64; }
.t-n { color: #7dd3fc; }
.t-f { color: #a8d8a8; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-sub { color: var(--muted); margin-bottom: 40px; max-width: 44em; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- tabs / code panes ---------- */
.tabs { max-width: 860px; }

.tab-bar {
  display: inline-flex;
  gap: 4px;
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 0;
}

.tab {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 8px 20px;
  cursor: pointer;
}

.tab:hover { color: var(--text); }

.tab.active {
  background: var(--bg-soft);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}

.tab-pane {
  display: none;
  margin-top: 16px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tab-pane.active { display: block; }

.tab-pane pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.75;
  color: #c9ced4;
}

.tab-pane code {
  background: none;
  border: none;
  padding: 0;
  white-space: pre;
  font-size: 1em;
}

/* ---------- feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s;
}

.card:hover { border-color: var(--border); }

.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- api table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--radius); }

.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--bg-raised);
  min-width: 640px;
}

.api-table th, .api-table td {
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-soft);
}

.api-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  font-weight: 600;
}

.api-table tbody tr:last-child td { border-bottom: none; }
.api-table tbody tr:hover { background: rgba(255, 255, 255, 0.015); }

.api-table td code { white-space: nowrap; }

.m {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 6px;
  min-width: 58px;
  text-align: center;
}

.m-post { background: rgba(61, 220, 132, 0.12); color: var(--green); }
.m-get { background: rgba(125, 211, 252, 0.12); color: #7dd3fc; }
.m-del { background: rgba(248, 113, 113, 0.12); color: #f87171; }

.fineprint {
  margin-top: 20px;
  color: var(--faint);
  font-size: 0.88rem;
}

/* ---------- pilot ---------- */
.pilot-panel {
  background: linear-gradient(180deg, var(--bg-raised), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pilot-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 0%,
              rgba(255, 122, 26, 0.10), transparent 70%);
  pointer-events: none;
}

.pilot-panel h2, .pilot-panel p, .pilot-panel .btn { position: relative; }

.pilot-panel p {
  color: var(--muted);
  max-width: 36em;
  margin: 12px auto 28px;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--faint);
  font-size: 0.88rem;
  flex-wrap: wrap;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 3rem; }
  .steps, .grid { grid-template-columns: 1fr; }
  .pilot-panel { padding: 40px 24px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-inner { gap: 16px; }
  h2 { font-size: 1.6rem; }
  .section { padding: 64px 0; }
  .tab { padding: 8px 14px; }
}
