/* Email Migration Tool landing page */

.emig-page {
    --emig-navy: #07111f;
    --emig-navy-2: #0b1c33;
    --emig-blue: #00aeef;
    --emig-blue-deep: #0a84ff;
    --emig-ink: #102033;
    --emig-muted: rgba(232, 242, 250, 0.84);
}

.emig-page .container {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

/* -- Hero -- */
.emig-hero {
    position: relative;
    isolation: isolate;
    min-height: min(58vh, 28rem);
    display: grid;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: #06101c;
}

.emig-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.emig-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.05);
}

.emig-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(4, 12, 24, 0.92) 0%, rgba(4, 12, 24, 0.72) 48%, rgba(4, 18, 36, 0.55) 100%),
        radial-gradient(ellipse 45% 60% at 72% 45%, rgba(0, 174, 239, 0.22), transparent 70%);
}

.emig-hero__fx {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.9;
}

.emig-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 40rem;
    padding: clamp(4.5rem, 9vw, 6.5rem) 0 clamp(3rem, 6vw, 4.25rem);
}

.emig-hero__eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--emig-blue);
}

.emig-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.emig-hero__lead {
    margin: 1rem 0 0;
    max-width: 34rem;
    font-size: clamp(1.02rem, 1.7vw, 1.15rem);
    line-height: 1.55;
    color: var(--emig-muted);
}

/* -- Intro -- */
.emig-intro {
    padding: clamp(3rem, 6vw, 4.75rem) 0;
    background:
        radial-gradient(ellipse 45% 55% at 82% 42%, rgba(0, 174, 239, 0.1), transparent 70%),
        #fff;
}

.emig-intro__grid {
    display: grid;
    gap: 2.25rem;
    align-items: center;
}

@media (min-width: 960px) {
    .emig-intro__grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
        gap: 2.75rem;
    }
}

.emig-intro__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 0.75rem;
    color: #0a4f8a;
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.emig-intro__eyebrow::after {
    content: "";
    width: 2.4rem;
    height: 3px;
    border-radius: 999px;
    background: #0a84ff;
}

.emig-intro h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: #0b1c2c;
}

.emig-intro h2 span {
    color: #0a84ff;
}

.emig-intro__copy > p {
    margin: 0.9rem 0 0;
    max-width: 36rem;
    color: #4b6075;
    font-size: 1.02rem;
    line-height: 1.55;
}

.emig-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.45rem;
}

.emig-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.95rem;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.emig-btn:hover {
    transform: translateY(-1px);
}

.emig-btn--primary {
    background: linear-gradient(180deg, #2aa8ff 0%, #0a84ff 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(10, 132, 255, 0.28);
}

.emig-btn--ghost {
    border-color: #0a84ff;
    background: #fff;
    color: #0a84ff;
}

.emig-btn--ghost:hover {
    background: #f3f9ff;
}

.emig-btn--soft {
    border-color: #d5e2ef;
    background: #fff;
    color: #31485f;
}

.emig-btn--light {
    background: #fff;
    color: var(--emig-navy);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.emig-btn--outline-light {
    border-color: rgba(0, 174, 239, 0.65);
    color: #fff;
    background: transparent;
}

.emig-btn--outline-light:hover {
    background: rgba(0, 174, 239, 0.12);
}

.emig-intro__perks {
    list-style: none;
    display: grid;
    gap: 0.85rem;
    margin: 1.75rem 0 0;
    padding: 1.15rem 0 0;
    border-top: 1px solid #e4edf5;
}

@media (min-width: 720px) {
    .emig-intro__perks {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
    }

    .emig-intro__perks li + li {
        border-left: 1px solid #e4edf5;
        padding-left: 1rem;
        margin-left: 0.85rem;
    }
}

.emig-intro__perks li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #31485f;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.35;
}

.emig-intro__perk-icon {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: #e8f5ff;
    color: #0a84ff;
}

/* Migration visual -- */
.emig-visual {
    position: relative;
    justify-self: center;
    width: min(100%, 28rem);
    min-height: 20rem;
}

.emig-visual__glow {
    position: absolute;
    inset: 8% 4% 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 174, 239, 0.16), transparent 68%);
    pointer-events: none;
}

.emig-visual__stage {
    position: relative;
    z-index: 1;
    min-height: 20rem;
}

.emig-window {
    position: absolute;
    width: min(54%, 12.5rem);
    border-radius: 14px;
    background: #fff;
    border: 1px solid #d7e4f1;
    box-shadow: 0 18px 36px rgba(16, 40, 70, 0.14);
    overflow: hidden;
}

.emig-window--source {
    left: 0;
    top: 1.4rem;
    transform: rotate(-8deg);
    z-index: 2;
}

.emig-window--dest {
    right: 0;
    top: 2.8rem;
    transform: rotate(7deg);
    z-index: 3;
}

