:root {
  --bg: #05050a; --bg2: #0a0b10; --bg3: #13141f;
  --surface: rgba(255,255,255,.04); --surface2: rgba(255,255,255,.07); --border: rgba(255,255,255,.08);
  --text: #f8fafc; --text2: #94a3b8; --muted: #64748b;
  --accent: #3d8bfd; --accent2: #7c5cff; --cyan: #00d2ff; --green: #22c55e; --amber: #f5a524;
  --font: 'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --display: 'Outfit', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
code, pre { font-family: Consolas, 'Cascadia Mono', 'SF Mono', monospace; }
code { background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; font-size: .88em; }
pre { background: #0b0c12; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: .88rem; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; margin: 0 0 .4em; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.muted { color: var(--text2); }
.small { font-size: .9rem; }
.center { text-align: center; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(5,5,10,.75); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--text2); font-size: .95rem; }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.nav .cta { margin-left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: .15s; }
.btn:hover { background: var(--surface2); text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; color: #fff; box-shadow: 0 8px 28px rgba(61,139,253,.28); }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* hero */
.hero { position: relative; padding: 96px 0 64px; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 30%, rgba(61,139,253,.16), transparent 55%), radial-gradient(ellipse at 70% 60%, rgba(124,92,255,.12), transparent 55%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px); background-size: 56px 56px; pointer-events: none; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.hero .wrap { position: relative; z-index: 1; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(61,139,253,.09); border: 1px solid rgba(61,139,253,.25); color: var(--accent); padding: 8px 16px; border-radius: 100px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 28px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 18px; }
.hero h1 span { background: linear-gradient(90deg, var(--cyan), var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text2); max-width: 720px; margin: 0 auto 34px; }
.hero .shot { margin: 54px auto 0; width: min(820px, 94vw); border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03); background: #202020; }
.hero .shot img { display: block; border-radius: 16px; }
.hero .fine { margin-top: 16px; color: var(--muted); font-size: .85rem; }

/* sections */
section { padding: 84px 0; }
section.alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.sub { color: var(--text2); font-size: 1.1rem; max-width: 720px; margin-bottom: 40px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: .15s; }
.card:hover { background: var(--surface2); border-color: rgba(255,255,255,.14); }
.card .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; margin-bottom: 16px; background: rgba(61,139,253,.12); color: var(--accent); }
.card p { color: var(--text2); margin: 0; font-size: .95rem; }

/* layouts */
.layouts { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.layouts figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.layouts img { display: block; width: 100%; background: #202020; }
.layouts figcaption { padding: 16px 18px; }
.layouts figcaption strong { display: block; font-family: var(--display); margin-bottom: 4px; }
.layouts figcaption span { color: var(--text2); font-size: .92rem; }

/* two-col */
.two { display: grid; gap: 44px; grid-template-columns: 1fr 1fr; align-items: center; }
.two ul { padding-left: 0; list-style: none; margin: 0; }
.two li { padding: 10px 0 10px 32px; position: relative; color: var(--text2); border-bottom: 1px solid var(--border); }
.two li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 700; }
.two li strong { color: var(--text); }
.term { background: #0b0c12; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.term .bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.term .bar i { width: 10px; height: 10px; border-radius: 50%; background: #333; display: block; }
.term pre { border: 0; border-radius: 0; margin: 0; }

/* steps */
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 12px; }
.step p { color: var(--text2); font-size: .95rem; margin: 0; }

/* table */
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text2); font-weight: 600; font-size: .85rem; }
td code { white-space: nowrap; }
.tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }

/* faq */
details { border-bottom: 1px solid var(--border); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; font-family: var(--display); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { color: var(--text2); margin: 10px 0 0; }

/* download */
.dl { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dl .card h3 { display: flex; align-items: center; gap: 10px; }
.dl .card .btn { margin-top: 14px; }

/* docs */
.docs { display: grid; grid-template-columns: 240px 1fr; gap: 44px; padding: 48px 0 96px; }
.toc { position: sticky; top: 84px; align-self: start; }
.toc a { display: block; color: var(--text2); padding: 6px 0; font-size: .95rem; }
.toc a:hover { color: var(--text); text-decoration: none; }
.docs article h2 { margin-top: 48px; padding-top: 12px; border-top: 1px solid var(--border); }
.docs article h2:first-child { margin-top: 0; border: 0; padding: 0; }
.docs article h3 { margin-top: 28px; }
.docs article p, .docs article li { color: var(--text2); }
.docs article li strong, .docs article p strong { color: var(--text); }

/* footer */
footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
footer a { color: var(--text2); margin-left: 18px; }

@media (max-width: 860px) {
  .nav nav { display: none; }
  .two { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  section { padding: 60px 0; }
}
