:root {
    color-scheme: dark;
    --ink: #0a0e14;
    --panel: rgba(10, 15, 22, 0.82);
    --panel-strong: rgba(13, 19, 27, 0.94);
    --text: #e8edf4;
    --muted: #8e9caf;
    --line: rgba(127, 170, 210, 0.2);
    --cyan: #55d8ff;
    --cyan-deep: #2cb8e7;
    --violet: #8d6de8;
    --focus: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--ink);
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        linear-gradient(90deg, rgba(7, 11, 16, 0.97) 0%, rgba(7, 11, 16, 0.82) 48%, rgba(7, 11, 16, 0.72) 100%),
        linear-gradient(180deg, rgba(5, 8, 12, 0.36), rgba(5, 8, 12, 0.88)),
        url('../assets/background.jpg') center / cover fixed;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 4px;
}

.migration-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.migration-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 75%, transparent);
}

.migration-orb {
    position: absolute;
    width: 36rem;
    height: 36rem;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.13;
}

.migration-orb-one {
    top: -18rem;
    left: 25%;
    background: var(--violet);
}

.migration-orb-two {
    right: -16rem;
    bottom: -18rem;
    background: var(--cyan);
}

.migration-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c7a9ff;
    box-shadow: 0 0 18px 4px rgba(180, 140, 255, 0.7);
    animation: particle-float 7s ease-in-out infinite alternate;
}

.migration-particle-one { top: 18%; left: 9%; }
.migration-particle-two { top: 30%; right: 16%; animation-delay: -2s; }
.migration-particle-three { bottom: 20%; left: 42%; animation-delay: -4s; }

.migration-header,
.migration-footer,
.migration-shell {
    position: relative;
    z-index: 1;
}

.migration-header {
    width: min(1180px, calc(100% - 48px));
    min-height: 96px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(127, 170, 210, 0.12);
}

.migration-brand {
    display: inline-flex;
    align-items: center;
    width: 180px;
}

.migration-brand img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line);
    background: rgba(9, 14, 19, 0.58);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.language-switch a {
    color: #758399;
    font-family: 'Outfit', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
}

.language-switch a[aria-current='page'] {
    color: var(--text);
}

.language-switch span {
    width: 1px;
    height: 16px;
    background: var(--line);
}

.migration-shell {
    width: min(1180px, calc(100% - 48px));
    min-height: calc(100vh - 168px);
    margin: 0 auto;
    display: grid;
    align-items: center;
    padding: 64px 0;
}

.migration-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: clamp(36px, 7vw, 96px);
    align-items: center;
}

.migration-copy {
    max-width: 720px;
}

.migration-eyebrow,
.rebuild-label {
    margin: 0 0 22px;
    color: var(--cyan);
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.migration-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
}

.migration-eyebrow span {
    width: 26px;
    height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 14px rgba(85, 216, 255, 0.7);
}

