:root {
    --bg: #090d18;
    --surface: #111728;
    --line: #232c45;
    --text: #eef1fb;
    --muted: #97a1bd;
    --a: #2ee6a6;
    --b: #7c6cff;
    --grad: linear-gradient(120deg, var(--a), var(--b));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: radial-gradient(900px 500px at 80% -10%, rgba(124, 108, 255, .22), transparent 70%), radial-gradient(700px 420px at 0% 5%, rgba(46, 230, 166, .12), transparent 70%), var(--bg);
    color: var(--text);
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    min-height: 100vh;
}
a { color: var(--a); text-decoration: none; }
a:hover { text-decoration: underline; }
main, .top, footer { width: min(1080px, 100% - 32px); margin-inline: auto; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 19px; }
.logo:hover { text-decoration: none; }
.logo span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--grad); color: #07101c; font-weight: 900; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
nav a:not(.btn) { color: var(--muted); }
nav form { margin: 0; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px; border: 0; border-radius: 12px;
    background: var(--grad); color: #06101b; font: inherit; font-weight: 750; cursor: pointer;
    transition: transform .12s, box-shadow .12s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(84, 170, 220, .35); }
.btn:disabled { background: #1d2540; color: var(--muted); cursor: default; transform: none; box-shadow: none; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.link { border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }

section { padding: 34px 0; }
h1 { font-size: clamp(30px, 6vw, 58px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 16px; }
h2 { font-size: 26px; margin: 0 0 18px; }
.hero { text-align: center; padding: 56px 0 30px; }
.hero em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { color: var(--a); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.lead { max-width: 560px; margin: 0 auto 26px; color: var(--muted); font-size: 18px; }
.cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.demo { display: inline-block; max-width: 100%; overflow-x: auto; margin: 34px 0 0; padding: 14px 20px; border: 1px solid var(--line); border-radius: 14px; background: #0c1120; color: var(--muted); }
.demo span { color: var(--text); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.card.hot { border-color: var(--b); box-shadow: 0 0 0 1px var(--b), 0 18px 50px rgba(124, 108, 255, .22); }
.tag { position: absolute; top: -11px; right: 18px; padding: 2px 12px; border-radius: 20px; background: var(--grad); color: #06101b; font-size: 12px; font-weight: 800; }
.card h3 { margin: 0; color: var(--muted); font-weight: 600; }
.card p { margin: 0; }
.qty { font-size: 40px; font-weight: 850; }
.qty small, .price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.price { font-size: 24px; font-weight: 750; }
.per { color: var(--muted); font-size: 14px; margin-bottom: 12px !important; }
.card > .btn, .card form { margin-top: auto; }
.card form { display: grid; gap: 8px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--b); color: var(--a); font-weight: 800; }
.steps span { color: var(--muted); }

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

.narrow { max-width: 460px; margin-inline: auto; }
.narrow h1 { font-size: 32px; }
.form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #0c1120; color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--b); outline-offset: 1px; }
textarea { font-family: ui-monospace, Consolas, monospace; font-size: 14px; white-space: pre; resize: vertical; }
.alert { padding: 12px 14px; border: 1px solid #8a3140; border-radius: 12px; background: #2a1119; color: #ffb3bd; }
.muted { color: var(--muted); font-size: 14px; }
.empty { padding: 26px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }

.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
th { color: var(--muted); font-size: 13px; font-weight: 600; }
.status { font-weight: 700; }
.status.done { color: var(--a); }
.status.new { color: #ffc455; }
.status.paid { color: #8fb4ff; }

footer { display: flex; gap: 18px; flex-wrap: wrap; padding: 26px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 560px) {
    nav { width: 100%; gap: 12px; font-size: 15px; }
    section { padding: 24px 0; }
    .hero { padding-top: 28px; }
}
