:root {
  color-scheme: dark;
  --bg: #05080d;
  --bg-soft: #0a0f16;
  --panel: #111820;
  --panel-strong: #171f28;
  --card: #161d25;
  --line: #27313b;
  --line-soft: #1d2630;
  --text: #eef5fb;
  --muted: #98a6b4;
  --muted-strong: #c2ccd6;
  --red: #e23636;
  --red-dark: #b92c2c;
  --green: #39d06f;
  --blue: #58a6ff;
  --cyan: #3bc8d8;
  --amber: #d29922;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --header-height: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

code {
  color: #c9f2ff;
  background: #0a1017;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 0.08rem 0.32rem;
  overflow-wrap: anywhere;
}

pre {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  background: #070b10;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px;
}

pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: #d7f7e4;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.7;
  overflow-wrap: normal;
  white-space: pre;
}

strong {
  color: var(--text);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  background: rgba(5, 8, 13, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  color: var(--muted-strong);
  padding: 9px 12px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--text);
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 640px;
  height: 82vh;
  max-height: 760px;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 46px) 32px 56px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 25%, rgba(88, 166, 255, 0.08), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(226, 54, 54, 0.07), transparent 24%),
    linear-gradient(180deg, #05080d 0%, #070b11 55%, #05080d 100%);
  box-shadow: inset 0 -180px 160px rgba(5, 8, 13, 0.88);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/voidtunnel-screenshot.png");
  background-size: cover;
  background-position: center top;
  opacity: 0.08;
  filter: blur(4px) saturate(0.7) brightness(0.45);
  transform: scale(1.02);
  transform-origin: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(5, 8, 13, 0.52) 0%, rgba(5, 8, 13, 0.86) 60%, rgba(5, 8, 13, 0.96) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 28px 30px 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(8, 12, 18, 0.34);
  backdrop-filter: blur(10px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.hero-layout {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: center;
}

.hero-visual {
  display: grid;
  gap: 16px;
  align-self: stretch;
  justify-items: center;
  align-content: center;
  min-height: 100%;
}

.hero-orbital {
  width: 100%;
  max-width: 560px;
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 32%, rgba(88, 166, 255, 0.14), transparent 28%),
    radial-gradient(circle at 50% 72%, rgba(226, 54, 54, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(12, 17, 24, 0.88), rgba(7, 11, 17, 0.92));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.hero-logo-svg {
  width: min(100%, 460px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 24px rgba(226, 54, 54, 0.18));
}

.svg-aura,
.svg-ring,
.svg-scan,
.svg-core,
.svg-logo-image {
  transform-origin: 180px 180px;
}

.svg-ring {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-ring-outer {
  stroke: rgba(255, 120, 102, 0.7);
  stroke-width: 4;
  stroke-dasharray: 18 14;
  animation: ringSpin 24s linear infinite;
}

.svg-ring-mid {
  stroke: rgba(88, 166, 255, 0.46);
  stroke-width: 3;
  stroke-dasharray: 10 12;
  animation: ringSpinReverse 16s linear infinite;
}

.svg-ring-inner {
  stroke: rgba(226, 54, 54, 0.55);
  stroke-width: 2.5;
  stroke-dasharray: 7 11;
  animation: ringSpin 12s linear infinite;
}

.svg-scan {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.5;
  stroke-dasharray: 4 13;
  animation: ringSpin 8s linear infinite;
}

.svg-core {
  animation: corePulse 2.6s ease-in-out infinite;
}

.svg-logo-image {
  animation: logoFloat 4.6s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 4.6rem;
  line-height: 0.98;
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.12;
  font-weight: 850;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 800;
}

p {
  margin: 0;
}

.hero-copy {
  width: min(650px, 100%);
  margin-top: 20px;
  color: var(--muted-strong);
  font-size: 1.18rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-weight: 850;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 28px rgba(226, 54, 54, 0.28);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-secondary {
  background: rgba(17, 24, 32, 0.9);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: var(--blue);
  color: #fff;
}

.btn-ghost {
  color: var(--muted-strong);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(5, 8, 13, 0.42);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
}

.hero-facts div {
  min-width: 140px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(17, 24, 32, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-facts dt {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  color: var(--text);
  font-weight: 850;
}

.quick-strip {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}

.quick-strip-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}

.quick-strip span {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 16px;
  color: var(--muted-strong);
  background: var(--bg-soft);
  font-weight: 750;
}

.docs-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 44px;
  padding: 76px 0 86px;
}

.docs-nav {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  align-self: start;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(17, 24, 32, 0.72);
}

.docs-nav p {
  margin: 0 0 10px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.docs-nav a {
  color: var(--muted-strong);
  padding: 9px 10px;
  border-radius: 6px;
  font-weight: 750;
}

.docs-nav a:hover,
.docs-nav a.is-active {
  color: var(--text);
  background: var(--panel-strong);
}

.docs-content {
  min-width: 0;
}

.doc-section {
  scroll-margin-top: calc(var(--header-height) + 28px);
  padding: 0 0 82px;
}

.doc-section:last-child {
  padding-bottom: 0;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted-strong);
  font-size: 1.02rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.overview-split {
  align-items: center;
}

.steps-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps-list li {
  position: relative;
  min-height: 44px;
  padding: 10px 12px 10px 52px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted-strong);
}

.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 10px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(57, 208, 111, 0.16);
  color: var(--green);
  font-weight: 900;
  font-size: 0.78rem;
}

.product-shot {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
}

.product-shot figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.feature-card,
.download-options article,
.package-grid article,
.callout,
.mode-panel,
.requirement-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.feature-card {
  padding: 20px;
}

.feature-card p,
.download-options p,
.package-grid p,
.callout p,
.mode-panel p {
  color: var(--muted-strong);
}

.card-kicker {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.command-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.command-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted-strong);
  font-weight: 800;
}

.copy-btn,
.mode-tab {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0c1219;
  color: var(--muted-strong);
  cursor: pointer;
  font-weight: 800;
}

.copy-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.84rem;
}

.copy-btn:hover,
.copy-btn.is-copied {
  border-color: var(--green);
  color: var(--green);
}

.download-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.download-options article {
  padding: 20px;
}

.requirements {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.requirement-item {
  padding: 16px;
}

.requirement-item strong,
.requirement-item span {
  display: block;
}

.requirement-item strong {
  margin-bottom: 6px;
}

.requirement-item span {
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.package-grid article {
  padding: 18px;
}

.package-grid pre {
  margin-top: 12px;
  padding: 14px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted-strong);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.67em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(57, 208, 111, 0.13);
}

.callout {
  padding: 20px;
  border-left: 3px solid var(--blue);
}

.wide-callout {
  margin-top: 16px;
}

.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.mode-tab {
  min-height: 42px;
  padding: 0 14px;
}

.mode-tab:hover,
.mode-tab.is-active {
  color: var(--text);
  border-color: var(--red);
  background: rgba(226, 54, 54, 0.12);
}

.mode-panel {
  padding: 24px;
}

.mode-panel .steps-list {
  margin-top: 18px;
}

.port-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.port-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0c1219;
  color: var(--muted-strong);
  font-weight: 800;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

th {
  color: var(--text);
  font-size: 0.82rem;
  text-transform: uppercase;
  background: #0c1219;
}

td {
  color: var(--muted-strong);
}

tr:last-child td {
  border-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--text);
  font-weight: 850;
}

details p {
  padding: 0 20px 20px;
  color: var(--muted-strong);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: #030609;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.site-footer a {
  color: var(--blue);
  font-weight: 800;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 14px;
  border: 1px solid rgba(57, 208, 111, 0.38);
  border-radius: 7px;
  background: #07110b;
  color: var(--green);
  font-weight: 850;
  transition: opacity 180ms ease, transform 180ms ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

:focus-visible {
  outline: 3px solid rgba(88, 166, 255, 0.45);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .quick-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-shell {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .docs-nav {
    position: static;
    width: 100%;
    min-width: 0;
    display: flex;
    overflow-x: auto;
  }

  .docs-nav p {
    display: none;
  }

  .split,
  .overview-split {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    padding: 0 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10, 15, 22, 0.98);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: 590px;
    height: auto;
    align-items: flex-start;
    padding: 104px 16px 40px;
    background-position: center top;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-content {
    padding: 22px 18px 20px;
    border-radius: 16px;
  }

  .hero-visual {
    gap: 12px;
    justify-items: center;
  }

  .hero-orbital {
    min-height: 280px;
    padding: 14px;
    border-radius: 20px;
  }

  .hero-logo-svg {
    width: min(100%, 340px);
  }

  h1 {
    font-size: 2.9rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    gap: 10px;
  }

  .btn {
    width: 100%;
    min-height: 44px;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quick-strip-inner,
  .feature-grid,
  .compact-grid,
  .download-options,
  .requirements,
  .package-grid {
    grid-template-columns: 1fr;
  }

  .quick-strip-inner {
    width: 100%;
    border-left: 0;
    border-right: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-strip span {
    min-height: 56px;
    padding: 12px 14px;
    font-size: 0.92rem;
  }

  .docs-shell {
    width: min(100% - 32px, 1180px);
    padding-top: 52px;
  }

  .doc-section {
    padding-bottom: 64px;
  }

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

  .copy-btn {
    width: 100%;
  }

  .mode-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mode-tab {
    width: 100%;
  }

  .mode-panel,
  .feature-card,
  .download-options article,
  .package-grid article,
  .callout {
    padding: 18px;
  }

  table {
    min-width: 580px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .svg-ring-outer,
  .svg-ring-mid,
  .svg-ring-inner,
  .svg-scan,
  .svg-core {
    animation: none;
  }

  .copy-toast {
    transition: none;
  }
}

@keyframes ringSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes ringSpinReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes corePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.22);
    opacity: 0.72;
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.01);
  }
}
