@import 'variables.css';

/* ── Shared ── */

:root {
    --gradient-fire: linear-gradient( 90deg, #ff725c 0%, #ffa731 47%, #ffca4e 100% );
}

.tc-disklaimer-mixed {
    margin: 0 auto;
    max-width: 480px;
    padding: 24px;
    font-weight: 300;
    font-size: 14px !important;
    text-align: center;
    justify-content: center;
    color: #a3a3a3;
}

.tc-disklaimer-long {
    max-width: 80%;
    padding-top: 24px;
    font-weight: 300;
    font-size: 14px !important;
    text-align: start;
    justify-content: start;
    color: #a3a3a3;
}

.video-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    top: 25%;
    left: 15%
}

    .video-background video {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100%;
        min-height: 100%;
        transform: translate(-50%, -50%);
    }

    .video-background::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.1);
    }

.em-hero > *:not(.video-background) {
    z-index: 1;
}


.em-hero * {
    box-sizing: border-box;
}

/* ── Hero ── */
.em-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    min-height: 90vh;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    padding: 180px 16px 48px;
}

.em-hero__content {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 60px;
    z-index: 1
}

.em-hero__left {
    flex: 1;
}

.em-hero__right {
    flex: 1;
}

.em-hero__title {
    font-family: var(--font-family);
    font-size: clamp(48px, 5.3vw, 96px);
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ff725c, #ffca4e);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}


.em-hero__subtitle {
    font-family: var(--font-family);
    font-size: 32px;
    font-weight: 500;
    color: var(--white);
    margin: 0 0 16px;
    line-height: 1.4;
    max-width: 600px;
}

.em-hero__description {
    font-family: var(--font-family);
    font-size: 22px;
    color: white;
    margin: 0 0 32px;
    line-height: 1.6;
    max-width: 460px;
    font-weight: 300
}

.button-box {
    max-width: 360px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap
}

.em-video-placeholder {
    background: #d0d0d0;
    border-radius: 12px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 500;
    color: #666;
}

/* ── Comparison ── */
.em-comparison {
    background: #fff;
    padding: 80px 0;
    max-height: 100vh;
    min-height: 70vh;
    align-content: center;
    text-align:center;
    margin:0 auto;
}

.em-comparison__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0px 24px 40px 24px;
    text-align: center;
}

.em-comparison__title {
    font-family: var(--font-family);
    font-size: 56px;
    font-weight: bold;
    color: #0a0a0a;
    margin: 0 0 8px;
}

.em-comparison__subtitle {
    font-family: var(--font-family);
    font-size: 22px;
    color: #666;
    margin: 0 0 32px;
}

/* ── Toggle (iOS style, not clickable) ── */
.em-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 48px;
    pointer-events: none;
    user-select: none;
}

.em-toggle__label {
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 500;
    color: #bbb;
    transition: color 0.5s ease, font-weight 0.3s ease;
}

    .em-toggle__label.is-active {
        color:var(--gradient-fire);
        font-weight: 700;
    }

.em-toggle__switch {
    width: 56px;
    height: 30px;
    background: #d0d0d0;
    border-radius: 15px;
    position: relative;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

    .em-toggle__switch.is-on {
        background: var(--gradient-fire);
    }

    .em-toggle__switch.is-pulse {
        animation: togglePulse 0.45s ease;
    }

.em-toggle__thumb {
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 5px rgba(0,0,0,0.22);
}

.em-toggle__switch.is-on .em-toggle__thumb {
    transform: translateX(26px);
}

@keyframes togglePulse {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.07);
    }

    65% {
        transform: scale(0.96);
    }

    100% {
        transform: scale(1);
    }
}

/* ── Cards layout & animation ── */
.em-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: visible;
}

.em-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 16px;
    max-width: 360px;
    min-width: 300px;
    text-align: left;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.em-card--extra {
    border-color: var(--gradient-fire);
    border-width: 2px;
    position: relative;
}

.em-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-fire);
    color: black;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 50px;
    white-space: nowrap;
}

