:root {
  --bg: #020a13;
  --surface: rgba(9, 25, 42, 0.88);
  --surface-soft: rgba(12, 34, 56, 0.74);
  --text: #f6fbff;
  --muted: #9eb0c4;
  --brand-navy: #071728;
  --accent-blue: #1188ff;
  --accent-cyan: #48d8ff;
  --border: rgba(106, 175, 235, 0.24);
  --radius: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", "Nunito Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 72% 16%, rgba(17, 136, 255, 0.2), transparent 28%),
    radial-gradient(circle at 8% 0%, rgba(72, 216, 255, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(2, 10, 19, 0.95), rgba(3, 13, 24, 0.98)),
    var(--bg);
  min-height: 100%;
}

.app-shell {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: rgba(3, 13, 24, 0.88);
  padding: 28px 22px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 28px;
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(246, 251, 255, 0.78);
  background: radial-gradient(circle at 65% 35%, rgba(72, 216, 255, 0.34), rgba(7, 23, 40, 0.86));
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 0 26px rgba(17, 136, 255, 0.28);
}

.brand strong {
  display: block;
  letter-spacing: 0.25em;
  font-size: 0.95rem;
}

.brand span {
  color: var(--muted);
  font-size: 0.82rem;
}

.side-nav {
  display: grid;
  gap: 10px;
}

.side-nav a {
  text-decoration: none;
  color: #c5d2df;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.side-nav a:hover {
  transform: translateX(3px);
  background: rgba(17, 136, 255, 0.12);
  border-color: var(--border);
}

.side-nav a.active {
  background: linear-gradient(135deg, var(--accent-blue), #0f67d7);
  color: #fff;
  box-shadow: 0 10px 28px rgba(17, 136, 255, 0.26);
}

.sidebar-meta {
  margin-top: auto;
  padding-top: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-meta time {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.main-pane {
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 28px 38px 12px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 800;
}

.topbar h1 {
  margin: 6px 0 0;
  font-size: clamp(1.6rem, 2.3vw, 2.3rem);
}

.topbar-link {
  text-decoration: none;
  color: var(--text);
  background: rgba(9, 25, 42, 0.76);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}

.content {
  padding: 16px 38px 36px;
  animation: reveal 420ms ease;
  position: relative;
  z-index: 1;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.doc-article {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 28px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background:
    linear-gradient(140deg, rgba(9, 25, 42, 0.96), rgba(7, 21, 36, 0.88) 48%, rgba(6, 31, 55, 0.76)),
    radial-gradient(circle at 78% 18%, rgba(17, 136, 255, 0.18), transparent 36%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h2 {
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
}

.hero p {
  color: var(--muted);
  max-width: 76ch;
}

.kicker {
  margin: 0;
  color: var(--accent-cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-cta,
.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #0f67d7);
  color: #fff;
  box-shadow: 0 12px 28px rgba(17, 136, 255, 0.24);
}

.btn-muted {
  background: rgba(9, 25, 42, 0.72);
  border-color: var(--border);
  color: var(--text);
}

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

.doc-card {
  background: linear-gradient(145deg, rgba(11, 31, 51, 0.9), rgba(7, 21, 36, 0.9));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  min-height: 190px;
  box-shadow: var(--shadow);
}

.doc-card h3 {
  margin-top: 0;
}

.doc-card p {
  color: var(--muted);
  min-height: 70px;
}

.doc-card a {
  text-decoration: none;
  color: var(--accent-cyan);
  font-weight: 700;
}

.doc-article {
  max-width: 980px;
}

.doc-article .lead {
  font-size: 1.08rem;
  color: var(--muted);
}

.doc-article h2,
.doc-article h3 {
  margin-top: 1.8em;
}

.doc-article table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1.2rem;
}

.doc-article th,
.doc-article td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.doc-article th {
  background: var(--surface-soft);
}

.doc-article img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-top: 12px;
}

.callout {
  border-radius: 12px;
  border: 1px solid;
  padding: 14px 16px;
  margin: 18px 0;
}

.callout strong {
  display: block;
  margin-bottom: 6px;
}

.callout-info {
  border-color: rgba(39, 188, 215, 0.5);
  background: rgba(39, 188, 215, 0.12);
}

.callout-warn {
  border-color: rgba(72, 216, 255, 0.48);
  background: rgba(17, 136, 255, 0.12);
}

#TableOfContents {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--surface-soft);
  margin-bottom: 20px;
}

.doc-list ul {
  list-style: none;
  padding: 0;
}

.doc-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.doc-list a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 700;
}

.faq-list {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-answer {
  padding: 14px 16px 16px;
}

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

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }

  .topbar,
  .content {
    padding-left: 20px;
    padding-right: 20px;
  }
}
