:root {
  --night: #070B12;
  --fog: #141C28;
  --ink: #0d141d;
  --teal: #3DFFC8;
  --paper: #E8F1EE;
  --mist: #8BA3A0;
  --amber: #F5C542;
  --seeker: #FF4B6B;
  --line: rgba(168, 200, 194, 0.22);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  background: #070B12;
  color: var(--paper);
  min-height: 100vh;
}
a { color: var(--teal); text-decoration: none; }
header, main, footer { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
  gap: 16px;
}
.brand {
  font-family: Georgia, serif;
  letter-spacing: .28em;
  font-size: 14px;
}
nav { display: flex; flex-wrap: wrap; gap: 16px; color: var(--mist); font-size: 14px; }
.hero { padding: 36px 0 24px; }
h1, h2 {
  font-family: Georgia, serif;
  font-weight: 500;
  letter-spacing: .04em;
}
h1 {
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1.1;
  margin: 0 0 16px;
}
h2 { margin: 0 0 10px; }
.lede { color: var(--mist); font-size: 18px; max-width: 680px; line-height: 1.55; }
.muted { color: var(--mist); line-height: 1.55; }
.kicker {
  color: var(--amber);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn, button.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--night);
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}
.btn.ghost, button.btn.ghost {
  background: transparent;
  color: var(--teal);
  border: 1px solid rgba(61, 255, 200, 0.55);
}
.btn.wide { width: 100%; text-align: center; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding: 12px 0 40px;
}
.card {
  background: rgba(20, 28, 40, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
code, .addr {
  color: var(--amber);
  word-break: break-all;
  font-size: 13px;
}
footer { padding: 28px 24px 64px; color: var(--mist); font-size: 14px; }
.ok { color: var(--teal); }
.err { color: var(--seeker); }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
}
textarea { min-height: 180px; resize: vertical; }
label { display: block; font-size: 13px; color: var(--mist); margin-bottom: 6px; }
.jobs { display: flex; flex-wrap: wrap; gap: 8px; }
.jobs button {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.jobs button.on {
  background: var(--teal);
  color: var(--night);
  border-color: var(--teal);
  font-weight: 700;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-bottom: 40px;
}
.out {
  white-space: pre-wrap;
  background: var(--ink);
  border-radius: 12px;
  padding: 16px;
  min-height: 180px;
  line-height: 1.5;
}
.qr { width: 148px; height: 148px; background: #fff; border-radius: 12px; padding: 8px; }
.tiny { font-size: 13px; color: var(--mist); }
.chat {
  background: var(--ink);
  border-radius: 16px;
  padding: 14px;
}
.bubble { max-width: 92%; padding: 10px 12px; border-radius: 14px; margin: 8px 0; line-height: 1.45; }
.bubble.in { background: #1d2836; }
.bubble.out { background: #16352f; margin-left: auto; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  header { align-items: flex-start; flex-direction: column; }
}
@media (prefers-color-scheme: light) {
  :root {
    --night: #E8F0EA;
    --fog: #F7FBF8;
    --ink: #ffffff;
    --teal: #0E8F7A;
    --paper: #163028;
    --mist: #4A6A64;
    --amber: #B45309;
    --line: rgba(22, 48, 40, 0.14);
  }
  body { background: #E8F0EA; color: var(--paper); }
  .card { background: rgba(255,255,255,.78); }
}
