@font-face {
  font-family: 'Barlow';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/barlow-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/barlow-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/barlow-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/barlow-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #09090b;
  --panel: #111113;
  --panel-2: #18181b;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #71717a;
  --line: #27272a;
  --line-strong: #52525b;
  --accent: #f4f4f5;
  --accent-ink: #09090b;
  --green: #3dd68c;
  --red: #ff6b6b;
  --amber: #f0b45a;
  --glow: rgba(255, 255, 255, 0.07);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --head: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --pad: 14px;
}

html[data-theme='light'] {
  color-scheme: light;
  --bg: #f4f4f5;
  --panel: #ffffff;
  --panel-2: #ececef;
  --text: #09090b;
  --muted: #52525b;
  --faint: #71717a;
  --line: #d4d4d8;
  --line-strong: #71717a;
  --accent: #18181b;
  --accent-ink: #f4f4f5;
  --green: #11895a;
  --red: #d13b3b;
  --amber: #a8650c;
  --glow: rgba(0, 0, 0, 0.05);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

html[data-density='compact'] {
  --pad: 9px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  transform: translateY(calc(var(--sy, 0) * -0.15px));
}

a {
  color: inherit;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0.005em;
}
p {
  margin: 0;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.mono {
  font-family: var(--mono);
  font-size: 0.85em;
}
.muted {
  color: var(--muted);
}
.faint {
  color: var(--faint);
}

/* progress bar + nav */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: var(--text);
  z-index: 60;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(16px, 4vw, 40px);
  height: 64px;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.nav.stuck {
  border-color: var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 22px var(--head);
  letter-spacing: 0.02em;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #111;
  transition: transform 0.5s var(--ease);
}
.brand:hover img {
  transform: rotate(-8deg) scale(1.08);
}
.links {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.links a {
  position: relative;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  transition:
    color 0.2s,
    background 0.2s;
}
.links a:hover {
  color: var(--text);
  background: var(--glow);
}
.links a.on {
  color: var(--text);
}
.links a.on::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  animation: grow 0.4s var(--ease);
}
.nav .right {
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease),
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.3s,
    opacity 0.2s;
  overflow: hidden;
}
.btn:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0) scale(0.97);
}
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn.primary:hover {
  box-shadow:
    0 8px 30px var(--glow),
    0 0 0 4px var(--glow);
}
.btn.ghost {
  background: transparent;
}
.btn.danger {
  color: var(--red);
}
.btn.danger:hover {
  border-color: var(--red);
}
.btn.lg {
  height: 48px;
  padding: 0 24px;
  font-size: 17px;
  border-radius: 12px;
}
.btn.sm {
  height: 30px;
  padding: 0 11px;
  font-size: 14px;
  border-radius: 8px;
}
.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.btn.busy {
  color: transparent;
  pointer-events: none;
}
.btn.busy::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--accent-ink);
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
.btn:not(.primary).busy::after {
  border-color: var(--text);
  border-right-color: transparent;
}
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.18;
  transform: scale(0);
  animation: ripple 0.6s var(--ease);
  pointer-events: none;
}
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.ic {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: none;
}
.ic svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* avatar menu */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel-2) center/cover;
  cursor: pointer;
  padding: 0;
  transition:
    transform 0.25s var(--ease),
    border-color 0.2s;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.avatar:hover {
  border-color: var(--text);
  transform: scale(1.06);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* custom dropdown */
.dd {
  position: relative;
}
.dd-btn {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.dd-btn:hover {
  border-color: var(--line-strong);
}
.dd.open .dd-btn {
  border-color: var(--text);
  box-shadow: 0 0 0 4px var(--glow);
}
.dd-btn span.v {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dd-btn .chev {
  transition: transform 0.3s var(--ease);
  color: var(--muted);
}
.dd.open .chev {
  transform: rotate(180deg);
}
.dd-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 280px;
  overflow: auto;
  padding: 5px;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top;
  pointer-events: none;
  transition:
    opacity 0.18s,
    transform 0.25s var(--ease);
}
.dd.open .dd-menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.dd.up .dd-menu {
  top: auto;
  bottom: calc(100% + 6px);
  transform-origin: bottom;
}
.dd-search {
  width: 100%;
  height: 34px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0 8px;
  margin-bottom: 4px;
  outline: none;
}
.dd-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.12s;
}
.dd-opt:hover,
.dd-opt.hl {
  background: var(--panel-2);
}
.dd-opt.sel {
  font-weight: 600;
}
.dd-opt .tick {
  margin-left: auto;
  opacity: 0;
  transform: scale(0.5);
  transition: 0.2s var(--ease);
}
.dd-opt.sel .tick {
  opacity: 1;
  transform: none;
}
.dd-empty {
  padding: 10px;
  color: var(--faint);
  font-size: 14px;
}

/* toggle */
.sw {
  position: relative;
  width: 46px;
  height: 26px;
  flex: none;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  cursor: pointer;
  padding: 0;
  transition:
    background 0.25s,
    border-color 0.25s;
}
.sw::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition:
    transform 0.35s var(--ease),
    background 0.25s,
    width 0.2s;
}
.sw:active::after {
  width: 22px;
}
.sw[aria-checked='true'] {
  background: var(--accent);
  border-color: var(--accent);
}
.sw[aria-checked='true']::after {
  background: var(--accent-ink);
  transform: translateX(20px);
}
.sw[aria-checked='true']:active::after {
  transform: translateX(16px);
}

