/* AV-Cue website - Show Control theme
   Dark panels, cue-list rhythm, monospace timecodes, one bright blue accent. */

:root {
    --bg: #0a0d12;
    --bg-2: #0d1219;
    --panel: #111923;
    --panel-2: #16202b;
    --panel-3: #1c2836;
    --border: #263241;
    --border-strong: #34465c;
    --text: #e9eff8;
    --muted: #96a5b8;
    --muted-2: #6f8094;
    --accent: #2d6cd6;
    --accent-bright: #4f8cff;
    --accent-soft: rgba(79, 140, 255, .14);
    --green: #43d17a;
    --green-soft: rgba(67, 209, 122, .14);
    --red: #e05a5a;
    --red-soft: rgba(224, 90, 90, .14);
    --amber: #e0b34a;
    --amber-soft: rgba(224, 179, 74, .14);
    --mono: Consolas, "Cascadia Mono", "SFMono-Regular", ui-monospace, monospace;
    --sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 28px 90px rgba(0, 0, 0, .48);
    --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(1100px 620px at 18% -8%, rgba(45, 108, 214, .20), transparent 62%),
        radial-gradient(900px 520px at 100% 4%, rgba(67, 209, 122, .06), transparent 58%),
        var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }

a { color: var(--accent-bright); text-decoration: none; }
a:hover { color: #8ab4ff; }

h1, h2, h3, h4 {
    margin: 0 0 .55em;
    line-height: 1.12;
    letter-spacing: -.025em;
    font-weight: 700;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }
h4 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

p { margin: 0 0 1.05rem; }

ul, ol { margin: 0 0 1.1rem; padding-left: 1.25rem; }
li { margin-bottom: .45rem; }

code, .mono, kbd { font-family: var(--mono); }

code {
    font-size: .9em;
    color: #cfe0ff;
    background: rgba(79, 140, 255, .10);
    border: 1px solid rgba(79, 140, 255, .18);
    padding: .08em .38em;
    border-radius: 5px;
}

kbd {
    display: inline-block;
    min-width: 1.9em;
    padding: .15em .42em;
    margin: 0 .08em;
    font-size: .78rem;
    text-align: center;
    color: var(--text);
    background: var(--panel-3);
    border: 1px solid var(--border-strong);
    border-bottom-width: 2px;
    border-radius: 5px;
}

.container {
    width: min(calc(100% - 3rem), var(--container));
    margin-inline: auto;
}

.muted { color: var(--muted); }
.small { font-size: .84rem; }
.center { text-align: center; }
.accent-text { color: var(--accent-bright); }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .9rem;
    color: var(--accent-bright);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 100;
    padding: .75rem 1rem;
    background: var(--accent);
    color: #fff;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .72rem 1.1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 650;
    font-size: .92rem;
    line-height: 1.2;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(180deg, #4f8cff, #2d6cd6);
    border-color: #5b96ff;
    color: #fff;
    box-shadow: 0 10px 26px rgba(45, 108, 214, .28);
}
.btn-primary:hover {
    color: #fff;
    box-shadow: 0 14px 34px rgba(45, 108, 214, .40);
}

.btn-secondary {
    background: var(--panel-2);
    border-color: var(--border-strong);
    color: var(--text);
}
.btn-secondary:hover { background: var(--panel-3); border-color: #46617e; color: var(--text); }

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
}
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .04); }

.btn-danger {
    background: var(--red-soft);
    border-color: rgba(224, 90, 90, .35);
    color: #ff9a9a;
}
.btn-danger:hover { background: rgba(224, 90, 90, .24); color: #ffc0c0; }

.btn-sm { padding: .5rem .75rem; font-size: .82rem; }
.btn-lg { padding: .9rem 1.35rem; font-size: 1rem; }
.btn-block { width: 100%; }

.button-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.button-row.center { justify-content: center; }

.inline-form { display: inline; margin: 0; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(38, 50, 65, .8);
    background: rgba(10, 13, 18, .82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-height: 70px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--text);
    font-weight: 750;
    font-size: 1.12rem;
    letter-spacing: -.02em;
}
.brand:hover { color: var(--text); }

.brand-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(145deg, #4f8cff, #2457ae);
    box-shadow: 0 8px 20px rgba(45, 108, 214, .32);
}

.brand-text span { color: var(--accent-bright); }

.nav-links {
    display: flex;
    align-items: center;
    gap: .2rem;
    margin-left: .6rem;
}
.nav-links a {
    padding: .5rem .7rem;
    border-radius: 7px;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 550;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .045); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-left: auto;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 38px;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 17px;
    height: 2px;
    margin: 3px auto;
    background: var(--muted);
    border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.12fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px var(--green-soft);
    animation: pulse 2.4s ease-in-out infinite;
}

