﻿:root {
  --brand: #20c997;
  --brand-2: #2aa7ff;
  --brand-3: #78ffb9;
  --bg: #071018;
  --bg-2: #08141f;
  --panel: rgba(255, 255, 255, 0.05);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #eaf2f7;
  --muted: rgba(233, 242, 247, 0.75);
  --max: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(1000px 500px at 10% -15%, rgba(42, 167, 255, 0.18), transparent 60%),
    radial-gradient(800px 400px at 90% 5%, rgba(32, 201, 151, 0.15), transparent 58%),
    radial-gradient(1000px 500px at 50% 120%, rgba(120, 255, 185, 0.07), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(7, 16, 24, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 0.94rem;
}

.brand-dot {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(10px 10px at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, rgba(42, 167, 255, 0.92), rgba(32, 201, 151, 0.82));
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.52rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: 0.15s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.btn-primary {
  border: none;
  color: #05131d;
  background: linear-gradient(135deg, rgba(32, 201, 151, 0.98), rgba(42, 167, 255, 0.88));
}

.hero {
  padding: 2.2rem 0 1.2rem;
}

.hero-card {
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background:
    radial-gradient(520px 180px at 18% 0%, rgba(42, 167, 255, 0.15), transparent 62%),
    radial-gradient(420px 180px at 92% 15%, rgba(32, 201, 151, 0.12), transparent 62%),
    var(--panel);
  padding: 1.25rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.eyebrow {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-3);
}

h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  letter-spacing: -0.02em;
}

.hero-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.meta {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.meta span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  font-size: 0.74rem;
  padding: 0.32rem 0.55rem;
}

.doc-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0.8rem;
  padding: 1rem 0 2rem;
}

.toc,
.document {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: var(--panel);
}

.toc {
  position: sticky;
  top: 92px;
  height: fit-content;
  padding: 0.9rem;
}

.toc h2 {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
}

.toc nav {
  display: grid;
  gap: 0.35rem;
}

.toc a {
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
}

.toc a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.toc a.active {
  color: var(--text);
  background: rgba(42, 167, 255, 0.16);
  border: 1px solid rgba(42, 167, 255, 0.3);
}

.document {
  padding: 1rem;
}

.document section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.9rem;
  margin-bottom: 0.7rem;
  transition: 0.2s ease;
}

.document section:hover {
  border-color: rgba(42, 167, 255, 0.28);
  background: rgba(255, 255, 255, 0.045);
}

.document h2 {
  margin: 0;
  font-size: 1rem;
}

.document p,
.document li {
  color: var(--muted);
  font-size: 0.87rem;
}

.document ul,
.document ol {
  margin: 0.55rem 0 0;
  padding-left: 1rem;
}

.highlight {
  border-left: 3px solid var(--brand);
  padding-left: 0.7rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.table th,
.table td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.55rem;
  text-align: left;
}

.table th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.note {
  font-size: 0.8rem;
  color: rgba(233, 242, 247, 0.85);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.15rem 0 1.8rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-wrap p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer-links a {
  padding: 0.34rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.74rem;
}

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

  .toc {
    position: static;
  }
}

@media (max-width: 980px) {
  .nav {
    align-items: start;
    flex-direction: column;
    padding: 0.55rem 0;
  }

  .actions {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .btn {
    flex: 0 0 auto;
  }
}

@media (max-width: 760px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .nav {
    min-height: 68px;
    align-items: start;
    flex-direction: column;
    padding: 0.6rem 0;
  }

  .brand {
    font-size: 0.86rem;
  }

  .brand-dot {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .actions {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    justify-content: flex-start;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .actions::-webkit-scrollbar {
    height: 6px;
  }

  .actions::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
  }

  .btn {
    font-size: 0.76rem;
    padding: 0.48rem 0.72rem;
    flex: 0 0 auto;
  }
}

@media print {
  .topbar,
  .toc,
  .footer,
  .actions {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .hero-card,
  .document,
  .document section {
    border: 1px solid #ddd;
    box-shadow: none;
    background: #fff;
  }

  .document p,
  .document li,
  .note {
    color: #222;
  }
}
