/* Pages of the decoy web service (spb/decoy.sh SITE=panel|probe). No external resources. */
:root {
  --bg: #f5f7fb;
  --surface: #fff;
  --text: #0f172a;
  --muted: #5b6474;
  --border: #e3e8f0;
  --accent: #2f5bea;
  --accent-dark: #2449c7;
  --accent-soft: #e8eefe;
  --ok: #16a34a;
  --warn: #d97706;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px;
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: #c9d1df; }
.btn:disabled { cursor: default; }
.btn.busy { color: transparent; }
.btn.busy::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* landing */
.top { position: sticky; top: 0; z-index: 10; background: rgba(245, 247, 251, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; height: 64px; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a:not(.btn) { color: var(--muted); font-size: 15px; }
.nav a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav .btn { height: 38px; padding: 0 16px; }

.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.025em; margin: 18px 0 16px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

.mock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.mock-head span { font-size: 13px; color: var(--muted); }
.row { display: grid; grid-template-columns: 12px 1fr auto 64px; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--border); font-size: 14px; }
.row small { display: block; color: var(--muted); font-size: 12px; }
.num { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(22, 163, 74, .12); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 4px rgba(217, 119, 6, .14); }
.spark { margin-top: 12px; }
.spark svg { display: block; width: 100%; height: 64px; }
.spark small { color: var(--muted); font-size: 12px; }

section { padding: 56px 0; }
section h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.02em; margin: 0 0 10px; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }
.grid, .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card, .step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3, .step h3 { font-size: 17px; margin: 14px 0 6px; }
.card p, .step p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps { counter-reset: step; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; }
.beta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 40px; border-radius: 20px; background: #0f172a; }
.beta h2 { color: #fff; }
.beta p { margin: 0; color: #a8b3c7; max-width: 38em; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 48px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

/* sign-in */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box > .brand { display: flex; justify-content: center; margin-bottom: 24px; font-size: 18px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 28px; }
.panel h1 { font-size: 22px; letter-spacing: -.01em; margin: 0 0 4px; }
.hint { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid #cfd6e3; border-radius: 10px; background: #fff; color: var(--text); font: inherit; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 91, 234, .15); }
.pw { position: relative; }
.pw .input { padding-right: 96px; }
.pw button { position: absolute; top: 6px; right: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.pw button:hover { background: #f1f4f9; color: var(--text); }
.line { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 20px; font-size: 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.wide { width: 100%; }
.msg { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.msg.error { background: #fdecec; border: 1px solid #f7c9c9; color: #a61b1b; }
.msg.ok { background: #e9f7ef; border: 1px solid #c4ebd2; color: #146c34; }
.below { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
[hidden] { display: none !important; }

/* probe node, 404 */
.simple { max-width: 640px; margin: 0 auto; padding: 88px 24px; }
.simple h1 { font-size: 30px; letter-spacing: -.02em; margin: 36px 0 12px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 24px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.state-ok { color: var(--ok); font-weight: 600; }

@media (max-width: 880px) {
  .hero { padding-top: 44px; }
  .hero .wrap, .grid, .steps { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  .beta { padding: 28px; }
}
