/* --- Roadmap Page (Sleek Aesthetic) --- */
.roadmap-page {
    background-color: var(--bg-dark-deep);
    color: var(--text-white);
}

/* --- Fixed Minimalist Navigation --- */
.fixed-roadmap-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    background: rgba(0, 14, 19, 0.7);
    /* Deep dark with transparency */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease;
    /* For smart scroll down the line */
}

/* Helper class for JS to hide nav on scroll down */
.fixed-roadmap-nav.nav-hidden {
    transform: translateY(-100%);
}

.roadmap-back-btn {
    color: var(--text-white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.roadmap-back-btn:hover {
    color: var(--text-white);
    opacity: 1;
}

/* --- Layout --- */
.roadmap-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    padding-top: 80px;
    /* Offset for fixed nav */
}

/* --- Hero Section --- */
.roadmap-header {
    text-align: center;
    padding: 100px 24px 60px 24px;
    position: relative;
}

.roadmap-header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 64px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 16px;
    letter-spacing: 2px;
    /* Commanding, wider tracking */
    text-transform: uppercase;
}

.roadmap-header p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.4);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* --- Content Area --- */
.roadmap-content {
    padding: 40px 40px 120px 40px;
}

.roadmap-chapter {
    margin-bottom: 120px;
    /* Massive breathing room */
}

/* Minimalist Chapter Dividers */
.roadmap-chapter-header {
    margin-bottom: 50px;
    padding-bottom: 24px;
    position: relative;
}

/* The fading separation line */
.roadmap-chapter-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

.roadmap-chapter-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    /* Larger, sleeker */
    font-weight: 300;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
}

.roadmap-chapter-header .chapter-num {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* --- Task Lists (Staggered Hover Bar Style) --- */
.roadmap-task-list {
    display: flex;
    flex-direction: column;
}

.roadmap-task-row {
    display: flex;
    align-items: center;
    /* Center content vertically */
    padding: 32px 0;
    /* Huge vertical breathing room */
    text-decoration: none;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    /* Almost invisible separator */
    opacity: 0;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.roadmap-task-row:last-child {
    border-bottom: none;
}

/* The Staggered Hover Bar */
.timeline-column {
    position: relative;
    width: 24px;
    /* Shrunk width */
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.stagger-bar {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0%;
    /* Hidden by default */
    background-color: var(--brand-secondary);
    border-radius: 4px;
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* Content Column */
.task-content-column {
    flex-grow: 1;
    padding-left: 16px;
    padding-right: 24px;
}

.task-header-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.roadmap-task-row .task-number {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.2);
    min-width: 30px;
}

.roadmap-task-row .task-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--text-white);
    transition: transform 0.3s ease;
    /* Slight nudge, no color change */
}

.roadmap-task-row .task-description {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.35);
    /* Faded summary */
    font-size: 16px;
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.6;
    padding-left: 46px;
    /* Align with title, past the number */
    max-width: 90%;
}

/* Action Column */
.task-action-column {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 60px;
    flex-shrink: 0;
}

.roadmap-task-row .task-action {
    font-size: 24px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--text-white);
    /* White arrow, not cyan */
}

/* --- Locked States --- */
.roadmap-task-row.locked {
    opacity: 0.4;
    /* Faded row */
    cursor: default;
}

.roadmap-task-row.locked .task-action {
    opacity: 1;
    transform: translateX(0);
}

.premium-lock-icon {
    stroke: rgba(0, 255, 221, 0.6);
    /* Subtle premium cyan hint */
    stroke-width: 1.5;
}

/* --- Hover States (Unlocked Only) --- */
.roadmap-task-row:hover:not(.locked) .stagger-bar {
    height: 60%;
    /* Bar grows vertically */
    box-shadow: 0 0 15px rgba(0, 255, 221, 0.4);
}

.roadmap-task-row:hover:not(.locked) .task-title {
    transform: translateX(4px);
    /* Sleek nudge */
}

.roadmap-task-row:hover:not(.locked) .task-action {
    opacity: 1;
    transform: translateX(0);
}

/* Bouncing Arrow */
@keyframes arrowBounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

.roadmap-task-row:hover:not(.locked) .task-action .enter-icon {
    display: inline-block;
    animation: arrowBounce 1s ease-in-out infinite;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .fixed-roadmap-nav {
        padding: 0 24px;
        height: 60px;
    }

    .roadmap-container {
        padding-top: 60px;
    }

    .roadmap-header h1 {
        font-size: 36px;
        letter-spacing: 1px;
    }

    .roadmap-header {
        padding: 60px 24px 40px 24px;
    }

    .roadmap-content {
        padding: 20px 24px;
    }

    .roadmap-chapter-header h2 {
        font-size: 28px;
    }

    .timeline-column {
        width: 12px;
    }

    .task-content-column {
        padding-left: 12px;
        padding-right: 0;
    }

    .roadmap-task-row .task-title {
        font-size: 20px;
    }

    .roadmap-task-row .task-description {
        font-size: 14px;
        padding-left: 0;
        margin-top: 12px;
    }

    .task-action-column {
        display: none;
    }

    /* Hide arrow on mobile */
}

/* Staggered Row Entry */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.roadmap-task-row {
    opacity: 0;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Escalate delays */
.roadmap-task-row:nth-child(1) {
    animation-delay: 0.05s;
}

.roadmap-task-row:nth-child(2) {
    animation-delay: 0.10s;
}

.roadmap-task-row:nth-child(3) {
    animation-delay: 0.15s;
}

.roadmap-task-row:nth-child(4) {
    animation-delay: 0.20s;
}

.roadmap-task-row:nth-child(5) {
    animation-delay: 0.25s;
}

.roadmap-task-row:nth-child(6) {
    animation-delay: 0.30s;
}

.roadmap-task-row:nth-child(7) {
    animation-delay: 0.35s;
}

.roadmap-task-row:nth-child(8) {
    animation-delay: 0.40s;
}

.roadmap-task-row:nth-child(9) {
    animation-delay: 0.45s;
}

.roadmap-task-row:nth-child(10) {
    animation-delay: 0.50s;
}

.roadmap-task-row:nth-child(11) {
    animation-delay: 0.55s;
}

.roadmap-task-row:nth-child(12) {
    animation-delay: 0.60s;
}

.roadmap-task-row:nth-child(13) {
    animation-delay: 0.65s;
}

.roadmap-task-row:nth-child(14) {
    animation-delay: 0.70s;
}

.roadmap-task-row:nth-child(15) {
    animation-delay: 0.75s;
}