/* Features Page Specific Styles */
:root {
    --line-color: rgba(255, 255, 255, 0.1);
    --line-active: var(--color-mint);
    --step-dot-size: 20px;
}

/* Hero Tweaks */
.features-hero {
    padding: 160px 0 80px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(0, 217, 165, 0.1), transparent 70%);
}

.features-hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
}

.features-hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Roadmap Section */
.roadmap-section {
    position: relative;
    padding: 80px 0 160px;
    overflow: hidden;
}

.roadmap-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Central Line */
.roadmap-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--line-color);
    transform: translateX(-50%);
    border-radius: 4px;
    z-index: 0;
}

.roadmap-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    /* JS will animate this */
    background: linear-gradient(to bottom, var(--color-mint), var(--color-lavender));
    border-radius: 4px;
    transition: height 0.1s linear;
}

/* Roadmap Steps */
.roadmap-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 120px;
    z-index: 1;
}

.roadmap-step:last-child {
    margin-bottom: 0;
}

.step-content,
.step-visual {
    width: 45%;
}

.roadmap-step.left .step-content {
    text-align: right;
    order: 1;
}

.roadmap-step.left .step-visual {
    display: flex;
    justify-content: flex-start;
    padding-left: 40px;
    /* Space from center */
    order: 2;
}

.roadmap-step.right .step-visual {
    display: flex;
    justify-content: flex-end;
    padding-right: 40px;
    /* Space from center */
    order: 1;
}

.roadmap-step.right .step-content {
    text-align: left;
    order: 2;
}

/* Content Styling */
.step-number {
    font-family: var(--font-family);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    margin-bottom: -20px;
    position: relative;
    z-index: -1;
}

.step-content h2 {
    font-size: 2rem;
    color: var(--color-mint);
    margin-bottom: 8px;
}

.step-content h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 16px;
    font-weight: 500;
}

.step-content p {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
}

.step-features {
    list-style: none;
    display: inline-block;
    text-align: left;
    /* Always align list text left for readability */
}

.roadmap-step.left .step-features {
    /* Even if content is right-aligned, list looks better left-aligned relative to itself, 
       but we can align the block right */
    text-align: right;
}

.step-features li {
    margin-bottom: 8px;
    color: var(--color-text-subtle);
    font-size: 0.95rem;
}

/* Visual Icons */
.icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-mint);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: var(--transition);
}

.icon-circle::before {
    /* Connector Dot on line */
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--color-bg);
    border: 3px solid var(--color-mint);
    border-radius: 50%;
    z-index: 2;
}

/* Positioning connector dots */
.roadmap-step.left .icon-circle::before {
    right: auto;
    left: -40px;
    /* 40px padding + half line width */
    transform: translate(-50%, -50%);
    /* Center on line? No, calc manual */
    /* Actually, creating a dot on the center line is better detached from visual */
}

/* Let's use a simpler center dot approach */
.roadmap-step::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--color-bg);
    border: 3px solid var(--color-text-subtle);
    border-radius: 50%;
    z-index: 2;
    transition: 0.5s ease;
}

.roadmap-step.visible::after {
    border-color: var(--color-mint);
    background: var(--color-mint);
    box-shadow: 0 0 20px var(--color-mint);
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* CTA */
.final-cta {
    padding: 100px 0;
    text-align: center;
    background: var(--color-surface);
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.final-cta p {
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .roadmap-line {
        left: 30px;
        /* Align to left */
    }

    .roadmap-step {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 60px;
        /* Space for line */
        margin-bottom: 80px;
    }

    .roadmap-step.left .step-content,
    .roadmap-step.right .step-content {
        order: 2;
        width: 100%;
        text-align: left;
    }

    .roadmap-step.left .step-visual,
    .roadmap-step.right .step-visual {
        order: 1;
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 24px;
        padding: 0;
    }

    .roadmap-step.left .step-features {
        text-align: left;
    }

    .roadmap-step::after {
        left: 30px;
        /* Align dot to line */
        top: 60px;
        /* Align with Icon roughly */
    }

    .features-hero h1 {
        font-size: 2.5rem;
    }
}