:root {
  color-scheme: dark;
  --bg: #07080a;
  --panel: #111821;
  --line: #253241;
  --line-soft: #1d2834;
  --text: #f4f7fb;
  --muted: #a7b2bf;
  --dim: #788797;
  --accent: #8b7dff;
  --accent-2: #46d39a;
  --accent-3: #f2b25e;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 10% -10%, rgba(139, 125, 255, 0.24), transparent 28rem),
    radial-gradient(circle at 85% 6%, rgba(70, 211, 154, 0.16), transparent 30rem),
    linear-gradient(180deg, #08090c 0%, #0a0d12 46%, #07080a 100%);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 8, 10, 0.78);
  backdrop-filter: blur(20px);
}

.brand, nav, .actions, .release-meta, .platforms, .platforms div, .download-strip, footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand img {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.8rem;
  box-shadow: 0 10px 28px rgba(139, 125, 255, 0.24);
}

nav { gap: 0.3rem; }

nav a {
  padding: 0.65rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

nav a:hover {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

main {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(26rem, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(3rem, 7vw, 6.5rem) 0 3.5rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 11ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3.7rem, 8.2vw, 7.4rem);
  line-height: 0.86;
  letter-spacing: -0.085em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.15rem, 4.2vw, 4.4rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.lede, .split p, .download-strip p, footer p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.lede { max-width: 42rem; }

.actions {
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.95rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.85rem;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: #a99fff;
  background: linear-gradient(135deg, #a99fff, #7162ff);
  color: #090a0d;
  box-shadow: 0 18px 50px rgba(139, 125, 255, 0.34);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.download-status {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--dim);
  font-size: 0.95rem;
  line-height: 1.55;
}

.release-meta {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.release-meta div {
  min-width: 8.3rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 0.9rem;
  background: rgba(17, 24, 33, 0.72);
}

dt {
  color: var(--dim);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

dd {
  margin: 0.25rem 0 0;
  font-weight: 900;
}

.console-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.6rem;
  background: linear-gradient(180deg, rgba(23, 33, 44, 0.96), rgba(8, 10, 14, 0.98)), var(--panel);
  box-shadow: var(--shadow);
}

.console-preview::before {
  position: absolute;
  inset: -40% 20% auto -20%;
  height: 24rem;
  content: "";
  background: radial-gradient(circle, rgba(139, 125, 255, 0.22), transparent 60%);
}

.console-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
}

.console-top div {
  display: grid;
  gap: 0.15rem;
}

.console-top span, .console-top b, .deck-preview small {
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.console-top b { color: var(--accent-2); }

.console-body {
  position: relative;
  display: grid;
  grid-template-columns: 4.3rem minmax(0, 1fr) 12.5rem;
  gap: 0.8rem;
  padding: 0.9rem;
}

.rail-preview, .deck-preview {
  display: grid;
  gap: 0.6rem;
}

.rail-preview span, .deck-preview div {
  border: 1px solid var(--line-soft);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.045);
}

.rail-preview span {
  display: grid;
  min-height: 3.35rem;
  place-items: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.rail-preview span.active {
  border-color: rgba(139, 125, 255, 0.72);
  background: rgba(139, 125, 255, 0.2);
  color: var(--text);
}

.stage-preview {
  position: relative;
  min-height: 28rem;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 50% 34%, rgba(70, 211, 154, 0.18), transparent 12rem),
    linear-gradient(145deg, #111923, #07090d);
}

.stage-preview::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
}

.avatar-rig {
  position: absolute;
  inset: 12% 25% 15%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139, 125, 255, 0.4);
  border-radius: 50%;
  box-shadow: inset 0 0 50px rgba(139, 125, 255, 0.12);
}

.avatar-face, .avatar-chest {
  position: absolute;
  border: 1px solid rgba(244, 247, 251, 0.46);
  background: rgba(244, 247, 251, 0.08);
  backdrop-filter: blur(6px);
}

.avatar-face {
  top: 17%;
  width: 6.1rem;
  height: 6.1rem;
  border-radius: 44% 44% 50% 50%;
}

.avatar-chest {
  bottom: 14%;
  width: 9.7rem;
  height: 10.4rem;
  border-radius: 5rem 5rem 1.6rem 1.6rem;
}

.signal-card {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(70, 211, 154, 0.4);
  border-radius: 999px;
  background: rgba(9, 20, 16, 0.78);
}

.signal-card span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent-2);
}

.signal-card p {
  margin: 0;
  color: #c7f4dd;
  font-size: 0.88rem;
  font-weight: 850;
}

.deck-preview div { padding: 0.85rem; }
.deck-preview strong { display: block; margin-top: 0.25rem; font-size: 0.92rem; }

.platforms {
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 3rem;
  color: var(--dim);
}

.platforms span {
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.platforms div {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.platforms b {
  padding: 0.48rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.83rem;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.workflow-grid, .tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.workflow-grid article, .tool-grid article, .steps li {
  position: relative;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)), rgba(17, 24, 33, 0.72);
}

.workflow-grid article span, .tool-grid article span {
  color: var(--accent-3);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workflow-grid article p, .tool-grid article p, .steps li {
  color: var(--muted);
  line-height: 1.62;
}

.split {
  display: grid;
  grid-template-columns: minmax(18rem, 0.75fr) 1.25fr;
  gap: 2rem;
  align-items: start;
}

.tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.install {
  display: grid;
  grid-template-columns: minmax(14rem, 0.45fr) 1fr;
  gap: 2rem;
}

.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li { padding-left: 4.7rem; }

.steps li::before {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  color: var(--accent);
  content: "0" counter(step);
  counter-increment: step;
  font-weight: 950;
}

.steps strong {
  display: block;
  color: var(--text);
}

.download-strip {
  justify-content: space-between;
  gap: 1.5rem;
  margin: 2rem 0 5rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.45rem;
  background:
    radial-gradient(circle at 12% 20%, rgba(139, 125, 255, 0.22), transparent 18rem),
    linear-gradient(135deg, rgba(70, 211, 154, 0.1), transparent),
    var(--panel);
}

.download-strip h2 { margin-bottom: 0.6rem; }
.download-strip p { max-width: 42rem; margin-bottom: 0; }

footer {
  justify-content: space-between;
  gap: 1rem;
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer p {
  margin: 0;
  font-size: 0.95rem;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--accent-2);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 980px) {
  .hero, .split, .install { grid-template-columns: 1fr; }
  .console-preview { order: -1; }
  .workflow-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header, nav, .platforms, .download-strip, footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
  }

  h1 { max-width: 10ch; }
  .console-body { grid-template-columns: 1fr; }
  .rail-preview { grid-template-columns: repeat(4, 1fr); }
  .deck-preview { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  main { width: min(100% - 1rem, 1220px); }
  .hero { min-height: 0; padding-top: 2rem; }
  .actions, .button { width: 100%; }
  .release-meta div { flex: 1 1 100%; }
  .stage-preview { min-height: 20rem; }
}
