/* ============================================================
   ROADMAP PAGE — Vertical timeline layout
   ============================================================ */

.fix-link a { color: transparent; }
.exchange_box { cursor: pointer; }
.hide { opacity: 0 !important; }

/* ── Page wrapper ─────────────────────────────────────────── */
.rm-section {
    padding-top: 0;
    padding-bottom: 4rem;
}

/* ── Aurora hero ──────────────────────────────────────────── */
.rm-hero {
    min-height: 24rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

.rm-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.rm-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text-1);
    margin-bottom: 1rem;
}

.rm-accent {
    color: var(--brand);
}

.rm-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: var(--text-2);
    line-height: 1.65;
    max-width: 52ch;
    margin: 0 auto;
}

/* ── Progress strip ───────────────────────────────────────── */
.rm-progress-strip {
    max-width: 560px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.rm-progress-bar-wrap {
    height: 6px;
    background: var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.rm-progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--brand), var(--success));
    box-shadow: 0 0 12px color-mix(in srgb, var(--brand) 50%, transparent);
    transition: width 1.2s var(--ease-out-expo);
}

.rm-progress-label {
    font-size: 0.82rem;
    color: var(--text-3);
}

.rm-progress-label strong {
    color: var(--brand);
}

/* ── Timeline container ───────────────────────────────────── */
.rm-timeline {
    max-width: 760px;
    margin: 0 auto;
}

/* ── Milestone row ────────────────────────────────────────── */
.rm-milestone {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0 1.5rem;
    margin-bottom: 0;
}

/* ── Connector (node + line) ──────────────────────────────── */
.rm-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rm-node {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: box-shadow 0.3s ease;
}

.rm-node--done {
    background: var(--success);
    color: var(--on-success);
    box-shadow: 0 0 0 4px var(--success-dim);
}

.rm-milestone:hover .rm-node--done {
    box-shadow: 0 0 0 8px var(--success-dim);
}

.rm-line {
    flex: 1;
    width: 2px;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--success) 40%, transparent), var(--success-dim));
    margin: 4px 0;
    min-height: 1.5rem;
}

/* ── Milestone card ───────────────────────────────────────── */
.rm-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem 1.75rem 1.25rem;
    margin-bottom: 1.5rem;
    transition:
        transform  0.3s var(--spring-bounce),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.rm-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 32px oklch(0% 0 0 / 0.25);
}

.rm-card--done {
    border-left: 3px solid var(--success);
}

.rm-card--done:hover {
    border-color: color-mix(in srgb, var(--success) 80%, transparent);
    box-shadow: 0 8px 32px oklch(0% 0 0 / 0.2), 0 0 0 1px var(--success-dim);
}

/* ── Card header ──────────────────────────────────────────── */
.rm-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.rm-step {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-3);
}

.rm-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.rm-badge--done {
    background: var(--success-dim);
    color: var(--success);
    border: 1px solid var(--success-glow);
}

/* ── Card content ─────────────────────────────────────────── */
.rm-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 0.625rem;
    line-height: 1.25;
}

.rm-card-desc {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 1rem;
}

/* ── Feature list ─────────────────────────────────────────── */
.rm-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.rm-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-2);
    line-height: 1.5;
}

.rm-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 0.85em;
}

/* ── Card link ────────────────────────────────────────────── */
.rm-card-actions {
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.rm-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    padding: 0.4rem 0;
    transition: color 0.2s ease, gap 0.2s ease;
}

.rm-link:hover {
    color: var(--text-1);
    gap: 0.75rem;
}

/* ── Last milestone (no line below) ──────────────────────── */
.rm-milestone--last .rm-line {
    display: none;
}

.rm-milestone--last .rm-card {
    margin-bottom: 0;
}

/* ── CTA ──────────────────────────────────────────────────── */
.rm-cta {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    max-width: 640px;
    margin-inline: auto;
}

.rm-cta-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 0.75rem;
}

.rm-cta-sub {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.65;
    max-width: 50ch;
    margin: 0 auto 1.75rem;
}

.rm-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.rm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        transform  0.25s var(--spring-bounce),
        box-shadow 0.25s ease;
}

.rm-btn:hover { transform: translateY(-2px); }

.rm-btn--primary {
    background: var(--brand);
    color: var(--on-brand);
    box-shadow: 0 4px 16px var(--brand-glow);
}

.rm-btn--primary:hover {
    box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 50%, transparent);
}

.rm-btn--secondary {
    background: var(--surface-2);
    color: var(--text-2);
    border: 1px solid var(--border);
}

.rm-btn--secondary:hover {
    color: var(--text-1);
    border-color: color-mix(in srgb, var(--brand) 35%, transparent);
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 640px) {
    .rm-hero {
        min-height: auto;
        padding: 4rem 1.25rem 3rem;
        border-radius: var(--radius-lg);
    }

    .rm-milestone {
        grid-template-columns: 36px 1fr;
        gap: 0 1rem;
    }

    .rm-node {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .rm-card {
        padding: 1.25rem;
        border-radius: var(--radius-lg);
    }

    .rm-card-title {
        font-size: 1.1rem;
    }

    .rm-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .rm-btn {
        justify-content: center;
    }
}
