:root {
  --bg: #0a0a0a;
  --bg-elevated: rgba(255, 255, 255, 0.04);
  --bg-sidebar: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --text-muted: #9aa5b1;
  --primary: #0a84ff;
  --primary-soft: rgba(10, 132, 255, 0.15);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --content-width: 920px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(circle at top, rgba(10, 132, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #0c0c0c 0%, #090909 100%);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px;
  border-right: 1px solid var(--border);
  background: var(--bg-sidebar);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.brand img { width: 36px; height: 36px; }

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title { font-size: 16px; font-weight: 700; }
.brand-subtitle { color: var(--text-muted); font-size: 13px; }

.nav-title {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  margin-bottom: 12px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: 160ms ease;
  border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--bg-elevated);
  border-color: var(--border);
}

.sidebar-footer { margin-top: 28px; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1493ff 0%, #0a84ff 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(10, 132, 255, 0.28);
}

.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 20;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.menu-button {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

.content { min-width: 0; }

.content-shell {
  width: min(100%, calc(var(--content-width) + 96px));
  margin: 0 auto;
  padding: 48px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.12);
  filter: blur(10px);
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #8cc4ff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-title {
  margin: 18px 0 10px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.04;
}

.hero-text {
  margin: 0;
  max-width: 680px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.article-card {
  padding: 36px 38px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: var(--shadow);
}

.doc-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}

.doc-content h2,
.doc-content h3 {
  margin: 32px 0 14px;
  line-height: 1.25;
}

.doc-content p { margin: 0 0 18px; }

.doc-content ol,
.doc-content ul {
  margin: 0 0 18px;
  padding-left: 28px;
}

.doc-content li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.doc-content strong { font-weight: 700; color: #fff; }
.doc-content em { font-style: italic; }

.doc-content a {
  color: #7ec0ff;
  text-decoration: underline;
  text-decoration-color: rgba(126, 192, 255, 0.45);
  text-underline-offset: 3px;
}

.doc-content kbd {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.doc-content blockquote {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-left: 3px solid rgba(10,132,255,0.7);
  border-radius: 0 14px 14px 0;
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
}

.doc-content hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

.doc-frame {
  margin: 18px 0 26px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.doc-frame img {
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 14px;
}

.overlay { display: none; }

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

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(86vw, 320px);
    z-index: 30;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  body.menu-open .sidebar { transform: translateX(0); }
  .mobile-topbar { display: flex; }
  .content-shell { padding: 24px 18px 40px; }
  .hero-card { padding: 22px; }
  .article-card { padding: 24px 20px; }

  .overlay {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(0, 0, 0, 0.55);
  }

  body.menu-open .overlay { display: block; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 30px; }
  .hero-text,
  .doc-content { font-size: 16px; }
}
