:root {
  --bg: #f7f8ff;
  --panel: #ffffff;
  --panel-soft: #f6f7ff;
  --ink: #111936;
  --muted: #6f7895;
  --line: #e4e8f6;
  --nav: #071329;
  --nav-2: #101d3f;
  --primary: #6258f7;
  --primary-2: #7b5cff;
  --cyan: #42c7ff;
  --green: #21c783;
  --orange: #ff9a3d;
  --danger: #e24a63;
  --shadow: 0 18px 45px rgba(44, 51, 94, 0.11);
  --shadow-soft: 0 12px 28px rgba(44, 51, 94, 0.08);
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: radial-gradient(circle at 58% 0%, #ffffff 0, var(--bg) 520px);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(99, 88, 247, 0.32), transparent 220px),
    linear-gradient(180deg, #07142f 0%, #07111f 100%);
  color: #edf2ff;
  box-shadow: 12px 0 36px rgba(7, 17, 31, 0.12);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  color: transparent;
  background: linear-gradient(135deg, #56b6ff, #7d6dff 48%, #b976ff);
  background-clip: text;
  font-size: 42px;
  font-weight: 950;
  line-height: 1;
}
.brand strong,
.brand small {
  display: block;
}
.brand strong {
  font-size: 18px;
  line-height: 1.05;
}
.brand small {
  color: #88a0df;
  font-size: 13px;
  font-weight: 700;
}
.nav-list {
  display: grid;
  gap: 8px;
}
.nav-item,
.primary-button,
.ghost-button,
.tool-tab,
.theme-toggle,
.profile-button,
.bell-button {
  border: 0;
  border-radius: 12px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  background: transparent;
  color: #d4dbf5;
  text-align: left;
  font-weight: 650;
}
.nav-item:hover,
.nav-item.active {
  background: linear-gradient(135deg, #5d63ff, #7458f3);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(87, 87, 240, 0.28);
}
.icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: currentColor;
}
.sidebar-card {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(69, 87, 166, 0.28), rgba(29, 44, 91, 0.32));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.sidebar-card strong,
.sidebar-card p {
  display: block;
  margin: 0 0 10px;
}
.sidebar-card p {
  color: #aebbe6;
  font-size: 13px;
  line-height: 1.55;
}
.sidebar-card .primary-button {
  width: 100%;
  min-height: 44px;
}
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.04);
  color: #cdd7ff;
  text-align: left;
}
.main-area {
  min-width: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 74px;
  padding: 18px 28px 14px;
  background: rgba(247, 248, 255, 0.9);
  backdrop-filter: blur(18px);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  color: #7a84a8;
}
.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}
.search-box kbd {
  padding: 2px 6px;
  border-radius: 7px;
  background: #f2f4ff;
  color: #8b93b4;
  font-size: 12px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bell-button {
  position: relative;
  width: 42px;
  height: 42px;
  background: transparent;
  color: #1f2a62;
  font-size: 24px;
}
.bell-button span {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #ff415c;
  box-shadow: 0 0 0 3px #ffffff;
}
.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.profile-button strong,
.profile-button small {
  display: block;
}
.profile-button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd6b3, #7c5cff);
  color: #ffffff;
  font-weight: 900;
}
.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}
#app {
  max-width: 1280px;
  outline: none;
  margin: 0 auto;
  padding: 0 28px 26px;
}
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.content-stack,
.right-rail,
.panel-stack {
  display: grid;
  gap: 22px;
}
.hero-panel {
  position: relative;
  min-height: 378px;
  overflow: hidden;
  padding: 42px 36px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 73% 35%, rgba(106, 198, 255, 0.44), transparent 185px),
    linear-gradient(135deg, #252f8f 0%, #13205a 45%, #5b3ff2 100%);
  color: #ffffff;
  box-shadow: var(--shadow);
}
.hero-panel h1 {
  position: relative;
  z-index: 2;
  max-width: 470px;
  margin: 0 0 20px;
  font-size: clamp(34px, 4.3vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}
.hero-panel p {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin: 0 0 28px;
  color: #cdd8ff;
  font-size: 16px;
  line-height: 1.72;
}
.hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.hero-progress {
  position: relative;
  z-index: 2;
  max-width: 350px;
  color: #dce5ff;
  font-size: 13px;
}
.ai-visual {
  position: absolute;
  right: 34px;
  top: 42px;
  width: 340px;
  height: 285px;
  pointer-events: none;
}
.ai-cube {
  position: absolute;
  inset: 78px 58px 10px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(93, 127, 255, 0.72), rgba(86, 229, 255, 0.24));
  border: 1px solid rgba(207, 231, 255, 0.38);
  box-shadow: 0 34px 90px rgba(74, 119, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transform: perspective(700px) rotateX(58deg) rotateZ(-28deg);
}
.ai-brain {
  position: absolute;
  left: 102px;
  top: 40px;
  display: grid;
  place-items: center;
  width: 138px;
  height: 118px;
  border-radius: 48% 52% 45% 55%;
  background: radial-gradient(circle at 35% 25%, #ffffff, #84a3ff 38%, #695aff 70%);
  color: #ffffff;
  font-size: 48px;
  box-shadow: 0 0 42px rgba(135, 174, 255, 0.9);
}
.ai-orbit {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ddecff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}
.ai-orbit:nth-child(3) { left: 46px; top: 90px; }
.ai-orbit:nth-child(4) { right: 18px; top: 58px; }
.ai-orbit:nth-child(5) { right: 36px; bottom: 52px; }
.ai-orbit:nth-child(6) { left: 56px; bottom: 38px; }
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  font-weight: 800;
}
.primary-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(93, 88, 247, 0.28);
}
.primary-button:hover,
.ghost-button:hover,
.profile-button:hover,
.bell-button:hover {
  transform: translateY(-1px);
}
.ghost-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: #33406a;
}
.hero-panel .ghost-button {
  border: 0;
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.section-title h2,
.section-title h3 {
  margin: 0;
}
.section-title p,
.muted {
  color: var(--muted);
  line-height: 1.55;
}
.link-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 800;
}
.progress-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8ebfa;
}
.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
}