/* slider */
.sl {
  position: relative;
  height: 34px;
  touch-action: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  user-select: none;
}
.sl-track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.sl-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 6px;
  background: var(--accent);
  width: var(--v, 0%);
  transition: width 0.15s var(--ease);
}
.sl.drag .sl-fill,
.sl.drag .sl-thumb {
  transition: none;
}
.sl-thumb {
  position: absolute;
  top: 50%;
  left: var(--v, 0%);
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 4px 12px rgba(0, 0, 0, 0.4);
  transition:
    left 0.15s var(--ease),
    transform 0.2s var(--ease);
  outline: none;
}
.sl:hover .sl-thumb,
.sl.drag .sl-thumb {
  transform: scale(1.18);
}
.sl-thumb:focus-visible {
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 0 0 5px var(--glow);
}
.sl-tip {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font: 600 13px var(--body);
  white-space: nowrap;
  opacity: 0;
  transition: 0.2s var(--ease);
  pointer-events: none;
}
.sl:hover .sl-tip,
.sl.drag .sl-tip,
.sl-thumb:focus .sl-tip {
  opacity: 1;
  transform: translateX(-50%);
}

/* segmented */
.seg {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
}
.seg button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.25s;
}
.seg button.on {
  color: var(--accent-ink);
}
.seg .pill {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  border-radius: 8px;
  background: var(--accent);
  transition:
    transform 0.35s var(--ease),
    width 0.35s var(--ease);
}

/* inputs */
.in,
.ta {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0 12px;
  height: 42px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.ta {
  height: auto;
  min-height: 120px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5;
}
.in:hover,
.ta:hover {
  border-color: var(--line-strong);
}
.in:focus,
.ta:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 4px var(--glow);
}
.field {
  display: grid;
  gap: 7px;
}
.field > .lab {
  font-weight: 600;
}
.field > .hint {
  color: var(--muted);
  font-size: 14px;
  margin-top: -3px;
}
.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.setting:last-child {
  border-bottom: 0;
}
.setting .t {
  font-weight: 600;
}
.setting .d {
  color: var(--muted);
  font-size: 14px;
  max-width: 46ch;
}

