:root {
  color-scheme: light;
  --bg0: #e9eaff;
  --bg1: #f3f4ff;
  --bg2: #fbfbff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.62);
  --accent: #4f5dff;
  --accent2: #7c5cff;
  --danger: #ef4444;
  --success: #10b981;
  --border: rgba(15, 23, 42, 0.10);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.08);
  --ring: 0 0 0 4px rgba(79, 93, 255, 0.22);
  --radius: 20px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 18% 10%, rgba(79, 93, 255, 0.22) 0%, rgba(79, 93, 255, 0) 62%),
    radial-gradient(820px 520px at 84% 26%, rgba(124, 92, 255, 0.16) 0%, rgba(124, 92, 255, 0) 60%),
    linear-gradient(180deg, var(--bg0), var(--bg2));
}
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.4; }

.inline { display: inline; }

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(251, 251, 255, 0.62);
  border-bottom: 1px solid var(--border);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(79, 93, 255, 0.95), rgba(79, 93, 255, 0.72));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.28);
}
.logo svg { width: 22px; height: 22px; }
.brand-txt { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-weight: 700; letter-spacing: -0.02em; }
.brand-sub { font-size: 12px; color: rgba(15, 23, 42, 0.58); }

.nav { display: flex; gap: 14px; }
.nav-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.72);
  padding: 10px 12px;
  border-radius: 14px;
}
.nav-link:hover { background: rgba(255,255,255,0.72); }

.top-actions { display: flex; gap: 10px; align-items: center; }

.btn {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  background: rgba(255,255,255,0.72);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08); }
.btn:active { transform: translateY(0); }
.btn:focus { outline: none; box-shadow: var(--ring); }