.hero-lede {
    max-width: 36rem;
    color: var(--muted);
    font-size: clamp(1.02rem, 1.35vw, 1.16rem);
    line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1rem; }

.hero-note {
    max-width: 34rem;
    color: var(--muted-2);
    font-size: .84rem;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 1.6rem;
}
.trust-row span {
    padding: .32rem .62rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted-2);
    font-size: .74rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hero-visual { position: relative; }

.console-window {
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    transform: perspective(1400px) rotateY(-2.5deg) rotateX(1.2deg);
    transition: transform .4s ease;
}
.console-window:hover { transform: perspective(1400px) rotateY(0deg) rotateX(0deg); }

.console-window-small { transform: none; }

.console-titlebar {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 34px;
    padding: 0 0 0 .8rem;
    background: linear-gradient(180deg, #20262f, #171d25);
    border-bottom: 1px solid var(--border);
}

.window-icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    color: #fff;
    background: linear-gradient(145deg, #4f8cff, #2457ae);
    flex: 0 0 auto;
}
.window-icon svg { width: 12px; height: 12px; }

.console-title {
    color: var(--muted);
    font-size: .78rem;
    font-family: var(--sans);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.window-controls {
    display: flex;
    align-self: stretch;
    margin-left: .55rem;
    flex: 0 0 auto;
}
.window-control {
    display: grid;
    place-items: center;
    width: 42px;
    color: var(--muted);
    transition: background .15s ease, color .15s ease;
}
.window-control:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--text);
}
.window-control-close:hover {
    background: #c42b1c;
    color: #fff;
}

.status-pill {
    margin-left: auto;
    padding: .18rem .5rem;
    border-radius: 999px;
    font-size: .64rem;
    font-weight: 750;
    letter-spacing: .12em;
}
.status-live { color: var(--green); background: var(--green-soft); border: 1px solid rgba(67, 209, 122, .3); }
.status-paused { color: var(--amber); background: var(--amber-soft); border: 1px solid rgba(224, 179, 74, .3); }

.console-image { width: 100%; height: auto; }

.floating-cue {
    position: absolute;
    right: -14px;
    bottom: -26px;
    width: min(280px, 72%);
    padding: .9rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: rgba(18, 26, 36, .94);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
    backdrop-filter: blur(10px);
}
.floating-cue-top {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .35rem;
    font-size: .72rem;
}
.floating-cue strong { display: block; margin-bottom: .55rem; font-size: .92rem; }
.cue-live { margin-left: auto; color: var(--green); font-size: .62rem; font-weight: 750; letter-spacing: .12em; }

.mini-transport { display: flex; align-items: center; gap: .6rem; }
.mini-wave {
    flex: 1;
    height: 18px;
    border-radius: 4px;
    background: repeating-linear-gradient(90deg, var(--accent-bright) 0 2px, transparent 2px 5px);
    mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
    opacity: .8;
}
.mini-time { color: var(--muted); font-family: var(--mono); font-size: .72rem; }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2.2rem, 4.5vw, 3.8rem) 0; }
.section-alt {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .018), transparent 30%),
        var(--bg-2);
    border-block: 1px solid rgba(38, 50, 65, .65);
}

.section-head { max-width: 46rem; margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    max-width: none;
}
.section-lede { color: var(--muted); font-size: 1.02rem; max-width: 42rem; }

/* ---------- Feature cards ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card {
    padding: 1.4rem 1.35rem 1.3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .018), transparent 40%), var(--panel);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    background: linear-gradient(180deg, rgba(79, 140, 255, .05), transparent 46%), var(--panel);
}
.feature-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.feature-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    border: 1px solid rgba(79, 140, 255, .24);
    border-radius: 10px;
    color: var(--accent-bright);
    background: var(--accent-soft);
}
.feature-icon svg { width: 22px; height: 22px; }

/* ---------- Split sections ---------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.split-reverse .split-copy { order: 2; }
.split-reverse .split-visual { order: 1; }

.split-copy p { color: var(--muted); }

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 1.4rem;
}
.check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: .55rem;
    color: var(--muted);
}
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent-bright);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.text-link { font-weight: 600; }
.text-link span { transition: transform .15s ease; display: inline-block; }
.text-link:hover span { transform: translateX(3px); }

/* ---------- Cue stack demo ---------- */