.emig-window__bar {
    padding: 0.55rem 0.75rem;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.emig-window--source .emig-window__bar {
    background: linear-gradient(90deg, #2aa8ff, #0a84ff);
}

.emig-window--dest .emig-window__bar {
    background: linear-gradient(90deg, #17324d, #0b1c2c);
}

.emig-window__list {
    list-style: none;
    margin: 0;
    padding: 0.55rem;
    display: grid;
    gap: 0.28rem;
}

.emig-window__list li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.5rem;
    border-radius: 8px;
    color: #4b6075;
    font-size: 0.74rem;
    font-weight: 600;
}

.emig-window__list li span {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 3px;
    background: #d7e4f1;
}

.emig-window__list li.is-active {
    background: #e8f5ff;
    color: #0a4f8a;
}

.emig-window__list li.is-active span {
    background: #0a84ff;
}

.emig-visual__mail {
    position: absolute;
    left: 50%;
    top: 5.4rem;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 12px;
    background: #fff;
    color: #0a84ff;
    border: 1px solid #d7e4f1;
    box-shadow: 0 12px 24px rgba(10, 132, 255, 0.22);
    transform: translateX(-50%);
    animation: emig-mail-move 3.2s ease-in-out infinite;
}

.emig-visual__arrow {
    position: absolute;
    left: 34%;
    right: 34%;
    top: 4.35rem;
    z-index: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(10, 132, 255, 0.15), #0a84ff 45%, rgba(10, 132, 255, 0.15));
}

.emig-visual__arrow::after {
    content: "";
    position: absolute;
    right: -0.15rem;
    top: 50%;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #0a84ff;
    border-top: 2px solid #0a84ff;
    transform: translateY(-50%) rotate(45deg);
}

.emig-visual__servers {
    position: absolute;
    left: 50%;
    bottom: 0.4rem;
    z-index: 2;
    display: grid;
    gap: 0.35rem;
    width: 5.2rem;
    transform: translateX(-50%);
}

.emig-visual__servers span {
    display: block;
    height: 1.05rem;
    border-radius: 6px;
    background: linear-gradient(90deg, #17324d, #0b1c2c);
    box-shadow: inset -0.55rem 0 0 #0a84ff;
}

.emig-visual__servers::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 1px;
    height: 2.4rem;
    border-left: 1.5px dotted rgba(10, 132, 255, 0.55);
    transform: translateX(-50%);
}

@keyframes emig-mail-move {
    0%, 100% { transform: translateX(-58%); }
    50% { transform: translateX(-42%); }
}

@media (prefers-reduced-motion: reduce) {
    .emig-visual__mail {
        animation: none;
    }
}

/* -- Features -- */
.emig-features {
    position: relative;
    overflow: hidden;
    padding: clamp(3.25rem, 6.5vw, 5rem) 0;
    background:
        radial-gradient(ellipse 42% 55% at 8% 18%, rgba(0, 174, 239, 0.22), transparent 65%),
        radial-gradient(ellipse 38% 50% at 92% 82%, rgba(47, 140, 255, 0.18), transparent 68%),
        linear-gradient(180deg, #000b1e 0%, #06122a 55%, #08182f 100%);
    color: #fff;
}

.emig-features__head {
    max-width: 42rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.emig-features__head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.emig-features__head h2 span {
    color: #4cafff;
}

.emig-features__head p {
    margin: 0.85rem 0 0;
    color: rgba(220, 232, 245, 0.82);
    font-size: 1.05rem;
    line-height: 1.55;
}

.emig-features__grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 800px) {
    .emig-features__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.2rem;
    }
}

.emig-feature {
    padding: 1.45rem 1.3rem 1.55rem;
    border-radius: 18px;
    border: 1px solid rgba(76, 175, 255, 0.35);
    background: linear-gradient(165deg, rgba(18, 48, 88, 0.55), rgba(8, 24, 48, 0.72));
    box-shadow:
        0 16px 36px rgba(0, 8, 24, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
}

.emig-feature__icon {
    width: 3.1rem;
    height: 3.1rem;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(10, 132, 255, 0.18);
    color: #7dd3f5;
    border: 1px solid rgba(76, 175, 255, 0.4);
    box-shadow: 0 0 18px rgba(0, 174, 239, 0.18);
}

.emig-feature h3 {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.14rem;
    font-weight: 800;
    color: #fff;
}

.emig-feature p {
    margin: 0;
    color: rgba(210, 226, 240, 0.82);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* -- Steps / help -- */
.emig-help {
    padding: clamp(3rem, 6vw, 4.75rem) 0;
    background: #f4f7fb;
}

.emig-help__grid {
    display: grid;
    gap: 1.15rem;
}

@media (min-width: 860px) {
    .emig-help__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.35rem;
    }
}

.emig-card {
    display: flex;
    flex-direction: column;
    padding: 1.65rem 1.45rem 1.55rem;
    border-radius: 20px;
    background: #fff;
    border: 0;
    box-shadow: 0 16px 40px rgba(16, 40, 70, 0.08);
}

.emig-card h2 {
    margin: 0 0 1.15rem;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: #0b1c2c;
}

.emig-card p {
    margin: 0 0 0.9rem;
    color: #4b6075;
    font-size: 0.98rem;
    line-height: 1.55;
}

.emig-card .emig-actions,
.emig-card > .emig-btn {
    margin-top: auto;
    padding-top: 0.35rem;
}

.emig-steps {
    position: relative;
    margin: 0 0 1.45rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1.15rem;
    counter-reset: emig-step;
}

.emig-steps::before {
    content: "";
    position: absolute;
    left: 0.9rem;
    top: 1.1rem;
    bottom: 1.1rem;
    width: 0;
    border-left: 1.5px dashed rgba(10, 132, 255, 0.35);
}

.emig-steps li {
    position: relative;
    z-index: 1;
    padding-left: 2.85rem;
    color: #31485f;
    font-size: 0.98rem;
    line-height: 1.45;
    counter-increment: emig-step;
}

.emig-steps li::before {
    content: counter(emig-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.85rem;
    height: 1.85rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8f5ff;
    color: #0a4f8a;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 0 0 4px #fff;
}

/* -- CTA -- */
.emig-cta {
    padding: clamp(3rem, 6vw, 4.25rem) 0;
    background: #06101c;
    color: #fff;
    text-align: center;
}

.emig-cta h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.3vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.emig-cta p {
    margin: 0.85rem auto 0;
    max-width: 34rem;
    color: var(--emig-muted);
    font-size: 1.02rem;
    line-height: 1.5;
}

.emig-cta .emig-actions {
    justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
    .emig-laptop,
    .emig-btn {
        animation: none;
        transition: none;
    }
}