.em-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.em-card__asset {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 600;
    color: #0a0a0a;
}

.em-card__ticker {
    font-family: var(--font-family);
    font-size: 14px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
}

.em-card__rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.em-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.em-card__label {
    font-family: var(--font-family);
    font-size: 16px;
    color: #777;
}

.em-card__value {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    color: #0a0a0a;
}

.em-card__value--green {
    background: var(--gradient-fire);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

/* Right side: multiplier + extra card — hidden by default via max-width */
.em-right-reveal {
    display: flex;
    align-items: center;
    
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.em-cards.is-extra .em-right-reveal {
    max-width: 680px;
}

/* Standard card: smooth horizontal shift via margin */
.em-card--standard {
    transition: margin-right 0.85s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 0;
}

.em-cards.is-extra .em-card--standard {
    margin-right: 24px;
}

/* Multiplier + extra card fade+slide in after reveal starts */
.em-multiplier, .em-card--extra {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.6s ease 0.35s, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.35s;
    flex-shrink: 0;
}

.em-card--extra {
    transition-delay: 0.5s;
    margin: 16px;
}

.em-cards.is-extra .em-multiplier,
.em-cards.is-extra .em-card--extra {
    opacity: 1;
    transform: translateX(0);
}

/* Reverse: faster fade-out (no delay) */
.em-cards:not(.is-extra) .em-multiplier,
.em-cards:not(.is-extra) .em-card--extra {
    transition: opacity 0.35s ease 0s, transform 0.35s ease 0s;
}

.em-multiplier {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-left: 24px;
    padding-right: 24px;
}

.em-multiplier__label {
    font-family: var(--font-family);
    font-size: 18px;
    color: #0a0a0a;
    font-weight:500;
    margin: 0;
}

.em-multiplier__value {
    font-family: var(--font-family);
    font-size: 56px;
    font-weight: 800;
    color: var(--gradient-fire);
    margin: 4px 0;
}

.em-multiplier__arrow {
    width: 80px;
    height: 16px;
    border-top: 2px dashed var(--gradient-fire);
    /*    margin-top: 8px;*/
    padding-top: 16px;
    padding-bottom: 16px;
    position: relative;
}

/* Flip arrow SVGs in RTL */
[dir="rtl"] #em-toggle-switch,
#em-toggle-switch[dir="rtl"] {
    transform: scaleX(-1);
}

/* Flip arrow SVGs in RTL */
[dir="rtl"] .em-feature__arrow,
.em-feature__arrow[dir="rtl"] {
    transform: scaleX(-1);
}

    .em-multiplier__arrow::after {
        content: '›';
        position: absolute;
        right: -8px;
        top: -12px;
        font-size: 18px;
        color: var(--gradient-fire);
    }

/* ── Why Section ── */
.em-why {
    margin: 0 auto;
    max-width: 1440px;
    background-color: var(--primary-background-color);
    padding: 120px 0;
}

.em-why__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.em-why__title {
    font-family: var(--font-family);
    font-size: 56px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 48px;
}

.em-features {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.em-feature {
    background: #101316;
    border-radius: 16px;
    padding: 32px 24px;
    flex: 1;
    max-width: 320px;
    text-align: center;
}

.em-feature__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
}

.em-feature__icon-small {
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
}

.em-feature__arrow {
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
}

.em-feature__title {
    font-family: var(--font-family);
    font-size: 22px;
    font-weight: 500;
    color: var(--white);
    margin: 0 0 12px;
}

.em-feature__desc {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 300;
    color: #dcdcdc;
    margin: 0;
    line-height: 1.5;
}

/* ── How it works ── */
.em-how {
    background-color: var(--primary-background-color);
    padding: 120px 0 120px;
}

.em-how__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.em-how__title {
    font-family: var(--font-family);
    font-size: 56px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 56px;
}

.em-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.em-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 240px;
    flex-shrink: 0;
}

