.xp-home {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(0,180,216,0.14), transparent 32%),
        radial-gradient(circle at bottom right, rgba(0,180,216,0.10), transparent 28%),
        linear-gradient(180deg, #050a12 0%, #08111d 100%);
}

.xp-home__bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,180,216,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,180,216,0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 85%);
    pointer-events: none;
}

.xp-site-header {
    position: relative;
    z-index: 2;
    padding-top: 20px;
}

.xp-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 76px;
    padding: 0 28px;
    border: 1px solid rgba(0,180,216,0.08);
    border-radius: 20px;
    background: rgba(4, 10, 18, 0.50);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
    overflow: hidden;
}

.xp-site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex: 1 1 auto;
    min-width: 0;
}

.xp-site-nav a {
    color: #97d7e2;
    font-size: 0.95rem;
    transition: color 0.18s ease;
}

.xp-site-nav a:hover,
.xp-header-link:hover {
    color: #effeff;
}

.xp-site-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex: 0 0 auto;
}

.xp-home__container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 460px);
    gap: 48px;
    align-items: center;
    min-height: calc(100vh - 92px);
    padding-top: 72px;
    padding-bottom: 48px;
}

.xp-home__hero {
    max-width: 700px;
}

.xp-home__title {
    margin: 22px 0 18px;
    font-size: clamp(2.8rem, 5vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: #f3feff;
}

.xp-home__text {
    max-width: 640px;
    margin: 0 0 28px;
    color: #9bc3cc;
    font-size: 1.08rem;
    line-height: 1.75;
}

.xp-home__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}

.xp-home__subnote {
    margin: 0 0 28px;
    color: #6fa8b2;
    font-size: 0.96rem;
    line-height: 1.7;
}

.xp-home__highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.xp-highlight {
    padding: 18px;
    border: 1px solid rgba(0,180,216,0.10);
    border-radius: 18px;
    background: rgba(255,255,255,0.02);
}

.xp-highlight__label {
    display: block;
    margin-bottom: 8px;
    color: #66d9ef;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.xp-highlight strong {
    color: #edfefe;
    font-size: 0.98rem;
    line-height: 1.45;
}

.xp-home__panel {
    width: 100%;
}


@media (min-width: 1025px) {
    .xp-home__container {
        grid-template-columns: minmax(0, 1fr) clamp(380px, 30vw, 460px);
        gap: clamp(32px, 4vw, 56px);
        align-items: start;
    }

    .xp-home__hero {
        max-width: min(760px, 100%);
    }

    .xp-home__panel {
        width: 100%;
        max-width: 460px;
        justify-self: end;
        align-self: start;
        margin-top: 0;
    }
}

@media (max-width: 1180px) {
    .xp-site-header__inner {
        padding: 0 18px;
        gap: 18px;
    }

    .xp-site-nav {
        gap: 18px;
    }

    .xp-home__container {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 32px;
        align-items: start;
    }

    .xp-home__title {
        font-size: clamp(2.8rem, 5.6vw, 4.4rem);
    }

    .xp-home__highlights {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .xp-site-header__inner {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 18px;
        gap: 14px;
    }

    .xp-site-brand {
        justify-self: start;
    }

    .xp-site-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px 22px;
    }

    .xp-site-header__actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .xp-home__container {
        grid-template-columns: 1fr;
        gap: 36px;
        min-height: auto;
        padding-top: 42px;
        padding-bottom: 56px;
    }

    .xp-home__hero {
        max-width: none;
    }

    .xp-home__panel {
        width: 100%;
        max-width: 560px;
        justify-self: start;
        margin-top: 0;
    }

    .xp-home__title {
        max-width: 12ch;
        font-size: clamp(2.5rem, 7vw, 4rem);
    }

    .xp-home__text,
    .xp-home__subnote {
        max-width: 62ch;
    }

    .xp-home__highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .xp-site-header {
        padding-top: 14px;
    }

    .xp-site-header__inner {
        padding: 14px;
        border-radius: 16px;
    }

    .xp-site-brand {
        width: 100%;
        justify-content: center;
    }

    .xp-logo {
        height: 34px;
    }

    .xp-site-nav {
        gap: 12px 18px;
    }

    .xp-site-nav a,
    .xp-header-link {
        font-size: 0.92rem;
    }

    .xp-button--ghost {
        width: 100%;
    }

    .xp-home__container {
        gap: 28px;
        padding-top: 28px;
        padding-bottom: 40px;
    }

    .xp-home__title {
        max-width: none;
        margin: 18px 0 14px;
        font-size: clamp(2.15rem, 10vw, 3.4rem);
        line-height: 1.02;
    }

    .xp-home__text {
        margin-bottom: 22px;
        font-size: 1rem;
        line-height: 1.65;
    }

    .xp-home__cta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 14px;
    }

    .xp-button--hero {
        width: 100%;
        min-width: 0;
    }

    .xp-home__subnote {
        margin-bottom: 22px;
        font-size: 0.94rem;
    }

    .xp-home__highlights {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .xp-highlight {
        padding: 16px;
        border-radius: 16px;
    }

    .xp-home__panel {
        max-width: none;
    }

    .xp-login-card {
        padding: 22px;
        border-radius: 18px;
    }

    .xp-login-card__title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
    }

    .xp-login-form__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .xp-container {
        width: min(100% - 24px, 1200px);
    }

    .xp-site-header__inner {
        padding: 12px;
        gap: 12px;
    }

    .xp-site-nav {
        flex-direction: column;
        gap: 10px;
    }

    .xp-site-header__actions {
        gap: 10px;
    }

    .xp-home__title {
        font-size: clamp(1.9rem, 11vw, 2.8rem);
    }

    .xp-badge {
        padding: 7px 12px;
        font-size: 0.82rem;
    }

    .xp-home__text,
    .xp-home__subnote,
    .xp-highlight strong,
    .xp-login-card__text {
        font-size: 0.95rem;
    }

    .xp-field input,
    .xp-button,
    .xp-button--ghost {
        min-height: 50px;
    }

    .xp-login-card {
        padding: 18px;
    }

    .xp-login-card__footer {
        flex-direction: column;
        gap: 4px;
    }
}


/* BURGER */
.xp-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.xp-burger span {
    width: 24px;
    height: 2px;
    background: #00b4d8;
    display: block;
}

/* MOBILE MENU */
.xp-mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(5,10,20,0.96);
    backdrop-filter: blur(20px);
    display: none;
    z-index: 999;
}

.xp-mobile-menu.active {
    display: flex;
}

.xp-mobile-menu__inner {
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
    text-align: center;
}

.xp-mobile-menu a {
    color: #eaffff;
    font-size: 1.2rem;
}

.xp-mobile-menu__actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .xp-site-nav {
        display: none;
    }

    .xp-site-header__actions {
        display: none;
    }

    .xp-burger {
        display: flex;
    }
}
