:root {
  --bg: #050505;
  --surface: #0D0D0D;
  --surface-2: #111111;
  --code-bg: #080808;
  --text: #E8E8E8;
  --text-muted: #A7A7A7;
  --heading: #F3F3F3;
  --accent: #FF6600;
  --positive: #3DBA6F;
  --negative: #E04545;
  --border: #1E1E1E;
  --row-border: #141414;

  --font-heading: "Playfair Display", serif;
  --font-body: "Source Serif 4", serif;
  --font-mono: "IBM Plex Mono", monospace;

  --max-width: 1120px;
  --nav-height: 64px;
  --radius: 2px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  padding-top: var(--nav-height);
}

body.menu-open {
  overflow: hidden;
}

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

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

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin-inline: auto;
}

section {
  padding-block: 64px;
}

.section-rule {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  border: 0;
  border-top: 1px solid var(--border);
}

h1,
h2,
h3 {
  color: var(--heading);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.4rem);
}

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
}

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

p + p {
  margin-top: 1.6em;
}

.section-label {
  display: block;
  margin-bottom: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.muted {
  color: var(--text-muted);
}

.terminal-cursor {
  color: var(--accent);
  animation: blinkCursor 1s steps(1, end) infinite;
}

@keyframes blinkCursor {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

.navbar {
  height: var(--nav-height);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  object-fit: cover;
}

.brand-wordmark {
  display: grid;
  min-width: 0;
}

.brand-wordmark strong {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--heading);
  letter-spacing: 0.08em;
}

.brand-wordmark span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  height: 36px;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--accent);
}

.ext-icon {
  color: var(--accent);
  margin-left: 4px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--heading);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.hero {
  padding-block: 72px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.05;
  max-width: 10ch;
  overflow-wrap: anywhere;
}

.hero-subtitle {
  max-width: 56ch;
  color: var(--text-muted);
  font-size: 18px;
}

.hero-ctas {
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.version-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
}

.page-hero {
  padding-top: 56px;
  padding-bottom: 56px;
}

.page-hero h1 {
  margin-bottom: 20px;
}

.page-hero p {
  max-width: 60ch;
  color: var(--text-muted);
}

.btn,
.link-cta,
.docs-link,
.download-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  background: transparent;
  border: 0;
  padding: 0;
}

.btn::before,
.link-cta::before,
.docs-link::before,
.download-link::before {
  content: "\2192 ";
}

.btn:hover,
.link-cta:hover,
.docs-link:hover,
.download-link:hover,
.btn:focus-visible,
.link-cta:focus-visible,
.docs-link:focus-visible,
.download-link:focus-visible {
  text-decoration: underline;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.card,
.panel,
.quick-step,
.faq-item,
.collapsible,
.quote-block,
.download-platform {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card,
.panel,
.quick-step,
.download-platform {
  padding: 16px;
}

.card:hover,
.panel:hover,
.quick-step:hover,
.download-platform:hover {
  border-color: var(--accent);
}

.terminal-panel,
.mock-ui,
.spec-panel,
.output-panel {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}

.terminal-topbar,
.mock-ui-header,
.panel-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--positive);
}

.terminal-body,
.mock-ui-body,
.output-body {
  padding: 0;
}

.market-table,
.mini-table,
.spec-table,
.output-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.market-table th,
.market-table td,
.mini-table th,
.mini-table td,
.spec-table th,
.spec-table td,
.output-table th,
.output-table td {
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--row-border);
  min-height: 44px;
}

.market-table th,
.mini-table th,
.spec-table th,
.output-table th {
  color: var(--text-muted);
  font-weight: 500;
  background: var(--code-bg);
}

.positive,
.yes {
  color: var(--positive);
}

.negative,
.no {
  color: var(--negative);
}

.ticker-strip {
  padding: 10px 16px;
  border-top: 1px solid var(--row-border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.stat-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.content-block {
  display: grid;
  gap: 20px;
  align-items: start;
}

.spec-panel .spec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-bottom: 1px solid var(--row-border);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.spec-panel .spec-row:last-child {
  border-bottom: 0;
}

.spec-panel .spec-row span:first-child {
  color: var(--text-muted);
}

.screen-map {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.screen-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.screen-row:last-child {
  border-bottom: 0;
}

.screen-row dt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--heading);
}

.screen-row dd {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.feature-card,
.doc-card,
.value-card,
.os-card,
.tech-card {
  padding: 16px;
}

.feature-icon,
.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

.feature-card p,
.doc-card p,
.value-card p,
.os-card p,
.tech-card p,
.tech-card small {
  color: var(--text-muted);
}

.deep-dive {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
}

.deep-dive + .deep-dive {
  margin-top: 20px;
}

.deep-dive-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.output-body {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}

.output-line {
  padding: 10px 16px;
  border-bottom: 1px solid var(--row-border);
}

.output-line:last-child {
  border-bottom: 0;
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  background: var(--surface);
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 13px;
}

th {
  color: var(--heading);
  font-weight: 500;
  background: var(--surface-2);
}

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

.code-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--code-bg);
  overflow: hidden;
}

