/* app.css */
:root {
  --bg: #070b17;
  --bg-soft: #0d1324;
  --panel: rgba(16, 24, 44, 0.88);
  --panel-strong: rgba(12, 18, 34, 0.96);
  --panel-hover: rgba(24, 34, 60, 0.96);
  --line: rgba(111, 140, 255, 0.18);
  --line-strong: rgba(111, 140, 255, 0.35);

  --text: #ecf2ff;
  --muted: #9caed6;
  --muted-2: #7486ad;

  --primary: #4da3ff;
  --primary-2: #6b7cff;
  --secondary: #8b5cf6;
  --cyan: #31d7ff;
  --green: #2dd4bf;
  --yellow: #fbbf24;
  --red: #fb7185;

  --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 15px 35px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 8px 18px rgba(0, 0, 0, 0.2);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --sidebar-width: 270px;
  --topbar-height: 74px;
}

html,
body {
  background:
    radial-gradient(circle at top left, rgba(77, 163, 255, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 24%),
    linear-gradient(180deg, #050813 0%, #070b17 100%);
  color: var(--text);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

body {
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 85%);
  opacity: 0.2;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

.page-content {
  padding: 26px;
}

.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding-top: var(--topbar-height);
}

.content-inner {
  padding: 26px;
}

h1,
h2,
h3,
h4 {
  color: #f8fbff;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

h3 {
  font-size: 1.05rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

small {
  color: var(--muted-2);
}

a {
  transition: color .2s ease, opacity .2s ease;
}

a:hover {
  color: #fff;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-title p {
  max-width: 780px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hidden {
  display: none !important;
}

.text-muted {
  color: var(--muted);
}

.text-center {
  text-align: center;
}

.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .main-content {
    margin-left: 0;
    padding-top: calc(var(--topbar-height) + 8px);
  }

  .content-inner,
  .page-content {
    padding: 18px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
  }
}