:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: #141414;
  --panel-2: #1c1c1c;
  --text: #ffffff;
  --muted: #b3b3b3;
  --accent: #ffffff;
  --border: #2b2b2b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Exo 2", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 24px 8vw;
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand img {
  width: 36px;
  height: 36px;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--muted);
  margin-left: auto;
}

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

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

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.lang-switch label {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  background: #141414;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 28px 7px 10px;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.2;
  min-width: 130px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) calc(50% - 2px),
    calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.lang-switch select:focus {
  outline: none;
  border-color: #5a5a5a;
}

.site-main {
  padding: 60px 8vw 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  margin: 0 0 16px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--text);
  color: var(--bg);
}

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

.btn.ghost {
  background: transparent;
  color: var(--text);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card {
  background: var(--panel);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: min(220px, 70%);
  height: auto;
  border-radius: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 70px;
}

.card {
  background: var(--panel);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  min-height: 160px;
}

.card h3 {
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.download {
  display: grid;
  gap: 24px;
}

.download-card {
  background: var(--panel-2);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--border);
}

.download-card h2 {
  margin-top: 0;
}

.download-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

.download-links a {
  color: var(--muted);
}

.page {
  max-width: 880px;
  margin: 0 auto;
  background: var(--panel);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--border);
}

.page h1 {
  margin-top: 0;
}

.page .content {
  line-height: 1.7;
  color: var(--muted);
}

.page .content h2 {
  color: var(--text);
}

.site-footer {
  padding: 30px 8vw 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  color: var(--muted);
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .site-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .site-nav {
    flex-wrap: wrap;
    gap: 12px;
    margin-left: 0;
  }
  .lang-switch {
    width: 100%;
    justify-content: flex-start;
  }
  .lang-switch select {
    width: auto;
    max-width: 100%;
  }
}
