/* ==================== ALERA EXCHANGE PAGE STYLES ==================== */

/* Hero Section */
.exchange-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 48px 80px;
    overflow: hidden;
}

.exchange-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.exchange-glow {
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(80, 38, 127, 0.25), transparent 70%);
}

.exchange-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.exchange-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-accent-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0;
    transform: translateY(20px);
}

.exchange-hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.exchange-hero-title .word {
    display: block;
    opacity: 0;
    transform: translateY(40px);
}

.exchange-hero-title .accent {
    color: var(--color-accent-light);
}

.exchange-hero-text {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 40px;
    opacity: 0;
    transform: translateY(20px);
}

.exchange-hero-cta {
    opacity: 0;
    transform: translateY(20px);
}

/* Scroll Indicator */
.exchange-scroll-indicator {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
}

.exchange-scroll-indicator span {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.exchange-scroll-indicator .scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.exchange-scroll-indicator .scroll-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 12px;
    background: var(--color-accent-light);
    border-radius: var(--radius-full);
    animation: exchangeScrollDot 2s ease-in-out infinite;
}

@keyframes exchangeScrollDot {
    0%, 100% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: calc(100% - 12px); opacity: 0; }
}

/* What is Exchange Section */
.exchange-what {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 48px;
}

.exchange-what::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
}

.exchange-what-content {
    max-width: 900px;
    text-align: center;
}

.exchange-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-accent-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    animation: missionLabelPulse 2s ease-in-out infinite;
}

.exchange-label .label-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent-light);
    border-radius: 50%;
    animation: labelDotPulse 2s ease-in-out infinite;
}

@keyframes missionLabelPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes labelDotPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 12px 4px rgba(168, 85, 247, 0.3);
    }
}

.exchange-what-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
}

.exchange-what-text {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 60px;
}


/* Benefits Section - Scroll Reveal */
.exchange-benefits {
    position: relative;
    height: 400vh;
    overflow: visible;
}

.benefits-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.benefits-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    padding: 0 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.benefits-header {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1;
}

.benefit-item {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 700px;
    padding: 0 24px;
    opacity: 0;
}

.benefit-number {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 24px;
}

.benefit-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-text);
    line-height: 1.2;
}

.benefit-text {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* How It Works Section */
.exchange-how {
    padding: 120px 48px;
    position: relative;
}

.exchange-how::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
}

.how-header {
    text-align: center;
    margin-bottom: 80px;
}

.how-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.how-step {
    display: flex;
    gap: 32px;
    position: relative;
    padding-bottom: 48px;
}

.how-step:last-child {
    padding-bottom: 0;
}

.step-number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.step-content {
    flex: 1;
    padding-top: 8px;
}

.step-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.step-text {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.step-line {
    position: absolute;
    left: 27px;
    top: 56px;
    width: 2px;
    height: calc(100% - 56px);
    background: linear-gradient(180deg, var(--color-accent) 0%, rgba(168, 85, 247, 0.2) 100%);
}

.how-step:last-child .step-line {
    display: none;
}

/* Categories Section */
.exchange-categories {
    padding: 120px 48px;
    position: relative;
}

.categories-header {
    text-align: center;
    margin-bottom: 64px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-4px);
}

.category-card svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-accent-light);
}

.category-card span {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
}

/* Final CTA Section */
.exchange-cta {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 48px;
    position: relative;
    overflow: hidden;
}

.exchange-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.exchange-cta-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.exchange-cta-title .cta-line {
    display: block;
}

.exchange-cta-title .accent {
    color: var(--color-accent-light);
}

.exchange-cta-text {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .service-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .exchange-hero {
        padding: 100px 24px 60px;
        min-height: 90vh;
    }

    .exchange-hero-title .word {
        display: inline;
    }

    .exchange-what {
        padding: 80px 24px;
    }

    .exchange-benefits {
        height: 350vh;
    }

    .benefits-content {
        padding: 0 24px;
    }

    .benefit-item {
        padding: 0 16px;
    }

    .exchange-how {
        padding: 80px 24px;
    }

    .how-step {
        gap: 20px;
    }

    .step-number {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .step-line {
        left: 21px;
        top: 44px;
        height: calc(100% - 44px);
    }

    .exchange-categories {
        padding: 80px 24px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .exchange-cta {
        min-height: 90vh;
        padding: 80px 24px;
    }

    .exchange-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .exchange-cta-buttons .btn-large {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .exchange-hero-title {
        font-size: 32px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        flex-direction: row;
        text-align: left;
        padding: 20px 24px;
    }
}
