:root {
  color-scheme: dark;
  --bg: #06100e;
  --bg-soft: #0b1715;
  --panel: rgba(15, 29, 27, 0.86);
  --panel-solid: #101d1b;
  --line: rgba(203, 230, 224, 0.16);
  --text: #f3fbf8;
  --muted: #b5c8c2;
  --teal: #25d2c3;
  --teal-deep: #0e8d86;
  --amber: #f1a94d;
  --green: #98d45b;
  --danger: #ffcf81;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(37, 210, 195, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 210, 195, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

code {
  border: 1px solid rgba(37, 210, 195, 0.22);
  border-radius: 6px;
  background: rgba(37, 210, 195, 0.08);
  color: #d8fffb;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  padding: 0.08rem 0.28rem;
  overflow-wrap: anywhere;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: calc(100% - 32px);
  max-width: var(--max);
  min-height: 72px;
  margin: 14px auto 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 13, 12, 0.72);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(4, 13, 12, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 0.72rem;
  min-width: 0;
}

.brand > span:last-child {
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(37, 210, 195, 0.55);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(37, 210, 195, 0.24), rgba(241, 169, 77, 0.15));
  color: var(--text);
  font-weight: 900;
}

.brand-mark img {
  display: block;
  width: 31px;
  height: 31px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

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

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  margin-left: auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  position: relative;
  z-index: 2;
}

.nav-toggle::before {
  content: "";
  display: none;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow:
    0 -6px 0 currentColor,
    0 6px 0 currentColor;
}

.nav-toggle .lucide + .sr-only,
.nav-toggle .lucide {
  position: relative;
  z-index: 1;
}

.lucide {
  width: 1em;
  height: 1em;
  stroke-width: 2.2;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 84svh;
  padding: 120px 0 7rem;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(6, 16, 14, 0.98) 0%, rgba(6, 16, 14, 0.82) 38%, rgba(6, 16, 14, 0.28) 78%),
    linear-gradient(0deg, rgba(6, 16, 14, 0.98) 0%, rgba(6, 16, 14, 0.14) 34%),
    url("assets/limbo-hero.jpg");
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 42%;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-content {
  width: calc(100% - 32px);
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 720px;
  margin-bottom: 1rem;
  font-size: clamp(4rem, 10vw, 9.4rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 4.35rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 650px;
  color: #dceae6;
  font-size: clamp(1rem, 1.6vw, 1.24rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  line-height: 1;
  padding: 0.85rem 1.05rem;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  background: #e7fff9;
  color: #07110f;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #bbfff5;
}

.button.secondary,
.button.ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button.secondary:hover,
.button.secondary:focus-visible,
.button.ghost:hover,
.button.ghost:focus-visible {
  border-color: rgba(37, 210, 195, 0.45);
  background: rgba(37, 210, 195, 0.12);
}

.button.compact {
  min-height: 40px;
  padding: 0.72rem 0.88rem;
  font-size: 0.92rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(760px, 100%);
  margin: 2.6rem 0 0;
}

.hero-facts div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 13, 12, 0.58);
  padding: 0.95rem;
  backdrop-filter: blur(14px);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.hero-facts dd {
  margin: 0.18rem 0 0;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 900;
}

section:not(.hero) {
  position: relative;
  padding: 6rem 0;
}

.download-band,
.setup-section {
  background: var(--bg);
}

.qemu-section {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(37, 210, 195, 0.07), transparent 36%),
    var(--bg-soft);
}

.truth-panel {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(37, 210, 195, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(241, 169, 77, 0.08), transparent 38%),
    var(--bg-soft);
}

.faq-section,
.source-section {
  border-top: 1px solid var(--line);
  background: #071210;
}

.subpage {
  min-height: 100svh;
}

.page-hero {
  display: grid;
  align-items: end;
  min-height: 52svh;
  padding: 150px 0 5rem;
  background:
    linear-gradient(90deg, rgba(6, 16, 14, 0.98), rgba(6, 16, 14, 0.72)),
    linear-gradient(135deg, rgba(37, 210, 195, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(241, 169, 77, 0.11), transparent 40%),
    var(--bg-soft);
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 8vw, 7rem);
}

.page-hero p {
  max-width: 760px;
  color: #dceae6;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
}

.page-section {
  padding: 5.5rem 0;
  background: var(--bg);
}

.muted-section {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.section-inner {
  width: calc(100% - 32px);
  max-width: var(--max);
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.3rem;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.04rem;
}

.section-heading.narrow {
  max-width: 480px;
  margin-bottom: 0;
}

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

.download-card,
.fact-matrix article,
.steps li,
.faq-list details,
.info-card,
.policy-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.download-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem;
}

.download-card.accent-card {
  border-color: rgba(241, 169, 77, 0.42);
  background:
    linear-gradient(180deg, rgba(241, 169, 77, 0.12), transparent 42%),
    var(--panel-solid);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(37, 210, 195, 0.42);
  border-radius: 999px;
  background: rgba(37, 210, 195, 0.11);
  color: #d8fffb;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0.24rem 0.55rem;
  text-transform: uppercase;
}

.pill.warning {
  border-color: rgba(241, 169, 77, 0.45);
  background: rgba(241, 169, 77, 0.12);
  color: #ffe7c0;
}

.muted {
  color: var(--muted);
  font-size: 0.86rem;
}

.download-card p,
.fact-matrix p,
.steps p,
.faq-list p,
.site-footer p,
.source-section p,
.info-card p,
.policy-summary {
  color: var(--muted);
}

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

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

.contact-aside {
  display: grid;
  gap: 1rem;
}