.cue-stack-demo {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.demo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--panel-2);
}
.demo-head .kicker { margin: 0; }

.badge {
    display: inline-flex;
    align-items: center;
    padding: .18rem .52rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--muted);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.badge-blue { color: #9cc0ff; border-color: rgba(79, 140, 255, .3); background: var(--accent-soft); }
.badge-green { color: var(--green); border-color: rgba(67, 209, 122, .3); background: var(--green-soft); }
.badge-red { color: #ff9a9a; border-color: rgba(224, 90, 90, .3); background: var(--red-soft); }

.cue-table { font-size: .84rem; }
.cue-table-head, .cue-row {
    display: grid;
    grid-template-columns: 54px 74px minmax(0, 1fr) 92px;
    gap: .6rem;
    align-items: center;
    padding: .55rem 1rem;
}
.cue-table-head {
    color: var(--muted-2);
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .012);
}
.cue-row { border-bottom: 1px solid rgba(38, 50, 65, .55); color: var(--muted); }
.cue-row:last-child { border-bottom: 0; }
.cue-row-current {
    background: linear-gradient(90deg, rgba(79, 140, 255, .14), rgba(79, 140, 255, .03));
    color: var(--text);
    box-shadow: inset 3px 0 0 var(--accent-bright);
}
.cue-row-group { background: rgba(255, 255, 255, .025); color: var(--text); }
.cue-row-child { padding-left: 2.1rem; font-size: .8rem; }
.cue-number { color: var(--accent-bright); font-family: var(--mono); font-weight: 700; }
.cue-kind { color: var(--muted-2); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.cue-time { text-align: right; font-family: var(--mono); font-size: .78rem; }

.transport-demo {
    padding: .9rem 1rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--panel-2);
}
.transport-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; }
.transport-head .kicker { margin: 0; }
.transport-cue { color: var(--text); font-size: .8rem; }
.transport-state {
    margin-left: auto;
    color: var(--green);
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .1em;
}

.waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 62px;
    padding: .25rem .15rem;
    border: 1px solid rgba(38, 50, 65, .7);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .04));
}
.waveform i {
    flex: 1;
    min-width: 1px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--accent-bright), var(--accent));
    opacity: .78;
}
.waveform i:nth-child(3n) { opacity: .48; }
.waveform i:nth-child(7n) { opacity: .95; }

.transport-foot {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .55rem;
    color: var(--muted-2);
    font-size: .72rem;
}
.transport-foot .mono { color: var(--text); }

/* ---------- Steps ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.step {
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}
.step-number {
    display: inline-block;
    margin-bottom: .9rem;
    color: var(--accent-bright);
    font-family: var(--mono);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
}
.step p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Pricing ---------- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}
.price-card-featured {
    border-color: rgba(79, 140, 255, .48);
    background:
        radial-gradient(500px 240px at 50% 0%, rgba(79, 140, 255, .14), transparent 70%),
        var(--panel-2);
    box-shadow: 0 18px 50px rgba(45, 108, 214, .16);
}
.price-badge {
    position: absolute;
    top: -11px;
    left: 1.4rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: .64rem;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.price-tier { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.price {
    margin: .7rem 0 .35rem;
    font-size: 3rem;
    font-weight: 750;
    line-height: 1;
    letter-spacing: -.04em;
}
.price-currency { font-size: 1.25rem; vertical-align: super; color: var(--muted); }
.price-unit { margin-left: .3rem; color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: 0; }
.price-copy { color: var(--muted); font-size: .9rem; }
.price-list { list-style: none; padding: 0; margin: .4rem 0 1.4rem; }
.price-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: .35rem;
    color: var(--muted);
    font-size: .86rem;
}
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price-card .btn { margin-top: auto; }

.pricing-footnote { margin-top: 1.4rem; color: var(--muted-2); font-size: .86rem; text-align: center; }

.calc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.calc-card, .order-card {
    padding: 1.35rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.calc-lines { margin: 1rem 0 1.2rem; border-top: 1px solid var(--border); }
.calc-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 0;
    border-bottom: 1px solid rgba(38, 50, 65, .6);
    color: var(--muted);
    font-size: .9rem;
}
.calc-line strong { color: var(--text); }
.calc-total { color: var(--text); font-size: 1rem; }
.calc-total strong { color: var(--accent-bright); font-size: 1.2rem; }

/* ---------- Page hero ---------- */

