:root {
  color-scheme: dark;
  --bg: #101413;
  --bg-2: #151918;
  --panel: #1c211f;
  --panel-2: #222824;
  --line: #34413c;
  --text: #f4efe5;
  --muted: #b6beb8;
  --subtle: #7f8d86;
  --teal: #48d3bd;
  --teal-strong: #23bfa8;
  --amber: #f2b84b;
  --coffee: #ffdd80;
  --danger: #ee806b;
  --shadow: 0 24px 70px rgba(0, 0, 0, .42);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(72, 211, 189, .07), transparent 420px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0, rgba(255,255,255,.018) 1px, transparent 1px, transparent 72px),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

code {
  color: #ffffff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  padding: .1rem .32rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--teal);
  color: #07100d;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-weight: 800;
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 20, 19, .86);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}

.header-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand img {
  border-radius: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: .94rem;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--teal);
}

.support-pill {
  border: 1px solid rgba(242, 184, 75, .45);
  color: var(--coffee);
  padding: .55rem .82rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .9rem;
}

.hero {
  padding: 92px 0 72px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  color: var(--teal);
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 5.8rem);
  max-width: 820px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.12rem;
}

.claim {
  font-size: clamp(1.28rem, 2vw, 1.65rem);
  line-height: 1.35;
  color: #ffffff;
  max-width: 760px;
  margin: 24px 0 0;
}

.hero-text,
.section-heading p,
.copy-block p,
.download-grid p,
.support-grid p,
.catalog-grid p,
.notice-card p,
.feature-card p,
.support-card p,
.faq-grid p,
.site-footer p {
  color: var(--muted);
}

.hero-text {
  max-width: 690px;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: .84rem 1.12rem;
  font-weight: 900;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--teal);
  color: #07100d;
  box-shadow: 0 14px 32px rgba(72, 211, 189, .22);
}

.button.secondary {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: var(--text);
}

.button.coffee {
  background: var(--coffee);
  color: #1d1504;
  width: 100%;
}

.button[aria-disabled="true"] {
  pointer-events: none;
  opacity: .72;
}

.release-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  padding: 1px;
  margin: 30px 0 0;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  overflow: hidden;
}

.release-strip div {
  background: rgba(28, 33, 31, .86);
  padding: 14px 16px;
}

dt {
  color: var(--subtle);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

dd {
  margin: 2px 0 0;
  color: #ffffff;
  font-weight: 800;
}

.trust-list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}

.trust-list li,
.tag-cloud span {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  border-radius: 999px;
  padding: .46rem .72rem;
  font-size: .86rem;
}

.hero-visual {
  min-width: 0;
}

.product-shot,
.detail-shot,
.screenshot-gallery figure {
  margin: 0;
  position: relative;
}

.product-shot {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  background: #111513;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-shot img,
.detail-shot img,
.screenshot-gallery img {
  display: block;
  width: 100%;
}

.product-shot img,
.detail-shot img {
  height: auto;
}

.is-zoomable img {
  cursor: zoom-in;
}

.product-shot figcaption,
.detail-shot figcaption,
.screenshot-gallery figcaption {
  color: var(--subtle);
  font-size: .84rem;
  line-height: 1.5;
}

.product-shot figcaption {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
}

.screenshot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 44px;
  align-items: center;
}

.screenshot-layout p {
  color: var(--muted);
}

.detail-shot {
  width: min(100%, 390px);
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(11, 18, 16, .14);
  overflow: hidden;
}

.detail-shot figcaption {
  padding: 12px 14px 14px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.screenshot-gallery figure {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  background: rgba(28, 33, 31, .74);
  overflow: hidden;
}

.screenshot-gallery img {
  height: 240px;
  object-fit: contain;
  background: #f3f5f7;
}

.screenshot-gallery figcaption {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.screenshot-zoom-button,
.lightbox-close {
  appearance: none;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(16, 20, 19, .82);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.screenshot-zoom-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(0,0,0,.34);
}

.screenshot-zoom-button:hover,
.screenshot-zoom-button:focus-visible,
.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--teal);
  border-color: var(--teal);
  color: #06120f;
  transform: translateY(-1px);
}

.zoom-icon {
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  background:
    linear-gradient(currentColor, currentColor) center / 7px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 7px no-repeat;
}