.contact-form {
  gap: 1rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  width: 100%;
  color: var(--text);
  font-weight: 800;
}

.contact-form label span {
  font-size: 0.88rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(203, 230, 224, 0.2);
  border-radius: 8px;
  background: rgba(4, 13, 12, 0.72);
  color: var(--text);
  font: inherit;
  line-height: 1.4;
  padding: 0.9rem 0.95rem;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(181, 200, 194, 0.65);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(37, 210, 195, 0.7);
  box-shadow: 0 0 0 3px rgba(37, 210, 195, 0.12);
  outline: none;
}

.email-link {
  color: #d8fffb;
  font-size: 1.05rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.email-link:hover,
.email-link:focus-visible {
  color: #ffffff;
  outline: none;
}

.info-card,
.policy-summary {
  padding: 1.25rem;
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.info-card > .lucide {
  width: 1.55rem;
  height: 1.55rem;
  margin-bottom: 1rem;
  color: var(--amber);
}

.info-card .button {
  margin-top: auto;
}

.highlight-card {
  border-color: rgba(37, 210, 195, 0.38);
  background:
    linear-gradient(180deg, rgba(37, 210, 195, 0.12), transparent 48%),
    var(--panel-solid);
}

.wide-card {
  width: 100%;
}

.note {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) 1fr;
  gap: 1.2rem;
  align-items: start;
}

.policy-summary {
  position: sticky;
  top: 108px;
}

.policy-summary h2 {
  font-size: 1.35rem;
}

.policy-content {
  display: grid;
  gap: 1rem;
}

.policy-content .info-card h2 {
  margin-bottom: 0.8rem;
  font-size: 1.55rem;
}

.policy-content .info-card p:last-child {
  margin-bottom: 0;
}

.spec-list {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.spec-list li {
  position: relative;
  padding-left: 1.35rem;
  color: #d5e6e1;
  font-size: 0.94rem;
}

.spec-list li::before {
  content: "";
  position: absolute;
  top: 0.64em;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--teal);
}

.download-card .button-row {
  margin-top: auto;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.qemu-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 2.5rem;
  align-items: start;
}

.qemu-copy {
  display: grid;
  gap: 1rem;
  border-left: 1px solid rgba(203, 230, 224, 0.16);
  padding-left: 2rem;
}

.qemu-copy p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.fact-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fact-matrix article {
  padding: 1.2rem;
}

.fact-matrix .lucide {
  width: 1.55rem;
  height: 1.55rem;
  margin-bottom: 1rem;
  color: var(--amber);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 260px;
  padding: 1.15rem;
  overflow: hidden;
}

.steps span {
  display: block;
  margin-bottom: 2rem;
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  font-weight: 900;
}

.steps li::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(37, 210, 195, 0.2);
  background:
    linear-gradient(rgba(37, 210, 195, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 210, 195, 0.2) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.45;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.faq-list details {
  padding: 1.1rem 1.2rem;
}

.faq-list summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 850;
}

.faq-list summary::marker {
  color: var(--teal);
}

.faq-list p {
  margin: 0.85rem 0 0;
}

.source-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.source-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list a {
  display: flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: #e9f7f4;
  font-weight: 750;
  padding: 0.72rem 0.9rem;
}

.source-list a:hover,
.source-list a:focus-visible {
  border-color: rgba(37, 210, 195, 0.45);
  color: #ffffff;
  outline: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: calc(100% - 32px);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
}

.site-footer p {
  margin: 0.2rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-left: auto;
}

.footer-links a {
  color: var(--muted);
  font-weight: 750;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  outline: none;
}

@media (max-width: 980px) {
  .download-grid,
  .steps,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .split-layout,
  .qemu-layout,
  .source-layout,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .qemu-copy {
    border-left: 0;
    padding-left: 0;
  }

  .policy-summary {
    position: static;
  }

  .section-heading.narrow {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 20px);
    max-width: none;
    min-height: 64px;
    margin-top: 10px;
  }

  .nav-toggle {
    display: grid !important;
    border-color: rgba(37, 210, 195, 0.34);
    background: rgba(37, 210, 195, 0.12);
  }

  .nav-toggle::before {
    display: block;
  }

  .nav-toggle .lucide {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: 86px;
    left: 10px;
    right: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(4, 13, 12, 0.96);
    padding: 0.45rem;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 0.9rem 1rem;
  }

  .hero {
    min-height: 82svh;
    padding: 104px 0 4rem;
  }

  .hero::before {
    background-image:
      linear-gradient(90deg, rgba(6, 16, 14, 0.96), rgba(6, 16, 14, 0.66)),
      linear-gradient(0deg, rgba(6, 16, 14, 0.98), transparent 50%),
      url("assets/limbo-hero.jpg");
    background-position: 61% center;
  }

  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  h1 {
    font-size: clamp(2.85rem, 15vw, 4.35rem);
  }

  h2 {
    font-size: clamp(1.72rem, 8vw, 2.42rem);
  }

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

  .hero-facts,
  .download-grid,
  .fact-matrix,
  .steps,
  .faq-list,
  .contact-grid,
  .contact-layout,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    gap: 0.55rem;
    margin-top: 1.8rem;
  }

  section:not(.hero) {
    padding: 4.2rem 0;
  }

  .page-hero {
    min-height: 44svh;
    padding: 118px 0 4rem;
  }

  .steps li {
    min-height: 210px;
  }

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

  .footer-links {
    margin-left: 0;
  }
}

@media (max-width: 440px) {
  .brand small {
    display: none;
  }

  .hero-actions,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .card-topline {
    align-items: flex-start;
    flex-direction: column;
  }
}