.page-hero {
    padding: clamp(3rem, 6vw, 5.2rem) 0 clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid rgba(38, 50, 65, .65);
    background: radial-gradient(800px 380px at 20% 0%, rgba(45, 108, 214, .14), transparent 68%);
}
.page-hero-compact { padding: clamp(2.4rem, 4.5vw, 3.6rem) 0 clamp(1.6rem, 3vw, 2.4rem); }
.page-hero-inner { max-width: 48rem; }
.page-hero p { color: var(--muted); font-size: 1.04rem; max-width: 42rem; }

.dashboard-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: none;
}
.dashboard-hero-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Store ---------- */

.store-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .75fr);
    gap: 1.4rem;
    align-items: start;
}
.store-info { display: grid; gap: 1rem; }

.panel {
    padding: 1.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}
.panel h2, .panel h3 { margin-top: 0; }
.panel p:last-child { margin-bottom: 0; }

.order-card { position: sticky; top: 90px; }
.order-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.order-card-head .kicker { margin: 0; }
.order-card-foot {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    margin-top: 1rem;
    padding-top: .8rem;
    border-top: 1px solid var(--border);
    color: var(--muted-2);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.notice {
    padding: .9rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    color: var(--muted);
    background: var(--panel);
}
.notice strong { color: var(--text); }
.notice-info { border-color: rgba(79, 140, 255, .3); background: rgba(79, 140, 255, .08); }
.notice-warn { border-color: rgba(224, 179, 74, .35); background: var(--amber-soft); color: #f0d49a; }
.notice-error { border-color: rgba(224, 90, 90, .35); background: var(--red-soft); color: #ffb3b3; }
.notice-success { border-color: rgba(67, 209, 122, .35); background: var(--green-soft); color: #a8f0c6; }

.field { display: block; margin-bottom: 1rem; }
.field > span:first-child { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .82rem; font-weight: 600; }
.field input {
    width: 100%;
    padding: .7rem .8rem;
    color: var(--text);
    background: var(--bg-2);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font: inherit;
    font-size: .95rem;
}
.field input:focus { border-color: var(--accent-bright); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field-hint { display: block; margin-top: .3rem; color: var(--muted-2); font-size: .76rem; }
.field-error { display: block; margin-top: .3rem; color: #ff9a9a; font-size: .8rem; }
.checkbox-row { display: flex; align-items: center; gap: .5rem; margin: .2rem 0 1rem; color: var(--muted); font-size: .88rem; }
.checkbox-row input { width: auto; accent-color: var(--accent); }

.validation-summary {
    margin-bottom: 1rem;
    padding: .7rem .9rem;
    border: 1px solid rgba(224, 90, 90, .35);
    border-radius: 8px;
    background: var(--red-soft);
    color: #ffb3b3;
    font-size: .86rem;
}
.validation-summary:empty { display: none; }
.validation-summary ul { margin: 0; padding-left: 1.1rem; }

/* ---------- Auth ---------- */

.auth-section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.auth-copy p { color: var(--muted); }
.form-panel {
    padding: 1.6rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}
.form-panel h2 { margin-bottom: 1.2rem; }
.form-foot { margin: 1rem 0 0; color: var(--muted); font-size: .88rem; text-align: center; }
.form-link-row { margin: -.35rem 0 1rem; text-align: right; font-size: .84rem; }
.password-label-short { display: none; }

/* ---------- Dashboard ---------- */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem;
    margin-bottom: 1.8rem;
}
.summary-card {
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--panel);
}
.summary-label { display: block; color: var(--muted-2); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.summary-value { display: block; margin: .2rem 0; font-size: 1.8rem; line-height: 1.1; }
.summary-value-date { font-size: 1.05rem; }

.licence-grid { display: grid; gap: 1rem; }
.licence-card {
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}
.licence-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }

.licence-key-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.licence-key {
    flex: 1;
    min-width: 220px;
    padding: .6rem .8rem;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--bg-2);
    color: #cfe0ff;
    font-size: .95rem;
    letter-spacing: .08em;
    overflow-wrap: anywhere;
}

.licence-meta {
    display: flex;
    gap: 2rem;
    margin: .9rem 0 1rem;
    padding-top: .9rem;
    border-top: 1px solid var(--border);
}
.licence-meta strong { display: block; font-size: .92rem; }

.machine-empty {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .8rem .9rem;
    border: 1px dashed var(--border-strong);
    border-radius: 8px;
    color: var(--muted);
    font-size: .88rem;
}

.machine-table-wrap { overflow-x: auto; }
.machine-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.machine-table th {
    padding: .5rem .6rem;
    text-align: left;
    color: var(--muted-2);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}
.machine-table td { padding: .65rem .6rem; border-bottom: 1px solid rgba(38, 50, 65, .55); color: var(--muted); vertical-align: middle; }
.machine-table tr:last-child td { border-bottom: 0; }
.machine-table td strong { display: block; color: var(--text); }
.machine-id { display: block; color: var(--muted-2); font-family: var(--mono); font-size: .7rem; }
.machine-actions { text-align: right; }
.machine-actions form { margin: 0; }

.empty-state { padding: 3rem 1.5rem; text-align: center; }
.empty-state .feature-icon { margin-inline: auto; }
.empty-state p { max-width: 34rem; margin-inline: auto; }

.dashboard-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.4rem;
}
.dashboard-help h3 { margin-bottom: .3rem; }
.dashboard-help p { margin: 0; }

/* ---------- Download ---------- */

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.download-card {
    display: flex;
    flex-direction: column;
    padding: 1.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}
.download-card-primary { border-color: rgba(79, 140, 255, .4); background: linear-gradient(180deg, rgba(79, 140, 255, .07), transparent 55%), var(--panel); }
.download-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .8rem; }
.download-card p { color: var(--muted); font-size: .92rem; }
.download-card .btn { margin-top: auto; }
.download-note { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.download-note h3 { margin-bottom: .3rem; }
.download-note p { margin: 0; }

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem;
}
.requirement {
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--panel);
}
.requirement-label { display: block; color: var(--muted-2); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.requirement strong { display: block; margin: .25rem 0; font-size: .95rem; }

/* ---------- Docs ---------- */

.docs-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}
.docs-nav {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--panel);
}
.docs-nav h3 { margin-bottom: .5rem; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.docs-nav a { padding: .35rem .4rem; border-radius: 6px; color: var(--muted); font-size: .86rem; }
.docs-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }

