:root {
  --bg: #f5f7fb;
  --bg-elevated: #fbfcfe;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --surface-soft: rgba(249, 250, 253, 0.82);
  --surface-solid: #ffffff;
  --text: #111318;
  --text-soft: #626875;
  --muted: #8e94a3;
  --line: rgba(16, 24, 40, 0.08);
  --line-strong: rgba(16, 24, 40, 0.13);
  --blue: #0a73ff;
  --blue-2: #4d8eff;
  --purple: #8a5cff;
  --cyan: #43d9ff;
  --green: #36c667;
  --orange: #ffb224;
  --red: #ff4d57;
  --shadow: 0 24px 60px rgba(46, 55, 79, 0.11);
  --shadow-soft: 0 10px 30px rgba(46, 55, 79, 0.07);
  --shadow-tight: 0 8px 22px rgba(46, 55, 79, 0.08);
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --sidebar: 286px;
  --rail: 74px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080a0f;
  --bg-elevated: #0d1017;
  --surface: rgba(19, 23, 32, 0.76);
  --surface-strong: rgba(18, 22, 31, 0.95);
  --surface-soft: rgba(22, 27, 37, 0.82);
  --surface-solid: #151922;
  --text: #f5f7fb;
  --text-soft: #abb2c0;
  --muted: #747d8e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.28);
  --shadow-tight: 0 8px 22px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 75% 5%, rgba(142, 103, 255, .08), transparent 30%),
    radial-gradient(circle at 12% 22%, rgba(67, 217, 255, .08), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .32s var(--ease), color .32s var(--ease);
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

#app { min-height: 100vh; }

.glass {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
}
html[data-theme="dark"] .glass { border-color: rgba(255,255,255,.08); }

.card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.subtle-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 650;
}

.btn {
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  background: linear-gradient(135deg, #16191f, #090b10);
  color: #fff;
  box-shadow: 0 10px 22px rgba(14,17,23,.2);
}
html[data-theme="dark"] .btn-primary { background: linear-gradient(135deg, #f7f8fb, #d7dbe4); color:#111318; }
.btn-blue {
  background: linear-gradient(135deg, #1682ff, #0068e7);
  color: #fff;
  box-shadow: 0 12px 28px rgba(10,115,255,.22);
}
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 14px;
}

.kicker {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: 800;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.04em; }
h1 { font-size: clamp(48px, 7vw, 108px); line-height: .92; }
h2 { font-size: clamp(34px, 4.2vw, 64px); line-height: .98; }
h3 { font-size: 22px; }

.muted { color: var(--text-soft); }
.small { font-size: 13px; }
.tiny { font-size: 11px; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(54,198,103,.1);
  flex: 0 0 auto;
}
.status-dot.blue { background: var(--blue); box-shadow: 0 0 0 6px rgba(10,115,255,.1); }
.status-dot.orange { background: var(--orange); box-shadow: 0 0 0 6px rgba(255,178,36,.1); }
.status-dot.red { background: var(--red); box-shadow: 0 0 0 6px rgba(255,77,87,.1); }
.status-dot.purple { background: var(--purple); box-shadow: 0 0 0 6px rgba(138,92,255,.1); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge.blue { color: #3c8df0; background: rgba(10,115,255,.11); }
.badge.green { color: #32b961; background: rgba(54,198,103,.13); }
.badge.orange { color: #d99413; background: rgba(255,178,36,.14); }
.badge.red { color: #ee5962; background: rgba(255,77,87,.13); }
.badge.purple { color: #9d78ff; background: rgba(138,92,255,.13); }
.badge.gray { color: var(--text-soft); background: rgba(95,102,116,.10); }

.icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(10,115,255,.1), rgba(138,92,255,.12));
  color: var(--blue);
  flex: 0 0 auto;
}
.icon-wrap.green { background: rgba(54,198,103,.12); color: var(--green); }
.icon-wrap.orange { background: rgba(255,178,36,.12); color: var(--orange); }
.icon-wrap.red { background: rgba(255,77,87,.11); color: var(--red); }
.icon-wrap.purple { background: rgba(138,92,255,.12); color: var(--purple); }

.progress {
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(115,124,143,.14);
}
.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transition: width .8s var(--ease);
}
.progress.green > span { background: var(--green); }
.progress.orange > span { background: var(--orange); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.brand-orb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.96), transparent 22%),
    radial-gradient(circle at 68% 70%, rgba(138,92,255,.7), transparent 42%),
    radial-gradient(circle at 30% 75%, rgba(67,217,255,.9), transparent 40%),
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(132,97,255,.6));
  box-shadow: inset -6px -8px 18px rgba(98,79,215,.18), 0 6px 18px rgba(90,116,255,.18);
}

.divider { height: 1px; background: var(--line); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
