:root {
    --bg: #070a14;
    --bg2: #0c1122;
    --panel: #111830;
    --line: #22305a;
    --text: #eef2ff;
    --muted: #97a3c4;
    --violet: #8b5cf6;
    --cyan: #22d3ee;
    --yellow: #facc15;
    --grad: linear-gradient(100deg, #8b5cf6 0%, #22d3ee 100%);
    --radius: 16px;
    --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
h1, h2, h3 { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(7, 10, 20, .78); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(34, 48, 90, .6); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.2rem "Space Grotesk", sans-serif; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav nav a:hover { color: var(--text); }
.nav nav a.btn { color: #050816; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 1rem; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-main { background: var(--grad); color: #050816; box-shadow: 0 8px 30px rgba(139, 92, 246, .35); }
.btn-main:hover { box-shadow: 0 10px 38px rgba(34, 211, 238, .4); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-small { padding: 9px 16px; font-size: .92rem; }
.nav .btn { white-space: nowrap; }

/* hero */
.hero { position: relative; overflow: hidden; min-height: 640px; display: flex; align-items: center; }
.hero-art { position: absolute; inset: 0; background: url("assets/hero.jpg") right center / cover no-repeat; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(7, 10, 20, .94) 38%, rgba(7, 10, 20, .55) 55%, rgba(7, 10, 20, .12) 78%, rgba(7, 10, 20, .05) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero .wrap { position: relative; width: 100%; padding-top: 70px; padding-bottom: 90px; }
.hero-copy { max-width: 560px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(17, 24, 48, .7); color: var(--muted); font-size: .85rem; font-weight: 600; margin-bottom: 20px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 10px #ff3b5c; }
.hero p.lead { font-size: 1.18rem; color: #c9d2ee; margin-bottom: 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }

/* sections */
section { padding: 90px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.alt { background: var(--bg2); border-top: 1px solid rgba(34, 48, 90, .5); border-bottom: 1px solid rgba(34, 48, 90, .5); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #050816; font: 700 1.05rem "Space Grotesk", sans-serif; margin-bottom: 16px; }
.step p { color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .35); margin-bottom: 14px; }
.feature .icon svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

/* showcase: a phone with a clip mock built in CSS */
.showcase { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.phone { width: 300px; max-width: 100%; aspect-ratio: 9 / 19; margin: 0 auto; border-radius: 42px; padding: 12px; background: #05070f; border: 1px solid #2a3766; box-shadow: 0 30px 80px rgba(139, 92, 246, .3), 0 0 0 6px rgba(255, 255, 255, .03); }
.screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: url("assets/hero.jpg") 62% center / cover; }
.screen::before { content: ""; position: absolute; inset: 0; backdrop-filter: blur(14px) brightness(.55); }
.screen .frame { position: absolute; left: 0; right: 0; top: 34%; height: 30%; background: url("assets/hero.jpg") 64% 40% / 260% auto no-repeat; border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.screen .headline { position: absolute; top: 15%; left: 8%; right: 8%; text-align: center; }
.screen .headline small { display: block; color: #7dd3fc; font: 800 .7rem "Space Grotesk", sans-serif; letter-spacing: .08em; }
.screen .headline b { display: block; font: 800 1.02rem/1.2 "Space Grotesk", sans-serif; text-shadow: 0 2px 8px #000; }
.screen .caption { position: absolute; top: 70%; left: 6%; right: 6%; text-align: center; font: 900 1.45rem/1.1 "Space Grotesk", sans-serif; text-transform: uppercase; text-shadow: 0 3px 0 #000, 0 0 12px #000; }
.screen .caption em { font-style: normal; color: var(--yellow); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; }
.checks li { padding-left: 32px; position: relative; margin-bottom: 12px; color: #c9d2ee; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; background: var(--grad);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust .feature { text-align: left; }

/* pricing */
.price-card { max-width: 460px; margin: 0 auto; background: var(--panel); border-radius: 22px; padding: 34px; position: relative; border: 1px solid transparent; background-image: linear-gradient(var(--panel), var(--panel)), var(--grad); background-origin: border-box; background-clip: padding-box, border-box; box-shadow: 0 30px 80px rgba(34, 211, 238, .12); }
.price { font: 700 3.2rem "Space Grotesk", sans-serif; margin: 6px 0 2px; }
.price span { font-size: 1.05rem; color: var(--muted); font-weight: 500; }
.price b { font-weight: 700; }
.price-card .btn { width: 100%; margin-top: 22px; }

/* faq */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* final cta */
.final { text-align: center; padding: 100px 0; background: radial-gradient(60% 80% at 50% 100%, rgba(139, 92, 246, .25), transparent 70%); }

/* plain pages */
.page { padding: 60px 0 90px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page h2 { font-size: 1.45rem; margin-top: 2em; }
.page p, .page li { color: #c9d2ee; }
.page .updated { color: var(--muted); font-size: .92rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 18px 0; }
ol.big { counter-reset: n; list-style: none; padding: 0; }
ol.big > li { counter-increment: n; position: relative; padding: 4px 0 18px 56px; }
ol.big > li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #050816; font: 700 1rem "Space Grotesk", sans-serif; }
code, kbd { background: #0a1024; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
table.req { width: 100%; border-collapse: collapse; }
table.req td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.req td:first-child { color: var(--muted); width: 38%; padding-right: 16px; }

/* footer */
footer { border-top: 1px solid rgba(34, 48, 90, .6); padding: 40px 0; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 900px) {
    .steps, .features, .trust { grid-template-columns: 1fr; }
    .showcase { grid-template-columns: 1fr; }
    .nav nav a:not(.btn) { display: none; }
    .nav .btn-small { padding: 8px 13px; font-size: .84rem; }
    .brand { font-size: 1.05rem; }
    .brand img { width: 30px; height: 30px; }
    .hero { min-height: 0; }
    .hero-art { background-position: 70% center; opacity: .55; }
    .hero-art::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(7,10,20,.6) 60%, rgba(7,10,20,.4) 100%); }
    section { padding: 64px 0; }
}

/* ---------------------------------------------------------------- accounts */
.auth { min-height: calc(100vh - 66px - 110px); display: grid; place-items: center; padding: 50px 20px; background: radial-gradient(50% 60% at 50% 0%, rgba(139, 92, 246, .18), transparent 70%); }
.auth-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-card .btn { width: 100%; margin-top: 8px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input { width: 100%; padding: 12px 14px; font: inherit; color: var(--text); background: #0a1024; border: 1px solid var(--line); border-radius: 10px; }
.field input:focus { outline: 2px solid var(--cyan); border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); margin: 6px 0 14px; }
.check input { margin-top: 4px; }
.form-msg { min-height: 22px; font-size: .92rem; margin-top: 12px; }
.form-msg.bad { color: #ff7a8a; } .form-msg.good { color: #4ade80; }
.switch { text-align: center; margin-top: 18px; color: var(--muted); font-size: .94rem; }

.dash { padding: 40px 0 90px; }
.dash-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.dash-head h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; }
.dash-head .btn { margin-left: auto; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat b { display: block; font: 700 1.8rem "Space Grotesk", sans-serif; }
.stat span { color: var(--muted); font-size: .9rem; }
.dash-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 18px; }
.panel h2 { font-size: 1.15rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.panel .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; margin: 0 0 14px; font-size: .95rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.pill.ok { background: rgba(74, 222, 128, .14); color: #4ade80; }
.pill.warn { background: rgba(250, 204, 21, .14); color: #facc15; }
.pill.bad { background: rgba(255, 107, 129, .14); color: #ff7a8a; }
.pill.off { background: rgba(151, 163, 196, .14); color: var(--muted); }
.keybox { display: flex; gap: 8px; align-items: center; }
.keybox code { flex: 1; padding: 10px 12px; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-form { display: flex; gap: 8px; margin-top: 10px; }
.inline-form input { flex: 1; min-width: 0; padding: 10px 12px; font: inherit; color: var(--text); background: #0a1024; border: 1px solid var(--line); border-radius: 10px; }
.clips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.clip-card { background: #0a1024; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.clip-card .pic { aspect-ratio: 9 / 16; background: linear-gradient(160deg, #1a2350, #0b1024); display: grid; place-items: center; color: var(--muted); font-size: .8rem; position: relative; }
.clip-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.clip-card .pic .len { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .7); padding: 1px 6px; border-radius: 6px; font-size: .75rem; color: #fff; }
.clip-card .meta { padding: 10px; }
.clip-card .meta b { display: block; font-size: .86rem; line-height: 1.3; max-height: 2.6em; overflow: hidden; }
.clip-card .meta span { display: block; color: var(--muted); font-size: .78rem; margin-top: 4px; }
table.list { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.list td, table.list th { padding: 9px 4px; border-bottom: 1px solid var(--line); text-align: left; }
table.list th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.empty-note { color: var(--muted); font-size: .95rem; }
.nav nav a.account-link { color: var(--text); }

@media (max-width: 900px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .dash-grid { grid-template-columns: 1fr; }
}

/* dashboard (cloud) */
.note-bar { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; border: 1px solid var(--line); background: var(--panel); }
.note-bar.bad { border-color: #ff7a8a; color: #ffc2ca; } .note-bar.good { border-color: #4ade80; color: #c8f7d8; }
.chan { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chan:last-child { border-bottom: 0; }
.chan .logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font: 700 .8rem "Space Grotesk", sans-serif; color: #fff; }
.chan .logo.twitch { background: #9146ff; } .chan .logo.youtube { background: #ff2e3a; }
.chan .who { flex: 1; min-width: 150px; } .chan .who b { display: block; } .chan .who span { color: var(--muted); font-size: .86rem; }
.connect { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.btn-twitch { background: #9146ff; color: #fff; } .btn-youtube { background: #ff2e3a; color: #fff; }
.clip-card { cursor: pointer; transition: transform .12s ease, border-color .12s ease; }
.clip-card:hover { transform: translateY(-2px); border-color: var(--cyan); }
.clip-card .acts { display: flex; gap: 6px; padding: 0 10px 10px; }
.clip-card .acts a, .clip-card .acts button { font-size: .78rem; padding: 5px 9px; }
.settings .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.settings label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.settings select, .settings input { width: 100%; padding: 9px 10px; font: inherit; color: var(--text); background: #0a1024; border: 1px solid var(--line); border-radius: 9px; }
.player { padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #050816; color: var(--text); max-width: min(92vw, 460px); width: 100%; }
.player::backdrop { background: rgba(0, 0, 0, .75); }
.player video { width: 100%; max-height: 75vh; display: block; background: #000; }
.player-bar { padding: 14px; display: grid; gap: 10px; }
@media (max-width: 520px) { .settings .grid2 { grid-template-columns: 1fr; } }
