:root {
  --bg: #181310;
  --bg-soft: #2b1d16;
  --panel: #2d2119cc;
  --stroke: #5a3e2d;
  --text: #ffdca8;
  --muted: #d2ab80;
  --accent: #ff972e;
  --accent-2: #ff5f2e;
  --ok: #ffd65c;
  --shadow: #140d09;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, #5d4737, var(--bg) 50%),
    radial-gradient(circle at 80% 10%, #4d3629, transparent 40%),
    linear-gradient(180deg, #211913, #15100d 60%);
  font-family: "JetBrains Mono", monospace;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  background-image: linear-gradient(to right, #ffffff11 1px, transparent 1px),
    linear-gradient(to bottom, #ffffff11 1px, transparent 1px);
  background-size: 22px 22px;
}

.bg-glow {
  position: fixed;
  width: 40vmax;
  height: 40vmax;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
  animation: drift 8s ease-in-out infinite alternate;
}

.bg-glow-a {
  top: -8vmax;
  right: -8vmax;
  background: #ff8b2a;
}

.bg-glow-b {
  bottom: -12vmax;
  left: -10vmax;
  background: #ff5a2a;
  animation-delay: -4s;
}

.page {
  position: relative;
  z-index: 1;
  width: min(980px, 92vw);
  margin: 2.2rem auto;
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--panel);
  border: 3px solid var(--stroke);
  box-shadow: 0 0 0 2px #24170f, 0 14px 24px -16px #000;
  border-radius: 6px;
  padding: 1rem;
}

.hero {
  text-align: center;
  padding-top: 1.4rem;
}

.badge {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  border: 2px solid #a26d40;
  color: var(--ok);
  background: #4e2c16;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
}

h1,
h2 {
  margin: 0;
  font-family: "Press Start 2P", monospace;
  line-height: 1.35;
  text-transform: uppercase;
  color: #ffeec2;
}

h1 {
  font-size: clamp(1.2rem, 2.4vw, 2rem);
}

h2 {
  font-size: clamp(0.82rem, 1.8vw, 1rem);
  margin-bottom: 0.85rem;
}

.subtitle {
  max-width: 66ch;
  margin: 0.85rem auto 1rem;
  color: var(--muted);
}

.subtitle code {
  color: #fff1cf;
}

.logo-wrap {
  margin: 1rem auto 0.9rem;
  border: 3px solid #704c37;
  background: linear-gradient(180deg, #2f1f18, #251911);
  padding: 0.6rem;
  width: min(860px, 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 0 2px #1a0f09;
}

.logo {
  display: block;
  width: min(760px, 100%);
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
  margin-inline: auto;
  transform: translateX(14px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 0.95rem;
  border: 2px solid #5f2f19;
  color: #2b1205;
  background: linear-gradient(180deg, var(--accent), #ff7f2e);
  text-decoration: none;
  font-family: "Press Start 2P", monospace;
  font-size: 0.62rem;
  transition: transform 120ms ease, filter 120ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-ghost {
  color: #ffd9ac;
  background: linear-gradient(180deg, #613622, #4a2a1b);
}

.section-text {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

pre {
  margin: 0.55rem 0 0.85rem;
  padding: 0.75rem;
  border: 2px solid #634430;
  background: #120d0bcc;
  overflow-x: auto;
}

.cmd-block {
  position: relative;
  margin-bottom: 0.4rem;
}

.cmd-block pre {
  margin: 0.55rem 0;
  padding-right: 3.2rem;
}

.copy-btn {
  position: absolute;
  top: 0.58rem;
  right: 0.58rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 2px solid #5f2f19;
  background: linear-gradient(180deg, #6f4027, #4f2d1c);
  color: #ffe2bc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #31180d;
  transition: transform 120ms ease, filter 120ms ease, color 120ms ease;
}

.copy-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.copy-btn.copied {
  background: linear-gradient(180deg, #ffab31, #ff7f2e);
  color: #2e1508;
}

.copy-btn.failed {
  background: linear-gradient(180deg, #b5492f, #8e2e1e);
  color: #ffe2bc;
}

.copy-icon {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
  image-rendering: pixelated;
  shape-rendering: crispEdges;
}

code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92rem;
}

.feature-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
  color: #ffdcb3;
}

.footer {
  text-align: center;
}

.links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.links a {
  color: #ffe2bc;
}

.footer p {
  margin: 0;
  color: #d0ae8a;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-2vmax, 1.2vmax) scale(1.08);
  }
}

@media (max-width: 680px) {
  .page {
    margin: 1rem auto 1.4rem;
  }

  .card {
    padding: 0.85rem;
  }

  code {
    font-size: 0.84rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .cmd-block {
    margin-bottom: 0.3rem;
  }

  .copy-btn {
    top: 0.14rem;
    right: 0.5rem;
    width: 1.85rem;
    height: 1.85rem;
  }

  .logo {
    transform: translateX(8px);
  }
}