.btn-primary {
  background: linear-gradient(180deg, rgba(79, 93, 255, 0.96), rgba(124, 92, 255, 0.92));
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.btn-ghost {
  background: rgba(255,255,255,0.62);
}
.w100 { width: 100%; }

.hero { padding: 42px 0 14px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; align-items: stretch; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.70);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.78);
}
.hero h1 {
  margin: 14px 0 10px;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.lead { margin: 0 0 14px; font-size: 16px; line-height: 1.55; color: rgba(15, 23, 42, 0.70); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.hero-mini { margin-top: 12px; font-size: 13px; }

.hero-card {
  border-radius: 26px;
  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card-top { display: flex; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.dot { width: 10px; height: 10px; border-radius: 99px; background: rgba(15, 23, 42, 0.14); }
.dot-a { background: rgba(239, 68, 68, 0.38); }
.dot-b { background: rgba(245, 158, 11, 0.38); }
.dot-c { background: rgba(16, 185, 129, 0.38); }
.hero-card-body { padding: 16px; }
.mock { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mock-chip {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(248,250,252,0.9);
  font-weight: 700;
  font-size: 12px;
}
.mock-row { display: flex; gap: 10px; margin-top: 10px; }
.mock-pill { height: 10px; flex: 1; border-radius: 999px; background: rgba(15,23,42,0.10); }
.mock-pill-ok { background: rgba(16,185,129,0.18); }
.mock-pill-warn { background: rgba(124,92,255,0.18); }
.bubble { height: 16px; border-radius: 12px; margin-top: 10px; background: rgba(15,23,42,0.10); }
.bubble-user { width: 78%; background: rgba(79,93,255,0.18); }
.bubble-bot { width: 92%; background: rgba(15,23,42,0.10); }
.bubble.small { width: 64%; }
.mock-actions { display: flex; gap: 10px; margin-top: 12px; }
.mock-btn { height: 34px; flex: 1; border-radius: 12px; background: rgba(79,93,255,0.18); border: 1px solid rgba(79,93,255,0.20); }

.stat {
  margin-top: 10px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.72);
  padding: 12px;
}
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-title { font-weight: 900; letter-spacing: -0.02em; font-size: 13px; }
.stat-badge {
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16,185,129,0.14);
  border: 1px solid rgba(16,185,129,0.18);
  color: rgba(6,95,70,0.92);
}
.chart {
  margin-top: 10px;
  height: 84px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  align-items: end;
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(79,93,255,0.08), rgba(124,92,255,0.04));
  border: 1px solid rgba(79,93,255,0.14);
  overflow: hidden;
}
.bar {
  display: block;
  width: 100%;
  border-radius: 10px 10px 12px 12px;
  background: linear-gradient(180deg, rgba(79,93,255,0.82), rgba(124,92,255,0.62));
  box-shadow: 0 10px 18px rgba(79,93,255,0.16);
  transform-origin: bottom;
  animation: rise 900ms ease-out both;
}
.bar.b1 { height: 18%; animation-delay: 0ms; opacity: 0.55; }
.bar.b2 { height: 34%; animation-delay: 50ms; opacity: 0.62; }
.bar.b3 { height: 42%; animation-delay: 90ms; opacity: 0.70; }
.bar.b4 { height: 56%; animation-delay: 120ms; opacity: 0.78; }
.bar.b5 { height: 64%; animation-delay: 150ms; opacity: 0.86; }
.bar.b6 { height: 70%; animation-delay: 180ms; opacity: 0.90; }
.bar.b7 { height: 82%; animation-delay: 210ms; opacity: 0.94; }
.bar.b8 { height: 92%; animation-delay: 240ms; opacity: 1; }
@keyframes rise {
  from { transform: scaleY(0.05); filter: blur(0.2px); }
  to { transform: scaleY(1); filter: blur(0); }
}
.stat-legend {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(15,23,42,0.62);
  font-weight: 700;
}
.dotl { width: 8px; height: 8px; border-radius: 99px; background: rgba(79,93,255,0.64); display: inline-block; }
.dotl.d1 { background: rgba(79,93,255,0.64); }
.dotl.d2 { background: rgba(16,185,129,0.64); }

.flow { margin-top: 10px; display: grid; gap: 10px; }
.flow-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(15,23,42,0.10);
}
.flow-dot {
  width: 10px; height: 10px; border-radius: 99px;
  background: rgba(79,93,255,0.62);
  box-shadow: 0 0 0 4px rgba(79,93,255,0.12);
}
.flow-txt { font-weight: 900; font-size: 12px; color: rgba(15,23,42,0.76); }

.hero-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.kpi { padding: 12px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255,255,255,0.72); }
.kpi-num { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.kpi-txt { margin-top: 4px; font-size: 12px; color: rgba(15,23,42,0.64); }

.section { padding: 46px 0; }
.section.alt { background: rgba(255,255,255,0.40); border-top: 1px solid rgba(15,23,42,0.06); border-bottom: 1px solid rgba(15,23,42,0.06); }
.section h2 { margin: 0 0 16px; font-size: 30px; letter-spacing: -0.02em; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card {
  border-radius: 22px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 14px 30px rgba(15,23,42,0.08);
  padding: 16px;
}
.card-title { font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step {
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.78);
  box-shadow: 0 12px 26px rgba(15,23,42,0.07);
  padding: 14px;
}
.step-num {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(79,93,255,0.14);
  border: 1px solid rgba(79,93,255,0.20);
  font-weight: 900;
}
.step-title { margin-top: 10px; font-weight: 800; letter-spacing: -0.02em; }
.step-text { margin-top: 6px; font-size: 13px; line-height: 1.45; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cta {
  margin-top: 16px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(15,23,42,0.10);
  background: linear-gradient(180deg, rgba(79,93,255,0.10), rgba(124,92,255,0.06));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cta-title { font-weight: 900; letter-spacing: -0.02em; }

.auth { padding-top: 34px; }
.auth-card {
  max-width: 520px;
  margin: 0 auto;
  border-radius: 26px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: var(--shadow);
  padding: 18px;
}
.auth-card h1 { margin: 0; letter-spacing: -0.02em; }
.form { margin-top: 12px; display: grid; gap: 10px; }
.lbl { font-weight: 800; font-size: 13px; color: rgba(15,23,42,0.76); }
.inp {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.74);
  font-family: inherit;
  font-weight: 600;
}
.inp:focus { outline: none; box-shadow: var(--ring); border-color: rgba(79,93,255,0.40); }
.alert {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.18);
  color: rgba(127,29,29,0.92);
  font-weight: 700;
  font-size: 13px;
}
.alert.ok {
  background: rgba(16,185,129,0.10);
  border-color: rgba(16,185,129,0.18);
  color: rgba(6,95,70,0.92);
}

.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.inst { margin-top: 12px; display: grid; gap: 10px; }
.inst-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.72);
}
.inst-name { font-weight: 900; letter-spacing: -0.02em; }

.footer {
  padding: 26px 0;
  border-top: 1px solid rgba(15,23,42,0.08);
  background: rgba(251,251,255,0.55);
}
.footer-inner { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.footer-links { display: flex; gap: 12px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .nav { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 36px; }
  .steps { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: stretch; }
  .top-inner { flex-wrap: wrap; }
}
