.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.main-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.91rem;
  font-weight: 750;
}
.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text);
  background: var(--bg-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}
.icon-button:hover { background: var(--bg-soft); }
.icon-button svg { width: 19px; height: 19px; }
.menu-button { display: none; }

.hero { padding: 108px 0 88px; }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  gap: 64px;
  align-items: center;
}

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

.button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}
.button:hover { transform: translateY(-1px); }

.button--primary {
  background: var(--accent);
  color: #06131b;
}
html:not([data-theme="dark"]) .button--primary { color: #fff; }
.button--primary:hover { background: var(--accent-strong); }

.button--secondary {
  border-color: var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}
.button--secondary:hover { background: var(--bg-soft); }

.button--disabled,
.button[aria-disabled="true"] {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.app-visual {
  position: relative;
  width: min(100%, 430px);
  margin-inline: auto;
  padding: 20px;
}
.app-visual::before {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(38px);
}
.app-visual img {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.20));
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 750;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}

.card--flat { box-shadow: none; }

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card-icon svg { width: 22px; height: 22px; }

.card-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.notice {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}
.notice--warning { border-left-color: var(--warning); }
.notice--success { border-left-color: var(--success); }

.feature-list,
.plain-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
  list-style: none;
}
.feature-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 900;
}
.plain-list li { color: var(--text-muted); }

.stat {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}
.stat-value {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; }

.page-hero { padding: 82px 0 46px; }

.download-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.download-card .button { margin-top: auto; }
.download-meta {
  margin: 12px 0 22px;
  color: var(--text-muted);
  font-size: 0.91rem;
}
.package-name {
  display: block;
  margin-top: 10px;
  overflow-wrap: anywhere;
  color: var(--text-muted);
  font: 0.78rem/1.5 var(--font-mono);
}

.os-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 30px;
  padding: 0 10px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}
.doc-nav {
  position: sticky;
  top: calc(var(--header-height) + 26px);
}
.doc-nav strong {
  display: block;
  margin: 0 0 8px 10px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.doc-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--text-muted);
  font-weight: 720;
  font-size: 0.93rem;
}
.doc-nav a:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.doc-content { max-width: 820px; }
.doc-content section {
  scroll-margin-top: calc(var(--header-height) + 28px);
  padding-bottom: 54px;
}
.doc-content h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); }
.doc-content h3 { margin-top: 30px; }

.steps {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}
.step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
}
.step-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}
.step p { margin-bottom: 0; color: var(--text-muted); }

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.compare .card { position: relative; overflow: hidden; }
.compare .card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -34px;
  top: -34px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.version-pill {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  padding: 0 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-left: 52px;
}
.timeline-dot {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 18px;
  height: 18px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--border);
}

.file-showcase {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  align-items: center;
}
.file-showcase img {
  width: 120px;
  margin-inline: auto;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.14));
}

.copy-wrap { position: relative; }
.copy-button {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}
.copy-button:hover { color: var(--text); background: var(--bg-soft); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 42px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  color: var(--text-muted);
  font-size: 0.89rem;
}
.footer-meta { max-width: 650px; }
.footer-links {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-links a:hover { color: var(--text); }

@media (max-width: 1040px) {
  .nav-link { padding-inline: 8px; font-size: 0.86rem; }
}

@media (max-width: 940px) {
  .hero-layout { grid-template-columns: 1fr; }
  .app-visual { width: min(76vw, 360px); }

  .main-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    display: none;
    margin-left: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-elevated);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: block; }
  .nav-list { display: grid; gap: 4px; }
  .nav-link { width: 100%; min-height: 44px; }
  .menu-button { display: inline-grid; }
  .header-actions { margin-left: auto; }

  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .doc-nav strong { display: none; }
  .doc-nav a {
    white-space: nowrap;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
  }

  .compare { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  .hero { padding: 76px 0 60px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .file-showcase { grid-template-columns: 1fr; text-align: center; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}


/* Bilingual navigation */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.language-switch a {
  padding: 4px 2px;
  border-radius: 6px;
}
.language-switch a:hover,
.language-switch a[aria-current="true"] {
  color: var(--accent);
}
.language-switch span {
  opacity: 0.45;
}

.language-landing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 20px;
}
.language-panel {
  width: min(100%, 760px);
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  text-align: center;
}
.language-panel-logo {
  width: 94px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.16));
}
.language-panel h1 {
  margin-inline: auto;
  font-size: clamp(2.6rem, 9vw, 4.8rem);
}
.language-panel .lead {
  margin-inline: auto;
}
.language-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}
.language-choice {
  display: grid;
  gap: 4px;
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  text-align: left;
  transition: transform 140ms ease, border-color 140ms ease;
}
.language-choice:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.language-choice strong {
  font-size: 1.12rem;
}
.language-choice span {
  color: var(--text-muted);
  font-size: .9rem;
}
.language-landing-theme {
  position: fixed;
  top: 18px;
  right: 18px;
}

@media (max-width: 620px) {
  .language-switch {
    height: 40px;
    padding-inline: 8px;
  }
  .language-choice-grid {
    grid-template-columns: 1fr;
  }
}


/* Global download counter */
.global-download-counter {
  width: fit-content;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 24px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}

.global-download-counter--center {
  width: min(100%, 520px);
  justify-content: center;
  margin: 22px auto 0;
  text-align: center;
}

.global-download-counter-value {
  color: var(--accent);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.global-download-counter-label {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 750;
}

@media (max-width: 520px) {
  .global-download-counter {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
