:root {
    --slotx-red: #df2531;
    --slotx-bg: radial-gradient(circle at 15% 15%, rgba(223, 37, 49, 0.20), transparent 20%),
    radial-gradient(circle at 85% 85%, rgba(223, 37, 49, 0.14), transparent 18%),
    linear-gradient(180deg, #000 0%, #0b0202 60%, #120506 100%);
}

html, body {
    background: var(--slotx-bg);
    overscroll-behavior: none;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    line-height: 1.75;
    font-size: 16px;
    overflow-x: hidden;
    position: relative;
    background: var(--slotx-bg);
    min-height: 100vh;
}

#sparksCanvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.shell {
    display: flex;
    width: 100%;
    position: relative;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 260px;
    padding: 16px 14px;
    border-right: 1px solid rgba(255, 255, 255, .08);
    overflow-y: auto;
    text-align: center;
    -ms-overflow-style: none;
    scrollbar-width: none;
    background: transparent;
}

.sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.sidebar .logo {
    margin-bottom: 14px;
}

.sidebar .logo img {
    max-width: 150px;
    height: auto;
}

.sidebar a.mobile-menu {
    display: none;
}

.sidebar .title {
    font-weight: 800;
    font-size: 15px;
    margin: 0 6px 4px;
    text-align: left;
}

.sidebar .label {
    margin: 12px 6px 4px;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    text-align: left;
}

.sidebar a {
    display: block;
    padding: 6px 8px;
    margin: 1px 0;
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
    font-size: 15px;
    border-radius: 6px;
    transition: color .15s ease, background .15s ease;
    text-align: left;
}

.sidebar a:hover {
    color: #fff;
    background: rgba(223, 37, 49, .12);
}

.sidebar a.active {
    color: #fff;
    background: rgba(223, 37, 49, .22);
}

/* Content */
.content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 40px 60px;
}

h1 {
    margin: 0 0 10px;
    font-size: 42px;
    font-weight: 800;
    text-align: center;
}

.subtitle {
    display: block;
    width: fit-content;
    margin: 0 auto 36px;
    padding: 8px 18px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background: rgba(223, 37, 49, 0.12);
    border: 1px solid rgba(223, 37, 49, .25);
    border-radius: 999px;
    text-align: center;
    box-shadow: 0 0 6px rgba(223, 37, 49, 0.28), 0 0 10px rgba(223, 37, 49, 0.16);
}

/* Cards */
.card {
    border-radius: 18px;
    padding: 0;
    margin: 34px 0;
    border: 1px solid rgba(223, 37, 49, .40);
    /*background: linear-gradient(180deg, rgba(223, 37, 49, 0.08), rgba(223, 37, 49, 0.05));*/
    box-shadow: 0 0 10px rgba(223, 37, 49, .14);
}

.card h2 {
    margin: 0;
    padding: 22px 24px 10px;
    font-size: 22px;
    color: var(--slotx-red);
}

.card .inner {
    padding: 0 24px 24px;
    max-width: 860px;
    margin: 0 auto;
}

.card p, .card li {
    color: #e6e6e6;
    font-size: 17.5px;
}

.card h3 {
    margin: 22px 0 10px;
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 14px;
}

.card h3#refs-users {
    border-top: none;
}

.card h3:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 10px;
}

/* Screens */
.screen {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(223, 37, 49, .25);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
    margin: 16px 0;
}

figure.screened {
    margin: 16px 0;
}

figure.screened figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: #cfcfcf;
    text-align: left;
    opacity: .9;
}

.screen-small {
    max-width: 70%;
    margin: 16px auto;
}

/* Hints */
.hint, .warn {
    margin: 14px 0;
    padding: 14px 16px;
    background: rgba(223, 37, 49, 0.10);
    border: 1px solid rgba(223, 37, 49, .22);
    border-radius: 12px;
    color: #e8e8e8;
}

.warn {
    background: rgba(223, 37, 49, 0.14);
}

/* Lists */
.card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.card ul:not(.checklist) li {
    position: relative;
    padding: 10px 0 10px 26px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.card ul:not(.checklist) li:last-child {
    border-bottom: none;
}

.card ul:not(.checklist) li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--slotx-red);
    box-shadow: 0 0 6px rgba(223, 37, 49, .5);
}

