:root {
  --bg: #0b1020;
  --bg-2: #0e1428;
  --panel: #121a30;
  --panel-2: #172039;
  --line: #222b45;
  --line-2: #2c3756;
  --text: #eef1f8;
  --muted: #9aa3b8;
  --faint: #6f7891;
  --accent: #6659ef;
  --accent-2: #8a80ff;
  --blue: #55a0dc;
  --green: #7cb262;
  --orange: #ef8a3a;
  --radius: 16px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; margin-left: -6px; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 550; font-size: 15px; padding: 8px 12px; border-radius: 9px; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); }
.header-cta { margin-left: auto; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: 11px;
  font: inherit; font-weight: 650; font-size: 15.5px; text-decoration: none;
  color: #fff; background: var(--accent); border: 1px solid transparent; cursor: pointer;
  transition: filter .15s, background .15s, border-color .15s;
}
.button:hover { filter: brightness(1.1); }
.button.secondary { background: transparent; border-color: var(--line-2); color: var(--text); }
.button.secondary:hover { background: var(--panel); filter: none; }
.button.small { min-height: 38px; padding: 0 14px; font-size: 14.5px; border-radius: 10px; }
.button.disabled { background: transparent; border-color: var(--line); color: var(--faint); cursor: default; }
.button svg { width: 18px; height: 18px; flex: none; }

