:root {
  --bg-900: #050a16;
  --bg-800: #0b1428;
  --panel: rgba(10, 20, 40, 0.86);
  --panel-soft: rgba(9, 19, 36, 0.66);
  --line: rgba(132, 164, 214, 0.32);
  --text: #e7eefb;
  --muted: #a2b4d3;
  --brand: #35b9ff;
  --brand-soft: #7fd3ff;
  --ok: #5bdf9b;
  --scroll-track: #050a16;
  --scroll-thumb: #334155;
  --scroll-thumb-hover: #475569;
  --scroll-glow: rgba(56, 189, 248, 0.36);
  --shell-width: min(1140px, calc(100% - 40px));
}

html {
  min-height: 100%;
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", Tahoma, sans-serif;
  background: radial-gradient(circle at 8% 14%, #10213d 0%, var(--bg-800) 42%, var(--bg-900) 100%);
  display: flex;
  flex-direction: column;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--scroll-track);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #334155, #263244);
  border: 2px solid var(--scroll-track);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--scroll-glow);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--scroll-thumb-hover), #334155);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 0.5px, transparent 0.5px);
  background-size: 4px 4px;
  pointer-events: none;
}

.page {
  width: var(--shell-width);
  min-height: 100vh;
  margin: 0 auto;
  padding: 96px 0 104px;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  z-index: 20;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  margin-bottom: 0;
  background: rgba(9, 18, 36, 0.76);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.brand-logo {
  display: block;
  width: 150px;
  height: auto;
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.nav-links a,
.footer-links a,
.back-link {
  color: #d6ebff;
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover,
.back-link:hover {
  color: var(--brand-soft);
}

.content-panel {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 4vw, 36px);
  background: linear-gradient(145deg, var(--panel) 0%, rgba(8, 16, 30, 0.9) 100%);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(91, 223, 155, 0.35);
  color: var(--ok);
  background: rgba(91, 223, 155, 0.11);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 13px rgba(91, 223, 155, 0.8);
}

h1 {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 26px 0 8px;
  font-size: 1.18rem;
  letter-spacing: 0;
}

p,
li {
  color: var(--muted);
  line-height: 1.65;
}

ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.updated {
  margin: 0 0 22px;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 16px;
  color: #03162a;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-soft) 100%);
  box-shadow: 0 8px 22px rgba(53, 185, 255, 0.3);
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  margin-top: auto;
  border-top: 1px solid rgba(132, 164, 214, 0.25);
  padding: 10px 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(9, 18, 36, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.22);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.2;
  text-align: center;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
}

.footer-version {
  font-size: 0.78rem;
  opacity: 0.86;
}

@media (max-width: 720px) {
  .page {
    --shell-width: min(1140px, calc(100% - 28px));
    padding-top: 88px;
    padding-bottom: 136px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    width: 126px;
  }
}