.code-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px 16px;
}

.code-block pre {
  margin: 0;
  padding: 12px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: pre;
}

.code-block code,
pre code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

.hl-cmd {
  color: var(--accent);
}

.hl-arg {
  color: var(--text-muted);
}

.hl-path {
  color: var(--positive);
}

.quick-start {
  display: grid;
  gap: 16px;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}

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

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  min-height: 52px;
  border: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--heading);
  font-family: var(--font-mono);
  font-size: 15px;
  text-align: left;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  white-space: normal;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
}

.faq-answer p {
  padding: 16px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

.faq-icon {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 16px;
}

.download-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 20px;
}

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

.download-platform {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-logo {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-logo svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.download-platform h3 {
  margin-bottom: 0;
}

.download-file {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--heading);
}

.download-req {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.download-link {
  margin-top: 16px;
  display: block;
  width: 100%;
}

.download-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 102, 0, 0.18), rgba(255, 102, 0, 0.04));
  color: var(--heading);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.download-btn::before {
  content: "";
}

.download-btn:hover,
.download-btn:focus-visible {
  text-decoration: none;
  background: var(--accent);
  border-color: var(--accent);
  color: #070707;
}

.changelog-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.changelog-item {
  padding: 16px;
}

.changelog-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.changelog-item ul {
  margin-left: 18px;
}

.collapsible {
  padding: 12px;
}

.collapsible summary {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--heading);
  cursor: pointer;
}

.collapsible[open] summary {
  margin-bottom: 12px;
}

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

.founder-col {
  padding: 0;
}

.founder-col p + p {
  margin-top: 1.2em;
}

.founder-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.mission {
  border-left: 1px solid var(--border);
  padding-left: 14px;
}

.quote-block {
  padding: 24px;
  text-align: center;
}

.quote-block p {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--heading);
  line-height: 1.3;
}

.download-banner {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.download-banner h2 {
  margin-bottom: 20px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 20px;
  padding-block: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 12px;
}

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

.footer-col h4 {
  color: var(--heading);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 350ms ease, transform 350ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.mb-4 {
  margin-bottom: 20px;
}

.mt-2 {
  margin-top: 8px;
}

.mt-3 {
  margin-top: 12px;
}

.mt-4 {
  margin-top: 20px;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
  }

  body {
    font-size: 15px;
    line-height: 1.7;
  }

  section {
    padding-block: 48px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 18px;
  }

  .hero-title {
    font-size: 32px;
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .brand-wordmark span {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 190;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    height: 52px;
    padding-left: 24px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }

  .hero-layout,
  .deep-dive-layout,
  .grid-2,
  .grid-3,
  .grid-4,
  .content-block,
  .stats-grid,
  .footer-grid,
  .founder-layout,
  .download-platforms {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn,
  .link-cta,
  .docs-link,
  .download-link {
    width: 100%;
  }

  .screen-row {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .code-block pre {
    font-size: 12px;
  }

  .quote-block {
    text-align: left;
    border-left: 3px solid var(--accent);
    padding: 20px;
  }

  .quote-block p {
    font-size: 20px;
  }

  .footer-col h4 {
    margin-top: 12px;
  }

  .footer-bottom p {
    text-align: center;
    line-height: 1.6;
  }
}

@media (max-width: 600px) {
  .stack-mobile table {
    min-width: 100%;
  }

  .stack-mobile thead {
    display: none;
  }

  .stack-mobile tbody,
  .stack-mobile tr,
  .stack-mobile td {
    display: block;
    width: 100%;
  }

  .stack-mobile tr {
    border-bottom: 1px solid var(--border);
  }

  .stack-mobile td {
    border-bottom: 0;
    padding: 10px 16px;
  }

  .stack-mobile td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 430px) {
  .container {
    width: calc(100% - 40px);
  }

  .hero-subtitle {
    max-width: 100%;
  }
}

@media (max-width: 390px) {
  .nav-link {
    font-size: 15px;
  }
}

@media (max-width: 375px) {
  .hero-title {
    font-size: 32px;
  }
}

@media (max-width: 320px) {
  .hero-title {
    font-size: 30px;
  }

  .brand-wordmark strong {
    font-size: 12px;
  }
}
