:root {
  --bg: #101214;
  --rack: #181B1E;
  --panel: #1F2327;
  --panelHi: #262B30;
  --line: #31373D;
  --text: #EDE8DD;
  --dim: #9AA3AB;
  --faint: #5C656D;
  --amber: #FFB454;
  --green: #3DDC84;
  --blue: #6CB8FF;
  --mono: 'IBM Plex Mono', monospace;
  --display: 'Saira Condensed', sans-serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
}

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

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.amber { color: var(--amber); }
.green { color: var(--green); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-amber { background: var(--amber); color: #1a1206; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-amber:hover { filter: brightness(1.06); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--amber);
  text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: .02em; line-height: 1.05; }

.section { padding: 64px 0; border-top: 1px solid var(--line); }

header {
  background: var(--rack);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 6px;
  padding: 2px 3px;
  line-height: 0;
  flex-shrink: 0;
}

.logo-mark {
  height: 30px;
  width: auto;
  display: block;
}

.logo .wm {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: .05em;
}

nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--dim);
  text-decoration: none;
  margin: 0 12px;
}

nav a:hover { color: var(--text); }

.hdr-cta { display: flex; align-items: center; gap: 10px; }

.hero { padding: 72px 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  max-width: 16ch;
  margin-top: 14px;
}

.hero p.lede {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--dim);
  margin-top: 18px;
  max-width: 52ch;
}

.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero .aud {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: .06em;
  margin-top: 16px;
}

.hero-shot,
.shot {
  display: block;
  width: 100%;
  padding: 0;
  background: var(--rack);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  cursor: zoom-in;
  transition: transform .15s, border-color .15s;
  text-decoration: none;
}

.hero-shot:hover,
.shot:hover {
  transform: translateY(-2px);
  border-color: var(--amber);
}

.hero-shot img,
.shot img { display: block; width: 100%; height: auto; }

.grid { display: grid; gap: 18px; }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--rack);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 24px;
}

a.card {
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}

a.card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 19px;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.card p { color: var(--dim); font-size: 15px; }

.card .thumb {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 4px;
  background: var(--panel);
  padding: 12px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
  flex-shrink: 0;
}

.dot.g { background: var(--green); }
.dot.b { background: var(--blue); }

.h2row { margin-bottom: 8px; }

h2 { font-size: clamp(28px, 4vw, 40px); }

.sub {
  color: var(--dim);
  font-size: 16px;
  max-width: 62ch;
  margin-bottom: 28px;
}

/* product page */
.product-hero { padding: 56px 0 40px; }

.product-hero h1 { font-size: clamp(36px, 5vw, 52px); margin-top: 10px; }

.product-hero .subtitle {
  color: var(--dim);
  font-size: 17px;
  margin-top: 10px;
}

.product-hero .subtitle a {
  color: var(--blue);
  text-decoration: none;
}

.product-hero .subtitle a:hover { color: var(--amber); }

.download-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--rack);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.download-bar .version {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--green);
}

.screenshots {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.shot-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.shot-center .module-img {
  height: 180px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.shot-center a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--dim);
  text-decoration: none;
}

.shot-center a:hover { color: var(--amber); }

.feature-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-list li {
  padding-left: 18px;
  position: relative;
  color: var(--dim);
  font-size: 15px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.feature-list li.notice {
  color: var(--faint);
  font-style: italic;
  font-size: 14px;
}

.feature-list li.notice::before { background: var(--green); }

.feature-list ul {
  list-style: none;
  margin: 8px 0 8px 12px;
  display: grid;
  gap: 6px;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.links-row a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--dim);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--rack);
  transition: border-color .15s, color .15s;
}

.links-row a:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--faint);
  margin-bottom: 8px;
}

.breadcrumb a {
  color: var(--dim);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--amber); }

/* install page */
.install-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0;
}

.install-steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 15px;
}

.install-steps li:last-child { border-bottom: none; }

.install-steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  color: var(--amber);
  min-width: 42px;
}

code.cmd {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 16px;
  word-break: break-all;
}

/* faq / changelog */
details {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--rack);
  margin-bottom: 10px;
  padding: 4px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 20px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  color: var(--amber);
  font-family: var(--mono);
  font-size: 18px;
}

details[open] summary::after { content: "-"; }

details .inner {
  color: var(--dim);
  font-size: 15px;
  padding: 0 20px 16px;
}

.cta-band {
  text-align: center;
  background: var(--rack);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 48px 24px;
}

.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--dim); margin-bottom: 22px; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--faint);
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
}

.foot a {
  color: var(--dim);
  text-decoration: none;
}

.foot a:hover { color: var(--amber); }

.updated {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: .06em;
  margin-top: 40px;
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 12, .93);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 22px;
  background: none;
  border: none;
  color: #EDE8DD;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 12px;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { max-width: none; }
  .screenshots { grid-template-columns: 1fr; }
  .shot-center { order: -1; }
  nav { display: none; }
}
