:root {
  color-scheme: dark;
  --bg: #0c1013;
  --panel: #161b20;
  --panel-2: #1e252b;
  --text: #edf2f5;
  --muted: #98a4ab;
  --line: #283239;
  --accent: #66d9ef;
  --accent-2: #d2bd6c;
  --green: #79c77b;
  --rose: #de879d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 max(22px, 6vw);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
nav,
.actions,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

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

nav {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.language-switch {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.language-switch button {
  min-width: 36px;
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.language-switch button.active {
  background: color-mix(in srgb, var(--accent) 18%, var(--panel-2));
  color: var(--text);
}

.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  padding: clamp(40px, 6vw, 80px) max(22px, 6vw) clamp(60px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 78% 12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    radial-gradient(90% 70% at 8% 92%, color-mix(in srgb, var(--rose) 11%, transparent), transparent 52%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  max-width: 1280px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  width: 100%;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 0;
  font-size: clamp(58px, 8vw, 116px);
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.lede {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
}

.actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

button,
.secondary {
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0 18px;
  color: var(--text);
  background: var(--panel);
  font: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

button:hover:not(:disabled),
.secondary:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: progress;
  opacity: 0.9;
}

.primary {
  min-width: 230px;
  border-color: color-mix(in srgb, var(--accent) 66%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 22%, var(--panel)), var(--panel));
  color: #f4fbfc;
  font-weight: 700;
}

.primary:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 80%, var(--line));
}

.secondary {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.release-note {
  min-height: 20px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

/* Hero visual */
.hero-visual {
  width: 100%;
  min-width: 0;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid color-mix(in srgb, var(--muted) 60%, transparent);
  border-radius: 14px;
  z-index: 1;
}

.hero-scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: hero-scroll 1.6s ease-in-out infinite;
}

@keyframes hero-scroll {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

.demo-video-shell,
.app-preview {
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 45%),
    linear-gradient(315deg, color-mix(in srgb, var(--rose) 12%, transparent), transparent 44%),
    #11161a;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.demo-video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
}

.demo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #070a0d;
}

.demo-video-shell.has-video .demo-fallback {
  display: none;
}

.demo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
}

.play-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, var(--panel-2));
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line));
}

.play-mark::before {
  content: "";
  margin-left: 4px;
  border-left: 16px solid var(--text);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.demo-label {
  margin: 0;
  color: var(--text);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.15;
}

.preview-topbar {
  height: 42px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #171d21;
}

.traffic {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line);
}

.traffic.red { background: #ff5f57; }
.traffic.yellow { background: #ffbd2e; }
.traffic.green { background: #28c840; }

.preview-tab {
  height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  margin-left: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
}

.preview-tab.active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.preview-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 420px;
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: #151a1e;
  color: var(--muted);
  font-size: 13px;
}

.preview-sidebar span {
  padding: 7px 8px;
  border-radius: 6px;
}

.preview-sidebar .preview-path {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

pre {
  margin: 0;
  padding: clamp(22px, 4vw, 44px);
  color: #d9f7dd;
  font: 15px/1.7 "SF Mono", Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.product-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.product-blocks article {
  min-height: 210px;
  padding: clamp(24px, 4vw, 42px) max(22px, 5vw);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent),
    var(--bg);
}

.product-blocks article:nth-child(2),
.product-blocks article:nth-child(3) {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--green) 4%, transparent), transparent),
    var(--bg);
}

.product-blocks h2 {
  max-width: 680px;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.12;
}

.product-blocks p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  font-size: 15px;
}

.features article {
  padding: 34px max(22px, 4vw);
  background: var(--bg);
}

h2 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: 0;
}

p { line-height: 1.6; }

.features p,
.downloads p,
footer {
  color: var(--muted);
}

.downloads {
  padding: 78px max(22px, 6vw);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
}

.section-head {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 44%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.section-head h2 {
  font-size: clamp(34px, 5vw, 56px);
}

.download-grid {
  display: grid;
  gap: 14px;
}

.release-card {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 2vw, 20px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, var(--bg));
  box-shadow: none;
}

.release-card.featured {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  background: color-mix(in srgb, var(--panel) 96%, var(--accent));
}

.release-card.compact {
  padding: 16px;
}

.release-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.release-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-heading h3 {
  margin: 0;
  font-size: 27px;
  line-height: 1.1;
}

.release-heading h3 a {
  color: inherit;
}

.release-title {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.release-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-items: end;
  text-align: right;
  color: var(--muted);
  font-size: 13px;
}

.release-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: color-mix(in srgb, var(--panel-2) 62%, transparent);
  color: var(--muted);
  font-size: 13px;
}

.release-platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}

.platform-block {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 34%, transparent);
}

.platform-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
  padding: 0 2px 2px;
}

.platform-block-head h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.platform-rows {
  display: grid;
  gap: 10px;
}

.download-choice {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 52%, transparent);
}

.download-choice-main {
  display: grid;
  gap: 9px;
  align-items: start;
}

.choice-platform {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.download-choice h4 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}

.download-choice p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.asset-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.asset-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: color-mix(in srgb, var(--panel-2) 62%, transparent);
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
}

.primary-download-link {
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent),
    color-mix(in srgb, var(--panel-2) 86%, var(--accent));
  color: #effdff;
  font-size: 13px;
}

.download-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.15;
}

.download-verb {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.download-text strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  white-space: normal;
}

.download-format {
  color: color-mix(in srgb, var(--accent) 75%, var(--muted));
  font-size: 12px;
  font-weight: 700;
}

.asset-icon {
  display: inline-flex;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: currentColor;
}

.asset-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.asset-link--checksum {
  border-color: color-mix(in srgb, var(--accent-2) 26%, var(--line));
  background: color-mix(in srgb, var(--accent-2) 7%, var(--panel-2));
  color: color-mix(in srgb, var(--text) 88%, var(--accent-2));
}

.asset-link--file {
  color: var(--muted);
}

.secondary-assets {
  padding-top: 0;
}

.secondary-assets summary {
  width: fit-content;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  list-style-position: inside;
}

.secondary-asset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
}

.changelog {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.changelog h4 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 13px;
}

.changelog-title {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.changelog-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.changelog ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: 9px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.changelog-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.changelog-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: color-mix(in srgb, var(--panel-2) 62%, transparent);
  color: var(--muted);
  font-size: 12px;
}

.changelog-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.older-releases {
  display: grid;
  gap: 12px;
  margin-top: 2px;
}

.older-releases summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  list-style-position: inside;
  padding: 2px 2px 0;
}

.older-releases[open] {
  margin-top: 2px;
}

.older-releases-list {
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

.empty-state {
  padding: 24px;
}

footer {
  gap: 18px;
  flex-wrap: wrap;
  padding: 26px max(22px, 6vw);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.legal {
  max-width: 850px;
  margin: 0 auto;
  padding: 56px 22px;
}

.legal h1 { font-size: clamp(42px, 8vw, 78px); }
.legal a { color: var(--accent); }

@media (max-width: 860px) {
  .hero-inner,
  .features,
  .product-blocks {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: clamp(36px, 10vw, 56px);
  }

  .hero-inner {
    gap: clamp(28px, 8vw, 44px);
  }

  .hero-visual {
    order: -1;
  }

  .hero-scroll {
    display: none;
  }

  nav a {
    display: none;
  }

  nav {
    gap: 0;
  }

  .changelog ul {
    grid-template-columns: 1fr;
  }

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

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

  .section-head-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .release-meta {
    justify-content: flex-start;
    text-align: left;
    justify-items: start;
  }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .release-platforms {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}
