:root {
  --bg: #0b0b0d;
  --bg-soft: #131316;
  --bg-card: #161618;
  --border: #242427;
  --border-strong: #38383d;
  --text: #e6e6e8;
  --text-strong: #ffffff;
  --text-mute: #9a9aa0;
  --text-faint: #66666c;
  --accent: #e23b3b;
  --accent-2: #ff6a5a;
  --accent-soft: rgba(226, 59, 59, 0.16);
  --accent-grad: linear-gradient(135deg, #ff5a4d 0%, #b51616 100%);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.04em; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent-grad);
  box-shadow: 0 0 0 1px rgba(226, 59, 59, 0.4), 0 4px 16px rgba(181, 22, 22, 0.4);
  transform: rotate(45deg);
}
.brand-name { font-size: 18px; }
.brand-accent { color: var(--accent); margin-left: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 24px;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  background: rgba(11, 11, 13, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--text-mute); }
.site-nav a:hover { color: var(--text); }
.nav-app {
  padding: 8px 16px; border-radius: 8px; color: #fff !important;
  background: var(--accent-grad);
  box-shadow: 0 0 0 1px rgba(226, 59, 59, 0.35);
}
.nav-app:hover { filter: brightness(1.08); }

/* ---------- Hero ---------- */
.hero {
  max-width: 860px; margin: 0 auto; padding: 96px 24px 72px; text-align: center;
}
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px;
  color: var(--accent-2); margin: 0 0 18px; font-weight: 600;
}
.hero-title {
  font-size: clamp(38px, 7vw, 68px); line-height: 1.04; margin: 0 0 22px;
  font-weight: 800; letter-spacing: -0.02em;
}
.hero-title .accent {
  background: linear-gradient(120deg, #ff6a5a, #e23b3b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 19px; color: var(--text-mute); max-width: 640px; margin: 0 auto 34px; }
.hero-sub strong { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-note { margin-top: 20px; font-size: 13px; color: var(--text-faint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 10px;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .06s ease, filter .15s ease;
  border: 1px solid transparent;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 0 0 1px rgba(226,59,59,.35), 0 6px 20px rgba(181,22,22,.35); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }

/* ---------- Sections ---------- */
.section-title {
  text-align: center; font-size: clamp(26px, 4vw, 36px); font-weight: 800;
  letter-spacing: -0.01em; margin: 0 0 12px;
}
.features { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px; }
.feature-grid {
  margin-top: 40px; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px; transition: border-color .15s ease, transform .15s ease;
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature h3 { margin: 0 0 8px; font-size: 17px; }
.feature h3::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent); margin-right: 9px; transform: rotate(45deg); vertical-align: middle;
}
.feature p { margin: 0; color: var(--text-mute); font-size: 14.5px; }
.feature code { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: 0.85em; }

/* ---------- Download ---------- */
.download { max-width: 860px; margin: 0 auto; padding: 56px 24px 80px; text-align: center; }
.download-sub { color: var(--text-mute); margin: 0 auto 34px; max-width: 560px; }
.download-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.dl-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.dl-card h3 { margin: 0; font-size: 19px; }
.dl-card p { margin: 0; color: var(--text-mute); font-size: 14.5px; flex: 1; }
.dl-card .btn { margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border); text-align: center; padding: 40px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.footer-tag { color: var(--text-mute); margin: 4px 0 0; }
.footer-meta { color: var(--text-faint); font-size: 13px; margin: 0; }

@media (max-width: 560px) {
  .site-nav a:not(.nav-app) { display: none; }
  .hero { padding-top: 64px; }
}

/* ===== v2: icons, OS download cards, responsive ===== */
svg.ic, .feature-ic svg, .os-icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic { width: 18px; height: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* Download — OS cards */
.os-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 38px; }
.os-card { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 26px 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; transition: border-color .15s ease, transform .15s ease; }
.os-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.os-card.recommended { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.os-card .os-icon { width: 48px; height: 48px; color: var(--text-strong); display: flex; align-items: center; justify-content: center; }
.os-card .os-icon svg { width: 40px; height: 40px; }
.os-card h3 { margin: 4px 0 0; font-size: 18px; }
.os-card p { margin: 0; color: var(--text-mute); font-size: 13.5px; flex: 1; }
.os-card .btn { margin-top: 10px; width: 100%; }
.os-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent-grad); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.download-foot { margin-top: 28px; text-align: center; color: var(--text-mute); font-size: 14px; line-height: 1.7; }
.download-foot a { color: var(--accent-2); }
.download-foot .muted { color: var(--text-faint); font-size: 12.5px; }

/* Feature icons (replace the diamond bullet) */
.feature { display: flex; flex-direction: column; }
.feature-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-2); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.feature-ic svg { width: 22px; height: 22px; }
.feature h3::before { content: none; }

/* Full responsive */
@media (max-width: 640px) {
  .site-header { padding: 12px 16px; }
  .site-nav { gap: 14px; font-size: 13px; }
  .hero { padding: 56px 18px 48px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .features, .download { padding: 48px 18px; }
}
@media (max-width: 460px) {
  .site-nav a:not(.nav-app) { display: none; }
}
