:root {
  --bg: #0c120d;
  --panel: rgba(18, 28, 20, 0.9);
  --ink: #d8e0c8;
  --muted: #94a286;
  --line: rgba(126, 148, 107, 0.28);
  --accent: #b6d05d;
  --accent-2: #6fa88d;
  --soft: rgba(86, 110, 70, 0.22);
  --code: #0d1610;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --content: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(182, 208, 93, 0.08), transparent 18%),
    radial-gradient(circle at 78% 14%, rgba(111, 168, 141, 0.08), transparent 22%),
    radial-gradient(circle at 26% 72%, rgba(59, 81, 51, 0.22), transparent 24%),
    radial-gradient(circle at 82% 78%, rgba(84, 96, 61, 0.18), transparent 22%),
    linear-gradient(135deg, rgba(47, 61, 39, 0.24) 0 16%, transparent 16% 32%, rgba(61, 74, 48, 0.14) 32% 48%, transparent 48% 64%, rgba(32, 45, 29, 0.18) 64% 80%, transparent 80% 100%),
    linear-gradient(180deg, #0f1711 0%, var(--bg) 100%);
  line-height: 1.55;
  overflow: hidden;
}

a {
  color: var(--accent-2);
}

code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  background: rgba(44, 52, 39, 0.45);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

pre {
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  overflow-x: auto;
  background: var(--code);
  color: #eef5dc;
  border: 1px solid rgba(182, 208, 93, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

pre code {
  background: transparent;
  padding: 0;
}

.shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  max-width: var(--content);
  margin: 0 auto;
  padding: 24px;
  gap: 24px;
  height: 100vh;
}

.sidebar {
  align-self: stretch;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(25, 39, 27, 0.96), rgba(14, 23, 16, 0.94));
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.brand {
  margin-bottom: 22px;
}

.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.4rem;
}

.brand h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 0.95;
}

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

.nav {
  display: grid;
  gap: 0.2rem;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.nav a:hover {
  background: var(--soft);
  color: var(--accent);
  border-color: rgba(182, 208, 93, 0.3);
  box-shadow: inset 0 0 0 1px rgba(182, 208, 93, 0.08);
  transform: translateX(2px);
}

.main {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  scroll-behavior: smooth;
}

.main section[id] {
  scroll-margin-top: 24px;
}

.hero,
.section,
.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero {
  padding: 30px;
  margin-bottom: 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.hero h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
}

.hero p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 62ch;
}

.hero-card {
  padding: 18px;
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(182, 208, 93, 0.1), rgba(111, 168, 141, 0.1)),
    rgba(18, 29, 21, 0.94);
  border: 1px solid rgba(182, 208, 93, 0.24);
}

.hero-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.hero-card li + li {
  margin-top: 0.4rem;
}

.section {
  padding: 26px 28px;
  margin-bottom: 24px;
}

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

.section h3 {
  margin: 1.8rem 0 0.7rem;
  font-size: 1.15rem;
}

.section h4 {
  margin: 1.2rem 0 0.5rem;
  font-size: 1rem;
}

.section p:first-child,
.section h2:first-child,
.section h3:first-child {
  margin-top: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mini-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(21, 34, 24, 0.84);
}

.mini-card h4 {
  margin-top: 0;
}

.steps,
.bullets {
  padding-left: 1.2rem;
}

.steps li + li,
.bullets li + li {
  margin-top: 0.4rem;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0.65rem;
  vertical-align: top;
}

th {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.callout {
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(26, 39, 28, 0.98) 0%, rgba(18, 28, 20, 0.96) 100%);
  margin: 1rem 0 0;
}

.callout strong {
  color: var(--accent);
}

.hero h2,
.section h2,
.section h3,
.section h4,
.brand h1 {
  font-family: "Arial Black", Impact, "Trebuchet MS", sans-serif;
  letter-spacing: 0.02em;
}

.hero h2,
.section h2 {
  color: #e5f0c8;
}

.section h3,
.section h4 {
  color: #bfd780;
}

.hero,
.section,
.sidebar,
.mini-card,
.hero-card,
.callout,
pre {
  position: relative;
}

.hero::before,
.section::before,
.sidebar::before,
.mini-card::before,
.hero-card::before,
.callout::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(214, 236, 167, 0.05);
}

.footer {
  padding: 16px 4px 40px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  html,
  body {
    height: auto;
  }

  body {
    overflow: auto;
  }

  .shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .sidebar {
    position: static;
    overflow: visible;
  }

  .hero-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav,
  .main {
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 14px;
    gap: 16px;
  }

  .hero,
  .section {
    padding: 20px 18px;
  }

  .brand h1 {
    font-size: 1.7rem;
  }
}
