/* ============================================================================
   BloxPilot -- design system
   Palette: control-room dark workspace + amber signal + teal growth accent.
   Type: JetBrains Mono for numbers/headers (dev-console feel), Inter for body.
   ============================================================================ */

:root {
  --bg: #0e0f12;
  --bg-raised: #16181d;
  --bg-card: #1b1e24;
  --border: #2a2d35;
  --border-bright: #3a3e48;

  --text: #f4f2ed;
  --text-dim: #9a9ea8;
  --text-faint: #6b7280;

  --amber: #ffb037;
  --amber-dim: #b3792a;
  --teal: #4fd1c5;
  --teal-dim: #2f8a80;
  --red: #ff6b5e;
  --red-dim: #b34a40;

  --light-bg: #f4f2ed;
  --light-card: #ffffff;
  --light-border: #e2ddd2;
  --light-text: #1a1a1a;

  --font-display: "JetBrains Mono", "Space Mono", monospace;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 8px 24px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em 0;
  color: var(--text);
}

p { margin: 0 0 1em 0; color: var(--text-dim); }

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

::selection { background: var(--amber); color: #1a1300; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Layout shells
   --------------------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(14, 15, 18, 0.9);
  backdrop-filter: blur(8px);
  z-index: 50;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.nav-tagline {
  color: var(--text-faint);
  font-size: 13px;
  margin-left: -12px;
}

.nav-brand .mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------------------------------------------------------------------------
   Buttons & form elements
   --------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--amber);
  color: #1a1300;
}
.btn-primary:hover { background: #ffc35e; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-bright);
}
.btn-secondary:hover { border-color: var(--text-dim); }

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

.btn-block { width: 100%; }
.btn-small {
  font-size: 12.5px;
  padding: 8px 12px;
}

.btn-danger-outline {
  background: transparent;
  border-color: var(--red-dim);
  color: var(--red);
}
.btn-danger-outline:hover { background: rgba(255,107,94,0.08); }

input, select, textarea {
  font-family: var(--font-body);
  font-size: 15px;
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  color: var(--text);
}
input::placeholder { color: var(--text-faint); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--amber);
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.field { margin-bottom: 18px; }
.field-hint { font-size: 12.5px; color: var(--text-faint); margin-top: 6px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------------
   Cards & misc
   --------------------------------------------------------------------------- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
  display: block;
}

.error-banner {
  background: rgba(255,107,94,0.1);
  border: 1px solid var(--red-dim);
  color: #ffb3ab;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border-bright);
  color: var(--text-dim);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; }
.badge-real .badge-dot { background: var(--teal); }
.badge-real { color: var(--teal); border-color: var(--teal-dim); }
.badge-simulated .badge-dot { background: var(--amber); }
.badge-simulated { color: var(--amber); border-color: var(--amber-dim); }
.badge-public .badge-dot { background: var(--teal); }
.badge-public { color: var(--teal); border-color: var(--teal-dim); }

.divider { height: 1px; background: var(--border); margin: 28px 0; border: none; }

.token-box {
  background: var(--bg-raised);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-display);
  font-size: 13.5px;
  color: var(--teal);
  word-break: break-all;
  user-select: all;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}

.site-footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.site-footer-note {
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .nav { padding: 16px 20px; }
  .container, .container-narrow { padding: 0 20px; }
  .nav-links { gap: 14px; }
}