/* Checklist */
.checklist li {
    position: relative;
    padding: 10px 0 10px 30px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.checklist li:last-child {
    border-bottom: none;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 10px;
    font-weight: 800;
    color: #56e07a;
}

.checklist li.bad::before {
    content: "✗";
    color: #ff6b6b;
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 6px;
    font-size: 16.5px;
    color: #e6e6e6;
}

.table th, .table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    text-align: left;
}

.table th {
    color: #fff;
    font-weight: 700;
}

/* Subnav chips */
.subnav {
    /*position: sticky;*/
    /*top: 0;*/
    background: transparent;
    margin: 0;
    padding: 10px 0 12px;
    z-index: 1;
}

.subnav .strip {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(223, 37, 49, .12);
    border: 1px solid rgba(223, 37, 49, .25);
    color: #ccc;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.chip:hover {
    color: #fff;
}

/* FAQ */
.faq details {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.faq details:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.faq summary {
    cursor: pointer;
    padding: 14px 24px 14px 0;
    margin: 0;
    font-weight: 700;
    color: #fff;
    position: relative;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "＋";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 800;
    color: var(--slotx-red);
    transition: .2s;
}

.faq details[open] summary::after {
    content: "−";
}

.faq .answer {
    margin: 0;
    padding: 0 18px;
    background: rgba(223, 37, 49, 0.10);
    border: 1px solid rgba(223, 37, 49, .22);
    border-radius: 12px;
    color: #e8e8e8;
    line-height: 1.6;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, opacity .3s ease, margin .2s ease, padding .2s ease;
}

.faq details.opening .answer, .faq details.open .answer {
    opacity: 1;
    margin: 12px 0 18px;
    padding: 16px 18px;
}

/* Mobile topbar & drawer */
.mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 150;
    display: none;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 14px;
    background: rgba(18, 5, 6, .9);
    backdrop-filter: saturate(120%) blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.mobile-topbar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-topbar .brand img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.mobile-topbar .brand span {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    opacity: .9;
}

.burger {
    appearance: none;
    background: transparent;
    border: none;
    padding: 6px;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.burger span {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    display: block;
    transition: transform .25s ease, opacity .2s ease;
}

.burger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 140;
    opacity: 0;
    transition: opacity .25s ease;
}

.drawer-overlay.show {
    opacity: 1;
}

@media (max-width: 760px) {
    .mobile-topbar {
        display: flex;
    }

    .content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 16px 30px;
    }

    .sidebar {
        position: fixed !important;
        top: 56px;
        left: 0;
        height: calc(100% - 56px);
        width: min(86vw, 320px);
        background: rgba(18, 5, 6, .98);
        backdrop-filter: blur(6px);
        transform: translateX(-100%);
        transition: transform .28s ease;
        z-index: 160;
        border-right: 1px solid rgba(255, 255, 255, .08);
        padding: 16px 14px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar a {
        padding: 8px 8px;
        font-size: 15px;
    }

    .sidebar .label {
        margin: 10px 6px 2px;
    }

    .sidebar .logo {
        display: none;
    }

    body.noscroll {
        overflow: hidden;
    }

    .subnav .strip {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sidebar a.mobile-menu {
        display: block;
    }

    .screen-small {
        max-width: 100%;
    }
}

/* Projects */
.section-head {
    font-size: 26px;
    font-weight: 800;
    margin: 26px 0 8px;
}

.projects-grid {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 26px;
    margin: 18px 0 36px;
}

.proj-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(223, 37, 49, .30);
    background: rgba(223, 37, 49, .08);
    box-shadow: 0 0 14px rgba(223, 37, 49, .16);
    margin: 0 auto;
    width: 100%;
}

.proj-card .media {
    position: relative;
    height: clamp(200px, 22vw, 280px);
    overflow: hidden;
}

.proj-card .media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proj-caption {
    /*background: linear-gradient(180deg, rgba(191, 34, 42, .14), rgba(191, 34, 42, .10));*/
    border-top: 1px solid rgba(223, 37, 49, .30);
    padding: 16px 18px;
}

.proj-caption h3 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.proj-caption p {
    margin: 0;
    font-size: 16px;
    color: #e0e0e0;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
}

.slide.active {
    opacity: 1;
}

.dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, .4);
    border-radius: 999px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.dots button {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: transparent;
    box-shadow: inset 0 0 0 2px #777;
    cursor: pointer;
}

.dots button.active {
    box-shadow: inset 0 0 0 6px var(--slotx-red);
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns:1fr
    }
}

section {
    z-index: 2;
    position: relative;
}