:root {
  --bg: #0d0f17; --bg2: #141724; --panel: #191d2d; --panel2: #20253a; --line: #2b3150;
  --text: #e8eaf6; --muted: #8a90b2; --accent: #ff5c8a; --accent2: #ffb547; --ok: #5cf2a0;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f5fa; --bg2: #eceef6; --panel: #ffffff; --panel2: #f2f3f8; --line: #dadeeb;
    --text: #191c2b; --muted: #5d6485; color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; color: var(--text); font: 16px/1.6 var(--font);
  background: radial-gradient(1000px 600px at 85% -5%, rgba(255,92,138,.14), transparent 60%),
              radial-gradient(800px 500px at -10% 20%, rgba(255,181,71,.08), transparent 60%), var(--bg);
}
a { color: var(--accent2); }
img { max-width: 100%; }

.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px;
  padding: 12px max(16px, calc((100% - 1160px) / 2)); background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; color: var(--text); }
.logo span { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.links a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: 600 15px var(--font);
  text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--muted); }
.btn.primary { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #0d0f17; border: 0; }
.btn.primary:hover { box-shadow: 0 8px 26px rgba(255,92,138,.35); }
.btn.big { padding: 14px 24px; font-size: 17px; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn[hidden] { display: none; }

.hero {
  max-width: 1160px; margin: 0 auto; padding: 72px 16px 40px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center;
}
.pill { display: inline-block; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 13px; font-weight: 600; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; margin: 18px 0 16px; letter-spacing: -1.5px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 18px; margin: 0 0 24px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.tiny { font-size: 13px !important; color: var(--muted); margin-top: 14px !important; }
.center { text-align: center; }
.hero-shot { position: relative; }
.shot-desktop { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5); display: block; }
.shot-mobile { position: absolute; width: 26%; right: -10px; bottom: -40px; border-radius: 22px; border: 4px solid #05060a; box-shadow: 0 20px 60px rgba(0,0,0,.6); }

.section { max-width: 1160px; margin: 0 auto; padding: 72px 16px 24px; }
.section h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; letter-spacing: -.5px; }
.sub { color: var(--muted); margin: 0 0 28px; }
.grid { display: grid; gap: 14px; }
.features { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 28px; }
.features > div, .concepts > div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.features b, .concepts b { font-size: 17px; }
.features p, .concepts p { color: var(--muted); margin: 6px 0 0; font-size: 15px; }

.downloads { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.dl { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.dl .ic { font-size: 30px; line-height: 1; height: 32px; }
.dl[data-os="mac"] .ic::before { content: "⌘"; }
.dl h3 { margin: 0; font-size: 19px; }
.dl p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.dl .btn { width: 100%; }
.dl.recommended { border: 2px solid var(--accent); box-shadow: 0 12px 40px rgba(255,92,138,.18); grid-column: span 2; }
.badge { position: absolute; top: -11px; left: 18px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.kbd, kbd { font: 13px var(--mono); border: 1px solid var(--line); background: var(--panel2); border-radius: 5px; padding: 1px 6px; }
code { font: 13px var(--mono); background: var(--panel2); padding: 2px 6px; border-radius: 5px; }

.guide h3 { font-size: 22px; margin: 44px 0 12px; color: var(--accent2); }
.guide li { margin: 6px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.toc a { text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 5px 14px; font-size: 14px; }
.toc a:hover { border-color: var(--accent); }
.concepts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
td { padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
td:first-child { font-family: var(--mono); font-size: 13px; color: var(--accent2); white-space: nowrap; width: 1%; }
tr:last-child td { border-bottom: 0; }

details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 48px 16px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 72px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .shot-mobile { width: 30%; right: 0; }
  .links { display: none; }
  .nav .btn { margin-left: auto; }
  .dl.recommended { grid-column: auto; }
  td:first-child { white-space: normal; }
}