/* Hero */
.hero { position: relative; padding: 84px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -200px -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(600px 340px at 20% 30%, color-mix(in srgb, var(--blue) 28%, transparent), transparent 70%),
    radial-gradient(520px 320px at 80% 20%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    radial-gradient(520px 300px at 60% 70%, color-mix(in srgb, var(--orange) 14%, transparent), transparent 70%);
  filter: blur(10px);
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); font-weight: 650; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.03em; margin: 16px 0 20px; font-weight: 750; max-width: 14em; }
.hero h1 .grad { background: linear-gradient(90deg, var(--blue), var(--green) 55%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 38em; margin: 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; color: var(--faint); font-size: 14px; }

/* Product mock */
.mock {
  margin-top: 64px; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.mock-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #0c1224; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3350; }
.mock-bar span { margin-left: 14px; font-size: 12.5px; color: var(--faint); background: var(--panel); border-radius: 7px; padding: 3px 12px; }
.mock-body { display: grid; grid-template-columns: 220px 1fr; min-height: 380px; }
.mock-rail { background: linear-gradient(180deg, #14234a, #111a33); border-right: 1px solid var(--line); padding: 18px 12px; }
.mock-rail b { display: block; font-size: 11px; letter-spacing: .08em; color: var(--faint); margin: 0 8px 10px; }
.mock-portal { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 13.5px; color: var(--muted); }
.mock-portal.on { background: rgba(255,255,255,.07); color: var(--text); }
.mock-portal em { width: 22px; height: 22px; border-radius: 7px; flex: none; }
.mock-main { padding: 22px; background:
  radial-gradient(500px 260px at 90% 0%, rgba(102,89,239,.16), transparent 70%),
  radial-gradient(400px 220px at 10% 100%, rgba(85,160,220,.12), transparent 70%); }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mock-head strong { font-size: 16px; }
.mock-head .pill { font-size: 12px; color: #bdf0d3; background: rgba(53,184,128,.14); border: 1px solid rgba(53,184,128,.3); padding: 3px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.mock-head .pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #35b880; }
.mock-table { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(18,26,48,.7); }
.mock-row { display: grid; grid-template-columns: 1fr 110px 80px; gap: 12px; align-items: center; padding: 11px 14px; font-size: 13.5px; border-top: 1px solid var(--line); }
.mock-row:first-child { border-top: 0; color: var(--faint); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.mock-row > span:nth-child(n+2) { color: var(--muted); text-align: right; }
.mock-file { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mock-file em { width: 18px; height: 22px; border-radius: 4px; border: 1.5px solid var(--line-2); flex: none; }
.mock-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-transfer { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(18,26,48,.85); }
.mock-transfer-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.mock-transfer-top span { color: var(--muted); }
.bar { height: 7px; border-radius: 99px; background: var(--line); margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 68%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--accent)); animation: grow 6s ease-in-out infinite alternate; }
@keyframes grow { from { width: 42%; } to { width: 86%; } }

/* Sections */
section.block { padding: 96px 0; }
section.block.alt { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.section-head { max-width: 46em; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -0.02em; margin: 12px 0 14px; font-weight: 720; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--accent-2); font-weight: 750; margin-bottom: 18px; }
.step h3 { margin: 0 0 8px; font-size: 19px; font-weight: 680; }
.step p { margin: 0; color: var(--muted); }
.step code, .card code, .prose code { font: 13.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: #cfd6ff; background: #0a0f1f; border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; word-break: break-word; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--panel) 60%, var(--bg))); }
.feature .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: color-mix(in srgb, var(--c, var(--accent)) 16%, transparent); color: var(--c, var(--accent-2)); border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 35%, transparent); }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 18.5px; font-weight: 680; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 7px; background: rgba(53,184,128,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2335b880' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; border: 1px solid rgba(53,184,128,.35); }
.checks b { display: block; font-weight: 660; }
.checks span { color: var(--muted); font-size: 15.5px; }

.diagram { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); display: grid; gap: 14px; }
.node { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); }
.node em { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; font-style: normal; font-weight: 750; font-size: 13px; }
.node b { display: block; font-size: 15px; }
.node span { color: var(--muted); font-size: 13.5px; }
.link { display: flex; align-items: center; gap: 10px; padding-left: 30px; color: var(--faint); font-size: 12.5px; letter-spacing: .03em; }
.link::before { content: ""; width: 2px; height: 26px; background: linear-gradient(var(--blue), var(--accent)); border-radius: 2px; }
.link.data::before { background: linear-gradient(var(--green), var(--orange)); }

.terminal { border: 1px solid var(--line-2); border-radius: 14px; background: #070b17; overflow: hidden; }
.terminal-bar { height: 34px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 12px; }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3350; }
.terminal pre { margin: 0; padding: 18px 20px; font: 13.5px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; color: #cdd5ea; overflow-x: auto; }
.terminal .p { color: var(--green); }
.terminal .c { color: var(--faint); }

.cta { text-align: center; padding: 64px 28px; border-radius: 22px; border: 1px solid var(--line-2);
  background: radial-gradient(500px 220px at 50% 0%, rgba(102,89,239,.3), transparent 70%), var(--panel); }
.cta h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 12px; letter-spacing: -0.02em; }
.cta p { color: var(--muted); margin: 0 auto; max-width: 34em; }
.cta .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Download page */
.page-head { padding: 72px 0 24px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.03em; line-height: 1.08; margin: 14px 0 16px; }
.download-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.card h2 { margin: 0 0 6px; font-size: 22px; font-weight: 680; }
.card h3 { margin: 0 0 10px; font-size: 17px; font-weight: 680; }
.card p { margin: 0; color: var(--muted); }
.card + .card { margin-top: 20px; }
.platforms { display: grid; gap: 12px; margin-top: 22px; }
.platform { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); }
.platform .os { width: 44px; height: 44px; border-radius: 12px; background: var(--panel-2); display: grid; place-items: center; flex: none; }
.platform .os svg { width: 22px; height: 22px; }
.platform .info { flex: 1; min-width: 0; }
.platform .info b { display: block; }
.platform .info span { color: var(--muted); font-size: 14px; }
.version { margin-top: 14px; font-size: 13.5px; color: var(--faint); }
.prose ol, .prose ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.prose li + li { margin-top: 6px; }
.prose li b { color: var(--text); font-weight: 620; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 36px 0 44px; color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.site-footer img { height: 28px; width: auto; margin-left: -5px; opacity: .9; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--text); }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .split, .download-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav a.optional { display: none; }
  .site-header .wrap { gap: 10px; }
  .brand img { height: 38px; }
  .nav a { padding: 8px 9px; font-size: 14.5px; }
  .header-cta { display: none; }
  .hero { padding-top: 52px; }
  .steps, .features { grid-template-columns: 1fr; }
  section.block { padding: 64px 0; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-rail { display: none; }
  .mock-row { grid-template-columns: 1fr 70px; }
  .mock-row > span:nth-child(2) { display: none; }
  .hero .actions .button, .cta .actions .button { width: 100%; }
  .platform { flex-wrap: wrap; }
  .platform .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar i { animation: none; }
}