.migration-copy h1 {
    max-width: 690px;
    margin: 0;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3.5rem, 7.2vw, 6.8rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.91;
    text-wrap: balance;
    text-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.migration-intro {
    max-width: 660px;
    margin: 30px 0 0;
    color: #b5c0ce;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.75;
}

.destination-block {
    margin-top: 34px;
    padding: 18px 20px 18px 22px;
    border-left: 2px solid var(--cyan);
    background: linear-gradient(90deg, rgba(85, 216, 255, 0.09), transparent 82%);
}

.destination-label,
.destination-note,
.destination-url {
    margin: 0;
}

.destination-label {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.destination-url {
    margin-top: 5px;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    font-weight: 600;
    word-break: break-word;
}

.destination-note {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.88rem;
}

.migration-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.migration-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 26px;
    border: 1px solid var(--line);
    border-radius: 0;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.migration-button:hover {
    transform: translateY(-2px);
}

.migration-button-primary {
    min-width: 250px;
    border-color: rgba(140, 232, 255, 0.65);
    background: linear-gradient(135deg, #78e4ff, var(--cyan-deep));
    box-shadow: 0 12px 34px rgba(44, 184, 231, 0.22);
    color: #061019;
}

.migration-button-primary:hover {
    background: linear-gradient(135deg, #a3edff, #4bcaf5);
}

.migration-button-secondary {
    background: rgba(9, 14, 19, 0.7);
    color: #b7c2cf;
}

.migration-button-secondary:hover {
    border-color: rgba(127, 170, 210, 0.42);
    background: rgba(20, 28, 38, 0.88);
}

.redirect-status {
    max-width: 530px;
    margin-top: 24px;
}

.redirect-status p {
    margin: 0 0 10px;
    color: #738197;
    font-size: 0.78rem;
}

.redirect-status progress {
    display: block;
    width: 100%;
    height: 2px;
    overflow: hidden;
    border: 0;
    background: rgba(127, 170, 210, 0.14);
    color: var(--cyan);
}

.redirect-status progress::-webkit-progress-bar { background: rgba(127, 170, 210, 0.14); }
.redirect-status progress::-webkit-progress-value { background: var(--cyan); box-shadow: 0 0 12px rgba(85, 216, 255, 0.8); }
.redirect-status progress::-moz-progress-bar { background: var(--cyan); box-shadow: 0 0 12px rgba(85, 216, 255, 0.8); }

.rebuild-card {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(127, 170, 210, 0.2);
    background:
        radial-gradient(circle at 80% 18%, rgba(141, 109, 232, 0.17), transparent 36%),
        linear-gradient(145deg, rgba(15, 22, 31, 0.96), rgba(7, 11, 16, 0.9));
    clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.rebuild-card::before,
.rebuild-card::after {
    content: '';
    position: absolute;
    background: var(--cyan);
    opacity: 0.75;
}

.rebuild-card::before { top: 0; left: 24px; width: 76px; height: 2px; }
.rebuild-card::after { right: 0; bottom: 24px; width: 2px; height: 76px; }

.rebuild-card-grid {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background:
        linear-gradient(rgba(111, 161, 203, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(111, 161, 203, 0.11) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(145deg, #000, transparent 72%);
}

.rebuild-card-content {
    position: relative;
    z-index: 1;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 42px;
}

.rebuild-mark {
    position: absolute;
    top: 44px;
    right: 42px;
    display: flex;
    align-items: flex-end;
    gap: 7px;
    height: 58px;
}

.rebuild-mark span {
    width: 8px;
    background: linear-gradient(to top, var(--cyan), var(--violet));
    box-shadow: 0 0 18px rgba(85, 216, 255, 0.26);
}

.rebuild-mark span:nth-child(1) { height: 24px; }
.rebuild-mark span:nth-child(2) { height: 42px; }
.rebuild-mark span:nth-child(3) { height: 58px; }

.rebuild-label {
    margin-bottom: 14px;
}

.rebuild-card h2 {
    max-width: 320px;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.rebuild-card p:last-child {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

.migration-footer {
    width: min(1180px, calc(100% - 48px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid rgba(127, 170, 210, 0.1);
    color: #69768a;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.no-js .js-only {
    display: none;
}

.noscript-note {
    color: #aeb9c6;
    font-size: 0.88rem;
}

@keyframes particle-float {
    from { transform: translate3d(0, -6px, 0); opacity: 0.35; }
    to { transform: translate3d(8px, 12px, 0); opacity: 0.9; }
}

@media (max-width: 900px) {
    .migration-panel {
        grid-template-columns: 1fr;
    }

    .rebuild-card {
        min-height: 320px;
    }

    .rebuild-card-content {
        min-height: 320px;
    }
}

@media (max-width: 620px) {
    .migration-header,
    .migration-shell,
    .migration-footer {
        width: min(100% - 28px, 1180px);
    }

    .migration-header {
        min-height: 78px;
    }

    .migration-brand {
        width: 132px;
    }

    .migration-shell {
        min-height: auto;
        padding: 46px 0 54px;
    }

    .migration-copy h1 {
        font-size: clamp(3rem, 16vw, 4.6rem);
    }

    .migration-actions {
        display: grid;
    }

    .migration-button {
        width: 100%;
    }

    .rebuild-card-content {
        padding: 30px;
    }

    .rebuild-mark {
        top: 30px;
        right: 30px;
    }

    .migration-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 20px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
