:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --panel: #ffffff;
  --line: #e7e9ee;
  --line-strong: #d7dbe2;
  --text: #101418;
  --muted: #56606c;
  --dim: #7b8593;
  --ink: #101418;
  --yellow: #ffd400;
  --green: #16a34a;
  --cyan: #0284c7;
  --red: #dc2626;
  --radius: 12px;
  --mono: ui-monospace, "SF Mono", "Menlo", "Monaco", "Cascadia Code",
    "Roboto Mono", "Courier New", monospace;
  --shell: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15.5px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--yellow);
  color: var(--text);
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-soft);
}

::-webkit-scrollbar-thumb {
  background: #cfd4dc;
  border-radius: 6px;
  border: 2px solid var(--bg-soft);
}

::-webkit-scrollbar-thumb:hover {
  background: #b3bac5;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 14px max(24px, calc((100vw - var(--shell)) / 2));
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header.is-stuck {
  box-shadow: 0 6px 20px rgba(16, 20, 24, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  font-size: 13px;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.site-nav .release-link {
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
}

.site-nav .release-link:hover {
  border-color: var(--ink);
}

/* ---------- shared ---------- */

main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease,
    transform 0.16s ease;
}

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

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-primary:hover {
  background: #000;
  color: #fff;
}

.button-secondary {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--ink);
}

.section-heading {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 14px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- hero ---------- */

.hero {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 88px) 0 clamp(36px, 5vw, 56px);
  text-align: center;
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 20px;
}

.hero-lead {
  max-width: 620px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
  font-size: 13px;
  color: var(--dim);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
}

.hero-points li + li::before {
  content: "·";
  margin: 0 14px;
  color: var(--line-strong);
}

/* ---------- screenshot ---------- */

.showcase {
  padding: 8px 0 clamp(56px, 7vw, 84px);
}

.showcase-frame {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(16, 20, 24, 0.14);
}

.showcase-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--dim);
}

.terminal-dots {
  display: inline-flex;
  gap: 7px;
  flex-shrink: 0;
}

.terminal-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-dots i:nth-child(1) {
  background: var(--red);
}

.terminal-dots i:nth-child(2) {
  background: var(--yellow);
}

.terminal-dots i:nth-child(3) {
  background: var(--green);
}

.showcase-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.showcase-note {
  max-width: 720px;
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.showcase-note strong {
  color: var(--text);
}

/* ---------- features ---------- */

.features {
  padding: clamp(56px, 7vw, 84px) 0;
  border-top: 1px solid var(--line);
}

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

.feature-card {
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.feature-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.feature-card h3 {
  font-size: 15.5px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

.feature-icon {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 10px;
}

.feature-icon::before,
.feature-icon::after {
  content: "";
  position: absolute;
}

.feature-icon-search {
  background: rgba(2, 132, 199, 0.1);
}

.feature-icon-search::before {
  top: 11px;
  left: 11px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
}

.feature-icon-search::after {
  top: 24px;
  left: 25px;
  width: 8px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.feature-icon-play {
  background: rgba(220, 38, 38, 0.1);
}

.feature-icon-play::before {
  top: 12px;
  left: 15px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid var(--red);
}

.feature-icon-quality {
  background: rgba(217, 119, 6, 0.12);
}

.feature-icon-quality::before {
  bottom: 12px;
  left: 12px;
  width: 5px;
  height: 7px;
  background: #d97706;
  border-radius: 2px;
  box-shadow: 7px -5px 0 #d97706, 14px -11px 0 #d97706;
}

.feature-icon-download {
  background: rgba(22, 163, 74, 0.1);
  background-image: linear-gradient(#16a34a, #16a34a);
  background-repeat: no-repeat;
  background-position: 12px 28px;
  background-size: 16px 2px;
}

.feature-icon-download::before {
  top: 10px;
  left: 19px;
  width: 2px;
  height: 13px;
  background: var(--green);
}

.feature-icon-download::after {
  top: 18px;
  left: 15px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
}

/* ---------- download ---------- */

.download-section {
  padding: clamp(56px, 7vw, 84px) 0;
  border-top: 1px solid var(--line);
}

.download-heading {
  max-width: 720px;
}

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

.download-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.download-card-linux {
  background: var(--bg-soft);
}

.download-card-header {
  display: flex;
  align-items: center;
  gap: 13px;
}

.download-card-header h3 {
  font-size: 16px;
}

.download-card-header p {
  font-size: 12px;
  color: var(--dim);
  margin-top: 2px;
}

.platform-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
}

.platform-mac {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--yellow);
}

.platform-windows {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.25);
  color: var(--cyan);
}

.platform-linux {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.25);
  color: #b45309;
}

.version-tag {
  margin-left: auto;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
}

.download-button-row {
  display: grid;
  gap: 9px;
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.download-button span {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--dim);
  white-space: nowrap;
}

.download-button:hover {
  text-decoration: none;
  border-color: var(--ink);
  transform: translateY(-1px);
}

.download-button-primary {
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.download-button-primary span {
  color: rgba(255, 255, 255, 0.65);
}

.download-button-primary:hover {
  background: #000;
  border-color: #000;
}

.platform-note {
  margin-top: auto;
  font-size: 12px;
  line-height: 1.6;
  color: var(--dim);
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--dim);
}

.release-meta a {
  margin-left: auto;
  color: var(--muted);
}

.release-meta a:hover {
  color: var(--text);
}

/* ---------- faq ---------- */

.faq {
  padding: clamp(56px, 7vw, 84px) 0;
  border-top: 1px solid var(--line);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.faq-item {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.faq-item h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg-soft);
  font-family: inherit;
  font-size: 0.92em;
  color: var(--text);
}

/* ---------- requirements ---------- */

.requirements {
  padding: clamp(52px, 7vw, 80px) 0;
}

.requirements-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.requirements-card > div {
  max-width: 620px;
}

.requirements-card h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 10px;
}

.requirements-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14.5px;
}

.requirements-card .button {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ---------- footer ---------- */

.site-footer {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px 24px 44px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 12.5px;
  color: var(--dim);
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

/* ---------- reveal ---------- */

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .feature-grid,
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .requirements-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  main {
    padding: 0 18px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 18px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 8px 16px;
    font-size: 12.5px;
  }

  .hero {
    text-align: left;
  }

  .hero-lead {
    margin-left: 0;
  }

  .hero-actions,
  .hero-points {
    justify-content: flex-start;
  }

  .hero-points li + li::before {
    margin: 0 10px;
  }

  .feature-grid,
  .download-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .requirements-card {
    padding: 24px 20px;
  }

  .release-meta a {
    margin-left: 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 18px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
