main.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 28px;
    margin-top: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --border-light: #e2e8f0;
    --border-faint: #edf2f7;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --accent-line: #2563eb;
    --radius: 16px;
    --shadow-faint: 0 1px 3px rgba(0, 0, 0, 0.02);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* --- hero --- */
.manifesto-header {
    padding: 80px 0 40px;
    max-width: 800px;
}

.pre-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand);
    font-weight: 600;
    margin-bottom: 16px;
}

.manifesto-header h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.manifesto-header h1 .accent {
    color: var(--brand);
    font-weight: 800;
}

.lead {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    border-left: 3px solid var(--brand);
    padding-left: 24px;
}

.badge-row {
    display: flex;
    gap: 32px;
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.badge-row i {
    color: var(--brand);
    margin-right: 8px;
    width: 16px;
}

/* --- section titles - optimized for mobile with better wrapping --- */
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 60px 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
    letter-spacing: -0.01em;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 16px;
}

.section-title .big {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.2;
}

.section-title .sub {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Mobile adjustments for section titles */
@media (max-width: 500px) {
    .section-title {
        flex-direction: column;
        gap: 4px;
    }

    .section-title .big {
        font-size: 2rem;
    }

    .section-title .sub {
        font-size: 1.1rem;
    }
}

.section-title-light {
    font-size: 1.4rem;
    font-weight: 500;
    margin: 40px 0 20px;
    color: var(--text-primary);
}

/* --- role cards - better mobile grid --- */
.role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 40px 0;
}

.role-card {
    background: var(--surface);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow-faint);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.role-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--brand);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.role-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.role-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

/* Mobile: stack cards */
@media (max-width: 750px) {
    .role-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* --- manifesto blocks --- */
.manifesto-block {
    background: var(--surface);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius);
    padding: 40px 48px;
    margin: 40px 0;
    box-shadow: var(--shadow-faint);
}

.manifesto-block p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.manifesto-block p:last-child {
    margin-bottom: 0;
}

.manifesto-block strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Mobile block padding */
@media (max-width: 600px) {
    .manifesto-block {
        padding: 30px 24px;
    }

    .manifesto-block p {
        font-size: 1rem;
    }
}

/* --- definition helper --- */
abbr.definition {
    border-bottom: 1px dotted var(--text-muted);
    cursor: help;
    text-decoration: none;
}

/* --- model cards - better mobile grid --- */
.models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 48px 0;
}

.model-item {
    background: white;
    border: 1px solid var(--border-faint);
    border-radius: 14px;
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.model-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.4;
}

.model-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.model-item .accent-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand);
    margin-bottom: 12px;
    font-weight: 600;
}

/* Mobile: stack model cards */
@media (max-width: 750px) {
    .models-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* --- connecting sentence after models --- */
.model-conclusion {
    margin: -20px 0 40px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding-left: 4px;
}

.model-conclusion strong {
    color: var(--brand);
    font-weight: 600;
}

/* --- inset callout --- */
.inset-block {
    background: #f1f5f9;
    border-left: 5px solid var(--brand);
    padding: 32px 40px;
    margin: 50px 0;
    border-radius: 0 12px 12px 0;
}

.inset-block p {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0;
    font-style: normal;
}

.inset-block .attrib {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .inset-block {
        padding: 24px 28px;
    }

    .inset-block p {
        font-size: 1.1rem;
    }
}

/* --- principle list --- */
.principle-list {
    margin: 24px 0 24px 24px;
}

.principle-list li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.principle-list strong {
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .principle-list {
        margin-left: 20px;
    }

    .principle-list li {
        font-size: 1rem;
    }
}

/* --- video section - with proper bridging sentence --- */
.video-section {
    margin: 60px 0 40px;
    padding: 32px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.video-section p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.video-item {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-faint);
    height: 100%;
}

.video-item:hover {
    border-color: var(--brand);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.video-item:active {
    transform: translateY(0);
}

.video-icon {
    width: 48px;
    height: 48px;
    background: #fee2e2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c00;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: all 0.2s;
}

.video-item:hover .video-icon {
    background: #c00;
    color: white;
}

.video-content {
    flex: 1;
    min-width: 0;
    /* Prevent overflow */
}

.video-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.video-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 12px 0;
    line-height: 1.5;
    word-wrap: break-word;
}

.video-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px dotted transparent;
    transition: border-color 0.2s;
    white-space: nowrap;
}

.video-item:hover .video-meta {
    border-bottom-color: var(--brand);
}

.video-meta i {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.video-item:hover .video-meta i {
    transform: translateX(4px);
}

/* Mobile: stack video cards */
@media (max-width: 700px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .video-item {
        padding: 20px;
    }
}

/* Small mobile: adjust video card layout */
@media (max-width: 400px) {
    .video-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .video-meta {
        white-space: normal;
    }
}

/* --- closing statement --- */
.closing-statement {
    background: var(--surface);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius);
    padding: 48px;
    margin: 60px 0 40px;
    box-shadow: var(--shadow-faint);
}

.closing-statement p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.closing-statement p:last-child {
    margin-bottom: 0;
}

.closing-statement strong {
    color: var(--text-primary);
    font-weight: 600;
}

.closing-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

@media (max-width: 600px) {
    .closing-statement {
        padding: 32px 24px;
    }

    .closing-links {
        flex-direction: column;
        align-items: stretch;
    }

    .closing-links .btn {
        justify-content: center;
    }
}

/* --- footer --- */
.footer-manifesto {
    margin: 40px 0 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-manifesto a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px dotted var(--border-light);
}

.footer-manifesto a:hover {
    color: var(--brand);
}

@media (max-width: 500px) {
    .footer-manifesto {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

/* --- back to top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, background 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    font-size: 1rem;
    padding: 0;
    line-height: 1;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: #f8fafc;
}

.back-to-top:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Small mobile adjustments */
@media (max-width: 400px) {
    .container {
        padding: 0 20px;
    }

    .lead {
        font-size: 1.1rem;
        padding-left: 16px;
    }

    .badge-row {
        gap: 16px;
        font-size: 0.85rem;
    }
}
