:root {
    --page-bg: #0f1218;
    --page-surface: #191d25;
    --page-surface-2: #151923;
    --page-border: #313743;
    --page-text: #ffffff;
    --page-muted: #b8c2df;
    --page-green: #24d66f;
    --page-orange: #ff9f0a;
    --page-wrap: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--page-bg);
    color: var(--page-text);
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    line-height: 1.7;
}

a {
    color: inherit;
}

.container,
.site-footer__inner {
    margin: 0 auto;
    max-width: var(--page-wrap);
    width: calc(100% - 40px);
}

.btn {
    align-items: center;
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    justify-content: center;
    min-height: 42px;
    padding: 10px 22px;
    text-decoration: none;
}

.btn--green {
    background: linear-gradient(180deg, var(--page-green), #18b75b);
}

.btn--orange {
    background: linear-gradient(180deg, var(--page-orange), #e18400);
}

.page-main {
    padding: 42px 0 76px;
}

.breadcrumbs {
    color: var(--page-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.breadcrumbs a {
    color: var(--page-green);
    font-weight: 900;
    text-decoration: none;
}

.page-hero {
    background: radial-gradient(circle at 76% 30%, rgba(36, 214, 111, 0.16), transparent 34%), linear-gradient(135deg, #0b1216, #102019 58%, #151923);
    border: 1px solid var(--page-border);
    border-radius: 8px;
    margin-bottom: 28px;
    overflow: hidden;
    padding: 36px;
}

.page-hero__grid {
    align-items: start;
    display: grid;
    gap: 42px;
    grid-template-columns: minmax(0, 1fr) 250px;
}

.page-hero__copy {
    min-width: 0;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    letter-spacing: 0;
    line-height: 1.05;
    margin-bottom: 18px;
    text-shadow: 0 3px 0 #000;
}

.page-hero__lead {
    color: var(--page-muted);
    font-size: 1.08rem;
    max-width: 880px;
}

.page-hero__lead + .page-hero__lead {
    margin-top: 16px;
}

.page-hero__poster {
    justify-self: end;
    margin: 0;
    width: 100%;
}

.page-hero__poster img {
    border: 1px solid var(--page-border);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
    display: block;
    height: auto;
    width: 100%;
}

.article-meta {
    align-items: center;
    color: var(--page-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.88rem;
    gap: 10px;
    margin: 0 0 22px;
}

.article-meta__author {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-weight: 900;
    gap: 9px;
    text-decoration: none;
}

.article-meta__avatar {
    border: 1px solid #728099;
    border-radius: 50%;
    height: 36px;
    object-fit: cover;
    width: 36px;
}

.article-meta__divider {
    background: #596274;
    height: 24px;
    width: 1px;
}

.page-toc {
    background: var(--page-surface);
    border: 1px solid var(--page-border);
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
}

.page-toc summary {
    color: var(--page-green);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    padding: 17px 20px;
    text-transform: uppercase;
}

.page-toc nav {
    border-top: 1px solid var(--page-border);
    padding: 18px 22px 22px;
}

.page-toc ol {
    columns: 2;
    column-gap: 44px;
    margin: 0 0 0 22px;
}

.page-toc li {
    break-inside: avoid;
    margin: 0 0 7px;
}

.page-toc a {
    color: var(--page-muted);
    text-decoration: none;
}

.page-toc a:hover {
    color: var(--page-green);
}

.page-section {
    padding: 28px 4px;
}

.page-section[id] {
    scroll-margin-top: 150px;
}

.page-section + .page-section {
    border-top: 1px solid var(--page-border);
}

h2 {
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.2;
    margin-bottom: 14px;
    padding-left: 16px;
    position: relative;
}

h2::before {
    background: var(--page-green);
    border-radius: 2px;
    content: "";
    height: 75%;
    left: 0;
    position: absolute;
    top: 12%;
    width: 4px;
}

h3 {
    font-size: 1.17rem;
    line-height: 1.3;
    margin: 22px 0 8px;
}

p,
li,
td {
    color: var(--page-muted);
}

p + p {
    margin-top: 14px;
}

ul,
ol {
    margin: 14px 0 0 24px;
}

li + li {
    margin-top: 8px;
}

li::marker {
    color: var(--page-green);
    font-weight: 900;
}

.info-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
}

.info-card,
.step-card {
    background: var(--page-surface);
    border: 1px solid var(--page-border);
    border-radius: 8px;
    padding: 22px;
}

.info-card h3,
.step-card h3 {
    margin-top: 0;
}

.steps {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.step-card {
    display: grid;
    gap: 6px 16px;
    grid-template-columns: 42px 1fr;
}

.step-card__number {
    align-items: center;
    background: var(--page-green);
    border-radius: 50%;
    color: #07120b;
    display: flex;
    font-weight: 900;
    grid-row: 1 / span 2;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.step-card h3,
.step-card p {
    margin: 0;
}

.table-wrap {
    border: 1px solid var(--page-border);
    border-radius: 8px;
    margin-top: 20px;
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    min-width: 700px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--page-border);
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #242a35;
    color: #fff;
    font-size: 0.9rem;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.note {
    background: #171d25;
    border-left: 4px solid var(--page-orange);
    border-radius: 4px;
    color: var(--page-muted);
    margin-top: 20px;
    padding: 18px 20px;
}

.demo-shell {
    background: #080b10;
    border: 1px solid var(--page-border);
    border-radius: 8px;
    margin-top: 24px;
    overflow: hidden;
}

.demo-stage {
    align-items: center;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at center, rgba(36, 214, 111, 0.17), transparent 36%), url('fury-of-anubis-poster.webp') center/cover no-repeat;
    display: flex;
    justify-content: center;
    min-height: 420px;
    position: relative;
}

.demo-stage::before {
    background: rgba(4, 7, 10, 0.72);
    content: "";
    inset: 0;
    position: absolute;
}

.demo-stage__start {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 560px;
    padding: 24px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.demo-stage__start p {
    color: #dbe4fa;
}

.demo-frame {
    border: 0;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
    z-index: 2;
}

.demo-toolbar {
    align-items: center;
    background: #303642;
    display: flex;
    justify-content: space-between;
    min-height: 56px;
    padding: 8px 12px;
}

.demo-toolbar p {
    color: #dbe4fa;
    font-size: 0.82rem;
}

.demo-toolbar__fullscreen {
    background: transparent;
    border: 1px solid #596274;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 900;
    padding: 8px 12px;
}

.faq-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.faq-item {
    background: var(--page-surface);
    border: 1px solid var(--page-border);
    border-radius: 8px;
    padding: 0 20px;
}

.faq-item summary {
    color: #fff;
    cursor: pointer;
    font-weight: 900;
    padding: 17px 26px 17px 0;
    position: relative;
}

.faq-item summary::after {
    color: var(--page-green);
    content: "+";
    font-size: 1.3rem;
    position: absolute;
    right: 0;
}

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

.faq-item p {
    padding-bottom: 18px;
}

.site-footer {
    background: #11151c;
    border-top: 1px solid #2d3340;
    color: var(--page-muted);
    padding: 40px 0 22px;
}

.site-footer__tagline {
    color: var(--page-muted);
    font-size: 0.9rem;
    margin-top: 16px;
    max-width: 760px;
}

.site-footer__mid {
    border-bottom: 1px solid #2d3340;
    border-top: 1px solid #2d3340;
    margin-top: 26px;
    padding: 24px 0;
    text-align: center;
}

.site-footer__disclaimer,
.site-footer__bottom {
    color: var(--page-muted);
    font-size: 0.8rem;
}

.site-footer__bottom {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    padding-top: 24px;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer__legal a {
    color: var(--page-muted);
    text-decoration: none;
}

@media (max-width: 800px) {
    body {
        font-size: 16px;
    }

    .container,
    .site-footer__inner {
        width: calc(100% - 28px);
    }

    .page-main {
        padding-top: 26px;
    }

    .page-hero {
        padding: 26px 22px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .page-hero__grid {
        grid-template-columns: 1fr;
    }

    .page-hero__poster {
        justify-self: center;
        max-width: 220px;
    }

    .article-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .article-meta__divider {
        display: none;
    }

    .page-toc ol {
        columns: 1;
    }

    .demo-stage {
        aspect-ratio: 9 / 14;
        min-height: 560px;
    }

    .demo-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .demo-toolbar__fullscreen {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.25rem;
    }

    .page-section {
        padding: 24px 0;
    }

    .step-card {
        grid-template-columns: 36px 1fr;
        padding: 18px;
    }

    .step-card__number {
        height: 36px;
        width: 36px;
    }
}