.zoom-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.zoom-icon::after {
  width: 9px;
  height: 2px;
  right: -7px;
  bottom: -4px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(6, 8, 8, .86);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .18s ease;
}

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

.screenshot-lightbox.is-open {
  opacity: 1;
}

.screenshot-lightbox figure {
  width: min(96vw, 1480px);
  max-height: 92vh;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  background: rgba(28, 33, 31, .94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.screenshot-lightbox img {
  width: 100%;
  max-height: calc(92vh - 68px);
  object-fit: contain;
  display: block;
  background: #f3f5f7;
}

.screenshot-lightbox figcaption {
  padding: 14px 16px;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.1);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 201;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.lightbox-close span,
.lightbox-close span::before {
  width: 18px;
  height: 2px;
  background: currentColor;
}

.lightbox-close span {
  display: block;
  position: relative;
  transform: rotate(45deg);
}

.lightbox-close span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  transform: rotate(90deg);
}

body.lightbox-open {
  overflow: hidden;
}

.section {
  padding: 82px 0;
}

.section-muted {
  background: rgba(255,255,255,.025);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.two-column,
.download-grid,
.install-grid,
.catalog-grid,
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

.copy-block p:first-child,
.download-grid p:first-child,
.support-grid p:first-child,
.catalog-grid p:first-child {
  margin-top: 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

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

.feature-card,
.release-card,
.notice-card,
.support-card,
.changelog-main,
.changelog-list,
.faq-grid details {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  background: rgba(28, 33, 31, .74);
}

.feature-card {
  min-height: 198px;
  padding: 18px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  border-radius: 6px;
  color: #06120f;
  background: var(--teal);
  font-size: .76rem;
  font-weight: 900;
  margin-bottom: 18px;
}

.download-section {
  background:
    linear-gradient(90deg, rgba(72,211,189,.09), rgba(242,184,75,.05)),
    var(--bg-2);
}

.release-card,
.notice-card,
.support-card {
  padding: 24px;
}

.release-card dl {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

.release-card code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--coffee);
}

.release-status,
.small-note {
  color: var(--subtle);
  font-size: .92rem;
}

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

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
}

.steps li > span {
  min-width: 0;
}

.steps li::before {
  content: counter(step);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(72,211,189,.16);
  color: var(--teal);
  font-weight: 900;
}

.status-line {
  color: #ffffff;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px;
}

.tag-cloud {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.changelog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 16px;
}

.changelog-main,
.changelog-list {
  min-width: 0;
  padding: 24px;
}

.highlight-list {
  margin: 18px 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.release-row {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 14px 0;
}

.release-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.release-row a {
  color: #ffffff;
  font-weight: 900;
}

.release-row small {
  display: block;
  color: var(--subtle);
  overflow-wrap: anywhere;
}

.support-card {
  background:
    linear-gradient(180deg, rgba(242,184,75,.16), rgba(255,255,255,.04)),
    rgba(28, 33, 31, .86);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  max-width: 920px;
}

.faq-grid details {
  padding: 18px;
}

.faq-grid summary {
  cursor: pointer;
  color: #ffffff;
  font-weight: 900;
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 42px 0;
  background: #0c0f0e;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr);
  gap: 32px;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 10px;
  justify-items: start;
  color: var(--muted);
}

.legal {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .9rem;
  color: var(--subtle);
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .hero-grid,
  .two-column,
  .download-grid,
  .install-grid,
  .catalog-grid,
  .support-grid,
  .changelog-layout,
  .screenshot-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 62px;
  }

  .hero-grid {
    gap: 38px;
  }

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

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

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, var(--max));
  }

  .header-shell {
    min-height: 64px;
  }

  .brand span {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .support-pill {
    display: none;
  }

  .hero {
    padding: 42px 0 52px;
  }

  .section {
    padding: 58px 0;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 3.6rem);
  }

  .hero-actions,
  .download-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .release-strip {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .faq-grid,
  .screenshot-gallery,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .product-shot figcaption,
  .detail-shot figcaption {
    font-size: .78rem;
  }

  .screenshot-lightbox {
    padding: 12px;
  }

  .screenshot-lightbox figure {
    width: 100%;
    max-height: 88vh;
  }

  .screenshot-lightbox img {
    max-height: calc(88vh - 78px);
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }
}
