.roadmap-header {
    text-align: center;
    padding-top: calc(88px + var(--space-10));
    padding-bottom: var(--space-16);
}

.roadmap-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--space-6);
    color: var(--text-main);
}

.roadmap-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: var(--space-16);
}

.timeline-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    margin-bottom: var(--space-10);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.timeline-card::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -40px;
    width: 2px;
    height: var(--space-10);
    background: var(--border);
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-card:last-child::after {
    display: none;
}

.card-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.card-status.current {
    background: #dcfce7;
    color: #166534;
}

.card-status.upcoming {
    background: #eff6ff;
    color: #1e40af;
}

.card-status.future {
    background: #f3e8ff;
    color: #6b21a8;
}

.card-status.vision {
    background: #fff7ed;
    color: #9a3412;
}

[data-theme="dark"] .card-status.current {
    background: rgba(22, 101, 52, 0.15);
    color: #4ade80;
}

[data-theme="dark"] .card-status.upcoming {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

[data-theme="dark"] .card-status.future {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

[data-theme="dark"] .card-status.vision {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
}

.timeline-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: var(--space-3);
    color: var(--text-main);
}

.stage-context {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: var(--space-5);
    padding: var(--space-3) var(--space-4);
    background: var(--light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
}

[data-theme="dark"] .stage-context {
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--primary-light);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 1.05rem;
    color: var(--text-muted);
}

.feature-list li i {
    width: var(--space-6);
    text-align: center;
}

.feature-list li i.fa-check {
    color: var(--success);
}

.feature-list li i.fa-spinner {
    color: var(--primary);
}

.feature-list li i.fa-circle {
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .roadmap-header h1 {
        font-size: 2rem;
    }

    .timeline-container {
        position: relative;
        padding: 0 20px var(--space-12);
    }

    .timeline-card {
        margin-left: 0;
        margin-bottom: 40px;
        padding: 24px;
        position: relative;
        z-index: 1;
        width: 100%;
        box-sizing: border-box;
    }

    .timeline-card::after {
        display: block !important;
        position: absolute;
        left: 50%;
        bottom: -40px;
        width: 2px;
        height: 40px;
        background: var(--border);
        transform: translateX(-50%);
        z-index: 0;
    }

    .timeline-card:last-child::after {
        display: none !important;
    }
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.roles-section {
    padding-top: 0;
    padding-bottom: var(--space-16);
}

.roles-heading {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: var(--space-8);
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 1000px;
    margin: 0 auto;
}

.role-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.role-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md, var(--shadow-sm));
}

.role-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: var(--space-4);
}

.role-icon-a {
    background: #eff6ff;
    color: #1e40af;
}

.role-icon-b {
    background: #f3e8ff;
    color: #6b21a8;
}

.role-icon-c {
    background: #f3f4f6;
    color: #4b5563;
}

[data-theme="dark"] .role-icon-a {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

[data-theme="dark"] .role-icon-b {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

[data-theme="dark"] .role-icon-c {
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}

.role-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: var(--space-3);
}

.role-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.roles-note {
    text-align: center;
    max-width: 700px;
    margin: var(--space-8) auto 0;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-muted);
}



.role-tag {
    display: inline-block;
    padding: var(--space-1, 4px) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-3);
}

.role-tag-a {
    background: #eff6ff;
    color: #1e40af;
}

.role-tag-b {
    background: #f3e8ff;
    color: #6b21a8;
}

.role-tag-c {
    background: #f3f4f6;
    color: #4b5563;
}

.role-tag-both {
    background: linear-gradient(90deg, #eff6ff 50%, #f3e8ff 50%);
    color: #3730a3;
}

.role-tag-neutral {
    background: var(--border);
    color: var(--text-muted);
}

[data-theme="dark"] .role-tag-a {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

[data-theme="dark"] .role-tag-b {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

[data-theme="dark"] .role-tag-c {
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}

[data-theme="dark"] .role-tag-both {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 50%, rgba(168, 85, 247, 0.15) 50%);
    color: #a5b4fc;
}

[data-theme="dark"] .role-tag-neutral {
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}



.decision-gate {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-top: var(--space-6);
    padding: var(--space-4) var(--space-5);
    background: #fff7ed;
    border-left: 3px solid #fb923c;
    border-radius: var(--radius-lg, 12px);
    font-size: 0.92rem;
    color: #9a3412;
    line-height: 1.5;
}

.decision-gate i {
    margin-top: 2px;
}

[data-theme="dark"] .decision-gate {
    background: rgba(249, 115, 22, 0.1);
    color: #fdba74;
    border-left-color: #fb923c;
}


@media (max-width: 900px) {
    .role-grid {
        grid-template-columns: 1fr;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .icon-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
    }
}

.btn.small {
    padding: 10px 20px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .navbar {
        height: 72px;
    }

    .roadmap-header {
        padding-top: calc(72px + var(--space-6));
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-actions .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .btn.small {
        padding: 7px 11px;
        font-size: 0.78rem;
        white-space: nowrap;
    }
}