.docs-body section { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border); }
.docs-body section:last-child { border-bottom: 0; margin-bottom: 0; }
.docs-body h2 { margin-top: 0; }
.docs-body p, .docs-body li { color: var(--muted); }
.numbered-list { padding-left: 1.2rem; }
.numbered-list li { margin-bottom: .6rem; }

.shortcut-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.shortcut-grid > div {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .7rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
    color: var(--muted);
    font-size: .86rem;
}

/* ---------- Changelog ---------- */

.changelog { max-width: 52rem; }
.release {
    padding: 1.1rem 0 1.2rem;
    border-bottom: 1px solid var(--border);
}
.release:last-child { border-bottom: 0; }
.release-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.release-version { font-family: var(--mono); font-size: 1.15rem; font-weight: 700; color: var(--accent-bright); }
.release ul { margin: 0; padding-left: 1.2rem; }
.release li { color: var(--muted); }
.release-old { opacity: .78; }

/* ---------- Support ---------- */

.support-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 1.2rem;
    align-items: start;
}
.support-main { display: grid; gap: 1rem; }
.support-card {
    position: sticky;
    top: 90px;
    padding: 1.4rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}
.support-card .kicker { margin-bottom: .4rem; }
.support-card h2 { margin-bottom: .4rem; }
.support-meta { display: grid; gap: .8rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.support-meta a { display: block; font-size: .9rem; }

/* ---------- FAQ ---------- */

.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.faq-list { display: grid; gap: .6rem; }
.faq-list details {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--panel);
    overflow: hidden;
}
.faq-list summary {
    position: relative;
    padding: .9rem 2.4rem .9rem 1rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-bright);
    font-size: 1.2rem;
    font-weight: 400;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 1rem 1rem; color: var(--muted); font-size: .92rem; }

