:root {
  --brand: #d96c1d;
  --brand-deep: #8f3f08;
  --accent: #146c74;
  --ink-strong: #f6f3ee;
  --ink-soft: #c7c1b8;
  --panel: rgba(22, 24, 29, 0.82);
  --panel-strong: rgba(30, 33, 40, 0.94);
  --panel-line: rgba(255, 255, 255, 0.1);
  --shadow-deep: 0 28px 80px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink-soft);
  background:
    radial-gradient(circle at top left, rgba(217, 108, 29, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(20, 108, 116, 0.26), transparent 32%),
    linear-gradient(180deg, #0d0f13 0%, #161920 45%, #101217 100%);
}

body,
button,
input,
select,
textarea {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
strong,
.hero-badge,
nav strong {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink-strong);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 88%);
}

.container {
  width: min(1140px, calc(100vw - 2rem));
}

.site-header {
  padding-top: 1rem;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 1rem;
  margin: 0;
  padding: 0.15rem 0 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-brand {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink-strong);
  text-decoration: none;
}

.site-brand:hover {
  color: #fff;
}

.topbar-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.topbar-links a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
}

.topbar-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.language-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-self: end;
  padding: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.language-switcher a {
  min-width: 2.4rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.language-switcher a.active,
.language-switcher a:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(217, 108, 29, 0.88), rgba(143, 63, 8, 0.92));
}

main {
  padding-bottom: 2rem;
}

main section {
  position: relative;
  margin-bottom: 1.6rem;
  padding: 1.5rem;
  border: 1px solid var(--panel-line);
  border-radius: 1.5rem;
  background: var(--panel);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}

main section::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 108, 29, 0.35), rgba(20, 108, 116, 0.15), transparent 85%);
}

main section > h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

main section > article,
main section > .grid {
  position: relative;
  z-index: 1;
}

main article {
  padding: 1.05rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.2rem;
  background: var(--panel-strong);
}

main article p:last-child,
main article ul:last-child,
main article ol:last-child {
  margin-bottom: 0;
}

.hero {
  padding: 1.4rem 1.75rem 1.5rem;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(217, 108, 29, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(12, 14, 18, 0.88);
}

.hero h1 {
  max-width: 26ch;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.25rem;
  margin-bottom: 0.45rem;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero > p:not(.hero-badge) {
  max-width: 62rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  font-size: 1.08rem;
  color: #dbd5cc;
}

.hero-small {
  padding-bottom: 1.4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(217, 108, 29, 0.35);
  border-radius: 999px;
  background: rgba(217, 108, 29, 0.12);
  color: #ffd4b7;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.hero-actions [role="button"] {
  margin-bottom: 0;
}

.hero-metrics {
  margin-top: 1.1rem;
}

.metric-card {
  min-height: 100%;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
}

.metric-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.screenshot-grid {
  align-items: stretch;
  margin-top: 1rem;
}

.screenshot-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.screenshot-card img:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 108, 29, 0.35);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.screenshot-card h3,
.screenshot-card p {
  margin: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(5, 7, 10, 0.88);
  opacity: 0;
  transition: opacity 0.18s ease;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
}

.lightbox img {
  display: block;
  max-width: min(96vw, 1600px);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.metric-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cards-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid article h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.platform-download-count {
  margin-bottom: 0.2rem;
}

.platform-download-file {
  margin-bottom: 0.85rem;
  color: var(--ink-soft);
  word-break: break-word;
}

ul,
ol {
  padding-left: 1.15rem;
}

li + li {
  margin-top: 0.42rem;
}

a[role="button"] {
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 14px 32px rgba(143, 63, 8, 0.28);
}

a[role="button"].is-disabled,
a[role="button"][aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.5;
}

a[role="button"].secondary {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

footer {
  padding: 0 0 2.2rem;
}

footer small {
  display: block;
  padding-top: 0.25rem;
  color: rgba(255, 255, 255, 0.52);
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 0.7rem;
    padding-bottom: 0.8rem;
  }

  .topbar-links {
    justify-content: center;
  }

  .language-switcher {
    justify-content: center;
    justify-self: center;
  }

  .hero {
    padding: 2.6rem 1.1rem 1.4rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.3rem, 10vw, 3.4rem);
  }

  main section {
    padding: 1.1rem;
  }

  main article {
    padding: 0.95rem;
  }
}
