:root {
  --font: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --font-weight: 700;
  --font-weight-semibold: 600;
  --font-weight-bold: 800;
  --bg: #070707;
  --bg-2: #141414;
  --fg: #f2f2f2;
  --muted: #adadad;
  --line: #2e2e2e;
  --line-strong: #414141;
  --code-bg: #161619;
  --c-g: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 38%, rgba(255, 255, 255, 0) 72%);
  --box-glow: 0 0 24px rgba(196, 196, 196, 0.596), 0 0 40px rgba(212, 212, 212, 0.678);
  --border: 1px solid var(--line);
  --border-strong: 1px solid var(--line-strong);
  --transition-fast: 0.12s ease;
  --transition-medium: 0.15s ease;
  --transition-slow: 0.22s ease;
  --transition-motion: 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 0 12px rgba(255, 255, 255, 0.2);
  --paint-url: url("https://cdn.7tv.app/paint/01JPNDC5W5S8MJ4T20GBANNPW4/layer/01JWSBH2HKVWQ6PBNF0992JM9T/4x.webp");
  --z-header: 100;
  --z-progress: 200;
  --z-top: 150;
  --z-overlay: 9999;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

@keyframes bg-scrolling {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(50px, 50px);
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #000;
  color: var(--fg);
  font-family: var(--font);
  font-weight: var(--font-weight);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -50px;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 50px 50px;
  background-repeat: repeat;
  animation: bg-scrolling 1s linear infinite;
  will-change: transform;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  pointer-events: none;
}

a {
  color: inherit;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

#progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: var(--z-progress);
  width: 0;
  height: 2px;
  background: var(--fg);
}

#nuhUh {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: var(--z-overlay);
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: var(--border-strong);
  border-radius: 0;
  background: var(--bg);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -30px) scale(0.96);
  transition: opacity var(--transition-slow), transform var(--transition-motion);
}

#nuhUh.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

#nuhUh img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.cursor-glow {
  position: fixed;
  z-index: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--c-g);
  filter: blur(14px);
  opacity: 0.7;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

header.top {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: var(--font-weight);
  letter-spacing: 0.2px;
}

.brand img {
  position: relative;
  top: 1px;
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

#headerRotator {
  transform-origin: center;
  transition: transform 0.3s ease-out, margin-left 0.3s ease-out;
}

.btn {
  display: inline-block;
  padding: 7px 14px;
  border: var(--border-strong);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium), transform var(--transition-medium);
}

.btn:hover {
  border-color: var(--fg);
}

.btn.solid {
  position: relative;
  border-width: 2px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.27);
  color: var(--fg);
  background: transparent;
}

html.paint-ready .hero h1,
html.paint-ready .btn.solid {
  background-image: var(--paint-url);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

html.paint-ready .btn.solid {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  border-image-source: var(--paint-url);
  border-image-slice: 1;
  border-image-width: 1;
  border-image-outset: 0;
  border-image-repeat: stretch;
}

html.paint-ready .btn.solid:hover {
  position: relative;
  box-shadow: var(--box-glow);
  background-color: transparent;
  transform: translateY(-1px);
}

html.paint-ready .btn.solid:hover::before {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid transparent;
  border-image: var(--paint-url) 1 stretch;
  border-image-slice: 1;
  pointer-events: none;
}

.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  max-width: 1160px;
  margin: 0 auto;
}

nav.side {
  position: sticky;
  top: 61px;
  align-self: start;
  height: calc(100vh - 61px);
  padding: 40px 12px;
  overflow-y: auto;
}

nav.side a {
  display: block;
  padding: 7px 14px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

nav.side a:hover,
nav.side a.active {
  color: var(--fg);
}

nav.side a.active {
  border-left-color: var(--fg);
}

main {
  min-width: 0;
  padding: 56px 56px 140px;
  border-left: 1px solid var(--line);
}

main section:not(#overview),
footer {
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.45s ease;
}

body.at-top main section:not(#overview),
body.at-top footer {
  opacity: 0.55;
  transform: translateY(10px);
  pointer-events: none;
}

body.at-top footer {
  opacity: 0.45;
}

body:not(.at-top) main section:not(#overview),
body:not(.at-top) footer {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  box-shadow: none;
}

.hero {
  padding: 8px 0 56px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  display: inline-block;
  margin: 0 0 20px;
  font-size: 44px;
  font-weight: var(--font-weight-bold);
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--fg);
}


.hero-icon {
  display: inline-block;
  width: 72px;
  height: 72px;
  margin-left: 10px;
  object-fit: contain;
  vertical-align: middle;
}

.hero p {
  max-width: 620px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 17px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

section {
  margin-bottom: 76px;
  scroll-margin-top: 90px;
}

section > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--fg);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
}

section > h2 img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

section#usage > h2 img,
section#limitations > h2 img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

section#usage > h2 img,
section#commands > h2 img {
  transform: scaleX(-1);
}

#links {
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--bg-2);
  box-shadow: var(--shadow-soft);
}

#links h2 {
  margin-bottom: 18px;
}

.features,
.steps {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.features {
  grid-template-columns: 1fr 1fr;
}

.feature,
.step {
  padding: 26px 24px;
  background: var(--bg);
}

.feature h3,
.step h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: var(--font-weight);
}

.feature p,
.step p,
ul.plain li,
.guide-step span {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 24px;
}

.step .num {
  flex: 0 0 auto;
  width: 28px;
  color: var(--line-strong);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.step h3 {
  margin: 0 0 3px;
}

.step a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cmd-search {
  width: 100%;
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--bg-2);
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
}

.cmd-search::placeholder {
  color: var(--muted);
}

.cmd-search:focus {
  outline: none;
  border-color: var(--fg);
}

.cmd-heading {
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-intro {
  margin: -8px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.section-intro strong {
  color: var(--fg);
}

.section-intro a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cmd-list {
  border: 1px solid var(--line);
}

.cmd {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.cmd:last-child {
  border-bottom: none;
}

code {
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: var(--code-bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 400;
}

.cmd .desc {
  flex: 1;
  color: var(--muted);
  font-size: 14px;
}

.copy {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.copy:hover {
  color: var(--fg);
  border-color: var(--fg);
  box-shadow: var(--shadow-hover);
}

.copy.done {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

details {
  margin-top: 20px;
  border: 1px solid var(--line);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  list-style: none;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 700;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--muted);
  font-size: 18px;
}

details[open] summary {
  border-bottom: 1px solid var(--line);
}

details[open] summary::after {
  content: "–";
}

.guide-body {
  padding: 4px 18px 18px;
}

.guide-step {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.guide-step:last-child {
  border-bottom: none;
}

.guide-step strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14.5px;
}

.guide-step code {
  display: inline-block;
  margin-top: 6px;
}

.guide-step img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 14px;
  border: 1px solid var(--line);
}

ul.plain {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  list-style: none;
}

ul.plain li {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

ul.plain li:last-child {
  border-bottom: none;
}

ul.plain li strong {
  color: var(--fg);
  font-weight: 700;
}

footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 34px 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 20px;
}

footer .links a {
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}

footer .links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer .disc {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

#toTop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-top);
  display: none;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#toTop:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

#toTop::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("https://cdn.7tv.app/emote/01GJFYF34R0005HY7D89CG9FAH/4x.avif");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transform: scaleX(-1);
}

#toTop.show {
  display: grid;
}

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

  nav.side {
    display: none;
  }

  main {
    padding: 36px 22px 110px;
    border-left: none;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 33px;
  }

  footer {
    padding: 28px 22px;
  }

  .cmd {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
