@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Outfit:wght@500;600;700&display=swap');

:root {
  --bg: #0b0c14;
  --surface: rgba(17, 19, 30, 0.92);
  --surface-strong: rgba(23, 27, 46, 0.96);
  --border: rgba(139, 92, 246, 0.24);
  --text: #cbd5e1;
  --muted: #94a3b8;
  --accent: #8b5cf6;
  --accent-2: #06b6d4;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 18% 15%, rgba(139, 92, 246, 0.18), transparent 45%),
    radial-gradient(circle at 82% 10%, rgba(6, 182, 212, 0.18), transparent 40%),
    linear-gradient(140deg, #090a14 0%, #10132a 50%, #0b0c14 100%);
  position: relative;
}

.bg-orb {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.orb-1 {
  top: -120px;
  right: -80px;
  background: rgba(139, 92, 246, 0.6);
}

.orb-2 {
  bottom: -140px;
  left: -120px;
  background: rgba(6, 182, 212, 0.5);
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.sidebar {
  background: linear-gradient(180deg, rgba(16, 18, 34, 0.98), rgba(10, 12, 24, 0.92));
  border-right: 1px solid rgba(139, 92, 246, 0.2);
  padding: 28px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.brand {
  margin-bottom: 26px;
  display: grid;
  gap: 6px;
}

.brand-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav a {
  display: block;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid rgba(139, 92, 246, 0.15);
  background: rgba(15, 23, 42, 0.55);
  transition: all 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: #e2e8f0;
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: var(--muted);
}

.sidebar-foot a {
  display: inline-block;
  margin-top: 6px;
  color: #fff;
  text-decoration: none;
}

.main {
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(10, 12, 24, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 2;
}

.topbar-title {
  font-weight: 600;
  color: var(--muted);
}

.topbar-link {
  text-decoration: none;
  color: #e2e8f0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.12);
}

.menu-btn {
  display: none;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0e16;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
}

.content {
  padding: 40px 36px 60px;
  max-width: 980px;
}

.doc-head h1 {
  margin: 0 0 12px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.doc-head p {
  margin: 0 0 28px;
  color: var(--muted);
}

.doc-body {
  background: var(--surface);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 18px;
  padding: 24px;
  line-height: 1.75;
  box-shadow: var(--shadow);
  white-space: pre-line;
}

.doc-body .card-grid {
  white-space: normal;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  display: block;
  text-decoration: none;
  background: var(--surface-strong);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border 0.2s ease;
}

.card h3 {
  margin: 0 0 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.35);
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    transform: translateX(-280px);
    transition: transform 0.25s ease;
    z-index: 5;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .content {
    padding: 32px 20px 50px;
  }
}
