@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-deep: #05060a;
    --panel: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.manual-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.15), transparent 55%), var(--bg-deep);
    color: var(--text-main);
    min-height: 100vh;
    padding: 60px 20px 80px;
}

.manual-shell {
    max-width: 1100px;
    margin: 0 auto;
}

.top-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.top-nav .nav-link {
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.top-nav .nav-link:hover {
    border-bottom-color: var(--text-main);
}

.top-nav .divider {
    margin: 0 10px;
}

.manual-hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 32px;
    padding: 40px;
    border-radius: 32px;
    border: 1px solid var(--border);
    background: rgba(8, 10, 18, 0.8);
    backdrop-filter: blur(18px);
    margin-bottom: 50px;
}

.hero-text .eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.hero-text h1 {
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 18px;
}

.hero-text .lead {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta {
    padding: 14px 34px;
    border-radius: 999px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta.primary {
    background: #fff;
    color: #000;
    font-weight: 600;
}

.cta.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.25);
}

.cta.ghost {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-main);
}

.cta.ghost:hover {
    border-color: #fff;
}

.hero-card {
    background: var(--panel);
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 28px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.hero-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
}

.hero-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-card li {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.hero-card .label {
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.manual-section {
    margin-bottom: 60px;
}

.section-head h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.section-head p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.info-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    min-height: 160px;
}

.info-card h3 {
    margin-bottom: 12px;
}

.info-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.step-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    counter-reset: step;
}

.step-list li {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    position: relative;
    min-height: 150px;
}

.step-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

.step-list h4 {
    margin-bottom: 10px;
}

.step-list p {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.matrix-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
}

.matrix-card h3 {
    margin-bottom: 10px;
}

.matrix-card p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.matrix-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-main);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.support-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    background: rgba(10, 12, 18, 0.85);
}

.support-card h4 {
    margin-bottom: 10px;
}

.support-card p {
    color: var(--text-muted);
    margin-bottom: 6px;
}

.manual-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .manual-hero {
        grid-template-columns: 1fr 0.9fr;
        padding: 32px;
    }
}

@media (max-width: 768px) {
    body.manual-page {
        padding: 40px 16px 60px;
    }

    .top-nav {
        justify-content: flex-start;
        font-size: 0.75rem;
        letter-spacing: 0.06em;
        margin-bottom: 18px;
    }

    .manual-hero {
        grid-template-columns: 1fr;
        padding: 26px 22px;
        border-radius: 22px;
        gap: 20px;
    }

    .hero-text .eyebrow {
        letter-spacing: 0.25em;
        font-size: 0.7rem;
    }

    .hero-text h1 {
        font-size: 1.9rem;
    }

    .hero-text .lead {
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta {
        width: 100%;
        text-align: center;
    }

    .hero-card {
        padding: 22px;
    }

    .card-grid,
    .step-list,
    .matrix-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body.manual-page {
        padding: 32px 14px 50px;
    }

    .manual-hero {
        padding: 22px 18px;
    }

    .hero-text h1 {
        font-size: 1.7rem;
    }

    .hero-card li {
        flex-direction: column;
        gap: 4px;
    }

    .manual-section {
        margin-bottom: 40px;
    }

    .step-list li::before {
        font-size: 1.5rem;
        right: 16px;
    }
}