.em-step__icon {
    width: 56px;
    height: 56px;
    background: #333;
    border-radius: 50%;
    flex-shrink: 0;
}

.em-step__text {
    font-family: var(--font-family);
    font-size: 20px;
    color: white;
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

.em-step__arrow {
    width: 60px;
    height: 2px;
    border-top: 2px dashed #444;
    margin-top: 27px;
    flex-shrink: 0;
    position: relative;
}

    .em-step__arrow::after {
        content: '›';
        position: absolute;
        right: -6px;
        top: -12px;
        font-size: 16px;
        color: #555;
    }

/* ── CTA Section ── */
.em-cta-section {
    max-width: 1440px;
    /*    background-color: var(--primary-background-color);*/
    padding: 0 0 80px;
    margin: 0 auto;
}

.em-cta-card {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    /*    background: #101316;*/
    /*    border-radius: 20px;*/
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 60px;
}

.em-cta-card__left {
    flex: 1;
}

.em-cta-card__right {
    flex: 1;
    margin: 0 auto;
    display: flex;
    justify-content: center
}

.em-cta-card__title {
    font-family: var(--font-family);
    font-size: 56px;
    font-weight: 700;
    color: white;
    margin: 0 0 16px;
}

.em-cta-card__text {
    font-family: var(--font-family);
    font-size: 20px;
    color: white;
    margin: 0 0 12px;
    line-height: 1.6;
}

.em-img-placeholder {
    width: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto
}

/* ── Responsive ── */
@media (max-width: 900px) {

    .em-hero {
       
        height: none;


    }
    .em-hero__subtitle {
        font-size: 24px;
        line-height: 1.2
    }

    .em-hero__description {
        font-size: 20px;
        line-height: 1.5;
    }
    .em-comparison {
        max-height: none;
        min-height: none;
        padding:56px 0;
    }
    .tc-disklaimer-long {
        max-width: 100%;
        text-align: start;
        justify-content: start;
    }

    .em-comparison__subtitle {
        font-size: 20px;
    }

    .em-cta-card__text {
        font-size: 20px;
        line-height: 1.4;
    }

    .em-feature__arrow {
        display: none
    }

    .em-comparison__title {
        font-size: 32px;
    }

    .em-hero__content {
        flex-direction: column;
        padding: 0px;
    }

    .em-how {
        padding: 40px 16px
    }

    .em-why__title {
        font-size: 32px;
    }

    .em-how__title {
        font-size: 32px;
    }

    .em-cta-card__title {
        font-size: 32px;
    }

    .em-hero__title {
        font-size: 40px;
    }

    .em-hero__right {
        width: 100%;
    }

    /* On mobile: swap cards in place (no sliding, no vertical drop) */
    .em-cards {
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    /* Standard fades out when extra is active */
    .em-card--standard {
        margin-right: 0 !important;
        transition: opacity 0.45s ease, transform 0.45s ease;
    }

    .em-cards.is-extra .em-card--standard {
        opacity: 0;
        transform: scale(0.97);
        pointer-events: none;
    }

    /* Extra card overlays standard card — fades in on same spot */
    .em-right-reveal {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        max-width: none !important;
        width: 100%;
        overflow: visible !important;
        flex-direction: column;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.45s ease 0.1s;
    }

    .em-cards.is-extra .em-right-reveal {
        max-width: none !important;
        opacity: 1;
        pointer-events: auto;
    }

    /* Hide multiplier on mobile, reset extra card transitions */
    .em-multiplier {
        display: none !important;
    }

    .em-card--extra {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        width: 100%;
        max-width: 320px;
    }

    .em-features {
        flex-direction: column;
        align-items: center;
    }

    .em-feature {
        max-width: 100%;
        width: 100%;
    }

    .em-steps {
        flex-wrap: wrap;
        gap: 32px;
    }

    .em-step__arrow {
        display: none;
    }

    .em-cta-card {
        flex-direction: column;
        padding: 40px 0px;
        margin: 16px;
    }

    .em-img-placeholder {
        width: 85%;
    }
}
