:root {
  --bg: #0b0b0d; --surface: #161618; --surface-2: #1f1f23;
  --text: #f5f5f7; --text-2: rgba(235, 235, 245, 0.7); --text-3: rgba(235, 235, 245, 0.52);
  --accent: #0a84ff; --line: rgba(255, 255, 255, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-underline-offset: 3px; }
code { font-size: 0.92em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.wrap { max-width: 920px; margin: 0 auto; padding: 32px 20px 64px; }
.row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
h1 { font-size: 28px; line-height: 1.15; letter-spacing: -0.022em; margin: 0; }
h2 { font-size: 20px; letter-spacing: -0.015em; margin: 0 0 8px; }
.muted { color: var(--text-2); }
.err { color: #ff8a80; min-height: 1.5em; }
.panel { background: var(--surface); border-radius: 22px; padding: 24px; margin: 24px 0; }
@supports (corner-shape: squircle) { .panel, .btn, input, textarea, .list li, .seg, .seg button { corner-shape: squircle; } }
label { font-weight: 600; display: block; }
input, textarea {
  font: inherit; color: var(--text); background: var(--surface-2); border: 0; border-radius: 12px;
  padding: 10px 14px; box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1); width: 100%;
}
.row input { flex: 1; width: auto; min-width: 200px; }
input:focus, textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.55); }
textarea { resize: vertical; }
.btn {
  appearance: none; border: 0; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  height: 40px; padding: 0 18px; border-radius: 999px; background: var(--text); color: #0b0b0d; white-space: nowrap;
}
.btn.ghost { background: rgba(255, 255, 255, 0.1); color: var(--text); height: 32px; font-size: 13px; padding: 0 12px; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.17); }
.btn:disabled { opacity: 0.5; }
.btn:focus-visible, .seg button:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #fff; }
.seg { display: inline-flex; gap: 2px; padding: 3px; margin: 16px 0; border-radius: 999px; background: rgba(255, 255, 255, 0.08); flex-wrap: wrap; }
.seg button { appearance: none; border: 0; background: none; color: var(--text-2); font: inherit; font-weight: 600; font-size: 14px; height: 32px; padding: 0 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-selected="true"] { background: rgba(255, 255, 255, 0.16); color: var(--text); }
.list { list-style: none; margin: 16px 0 0; padding: 0; }
.list li { background: var(--surface); border-radius: 16px; padding: 14px 16px; margin-bottom: 8px; }
.list .body { white-space: pre-wrap; word-break: break-word; }
.list .meta { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.list .acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.list .empty { color: var(--text-2); }

/* landing */
.hero { padding: 48px 0 8px; }
.hero h1 { font-size: clamp(32px, 6vw, 56px); }
.hero p { font-size: 19px; color: var(--text-2); max-width: 46ch; margin: 14px 0 0; }
.stats { display: flex; gap: 40px; flex-wrap: wrap; margin: 32px 0; }
.stats div { font-size: 13px; color: var(--text-2); }
.stats b { display: block; font-size: 28px; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.cta a.btn { display: inline-flex; align-items: center; text-decoration: none; }
.cta a.btn.ghost { height: 40px; font-size: 15px; padding: 0 18px; }
footer { color: var(--text-3); font-size: 13px; margin-top: 48px; display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--text-2); }