/* cards */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
  transition:
    border-color 0.3s,
    transform 0.4s var(--ease),
    box-shadow 0.4s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    var(--glow),
    transparent 60%
  );
}
.card:hover::before {
  opacity: 1;
}
.card.lift:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.pad {
  padding: 22px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  font: 600 12px var(--body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag.open {
  color: var(--amber);
  border-color: var(--amber);
}
.tag.claimed {
  color: var(--text);
}
.tag.resolved {
  color: var(--green);
  border-color: var(--green);
}
.tag.dismissed {
  color: var(--faint);
}
.tag.ok {
  color: var(--green);
  border-color: var(--green);
}
.tag.warn {
  color: var(--amber);
  border-color: var(--amber);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* layout */
.wrap {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
}
.page {
  animation: pagein 0.55s var(--ease) both;
}
@keyframes pagein {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.page.out {
  animation: pageout 0.15s ease both;
}
@keyframes pageout {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.rv {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.rv.seen {
  opacity: 1;
  transform: none;
}
.rv.left {
  transform: translateX(-36px);
}
.rv.right {
  transform: translateX(36px);
}
.rv.zoom {
  transform: scale(0.94);
}
.rv.seen.left,
.rv.seen.right,
.rv.seen.zoom {
  transform: none;
}

/* home */
.hero {
  position: relative;
  padding: clamp(60px, 11vw, 130px) 0 70px;
  text-align: center;
}
.hero .logo {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  margin: 0 auto 28px;
  display: block;
  background: #0d0d0f;
  box-shadow:
    0 0 0 1px var(--line),
    0 30px 80px rgba(255, 255, 255, 0.07);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-10px) rotate(1.5deg);
  }
}
.hero h1 {
  font-size: clamp(48px, 9vw, 104px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}
.hero p.lead {
  max-width: 60ch;
  margin: 22px auto 34px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}
.hero .cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: up 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes up {
  to {
    transform: none;
  }
}
.orb {
  position: absolute;
  width: 520px;
  height: 520px;
  left: 50%;
  top: 0;
  margin-left: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  filter: blur(10px);
  z-index: -1;
  transform: translateY(calc(var(--sy, 0) * 0.25px));
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
}
.stat {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: 0;
}
.stat b {
  display: block;
  font: 700 clamp(34px, 5vw, 46px) var(--head);
  line-height: 1;
}
.stat span {
  color: var(--muted);
  font-size: 14px;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 16px 0;
  margin: 70px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee .track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 38s linear infinite;
  font: 600 26px var(--head);
  text-transform: uppercase;
  color: var(--faint);
  letter-spacing: 0.06em;
}
.marquee .track span::after {
  content: '/';
  margin-left: 48px;
  color: var(--line-strong);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.sec {
  padding: 70px 0;
}
.sec h2 {
  font-size: clamp(36px, 6vw, 60px);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sec .sub {
  color: var(--muted);
  max-width: 58ch;
  font-size: 18px;
  margin-bottom: 40px;
}
.kicker {
  font: 600 13px var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.steps {
  display: grid;
  gap: 0;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 22px 0;
  position: relative;
}
.step .n {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  display: grid;
  place-items: center;
  font: 700 24px var(--head);
  position: relative;
  z-index: 1;
  transition:
    background 0.5s,
    color 0.5s,
    transform 0.6s var(--ease);
}
.step.seen .n {
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(360deg);
}
.step h3 {
  font-size: 28px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.step p {
  color: var(--muted);
  max-width: 60ch;
}
.step code,
.code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

.demo {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
.demo-tabs {
  display: grid;
  gap: 8px;
}
.demo-tab {
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: 0.3s var(--ease);
}
.demo-tab b {
  display: block;
  font: 700 20px var(--head);
  text-transform: uppercase;
}
.demo-tab span {
  color: var(--muted);
  font-size: 14px;
}
.demo-tab.on {
  background: var(--panel);
  border-color: var(--text);
  transform: translateX(6px);
}
.chat {
  padding: 22px;
  display: grid;
  gap: 14px;
  min-height: 360px;
  align-content: start;
}
.msg {
  display: flex;
  gap: 12px;
  animation: msgin 0.5s var(--ease) both;
  animation-delay: var(--d, 0ms);
}
@keyframes msgin {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.msg .av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 700;
  overflow: hidden;
}
.msg .av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0d0d0f;
}
.msg .who {
  font-weight: 600;
}
.msg .who small {
  color: var(--faint);
  font-weight: 400;
  margin-left: 6px;
}
.msg .bub {
  color: var(--text);
}
.bot-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 10px var(--body);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: 2px;
  letter-spacing: 0.05em;
}
.embed {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--text);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--panel-2);
  display: grid;
  gap: 6px;
  max-width: 480px;
}
.embed.warn {
  border-left-color: var(--amber);
}
.embed.good {
  border-left-color: var(--green);
}
.embed h4 {
  margin: 0;
  font: 700 18px var(--head);
  text-transform: uppercase;
}
.embed .kv {
  display: grid;
  grid-template-columns: 110px 1fr;
  font-size: 14px;
  gap: 2px 10px;
}
.embed .kv i {
  font-style: normal;
  color: var(--faint);
}
.fake-btns {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.fake-btns span {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
}

.feat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.feat .card {
  padding: 26px;
}
.feat .ic {
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
}
.feat h3 {
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.feat p {
  color: var(--muted);
}

.faq {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
}
.q {
  border-bottom: 1px solid var(--line);
}
.q:last-child {
  border-bottom: 0;
}
.q > button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: 600 18px var(--body);
  transition: background 0.2s;
}
.q > button:hover {
  background: var(--panel-2);
}
.q .plus {
  transition: transform 0.4s var(--ease);
}
.q.open .plus {
  transform: rotate(45deg);
}
.collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.collapse > div {
  overflow: hidden;
}
.open > .collapse,
.collapse.open {
  grid-template-rows: 1fr;
}
.q .a {
  padding: 0 24px 20px;
  color: var(--muted);
  max-width: 70ch;
}

.cta-band {
  text-align: center;
  padding: 70px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 0%, var(--glow), transparent 70%), var(--panel);
}
.cta-band h2 {
  font-size: clamp(36px, 6vw, 64px);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cta-band p {
  color: var(--muted);
  margin-bottom: 28px;
}

.foot {
  border-top: 1px solid var(--line);
  margin-top: 90px;
  padding: 40px 0 60px;
  color: var(--muted);
  font-size: 15px;
}
.foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.foot nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.foot a {
  text-decoration: none;
  transition: color 0.2s;
}
.foot a:hover {
  color: var(--text);
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 0 20px;
}
.legal h1 {
  font-size: clamp(44px, 7vw, 72px);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.legal h2 {
  font-size: 26px;
  text-transform: uppercase;
  margin: 38px 0 10px;
}
.legal p,
.legal li {
  color: var(--muted);
  margin-bottom: 10px;
}
.legal ul {
  padding-left: 20px;
}
.legal .upd {
  color: var(--faint);
  margin-bottom: 28px;
}

/* dashboard */
.dash {
  padding: 40px 0 60px;
}
.dash h1 {
  font-size: clamp(36px, 5vw, 52px);
  text-transform: uppercase;
}
.dash .lead {
  color: var(--muted);
  margin: 8px 0 30px;
  max-width: 60ch;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.srv {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  text-decoration: none;
  cursor: pointer;
  min-height: 168px;
}
.srv .top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.srv .ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2) center/cover;
  display: grid;
  place-items: center;
  font: 700 22px var(--head);
  flex: none;
  overflow: hidden;
}
.srv .ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.srv h3 {
  font-size: 22px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.srv .meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}
.srv .go {
  transition: transform 0.3s var(--ease);
}
.srv:hover .go {
  transform: translateX(5px);
}
.add-card {
  border-style: dashed;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
}
.add-card .plus {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  display: grid;
  place-items: center;
  transition:
    transform 0.5s var(--ease),
    background 0.3s,
    color 0.3s;
}
.add-card:hover .plus {
  transform: rotate(90deg) scale(1.08);
  background: var(--accent);
  color: var(--accent-ink);
}
.add-card b {
  font: 700 22px var(--head);
  text-transform: uppercase;
  color: var(--text);
}

.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  padding: 34px 0 60px;
  align-items: start;
}
.side {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 6px;
}
.side .sw-wrap {
  margin-bottom: 14px;
}
.side a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition:
    color 0.2s,
    background 0.2s,
    transform 0.3s var(--ease);
  position: relative;
}
.side a:hover {
  color: var(--text);
  background: var(--glow);
  transform: translateX(3px);
}
.side a.on {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 9px 11px;
}
.side .div {
  height: 1px;
  background: var(--line);
  margin: 10px 0;
}
.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.head-row h1 {
  font-size: clamp(34px, 4vw, 46px);
  text-transform: uppercase;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.kpi {
  padding: 20px;
}
.kpi b {
  display: block;
  font: 700 40px var(--head);
  line-height: 1;
  margin-bottom: 4px;
}
.kpi span {
  color: var(--muted);
  font-size: 14px;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 150px;
  padding-top: 12px;
}
.bars div {
  flex: 1;
  background: var(--accent);
  border-radius: 5px 5px 2px 2px;
  min-height: 3px;
  transform-origin: bottom;
  transform: scaleY(0);
  animation: bar 0.9s var(--ease) forwards;
  animation-delay: calc(var(--i) * 40ms + 200ms);
  opacity: 0.85;
  position: relative;
}
.bars div:hover {
  opacity: 1;
}
.bars div::after {
  content: attr(data-n);
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}
.bars div:hover::after {
  opacity: 1;
}
@keyframes bar {
  to {
    transform: scaleY(1);
  }
}
.axis {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 12px;
  margin-top: 8px;
}
.list {
  display: grid;
  gap: 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: var(--pad) 18px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.row:last-child {
  border-bottom: 0;
}
.row:hover {
  background: var(--glow);
}
.row .g {
  flex: 1;
  min-width: 0;
}
.row .s {
  color: var(--muted);
  font-size: 14px;
}
.note {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 10px;
  background: var(--panel);
  margin-bottom: 18px;
  animation: pagein 0.5s var(--ease);
}
.note.err {
  border-left-color: var(--red);
}

.rep {
  margin-bottom: 12px;
}
.rep-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--pad) 18px;
  cursor: pointer;
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
}
.rep-head .sum {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rep-head .chev {
  color: var(--muted);
  transition: transform 0.4s var(--ease);
}
.rep.open .chev {
  transform: rotate(180deg);
}
.rep-body {
  padding: 4px 18px 18px;
  border-top: 1px solid var(--line);
}
dl.kv {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px 18px;
  margin: 16px 0;
}
dl.kv dt {
  color: var(--faint);
  font-size: 14px;
}
dl.kv dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cmd {
  font: 13px var(--mono);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 8px 0;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--faint);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr {
  transition: background 0.2s;
  animation: pagein 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 25ms);
}
tbody tr:hover {
  background: var(--glow);
}

.savebar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 140%);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px 12px 22px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease);
}
.savebar.show {
  transform: translate(-50%, 0);
}
.section {
  margin-bottom: 22px;
}
.section > h3 {
  font-size: 22px;
  text-transform: uppercase;
  padding: 18px 22px 0;
}
.section .body {
  padding: 6px 22px 12px;
}
.form-grid {
  display: grid;
  gap: 20px;
  padding: 18px 22px 24px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 250px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 0.18s,
    transform 0.3s var(--ease);
}
.menu.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.menu .who {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.menu .who b {
  display: block;
}
.menu a,
.menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.menu a:hover,
.menu button:hover {
  background: var(--panel-2);
}
.rel {
  position: relative;
}

.modal-back {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s;
}
.modal-back.show {
  opacity: 1;
}
.modal {
  width: min(480px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 26px;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.4s var(--ease);
}
.modal-back.show .modal {
  transform: none;
}
.modal h3 {
  font-size: 28px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.modal .body {
  display: grid;
  gap: 16px;
  margin: 18px 0 24px;
}
.modal .foot-acts {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  gap: 10px;
}
.toast {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: toast 0.5s var(--ease) both;
  display: flex;
  gap: 10px;
  align-items: center;
}
.toast.err {
  border-color: var(--red);
}
.toast.out {
  animation: toastout 0.3s ease both;
}
@keyframes toast {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes toastout {
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

.skel {
  border-radius: 12px;
  background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty b {
  display: block;
  font: 700 26px var(--head);
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}

.gate {
  max-width: 460px;
  margin: 14vh auto;
  text-align: center;
  padding: 0 24px;
}
.gate .logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  margin-bottom: 22px;
  background: #0d0d0f;
}
.gate h1 {
  font-size: 46px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.gate p {
  color: var(--muted);
  margin-bottom: 26px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px;
}
.profile-head .big {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--panel-2) center/cover;
  flex: none;
  overflow: hidden;
}
.profile-head .big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-head h2 {
  font-size: 34px;
  text-transform: uppercase;
}

.nomotion *,
.nomotion *::before,
.nomotion *::after {
  animation-duration: 0.001ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  transition-delay: 0ms !important;
  scroll-behavior: auto !important;
}
.nomotion .rv {
  opacity: 1;
  transform: none;
}
.nomotion .marquee .track {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .rv {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .side {
    position: static;
    grid-auto-flow: column;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .side .sw-wrap,
  .side .div {
    display: none;
  }
  .side a {
    white-space: nowrap;
  }
  .demo {
    grid-template-columns: 1fr;
  }
  .demo-tabs {
    grid-auto-flow: column;
    overflow-x: auto;
  }
  .demo-tab {
    min-width: 190px;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .nav {
    gap: 12px;
  }
  .nav .addbtn {
    display: none;
  }
  .setting {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  dl.kv {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.sec {
  scroll-margin-top: 40px;
}
