:root {
  --bg: #020817;
  --text: #9ca3af;
  --heading: #cbd5e1;
  --border: #334155;
  --link: #93c5fd;
  --link-hover: #bfdbfe;
  --surface: rgba(15, 23, 42, 0.65);
  --surface-border: rgba(51, 65, 85, 0.9);
  --surface-inset: rgba(255, 255, 255, 0.035);
  --section-gap: 1.75rem;
  --radius-section: 14px;
  --trial-accent: rgba(96, 165, 250, 0.55);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Tahoma, sans-serif;
  font-size: 1em;
  line-height: 1.5;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 18px 52px;
}

.page-section {
  margin-bottom: var(--section-gap);
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-section);
  border: 1px solid var(--surface-border);
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2) inset,
    0 1px 0 var(--surface-inset) inset;
}

.page-section:last-child {
  margin-bottom: 0;
}

.page-section:not(.page-section--hero):not(.page-section--intro) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

.page-section > h2:first-of-type {
  margin-top: 0;
}

.page-section--hero {
  padding: 1.5rem 1.4rem 1.45rem;
  background:
    linear-gradient(155deg, rgba(30, 64, 175, 0.14) 0%, transparent 42%),
    var(--surface);
}

.page-section--intro .tagline {
  margin-top: 0;
}

.page-section--intro .latest-version-line {
  margin-bottom: 0;
}

.page-section--trial {
  border-left: 3px solid var(--trial-accent);
  padding-left: calc(1.4rem - 2px);
  background:
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 0%, var(--surface) 38%);
}

.page-section--footer .inquiries {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--surface-border);
}

.hero {
  margin: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 24px 32px;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.hero-col--left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: fit-content;
  max-width: 220px;
}

.hero-col--left picture,
.hero-col--right picture {
  display: block;
}

.hero-col--right {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-screenshot {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: min(62vh, 520px);
  height: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  object-fit: contain;
  object-position: center center;
}

.hero-zoomable {
  cursor: zoom-in;
}

.hero-zoomable:focus {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.hero-zoomable:focus:not(:focus-visible) {
  outline: none;
}

.hero-zoomable:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.logo {
  display: block;
  margin: 0;
  width: 100%;
  max-width: 200px;
  height: auto;
}

.formula {
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.15em;
  color: var(--heading);
  text-align: left;
}

.formula--hero {
  margin: 0;
}

@media (max-width: 640px) {
  .wrap {
    padding: 20px 14px 40px;
  }

  .page-section {
    padding: 1.15rem 1.1rem;
    margin-bottom: 1.35rem;
    border-radius: 12px;
  }

  .page-section--hero {
    padding: 1.2rem 1.1rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    width: 100%;
  }

  .hero-col--left {
    max-width: 240px;
  }

  .hero-col--right {
    width: 100%;
    justify-content: center;
  }

  .hero-screenshot {
    max-width: 100%;
    max-height: none;
    width: 100%;
  }
}

.formula .left {
  font-size: 2em;
  line-height: 1;
}

.formula .brand {
  margin: 0;
  font-size: 4em;
  font-weight: 700;
  line-height: 1;
}

.latest-version-line {
  text-align: left;
  margin: 0 0 24px 0;
}

h2 {
  color: var(--heading);
  margin: 1.35rem 0 0.65rem;
  font-size: 1.25em;
  letter-spacing: 0.02em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

th, td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

th:first-child,
td:first-child {
  text-align: center;
  text-transform: capitalize;
}

/* Downloads: rowspan rows make CPU the first <td> on continuation rows — override global :first-child rules. */
table.downloads-table th,
table.downloads-table td {
  text-align: left;
  text-transform: none;
}

table.downloads-table th:nth-child(1),
table.downloads-table th:nth-child(2) {
  text-align: center;
}

table.downloads-table td.downloads-table__platform,
table.downloads-table td.downloads-table__cpu {
  position: relative;
  padding: 0;
}

table.downloads-table td.downloads-table__platform .downloads-table__cell-center,
table.downloads-table td.downloads-table__cpu .downloads-table__cell-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.tagline {
  text-align: left;
  color: var(--heading);
  font-size: 1.1em;
  margin: 0 0 20px 0;
  max-width: 36em;
}

.lead {
  color: var(--text);
  margin: 0 0 24px;
  max-width: 42em;
  text-align: left;
}

.trial-note {
  color: var(--text);
  margin: 0 0 12px;
  max-width: 42em;
  line-height: 1.55;
}

.faq-section {
  margin-top: 0;
}

.faq-item {
  margin-bottom: 0;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.55);
}

.faq-item:first-of-type {
  padding-top: 0.35rem;
}

.faq-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.faq-item h3 {
  color: var(--heading);
  font-size: 1.05em;
  font-weight: 600;
  margin: 0 0 6px 0;
}

.faq-item p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
  max-width: 42em;
}

.features {
  margin: 0;
  padding-left: 1.25em;
}

.features li {
  margin-bottom: 0.5em;
}

code {
  font-family: ui-monospace, monospace;
  font-size: 0.92em;
  color: #e2e8f0;
}

.inquiries {
  margin: 0;
  text-align: left;
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox:not([hidden]) {
  display: flex;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(2, 8, 23, 0.88);
  cursor: zoom-out;
}

.image-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox__img {
  display: block;
  max-width: min(100vw - 32px, 100%);
  max-height: calc(100vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
}

.image-lightbox__close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--heading);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox__close:hover {
  color: var(--link-hover);
  border-color: var(--link);
}

.image-lightbox__close:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

