@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/Inter-Regular.ee704db132d9.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/Inter-Medium.9a3832ed5b61.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/Inter-SemiBold.c07c6760d15f.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/Inter-Bold.635e459bd60f.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("fonts/Inter-ExtraBold.ab3b4ff627c9.woff2") format("woff2"); }

:root {
  --bg: #14181d;
  --surface: #1d2228;
  --raised: #272d34;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f6f8;
  --muted: #a1a7b3;
  --faint: #6b7280;
  --accent: #2d8cff;
  --accent-2: #5aa7ff;
  /* Sober, like the app: one blue, no gradient (the name is kept for the rules using it). */
  --gradient: linear-gradient(#2d8cff, #2d8cff);
  --ok: #2dd4a3;
  --warn: #fbbf24;
  --danger: #ff5c7a;
  --live: #ff3b5c;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
}
a { color: #7db8ff; text-decoration: none; }
a:hover { color: #fff; }
h1 { font-size: 30px; line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.025em; font-weight: 700; }
h2 { font-size: 16px; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 13px; }

/* ------------------------------------------------------------------ header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 20px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(20, 24, 29, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.03em; color: var(--text); }
.brand:hover { color: var(--text); }
.brand { font-size: 22px; letter-spacing: -0.04em; gap: 0; }
.brand .sey { color: var(--accent); }
.top nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.top nav a, .top nav button { color: var(--muted); padding: 7px 12px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 500; background: none; border: 0; cursor: pointer; }
.top nav a:hover, .top nav button:hover { color: var(--text); background: var(--glass); }
.top nav .cta { color: #fff; background: var(--gradient); margin-left: 6px; }
.top nav .cta:hover { filter: brightness(1.1); background: var(--gradient); }

main { width: 100%; max-width: 1040px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 40px) 64px; flex: 1; }
main.narrow { max-width: 440px; }
main.wide { max-width: 1180px; }

.messages { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.messages li { padding: 11px 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; }
.messages li.error { border-color: rgba(255, 92, 122, 0.4); }
.messages li.success { border-color: rgba(45, 212, 163, 0.4); }

.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; backdrop-filter: blur(12px); }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 11.5px; font-weight: 600; color: var(--faint); }

/* ------------------------------------------------------------------ buttons, forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, filter .15s, transform .15s; }
.btn:hover { background: var(--glass-2); color: var(--text); }
.btn.primary { background: var(--gradient); border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(45, 140, 255, 0.28); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.white { background: #fff; color: #14181d; border-color: transparent; }
.btn.white:hover { background: #e9ecef; color: #14181d; }
.btn.danger { color: var(--danger); }
.btn.small { padding: 5px 12px; font-size: 13px; }
.btn.large { padding: 13px 24px; font-size: 16px; }
.btn.block { width: 100%; }
form.inline { display: inline; }

.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 13.5px; color: var(--muted); }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=url], .field select {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(45, 140, 255, 0.2); }
.field .help { color: var(--faint); font-size: 12.5px; margin-top: 5px; }
.field .errorlist, .errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--danger); font-size: 13px; }
.field.check label { display: flex; gap: 8px; align-items: center; font-weight: 500; color: var(--text); }
.code-input { font-size: 26px !important; letter-spacing: 0.2em; text-align: center; text-transform: uppercase; font-family: ui-monospace, "SF Mono", monospace !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.form-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; margin-top: 16px; }

/* ------------------------------------------------------------------ lists */
.list { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--glass); border: 1px solid var(--line); border-radius: 14px; transition: background .15s; }
.row:hover { background: var(--glass-2); }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .actions, .section-head .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.empty { padding: 24px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; font-size: 14px; }

.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--glass-2); color: var(--muted); }
.pill.ok { color: var(--ok); background: rgba(45, 212, 163, 0.12); }
.pill.warn { color: var(--warn); background: rgba(251, 191, 36, 0.12); }
.pill.bad { color: var(--danger); background: rgba(255, 92, 122, 0.12); }
.pill.live { color: #fff; background: var(--live); letter-spacing: 0.04em; }

/* ------------------------------------------------------------------ avatars & profiles */
.avatar { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff; flex: none; }
.avatar.big { width: 92px; height: 92px; border-radius: 20px; font-size: 38px; }
.av-ember { background: linear-gradient(135deg, #ff6a3d, #ffb347); }
.av-ocean { background: linear-gradient(135deg, #2d7ff9, #22d3ee); }
.av-forest { background: linear-gradient(135deg, #15803d, #a3e635); }
.av-violet { background: linear-gradient(135deg, #6e56ff, #e070ff); }
.av-sun { background: linear-gradient(135deg, #f59e0b, #fde047); }
.av-rose { background: linear-gradient(135deg, #e11d48, #fb7185); }
.av-slate { background: linear-gradient(135deg, #475569, #94a3b8); }
.av-mint { background: linear-gradient(135deg, #059669, #5eead4); }

.profiles { display: flex; flex-wrap: wrap; gap: 18px; }
.profile { width: 104px; text-align: center; color: var(--text); }
.profile:hover { color: var(--text); }
.profile .avatar { margin: 0 auto 8px; transition: transform .15s, box-shadow .15s; }
.profile:hover .avatar { transform: translateY(-2px) scale(1.04); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #fff; }
.profile .name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile.add .avatar { background: var(--glass); color: var(--muted); border: 1px dashed var(--faint); }

.avatar-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.avatar-picker label { cursor: pointer; }
.avatar-picker input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-picker input:checked + .avatar { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #fff; }

.stream .thumb { width: 60px; height: 38px; border-radius: 8px; object-fit: contain; background: var(--raised); flex: none; }
.hero-code { text-align: center; }
.hero-code .big-check { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; background: rgba(45, 212, 163, 0.14); color: var(--ok); display: grid; place-items: center; font-size: 30px; }

/* ------------------------------------------------------------------ landing */
.hero { text-align: center; padding: 72px 0 40px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.04em; font-weight: 800; line-height: 1.05; margin-bottom: 18px; }
.hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.shot { margin: 48px auto 0; max-width: 980px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(45, 140, 255, 0.15); }
.shot img { display: block; width: 100%; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 72px; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 22px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); }
.feature .icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(45, 140, 255, 0.16); color: #9ccaff; margin-bottom: 14px; font-size: 18px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.steps { margin-top: 72px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 20px 22px; border-top: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gradient); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.step h3 { margin: 0 0 4px; font-size: 15px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.final-cta { text-align: center; margin: 80px 0 20px; }
.final-cta h2 { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 16px; }

footer { color: var(--faint); font-size: 12.5px; text-align: center; padding: 28px 16px; border-top: 1px solid var(--line); }
footer a { color: var(--muted); }

[data-kind] { display: grid; gap: 16px; }
[data-kind][hidden] { display: none; }
