/* 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-google {
  background: #fff;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}
.btn-google:hover { background: #f1f1f1; }
.btn-google svg { width: 18px; height: 18px; flex: none; }

.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, minmax(0, 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-row:hover td { background: rgba(255, 255, 255, 0.02); }
.api-detail td { background: rgba(0, 0, 0, 0.25); padding: 0 !important; }
.api-ex { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem 1.25rem; }
@media (max-width: 700px) { .api-ex { grid-template-columns: 1fr; } }
.api-ex-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); margin-bottom: 0.4rem; font-weight: 600; }
.api-ex pre { margin: 0; background: #0a0a0c; border: 1px solid var(--border-soft); border-radius: 6px; padding: 0.75rem 1rem; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.api-ex code { font-size: 0.82rem; line-height: 1.5; color: #c8e6c9; }

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

.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;
}

/* ---------- examples page ---------- */
.example-kicker {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.example-flow { margin-top: 28px; }

.why {
  margin-top: 28px;
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.why strong { color: var(--text); }

/* ---------- try-it code blocks (examples page) ---------- */
.try-it {
  margin-top: 36px;
}
.try-it h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}
.try-it .terminal {
  max-width: 720px;
}

/* ---------- 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; }
}

/* ============ INTEREST ============ */
.interest-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 900px) {
  .interest-grid { grid-template-columns: 1fr; gap: 40px; }
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
}
.interest-copy h2 { margin: 0 0 16px; }
.interest-lede {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}
.interest-points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.interest-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-soft);
}
.interest-points li:last-child { border-bottom: none; }
.pt-ico {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.interest-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.interest-form { text-align: left; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .interest-card { padding: 28px 24px; }
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.form-field label .req { color: var(--accent); }
.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--faint); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.18);
}
.form-field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
/* honeypot: off-screen, invisible to humans */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-msg {
  min-height: 1.4em;
  font-size: 0.9rem;
  margin: 0 0 14px;
}
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #ff6b6b; }
.btn-block {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(255, 122, 26, 0.25);
}
.btn-block:hover { box-shadow: 0 10px 28px rgba(255, 122, 26, 0.35); }
.btn-block:disabled { opacity: 0.6; cursor: default; }
.form-fine {
  text-align: center;
  font-size: 0.8rem;
  color: var(--faint);
  margin: 14px 0 0;
}
.interest-done { text-align: center; padding: 32px 0; }
.done-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(61, 220, 132, 0.12);
  border: 1px solid rgba(61, 220, 132, 0.4);
  color: var(--green);
  font-size: 1.8rem;
  line-height: 62px;
}
.interest-done h3 { margin: 0 0 8px; font-size: 1.3rem; }
.interest-done p { color: var(--muted); margin: 0; }
.nav-auth { margin-left: auto; }