/* ---------- Comparison ---------- */

.comparison-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}
.comparison-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.comparison-table th, .comparison-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid rgba(38, 50, 65, .6); }
.comparison-table thead th { color: var(--muted-2); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; background: var(--panel-2); }
.comparison-table tbody th { color: var(--text); font-weight: 600; }
.comparison-table td { color: var(--muted); }
.comparison-table tr:last-child th, .comparison-table tr:last-child td { border-bottom: 0; }
.tick { color: var(--green); font-weight: 650; }

/* ---------- Legal ---------- */

.legal-body { max-width: 52rem; }
.legal-body h2 { margin-top: 2rem; font-size: 1.35rem; }
.legal-body p, .legal-body li { color: var(--muted); }
.narrow-panel { max-width: 46rem; margin-inline: auto; }

/* ---------- CTA band ---------- */

.cta-band {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    border-top: 1px solid rgba(38, 50, 65, .65);
    background:
        radial-gradient(700px 280px at 20% 50%, rgba(79, 140, 255, .16), transparent 70%),
        var(--bg-2);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-inner h2 { margin: 0; }
.cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer {
    padding: 3rem 0 2.2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-2);
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, .7fr));
    gap: 2rem;
}
.footer-brand p { max-width: 26rem; color: var(--muted); font-size: .9rem; }
.footer-brand .brand { margin-bottom: .8rem; }
.footer-column { display: flex; flex-direction: column; gap: .45rem; }
.footer-column h4 { margin-bottom: .3rem; }
.footer-column a { color: var(--muted); font-size: .88rem; }
.footer-column a:hover { color: var(--text); }

/* ---------- Motion ---------- */

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 4px var(--green-soft); }
    50% { opacity: .65; box-shadow: 0 0 0 7px rgba(67, 209, 122, .06); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
    .nav-links { gap: 0; }
    .nav-links a { padding-inline: .5rem; font-size: .82rem; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .requirements-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .hero-grid, .split, .calc-grid, .auth-shell, .faq-grid, .store-grid, .support-grid, .docs-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .split-reverse .split-copy, .split-reverse .split-visual { order: initial; }
    .hero-visual { margin-top: .5rem; }
    .console-window { transform: none; }
    .floating-cue { right: 8px; bottom: -18px; }
    .steps, .pricing-grid, .download-grid { grid-template-columns: minmax(0, 1fr); }
    .store-grid .order-card, .support-card, .docs-nav { position: static; }
    .docs-nav { flex-direction: row; flex-wrap: wrap; }
    .docs-nav h3 { width: 100%; }
    .dashboard-hero, .cta-inner, .download-note { align-items: flex-start; flex-direction: column; }
    .dashboard-hero-actions, .cta-actions { width: 100%; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: .1rem;
        padding: .7rem 1.5rem 1rem;
        background: rgba(10, 13, 18, .98);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
    }
    .nav-links.is-open { display: flex; }
    .nav-links a { padding: .7rem .6rem; font-size: .95rem; }
    .nav-actions { margin-left: 0; }
    .nav-shell { position: relative; }
    .nav-toggle { order: 3; }
    .nav-actions { order: 2; }
}

@media (max-width: 600px) {
    .container { width: min(calc(100% - 2rem), var(--container)); }
    .feature-grid, .summary-grid, .requirements-grid, .shortcut-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .cue-table-head, .cue-row { grid-template-columns: 44px 64px minmax(0, 1fr); }
    .cue-table-head span:last-child, .cue-row span:last-child { display: none; }
    .hero-actions .btn, .cta-actions .btn { width: 100%; }
    .nav-shell { gap: .5rem; }
    .nav-actions { gap: .3rem; }
    .nav-actions .btn-sm { padding: .45rem .55rem; font-size: .78rem; }
    .password-label-full { display: none; }
    .password-label-short { display: inline; }
    .licence-key-row { align-items: stretch; }
    .licence-key { min-width: 100%; }
    .licence-meta { flex-direction: column; gap: .8rem; }
    .dashboard-help { flex-direction: column; align-items: flex-start; }
    .price { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .nav-shell .brand-text { display: none; }
    .nav-actions .btn-sm { padding: .42rem .48rem; }
}
