:root {
  --bg: #0e0f17;
  --bg2: #14151f;
  --surface: #181a26;
  --border: #262838;
  --text: #e9ebf4;
  --muted: #9aa0b8;
  --accent: #6366f1;
  --accent2: #818cf8;
  --ok: #34d399;
  --radius: 16px;
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { color: #a5b4fc; }
code { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace; font-size: .92em; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 5vw, 40px);
  background: rgba(14, 15, 23, .72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); }
.brand img { border-radius: 7px; }
.nav nav { display: flex; gap: 22px; align-items: center; font-size: 14px; font-weight: 600; }
.nav nav a { color: var(--muted); }
.nav nav a:hover { color: var(--text); }
@media (max-width: 720px) { .nav nav a:not(:last-child) { display: none; } }

main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 5vw, 40px); }

/* hero */
.hero { position: relative; text-align: center; padding: clamp(64px, 12vw, 130px) 0 56px; }
.hero-glow {
  position: absolute; inset: -10% 10% auto; height: 380px; z-index: -1;
  background: radial-gradient(60% 100% at 50% 0%, rgba(99,102,241,.32), transparent 70%);
  filter: blur(20px);
}
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 5px 14px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600;
}
.hero h1 { margin: 0; font-size: clamp(40px, 8vw, 76px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; }
.grad { background: linear-gradient(120deg, var(--accent2), #c4b5fd 60%, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 640px; margin: 24px auto 0; color: #c3c8de; font-size: clamp(16px, 2.4vw, 19px); }
.lede strong { color: var(--text); font-weight: 700; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; font-weight: 700; font-size: 15px;
  cursor: pointer; transition: transform .12s ease, background .15s, border-color .15s; border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(120deg, var(--accent), #7c3aed); color: #fff; box-shadow: 0 8px 28px rgba(99,102,241,.35); }
.btn.primary:hover { color: #fff; }
.btn.ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); color: var(--text); }

/* badges */
.badges {
  max-width: var(--maxw); margin: 8px auto 0; padding: 0 clamp(16px, 5vw, 40px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.badges > div {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.badges b { display: block; font-size: 22px; font-weight: 800; }
.badges span { color: var(--muted); font-size: 13px; }
@media (max-width: 720px) { .badges { grid-template-columns: repeat(2, 1fr); } }

/* sections */
.section { padding: clamp(56px, 9vw, 90px) 0 0; }
.section h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.02em; margin: 0 0 32px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .grid, .grid.two { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px;
}
.card .ic { font-size: 30px; }
.card h3 { margin: 14px 0 8px; font-size: 19px; }
.card p { margin: 0; color: #c3c8de; }
.card code { background: var(--bg2); padding: 1px 6px; border-radius: 6px; color: #c7d2fe; }
.card pre {
  margin: 16px 0 0; background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; overflow-x: auto; font-size: 13px; line-height: 1.55; color: #d7dcf0;
}

/* formats table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--muted); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
td.y { color: var(--ok); font-weight: 700; }
td.n { color: var(--muted); }
.fineprint { color: var(--muted); font-size: 13px; margin-top: 14px; }
.fineprint code { background: var(--surface); padding: 1px 6px; border-radius: 6px; }

/* download */
.dl-sub { color: var(--muted); margin: -18px 0 28px; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; text-align: center; position: relative;
}
.dl-card.recommended { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 12px 40px rgba(99,102,241,.2); }
.dl-card.recommended::after {
  content: "Detected"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 999px;
}
.dl-card h3 { margin: 0 0 4px; font-size: 20px; }
.dl-card .muted { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.dl-card .btn { width: 100%; justify-content: center; }
.dl-card .alt { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.lnk { font-weight: 600; }

/* footer */
footer {
  max-width: var(--maxw); margin: clamp(64px, 10vw, 110px) auto 0; padding: 36px clamp(16px, 5vw, 40px) 56px;
  border-top: 1px solid var(--border); text-align: center; color: var(--muted);
}
footer .brand { justify-content: center; font-size: 16px; margin-bottom: 10px; color: var(--text); }
footer p { margin: 4px 0; font-size: 14px; }
.muted { color: var(--muted); }
