:root { --bg:#0b0b0f; --bg2:#101017; --panel:#15151c; --panel2:#1d1d27; --line:#2a2a37; --text:#f1f1f4; --muted:#9a9aab; --accent:#e0303c; --ink:#ffffff; --ok:#4cd08a; --bad:#ff6b6b; --r:14px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; -webkit-font-smoothing:antialiased; }
a { color:var(--accent); text-decoration:none; } a:hover { text-decoration:underline; }
:focus-visible { outline:3px solid #fff; outline-offset:2px; border-radius:6px; }
h1,h2,h3 { line-height:1.15; margin:0 0 .5em; letter-spacing:-.02em; }
h1 { font-size:clamp(2.3rem,6vw,4.1rem); } h2 { font-size:clamp(1.6rem,3.4vw,2.3rem); } h3 { font-size:1.15rem; }
p { margin:0 0 1em; } .muted { color:var(--muted); } .small { font-size:.88rem; }
.wrap { width:min(1160px,100% - 40px); margin-inline:auto; }

nav.top { position:sticky; top:0; z-index:10; background:rgba(11,11,15,.88); backdrop-filter:blur(12px); border-bottom:1px solid var(--line); }
nav.top .wrap { display:flex; align-items:center; gap:6px; height:64px; }
.brand { display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.06em; color:var(--text); font-size:1.2rem; margin-right:18px; }
.brand img { height:34px; width:auto; } .brand:hover { text-decoration:none; }
nav.top a.l { color:var(--muted); padding:8px 12px; border-radius:999px; } nav.top a.l:hover, nav.top a.l.on { color:var(--text); background:var(--panel2); text-decoration:none; }
.sp { flex:1; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 22px; border-radius:999px; border:1px solid var(--line); background:var(--panel2); color:var(--text); font:inherit; font-weight:650; cursor:pointer; text-align:center; }
.btn:hover { background:#272735; text-decoration:none; } .btn.pri { background:linear-gradient(180deg,#ff4a57,#a8182a); color:#fff; border:1px solid #fff8; box-shadow:inset 0 1px 0 #ffffff55,0 2px 6px #0008; text-shadow:0 1px 1px #0006; } .btn.pri:hover { filter:brightness(1.1); background:linear-gradient(180deg,#ff4a57,#a8182a); }
.btn.sm { padding:7px 14px; font-size:.9rem; } .btn.danger { color:var(--bad); } .btn[disabled], .btn.off { opacity:.5; pointer-events:none; }

.hero { position:relative; overflow:hidden; padding:96px 0 72px; text-align:center; background:radial-gradient(900px 420px at 50% -10%, rgba(224,48,60,.18), transparent 70%), var(--bg); }
.hero p.lead { font-size:1.25rem; color:#cfcfdb; max-width:46ch; margin:0 auto 1.6em; }
.hero .cta { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.mock { margin:56px auto 0; max-width:900px; border:1px solid var(--line); border-radius:18px; background:var(--panel); padding:18px; box-shadow:0 30px 80px #000a; }
.mock .bar { display:flex; gap:7px; margin-bottom:14px; } .mock .bar i { width:11px; height:11px; border-radius:50%; background:var(--line); }
.mock .row { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; } .mock .row div { aspect-ratio:2/3; border-radius:10px; }
section { padding:72px 0; } section.alt { background:var(--bg2); border-block:1px solid var(--line); }
.center { text-align:center; } .center .sub { color:var(--muted); max-width:56ch; margin:0 auto 2.2em; font-size:1.1rem; }
.grid3 { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:18px; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:var(--r); padding:24px; }
.card .ic { width:44px; height:44px; border-radius:12px; background:rgba(224,48,60,.16); color:var(--accent); display:flex; align-items:center; justify-content:center; margin-bottom:14px; font-weight:800; }
.steps { counter-reset:s; display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px; }
.steps .card::before { counter-increment:s; content:counter(s); display:flex; width:34px; height:34px; border-radius:50%; background:var(--accent); color:var(--ink); font-weight:800; align-items:center; justify-content:center; margin-bottom:14px; }
.platforms { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; } .pill { padding:8px 16px; border:1px solid var(--line); border-radius:999px; background:var(--panel); color:#cfcfdb; }
footer { border-top:1px solid var(--line); padding:36px 0; color:var(--muted); font-size:.92rem; } footer .wrap { display:flex; gap:18px; flex-wrap:wrap; align-items:center; }

.page { padding:56px 0 90px; } .page h1 { font-size:clamp(2rem,4.4vw,3rem); }
.tabs { display:inline-flex; gap:4px; padding:4px; background:var(--panel); border:1px solid var(--line); border-radius:999px; margin:6px 0 26px; }
.tabs button { border:0; background:none; color:var(--muted); font:inherit; font-weight:650; padding:9px 20px; border-radius:999px; cursor:pointer; } .tabs button.on { background:var(--panel2); color:var(--text); }
.dl { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:16px; }
.dl .card { display:flex; flex-direction:column; gap:6px; } .dl .card.rec { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent) inset; }
.dl .tag { align-self:flex-start; font-size:.75rem; font-weight:700; background:var(--accent); color:var(--ink); padding:2px 10px; border-radius:999px; }
.dl .meta { color:var(--muted); font-size:.88rem; } .dl .grow { flex:1; } details summary { cursor:pointer; color:var(--muted); font-size:.85rem; } code, .hash { font:12px/1.4 ui-monospace,Menlo,Consolas,monospace; word-break:break-all; color:#cfcfdb; }

.authbox { max-width:440px; margin:0 auto; } .panel { background:var(--panel); border:1px solid var(--line); border-radius:var(--r); padding:24px; margin-bottom:18px; }
label { display:block; font-size:.88rem; color:var(--muted); margin:14px 0 6px; }
input[type=text],input[type=email],input[type=password],input[type=url] { width:100%; background:var(--bg); color:var(--text); border:1px solid var(--line); border-radius:10px; padding:12px 14px; font:inherit; }
.msg { min-height:1.4em; margin:10px 0 0; font-size:.92rem; } .msg.err { color:var(--bad); } .msg.ok { color:var(--ok); }
.srv { display:flex; gap:14px; align-items:flex-start; padding:16px 0; border-top:1px solid var(--line); } .srv:first-child { border-top:0; }
.dot { width:10px; height:10px; border-radius:50%; background:var(--muted); margin-top:8px; flex:none; } .dot.on { background:var(--ok); box-shadow:0 0 0 4px rgba(76,208,138,.18); }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; } .chip { background:var(--panel2); border:1px solid var(--line); border-radius:999px; padding:3px 6px 3px 12px; font-size:.85rem; display:inline-flex; gap:6px; align-items:center; }
.chip button { background:none; border:0; color:var(--muted); cursor:pointer; font-size:1rem; line-height:1; } .chip button:hover { color:var(--bad); }
.inline { display:flex; gap:8px; flex-wrap:wrap; } .inline input { flex:1; min-width:200px; }
.banner { background:rgba(224,48,60,.12); border:1px solid rgba(224,48,60,.4); padding:12px 16px; border-radius:12px; margin-bottom:18px; }
.codebox { font:700 1.9rem/1 ui-monospace,Menlo,monospace; letter-spacing:.18em; text-align:center; text-transform:uppercase; }
@media (max-width:700px) { nav.top .hide-s { display:none; } .mock .row { grid-template-columns:repeat(3,1fr); } .hero { padding-top:64px; } }

.dl .dh { display:flex; align-items:center; gap:14px; margin-bottom:4px; } .dl .dh h3 { margin:0; } .dl .osi { flex:none; width:44px; height:44px; padding:8px; border-radius:12px; background:var(--panel2); box-sizing:border-box; }

/* Scena Vision: "Scena" in the opening's lettering and colours, "Vision" in Avengeance */
@font-face { font-family: 'Avengeance'; src: url(Avengeance.otf) format('opentype'); font-weight: normal; font-style: normal; }
.scv { white-space: nowrap; }
.scv-s, .scv-v { background: -webkit-linear-gradient(top, #fff6e4, #f0b79e); background: linear-gradient(180deg, #fff6e4, #f0b79e); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.scv-s { font-weight: 800; letter-spacing: .04em; }
.scv-v { font-family: 'Avengeance', 'Arial Narrow', sans-serif; font-weight: normal; letter-spacing: .06em; font-size: 1.12em; margin-left: .22em; }
html[data-theme="light"] .scv-s, html[data-theme="light"] .scv-v { background: -webkit-linear-gradient(top, #e0303c, #a5121f); background: linear-gradient(180deg, #e0303c, #a5121f); -webkit-background-clip: text; background-clip: text; }
.btn.pri .scv-s, .btn.pri .scv-v, .btn.primary .scv-s, .btn.primary .scv-v, .btn.red .scv-s, .btn.red .scv-v { background: none; -webkit-text-fill-color: #fff; color: #fff; }

.avatar { width:84px; height:84px; border-radius:50%; overflow:hidden; background:var(--panel2); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:2rem; color:var(--muted); flex:none; } .avatar img { width:100%; height:100%; object-fit:cover; display:block; }
