:root {
    --bg: #071018;
    --surface: #0d1722;
    --surface-2: #121f2d;
    --line: rgba(86, 224, 214, 0.2);
    --cyan: #20c8ff;
    --green: #42f59a;
    --amber: #ffc857;
    --red: #ff6b81;
    --text: #eef8ff;
    --muted: #a9b8c8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        #071018;
    background-size: 48px 48px;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--cyan);
}

.layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 24px 18px;
    border-right: 1px solid var(--line);
    background: rgba(7, 16, 24, 0.97);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.brand img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border: 1px solid rgba(66, 245, 154, 0.45);
    border-radius: 6px;
    box-shadow: 0 0 24px rgba(66, 245, 154, 0.18);
}

.brand strong {
    display: block;
    font-size: 17px;
}

.brand small {
    color: var(--muted);
}

.nav-title {
    margin: 22px 8px 8px;
    color: #71849a;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.sidebar nav {
    display: grid;
    gap: 4px;
}

.sidebar nav a {
    padding: 9px 10px;
    color: var(--muted);
    text-decoration: none;
    border-left: 2px solid transparent;
}

.sidebar nav a:hover {
    color: var(--green);
    border-left-color: var(--green);
    background: rgba(66, 245, 154, 0.06);
}

.content {
    width: min(1120px, 100%);
    padding: 34px clamp(18px, 4vw, 54px) 70px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(100deg, rgba(7, 16, 24, 0.96), rgba(7, 16, 24, 0.6)),
        url("../logo.png") center 42% / cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(66, 245, 154, 0.16);
    box-shadow: inset 0 0 45px rgba(32, 200, 255, 0.12);
    pointer-events: none;
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 720px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.1;
}

.hero p {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 12px 0 0;
    color: #d2deea;
}

.hero .privacy-note {
    padding: 9px 12px;
    border-left: 3px solid var(--yellow);
    background: rgba(247, 189, 20, 0.08);
    color: #bac8d2;
    font-size: 13px;
}

.summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.summary div {
    padding: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.summary strong {
    display: block;
    color: var(--green);
    font-size: 18px;
}

.summary span {
    color: var(--muted);
    font-size: 13px;
}

section {
    scroll-margin-top: 20px;
    margin-top: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(13, 23, 34, 0.95);
}

h2 {
    margin: 0 0 12px;
    color: var(--cyan);
    font-size: 23px;
}

h3 {
    margin: 22px 0 8px;
    color: var(--text);
    font-size: 17px;
}

p {
    margin: 0 0 12px;
    color: var(--muted);
}

ol,
ul {
    margin: 10px 0 16px;
    padding-left: 22px;
}

li {
    margin: 7px 0;
}

code {
    padding: 2px 5px;
    color: #ffe3a1;
    background: rgba(255, 200, 87, 0.08);
}

.shot {
    margin: 18px 0 4px;
    border: 1px solid rgba(86, 224, 214, 0.25);
    background: #050b11;
}

.shot img {
    display: block;
    width: 100%;
    height: auto;
}

.shot figcaption {
    padding: 9px 12px;
    color: var(--muted);
    font-size: 12px;
    border-top: 1px solid var(--line);
}

.callout {
    margin: 14px 0;
    padding: 12px 14px;
    border-left: 4px solid var(--cyan);
    background: rgba(32, 200, 255, 0.07);
}

.callout.warning {
    border-left-color: var(--amber);
    background: rgba(255, 200, 87, 0.08);
}

.callout.danger {
    border-left-color: var(--red);
    background: rgba(255, 107, 129, 0.08);
}

.steps {
    display: grid;
    gap: 10px;
    counter-reset: step;
}

.step {
    position: relative;
    min-height: 52px;
    padding: 12px 14px 12px 54px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--surface-2);
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 13px;
    top: 12px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #04110d;
    font-weight: 800;
    background: var(--green);
}

.footer {
    margin-top: 26px;
    color: #71849a;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 860px) {
    .layout {
        display: block;
    }

    .sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content {
        padding: 20px 14px 50px;
    }

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

@media print {
    body {
        color: #111;
        background: #fff;
    }

    .layout {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .content {
        width: 100%;
        padding: 0;
    }

    .hero,
    section,
    .summary div,
    .step {
        color: #111;
        background: #fff;
        border-color: #aaa;
        break-inside: avoid;
    }

    p,
    .shot figcaption {
        color: #333;
    }
}
