:root {
  --bg: #06141c;
  --ink: #e7f4f2;
  --muted: #8aa6ad;
  --line: rgba(120, 190, 188, .22);
  --cyan: #1ad7c4;
  --mint: #3dff9a;
  --card: rgba(10, 32, 44, .82);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; color-scheme: dark; scroll-padding-top: 78px; }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
}
::selection { background: rgba(26, 215, 196, .28); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.skip {
  position: absolute; left: 12px; top: 8px; z-index: 40;
  padding: 8px 12px; border-radius: 10px; background: #12323a; color: var(--ink);
  transform: translateY(-120%);
}
.skip:focus { transform: none; }
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(880px 480px at 12% -8%, rgba(26, 215, 196, .18), transparent 58%),
    radial-gradient(640px 420px at 92% 6%, rgba(61, 255, 154, .08), transparent 52%),
    linear-gradient(180deg, #07151e 0%, #06141c 42%, #081820 100%);
}
.frame { position: relative; z-index: 1; width: min(760px, calc(100% - 32px)); margin: 0 auto; }
header.site {
  position: sticky; top: 0; z-index: 20;
  isolation: isolate;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.15);
  border-bottom: 1px solid var(--line);
}
header.site .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 12px 0;
}
header.site::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(6, 20, 28, .55);
  opacity: 0; transition: opacity .3s var(--ease);
}
header.site.is-scrolled::before { opacity: 1; }
header.site.is-scrolled { border-bottom-color: rgba(26, 215, 196, .38); }
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 1;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  pointer-events: none;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: .16em; font-size: 12px;
}
.brand img { width: 34px; height: 34px; transition: transform .35s var(--ease); }
.brand:hover { color: var(--ink); }
.brand:hover img { transform: scale(1.06); }
.tg {
  display: inline-flex; align-items: center; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 12px; color: var(--ink); font-size: 13px; font-weight: 650;
  text-decoration: none; background: rgba(18, 50, 58, .55);
  transition: border-color .2s var(--ease), color .2s, transform .2s var(--ease);
}
.tg:hover { border-color: var(--cyan); color: var(--mint); transform: translateY(-1px); }
main.doc {
  margin: 28px 0 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
main.doc.is-split {
  margin: 28px 0 8px;
  background: none;
  border: 0;
  padding: 0;
  box-shadow: none;
}
.lead-block, .block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px 8px;
  margin: 0 0 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
.lead-block { padding-bottom: 18px; }
.kicker, .lead-block > .muted:first-child {
  margin: 0 0 10px; color: var(--cyan); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 700;
}
h1 {
  margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.05;
  letter-spacing: -.035em; font-weight: 750;
}
h2 {
  position: relative; margin: 4px 0 10px; padding-bottom: 8px;
  font-size: 18px; letter-spacing: -.02em;
}
h2::after {
  content: "";
  position: absolute; left: 0; bottom: 0; width: 72px; height: 2px; border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  transform: scaleX(0); transform-origin: 0 50%;
}
html.js.reveal-ready .block.reveal.in h2::after {
  transform: scaleX(1);
  transition: transform .55s var(--ease);
}
p, li { font-size: 15px; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 1.15rem; }
li + li { margin-top: 8px; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--mint); }
footer {
  padding: 8px 0 36px; color: var(--muted); font-size: 13px;
}
footer nav {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
footer a { color: var(--muted); }
footer a:hover { color: var(--mint); }
footer a[aria-current="page"] { color: var(--ink); }
html.js.reveal-ready .reveal { opacity: 0; transform: translate3d(0, 14px, 0); }
html.js.reveal-ready .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-progress { display: none; }
  .brand img, .tg, header.site::before, h2::after { animation: none; transition: none; transform: none; }
  html.js.reveal-ready .reveal { opacity: 1; transform: none; }
}
