:root {
  --bg0: #0B0B0D;
  --bg1: #141417;
  --bg2: #19191D;
  --bg3: #212126;
  --text-primary: #F5F5F7;
  --text-muted: #8B8B93;
  --accent: #E8384F;
  --accent-dim: rgba(232, 56, 79, 0.14);
  --border: #26262c;
  --radius: 14px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg0);
  color: var(--text-primary);
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.mono {
  font-family: "JetBrains Mono", "Consolas", monospace;
  letter-spacing: 0.04em;
}

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

/* ---- Nav ---- */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.brand .mono { color: var(--accent); font-size: 13px; }

nav.links {
  display: flex;
  align-items: center;
  gap: 4px;
}
nav.links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}
nav.links a:hover { color: var(--text-primary); background: var(--bg2); }
nav.links a.active { color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(232,56,79,0.4); }

.lang-switch {
  display: flex;
  gap: 2px;
  margin-left: 10px;
  border-left: 1px solid var(--border);
  padding-left: 14px;
}
.lang-switch a {
  font-size: 11px;
  padding: 6px 8px;
  color: var(--text-muted);
  font-weight: 700;
}
.lang-switch a.active { color: var(--accent); }

/* mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 22px; cursor: pointer; }
@media (max-width: 780px) {
  nav.links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg1); flex-direction: column; align-items: stretch; padding: 8px; border-bottom: 1px solid var(--border); }
  nav.links.open { display: flex; }
  .nav-toggle { display: block; }
  .lang-switch { border-left: none; padding-left: 0; margin: 8px 0 0; }
}

/* ---- Hero ---- */
.hero {
  padding: 96px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(232,56,79,0.16), transparent 70%);
  pointer-events: none;
}
.hero .tag {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(232,56,79,0.4);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(32px, 5.5vw, 58px);
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #d12e44; text-decoration: none; }
.btn-secondary { background: var(--bg2); color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg3); text-decoration: none; }

/* ---- Sections ---- */
section { padding: 64px 0; border-top: 1px solid var(--border); }
section.no-border { border-top: none; }
section h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
section .eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}
section p.section-lead {
  color: var(--text-muted);
  max-width: 680px;
  font-size: 16px;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 16px; }
.card p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ---- Download cards ---- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.download-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.download-card .platform-icon { font-size: 40px; margin-bottom: 14px; }
.download-card h3 { margin: 0 0 6px; font-size: 18px; }
.download-card .meta { color: var(--text-muted); font-size: 12px; margin-bottom: 20px; font-family: "JetBrains Mono", monospace; }
.download-card .btn { width: 100%; justify-content: center; }
.download-card.disabled { opacity: 0.55; }
.download-card .note { margin-top: 12px; font-size: 12px; color: var(--text-muted); }

/* ---- Callout / warning box ---- */
.callout {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 24px 0;
  font-size: 14.5px;
  color: var(--text-primary);
}
.callout strong { color: var(--accent); }

/* ---- Timeline / steps ---- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step .num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(232,56,79,0.4);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  font-family: "JetBrains Mono", monospace;
}
.step h4 { margin: 0 0 6px; font-size: 15px; }
.step p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ---- Table ---- */
table.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
table.compare th, table.compare td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
table.compare th { color: var(--text-muted); font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
table.compare td.yes { color: #57F287; }
table.compare td.no { color: var(--text-muted); }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 13px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer a { color: var(--text-muted); }
footer a:hover { color: var(--text-primary); }
footer .foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- Misc ---- */
.badge-pl { display: inline-flex; align-items: center; gap: 6px; font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--text-muted); }

@media (max-width: 640px) {
  .hero { padding: 64px 0 48px; }
  section { padding: 48px 0; }
}
