/* JALEXSI Homepage — live modular implementation
   Fixed design direction: dark navy + purple neon, Russian UI.
   No full-page screenshot background. Every section is real HTML. */

:root {
    --bg: #04060d;
    --bg-soft: #070a13;
    --panel: #0a0f1d;
    --panel-2: #0c1120;
    --panel-3: #101629;
    --line: rgba(126, 86, 226, .34);
    --line-strong: rgba(153, 72, 255, .68);
    --purple: #8e3cff;
    --purple-2: #c13dff;
    --purple-soft: #a270ff;
    --blue: #707cff;
    --text: #f5f6ff;
    --muted: #8e97b1;
    --muted-2: #667089;
    --green: #33e994;
    --gold: #ffd56b;
    --shadow: 0 18px 44px rgba(0, 0, 0, .32);
    --radius: 10px;
    --content: 1440px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background:
        radial-gradient(circle at 50% -12%, rgba(65, 43, 158, .16), transparent 31%),
        #04060d;
}

button,
input,
a,
summary {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
}

.home-page {
    position: relative;
    min-height: 100vh;
}

/* v4.1: no page-wide texture layer. The site background is the body background only. */

/* HEADER */

.home-header {
    position: relative;
    z-index: 100;

    background:
        linear-gradient(180deg, rgba(7, 10, 20, .99), rgba(4, 7, 14, .98));

    border-bottom:
        1px solid rgba(139, 63, 255, .55);

    box-shadow:
        0 8px 28px rgba(0, 0, 0, .22);
}

.home-header::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;

    width: 30%;

    pointer-events: none;

    clip-path:
        polygon(18% 0, 100% 0, 100% 100%, 0 100%);

    background:
        linear-gradient(135deg, rgba(54, 55, 137, .18), rgba(92, 39, 168, .07));
}

.home-header__inner {
    position: relative;
    z-index: 2;

    width: min(var(--content), calc(100% - 32px));
    min-height: 72px;

    margin: 0 auto;

    display: grid;
    grid-template-columns:
        305px
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    min-width: 0;
}

.brand__mark {
    width: 54px;
    height: 54px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    color: #9b47ff;

    filter:
        drop-shadow(0 0 14px rgba(142, 60, 255, .50));
}

.brand__mark img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    filter:
        drop-shadow(0 0 12px rgba(142, 60, 255, .40));
}

.brand__copy {
    display: grid;
    gap: 4px;
}

.brand__copy strong {
    font-size: 24px;
    letter-spacing: 6.5px;
    line-height: 1;
}

.brand__copy small {
    color: #818ba7;

    font-size: 7px;
    font-weight: 800;
    letter-spacing: 4px;
}

.main-nav {
    min-width: 0;

    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
}

.main-nav__item {
    min-height: 44px;
    padding: 0 14px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #a8b0c8;

    border:
        1px solid transparent;

    border-radius: 8px;

    font-size: 11px;
    font-weight: 780;

    transition:
        color .15s ease,
        border-color .15s ease,
        background .15s ease,
        transform .15s ease;
}

.main-nav__item:hover:not(.is-disabled) {
    color: #fff;

    background:
        rgba(109, 52, 204, .11);

    border-color:
        rgba(123, 70, 207, .20);
}

.main-nav__item.is-active {
    color: #fff;

    background:
        linear-gradient(135deg, rgba(89, 45, 175, .44), rgba(74, 39, 138, .26));

    border-color:
        rgba(154, 76, 255, .62);

    box-shadow:
        inset 0 0 18px rgba(151, 69, 255, .10),
        0 0 18px rgba(104, 48, 196, .11);
}

.main-nav__item.is-disabled {
    cursor: default;
    opacity: .72;
}

.nav-icon {
    color: #a66cff;
    font-size: 15px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button {
    position: relative;

    width: 42px;
    height: 42px;
    padding: 0;

    display: grid;
    place-items: center;

    color: #d6dbea;

    background:
        rgba(7, 10, 20, .92);

    border:
        1px solid rgba(83, 78, 132, .42);

    border-radius: 9px;

    cursor: pointer;
}

.icon-button svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-button:hover {
    border-color:
        rgba(143, 67, 242, .55);

    background:
        rgba(17, 15, 38, .96);
}

.notification-dot {
    position: absolute;
    right: 6px;
    top: 6px;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #ad43ff;

    box-shadow:
        0 0 9px rgba(173, 67, 255, .80);
}

.private-message-header-link {
    position: relative;
    text-decoration: none;
}

.private-message-header-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #070a14;
    border-radius: 999px;
    color: #fff;
    background: #8f43f5;
    box-shadow: 0 0 10px rgba(143, 67, 245, .42);
    font-size: 7px;
    font-weight: 900;
    line-height: 1;
}

.account-menu {
    position: relative;
}

.account-menu__summary {
    min-width: 190px;
    min-height: 46px;
    padding: 5px 10px 5px 6px;

    display: grid;
    grid-template-columns:
        36px
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 8px;

    list-style: none;

    background:
        rgba(8, 11, 22, .96);

    border:
        1px solid rgba(85, 77, 136, .44);

    border-radius: 10px;

    cursor: pointer;
}

.account-menu__summary::-webkit-details-marker {
    display: none;
}

.account-avatar {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: #fff;

    background:
        linear-gradient(135deg, #7040dc, #b53cff);

    box-shadow:
        0 0 15px rgba(162, 62, 255, .22);

    font-size: 12px;
    font-weight: 900;
}

.account-menu__copy {
    min-width: 0;

    display: grid;
    gap: 2px;
}

.account-menu__copy strong {
    overflow: hidden;

    color: #f3f4fa;

    font-size: 10px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.account-menu__copy small {
    overflow: hidden;

    color: #707a96;

    font-size: 7px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.account-menu__chevron {
    color: #7e87a0;
}

.account-menu__dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 7px);

    width: 230px;
    padding: 7px;

    display: grid;
    gap: 3px;

    background:
        rgba(6, 9, 18, .985);

    border:
        1px solid rgba(104, 78, 161, .46);

    border-radius: 10px;

    box-shadow:
        0 20px 46px rgba(0, 0, 0, .48);

    backdrop-filter:
        blur(16px);
}

.account-menu__dropdown a,
.account-menu__soon {
    min-height: 34px;
    padding: 0 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    border-radius: 7px;

    color: #d8dceb;

    font-size: 10px;
    font-weight: 760;
}

.account-menu__dropdown a:hover {
    background:
        rgba(128, 58, 230, .14);
}

.account-menu__soon {
    color: #6c7590;
}

.account-menu__soon small {
    color: #a16adb;

    font-size: 7px;
}

.login-button {
    min-height: 42px;
    padding: 0 17px;

    display: inline-flex;
    align-items: center;

    border:
        1px solid rgba(137, 72, 235, .50);

    border-radius: 9px;

    background:
        rgba(89, 45, 165, .18);

    font-size: 10px;
    font-weight: 850;
}

.mobile-menu-button,
.mobile-nav {
    display: none;
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;

    width: min(var(--content), calc(100% - 24px));
    min-height: 430px;

    margin: 0 auto;

    border-left:
        1px solid rgba(94, 61, 171, .18);

    border-right:
        1px solid rgba(94, 61, 171, .18);

    background:
        #080b15;
}

.hero__art {
    position: absolute;
    inset: 0;

    background:
        url("../images/home/hero-prison.jpg")
        right center / 70% 100%
        no-repeat;
}

.hero__shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5, 8, 16, 1) 0%,
            rgba(5, 8, 16, .98) 26%,
            rgba(5, 8, 16, .74) 43%,
            rgba(5, 8, 16, .22) 64%,
            rgba(5, 8, 16, .03) 100%
        );
}

.hero__shade::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(180deg, rgba(6, 9, 18, .02), rgba(4, 6, 12, .42));
}

.hero__content {
    position: relative;
    z-index: 2;

    width: min(650px, 56%);
    padding: 48px 0 38px 48px;
}

.hero__eyebrow {
    color: #99a2bd;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 15px 0 0;

    font-size:
        clamp(36px, 3.65vw, 56px);

    line-height: .98;
    letter-spacing: -1.2px;
}

.hero h1 > span,
.hero h1 > strong {
    display: block;
}

.hero h1 > span {
    color: #fff;
    font-weight: 950;
    white-space: nowrap;
}

.hero h1 > strong {
    margin-top: 3px;

    color: transparent;

    background:
        linear-gradient(90deg, #c13fff, #7c42ff 55%, #e33cff);

    -webkit-background-clip: text;
    background-clip: text;

    font-weight: 950;

    white-space: nowrap;
}

.hero__content > p {
    max-width: 525px;
    margin: 18px 0 0;

    color: #c3c9da;

    font-size: 13px;
    line-height: 1.52;
}

.hero__actions {
    margin-top: 23px;

    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    min-height: 48px;
    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border-radius: 7px;

    font-size: 11px;
    font-weight: 880;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease;
}

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

.button--primary {
    color: #fff;

    background:
        linear-gradient(135deg, #7137ff, #a52fff);

    border:
        1px solid rgba(199, 103, 255, .62);

    box-shadow:
        0 0 28px rgba(125, 48, 255, .22);
}

.button--outline {
    color: #f4f6ff;

    background:
        rgba(8, 10, 18, .72);

    border:
        1px solid rgba(175, 77, 255, .56);
}

.button__icon {
    font-size: 15px;
}

.button__arrow {
    margin-left: 6px;
    color: #bc70ff;
}

.hero-benefits {
    margin-top: 27px;

    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}

.hero-benefit {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #9099b2;

    font-size: 8.5px;
    line-height: 1.4;
}

.hero-benefit__icon {
    color: #a840ff;

    font-size: 19px;

    text-shadow:
        0 0 14px rgba(159, 63, 255, .42);
}

/* MAIN */

.home-main {
    position: relative;

    width: min(var(--content), calc(100% - 24px));

    margin: 0 auto;
    padding: 12px 0 14px;
}

/* FEATURES */

.feature-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;
}

.feature-card {
    position: relative;
    overflow: hidden;

    min-height: 148px;

    border:
        1px solid var(--line);

    border-radius:
        var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(11, 15, 29, .985),
            rgba(7, 10, 20, .985)
        );

    box-shadow:
        inset 0 0 35px rgba(102, 47, 214, .035),
        var(--shadow);
}

.feature-card--interactive {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.feature-card--interactive:hover,
.feature-card--interactive:focus-visible {
    border-color: rgba(156, 76, 255, .38);
    outline: 0;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28), 0 0 25px rgba(123, 47, 224, .08);
    transform: translateY(-3px);
}

.feature-card--interactive:hover .feature-card__link,
.feature-card--interactive:focus-visible .feature-card__link {
    color: #c78cff;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            rgba(133, 54, 236, .12),
            transparent 38%,
            transparent 70%,
            rgba(74, 50, 174, .08)
        );
}

.feature-card__art {
    position: absolute;
    right: 0;
    top: 0;

    width: 43%;
    height: 94%;

    object-fit: contain;
    object-position: right center;

    opacity: .96;

    mask-image:
        linear-gradient(
            90deg,
            transparent,
            rgba(0,0,0,.68) 27%,
            #000 100%
        );
}

.feature-card__icon {
    position: absolute;
    left: 15px;
    top: 18px;
    z-index: 3;

    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    color: #c05bff;

    background:
        rgba(82, 41, 145, .24);

    border:
        1px solid rgba(151, 74, 244, .32);

    border-radius: 9px;

    font-size: 21px;
}

.feature-card__icon--gold {
    color: var(--gold);
}

.feature-card__content {
    position: relative;
    z-index: 4;

    width: 64%;
    padding: 20px 8px 15px 77px;
}

.feature-card h2 {
    margin: 0;

    font-size: 15px;
    font-weight: 950;
}

.feature-card p {
    margin: 7px 0 0;

    color: #9aa3bb;

    font-size: 9px;
    line-height: 1.45;
}

.feature-card__link {
    display: inline-block;

    margin-top: 13px;

    color: #c272ff;

    font-size: 9px;
    font-weight: 860;
}

/* LOWER GRID */

.lower-grid {
    margin-top: 10px;

    display: grid;
    grid-template-columns:
        .98fr 1.12fr .98fr;

    gap: 10px;
}

.content-panel {
    position: relative;
    overflow: hidden;

    min-height: 318px;

    border:
        1px solid var(--line);

    border-radius:
        var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(10, 14, 27, .985),
            rgba(6, 9, 18, .99)
        );

    box-shadow:
        inset 0 0 38px rgba(96, 42, 203, .03),
        var(--shadow);
}

.panel-heading {
    min-height: 48px;
    padding: 0 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border-bottom:
        1px solid rgba(75, 69, 116, .20);
}

.panel-heading > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.panel-heading__accent {
    width: 4px;
    height: 18px;

    border-radius: 8px;

    background:
        linear-gradient(180deg, #c740ff, #6944ff);

    box-shadow:
        0 0 11px rgba(174, 56, 255, .32);
}

.panel-heading h2 {
    margin: 0;

    font-size: 13px;
    font-weight: 950;
}

.panel-heading small,
.panel-more {
    color: #9a66db;

    font-size: 8px;
    font-weight: 800;
}

/* SERVER */

.server-scene {
    position: relative;

    margin: 10px 12px 0;
    height: 120px;

    overflow: hidden;

    border:
        1px solid rgba(88, 73, 143, .26);

    border-radius: 7px;

    background: #060a13;
}

.server-scene img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.server-scene::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(90deg, rgba(5,8,16,.58), transparent 60%);
}

.server-state {
    position: absolute;
    left: 10px;
    bottom: 9px;
    z-index: 2;

    padding: 5px 8px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #84f1b8;

    background:
        rgba(7, 17, 18, .80);

    border:
        1px solid rgba(44, 202, 123, .26);

    border-radius: 6px;

    font-size: 8px;
    font-weight: 850;
}

.server-state i {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        var(--green);

    box-shadow:
        0 0 9px rgba(51, 233, 148, .72);
}

.server-stats {
    margin: 9px 12px 0;

    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    overflow: hidden;

    border:
        1px solid rgba(79, 71, 123, .22);

    border-radius: 7px;

    background:
        rgba(4, 7, 14, .64);
}

.server-stats > div {
    min-width: 0;
    padding: 8px;

    border-right:
        1px solid rgba(79, 71, 123, .18);
}

.server-stats > div:last-child {
    border-right: 0;
}

.server-stats strong,
.server-stats span {
    display: block;
}

.server-stats strong {
    color: #eef1fb;
    font-size: 10px;
}

.server-stats span {
    margin-top: 2px;

    color: #68728d;
    font-size: 7px;
}

.server-connect {
    margin: 9px 12px 12px;
    min-height: 44px;
    padding: 0 12px;

    display: grid;
    grid-template-columns:
        auto 1fr auto;

    align-items: center;
    gap: 9px;

    color: #fff;

    background:
        linear-gradient(135deg, #6e37ed, #9d31ff);

    border:
        1px solid rgba(194, 96, 255, .50);

    border-radius: 7px;

    box-shadow:
        0 0 22px rgba(121, 47, 249, .16);
}

.server-connect__icon {
    font-size: 18px;
}

.server-connect strong,
.server-connect small {
    display: block;
}

.server-connect strong {
    font-size: 9px;
}

.server-connect small {
    margin-top: 2px;

    color: rgba(255,255,255,.68);

    font-size: 7px;
}

/* NEWS */

.news-panel {
    padding-bottom: 10px;
}

.news-list {
    display: grid;
    gap: 7px;

    padding: 10px;
}

.news-item {
    min-height: 68px;
    padding: 6px;

    display: grid;
    grid-template-columns:
        115px minmax(0, 1fr);

    align-items: center;
    gap: 9px;

    border:
        1px solid rgba(78, 70, 121, .22);

    border-radius: 7px;

    background:
        rgba(4, 7, 14, .50);
}

.news-item img {
    width: 115px;
    height: 54px;

    object-fit: cover;

    border-radius: 5px;
}

.news-item__badge {
    display: inline-block;
    padding: 2px 5px;

    color: #c188ef;

    border:
        1px solid rgba(149, 89, 209, .26);

    border-radius: 4px;

    background:
        rgba(110, 70, 163, .10);

    font-size: 6px;
    font-weight: 900;
}

.news-item h3 {
    margin: 3px 0 0;

    color: #dfe3ef;

    font-size: 9px;
}

.news-item p {
    margin: 3px 0 0;

    color: #6f7891;

    font-size: 7px;
    line-height: 1.35;
}

/* RULES */

.rules-panel__art {
    position: absolute;
    right: -7px;
    bottom: 0;

    width: 47%;
    height: 86%;

    object-fit: cover;
    object-position: center top;

    opacity: .88;

    mask-image:
        linear-gradient(
            90deg,
            transparent,
            rgba(0,0,0,.72) 22%,
            #000 100%
        );
}

.rules-panel__shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(7, 10, 19, .997),
            rgba(7, 10, 19, .94) 58%,
            rgba(7, 10, 19, .18)
        );
}

.rules-panel__content {
    position: relative;
    z-index: 2;

    padding: 18px;
}

.rules-title {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.rules-title__icon {
    width: 46px;
    height: 46px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    color: #c15cff;

    background:
        rgba(90, 43, 153, .22);

    border:
        1px solid rgba(158, 79, 250, .31);

    border-radius: 9px;

    font-size: 21px;
}

.rules-title h2 {
    margin: 2px 0 0;

    font-size: 14px;
    font-weight: 950;
}

.rules-title p {
    margin: 5px 0 0;

    color: #9099b2;

    font-size: 8px;
    line-height: 1.4;
}

.rules-list {
    width: min(280px, 100%);
    margin-top: 14px;

    display: grid;
    overflow: hidden;

    border:
        1px solid rgba(77, 70, 118, .22);

    border-radius: 7px;

    background:
        rgba(4, 7, 14, .62);
}

.rules-list span {
    min-height: 31px;
    padding: 0 8px;

    display: flex;
    align-items: center;
    gap: 8px;

    color: #8e97af;

    border-bottom:
        1px solid rgba(77, 70, 118, .17);

    font-size: 7px;
}

.rules-list span:last-child {
    border-bottom: 0;
}

.rules-list b {
    width: 22px;
    height: 22px;

    display: grid;
    place-items: center;

    color: #d7c4ff;

    background:
        rgba(104, 52, 191, .38);

    border:
        1px solid rgba(142, 73, 234, .30);

    border-radius: 6px;

    font-size: 8px;
}

.rules-button {
    width: min(280px, 100%);
    min-height: 40px;

    margin-top: 10px;

    justify-content: space-between;
}

/* FOOTER */

.home-footer {
    border-top:
        1px solid rgba(79, 70, 121, .28);

    background:
        rgba(5, 8, 16, .98);
}

.home-footer__inner {
    width: min(var(--content), calc(100% - 24px));
    min-height: 84px;

    margin: 0 auto;

    display: grid;
    grid-template-columns:
        330px
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 28px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand__mark--small {
    width: 39px;
    height: 39px;
}

.footer-brand > div {
    display: grid;
    gap: 3px;
}

.footer-brand strong {
    font-size: 16px;
    letter-spacing: 3.2px;
}

.footer-brand small {
    color: #6f7890;

    font-size: 7px;
    letter-spacing: 1px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;

    color: #7f88a2;

    font-size: 8px;
}

.footer-nav a:hover {
    color: #b17aff;
}

.footer-status {
    display: flex;
    gap: 23px;
}

.footer-status > div {
    min-width: 78px;

    padding-left: 12px;

    border-left:
        1px solid rgba(75, 70, 112, .24);
}

.footer-status strong,
.footer-status small {
    display: block;
}

.footer-status strong {
    color: #dce0ed;
    font-size: 9px;
}

.footer-status small {
    margin-top: 2px;

    color: #69728b;
    font-size: 6px;
}

.home-footer__bottom {
    width: min(var(--content), calc(100% - 24px));
    min-height: 36px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    color: #59647c;

    border-top:
        1px solid rgba(75, 70, 112, .16);

    font-size: 7px;
}

/* RESPONSIVE */

@media (max-width: 1180px) {
    .home-header__inner {
        grid-template-columns:
            250px
            minmax(0, 1fr)
            auto;
    }

    .main-nav__item {
        padding: 0 9px;
    }

    .nav-icon {
        display: none;
    }

    .account-menu__summary {
        min-width: 165px;
    }

    .hero__content {
        width: min(620px, 59%);
    }

    .hero h1 {
        font-size:
            clamp(34px, 3.55vw, 46px);
    }

    .hero h1 > span,
    .hero h1 > strong {
        white-space: nowrap;
    }

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

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

    .rules-panel {
        grid-column:
            1 / -1;
    }
}

@media (max-width: 900px) {
    .home-header__inner {
        grid-template-columns:
            minmax(0, 1fr)
            auto;
    }

    .main-nav {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .mobile-menu-button {
        width: 42px;
        height: 42px;
        padding: 9px;

        display: grid;
        align-content: center;
        gap: 5px;

        background:
            rgba(8, 11, 22, .96);

        border:
            1px solid rgba(89, 77, 142, .46);

        border-radius: 9px;

        cursor: pointer;
    }

    .mobile-menu-button span {
        height: 2px;

        border-radius: 2px;

        background: #c4cadb;
    }

    .mobile-nav {
        width: min(var(--content), calc(100% - 24px));
        padding: 8px;

        margin: 0 auto 10px;

        border:
            1px solid rgba(95, 72, 154, .36);

        border-radius: 9px;

        background:
            rgba(7, 10, 19, .98);
    }

    .mobile-nav:not([hidden]) {
        display: grid;
    }

    .mobile-nav a,
    .mobile-nav span {
        min-height: 38px;
        padding: 0 10px;

        display: flex;
        align-items: center;

        border-radius: 6px;

        color: #aab2c9;

        font-size: 10px;
    }

    .mobile-nav a:hover {
        background:
            rgba(110, 54, 203, .12);
    }

    .hero {
        min-height: 500px;
    }

    .hero__art {
        background-size:
            auto 100%;

        background-position:
            65% center;
    }

    .hero__shade {
        background:
            linear-gradient(
                90deg,
                rgba(5, 8, 16, .995),
                rgba(5, 8, 16, .91) 55%,
                rgba(5, 8, 16, .35)
            );
    }

    .hero__content {
        width: 78%;
    }

    .hero h1 > span,
    .hero h1 > strong {
        white-space: normal;
    }

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

    .rules-panel {
        grid-column: auto;
    }

    .home-footer__inner {
        grid-template-columns:
            1fr;

        padding: 22px 0;
    }

    .footer-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .footer-status {
        flex-wrap: wrap;
    }
}

@media (max-width: 650px) {
    .home-header__inner {
        width:
            min(100% - 20px, var(--content));

        min-height: 62px;
    }

    .brand__mark {
        width: 42px;
        height: 42px;
    }

    .brand__copy strong {
        font-size: 18px;
        letter-spacing: 4px;
    }

    .brand__copy small {
        font-size: 6px;
        letter-spacing: 2px;
    }

    .hero,
    .home-main,
    .home-footer__inner,
    .home-footer__bottom {
        width:
            min(100% - 12px, var(--content));
    }

    .hero {
        min-height: 570px;
    }

    .hero__art {
        background-position:
            59% center;

        opacity: .75;
    }

    .hero__shade {
        background:
            linear-gradient(
                90deg,
                rgba(5, 8, 16, .995),
                rgba(5, 8, 16, .89) 70%,
                rgba(5, 8, 16, .60)
            );
    }

    .hero__content {
        width: 100%;
        padding:
            38px 22px 28px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero__actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

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

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

    .feature-card {
        min-height: 142px;
    }

    .feature-card__content {
        width: 72%;
    }

    .news-item {
        grid-template-columns:
            95px minmax(0, 1fr);
    }

    .news-item img {
        width: 95px;
    }

    .home-footer__bottom {
        padding: 12px 0;

        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   LIVE v3 — LAYOUT SAFETY PASS
   Fixed from real production screenshot:
   1) correct JALEXSI logo;
   2) safe left/right gutters;
   3) hero title cannot clip;
   4) feature text and art never overlap;
   5) lower panels use stable columns.
   ========================================================= */

:root {
    --content: 1384px;
    --page-gutter: clamp(20px, 2.2vw, 32px);
}

/* One shared horizontal rhythm across the whole homepage. */
.home-header__inner,
.hero,
.home-main,
.home-footer__inner,
.home-footer__bottom {
    width: min(
        var(--content),
        calc(100% - (var(--page-gutter) * 2))
    );
}

/* Header / exact approved logo */
.home-header__inner {
    min-height: 68px;

    grid-template-columns:
        270px
        minmax(0, 1fr)
        auto;

    gap: 14px;
}

.brand {
    min-width: 0;
    height: 54px;

    display: flex;
    align-items: center;
}

.brand__logo {
    display: block;

    width: 236px;
    max-width: 100%;
    height: auto;

    object-fit: contain;
    object-position: left center;

    filter:
        drop-shadow(0 0 12px rgba(137, 58, 255, .18));
}

/* Old generated logo pieces are no longer used. */
.brand__mark,
.brand__copy {
    display: none !important;
}

.main-nav {
    gap: 2px;
}

.main-nav__item {
    min-height: 42px;
    padding-inline: 12px;
}

/* Hero gets a guaranteed text lane.
   Art starts on the right and can never cover/crop the title. */
.hero {
    min-height: 405px;
}

.hero__art {
    left: 38%;
    width: 62%;

    background-size: cover;
    background-position: center center;
}

.hero__shade {
    background:
        linear-gradient(
            90deg,
            rgba(5, 8, 16, 1) 0%,
            rgba(5, 8, 16, .995) 24%,
            rgba(5, 8, 16, .94) 37%,
            rgba(5, 8, 16, .42) 52%,
            rgba(5, 8, 16, .05) 74%,
            rgba(5, 8, 16, .02) 100%
        );
}

.hero__content {
    width: min(590px, 51%);
    min-width: 0;

    padding:
        42px 0
        32px 42px;
}

.hero__eyebrow {
    font-size: 8px;
    letter-spacing: 4.5px;
}

.hero h1 {
    width: 100%;
    max-width: 590px;

    margin-top: 14px;

    font-size:
        clamp(36px, 3.45vw, 52px);

    line-height: .99;
    letter-spacing: -1.45px;
}

.hero h1 > span,
.hero h1 > strong {
    display: block;

    width: 100%;

    white-space: nowrap;

    overflow: visible;
}

.hero h1 > strong {
    font-size: .96em;
}

.hero__content > p {
    max-width: 490px;

    font-size: 12px;
    line-height: 1.48;
}

.hero__actions {
    margin-top: 20px;
}

.hero-benefits {
    max-width: 515px;

    margin-top: 24px;
    gap: 10px;
}

.hero-benefit {
    min-width: 0;
}

/* Feature modules:
   real text gets a fixed safe lane;
   decorative art lives in its own right lane. */
.feature-grid {
    gap: 10px;
}

.feature-card {
    min-width: 0;
    min-height: 150px;
}

.feature-card__art {
    right: 0;
    top: 0;

    width: 43%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    opacity: .92;

    -webkit-mask-image:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(0,0,0,.32) 12%,
            rgba(0,0,0,.92) 36%,
            #000 100%
        );

    mask-image:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(0,0,0,.32) 12%,
            rgba(0,0,0,.92) 36%,
            #000 100%
        );
}

.feature-card__content {
    width: 67%;
    max-width: 67%;

    padding:
        20px 10px
        15px 76px;
}

.feature-card h2 {
    white-space: nowrap;
}

.feature-card p {
    max-width: 150px;

    overflow-wrap: normal;
    word-break: normal;
}

/* Make the four cards feel like one clean row without touching page edges. */
.home-main {
    padding-top: 10px;
}

/* Lower row: stable proportions, same gutters as hero/features. */
.lower-grid {
    grid-template-columns:
        1fr 1.08fr 1fr;

    gap: 10px;
}

.content-panel {
    min-width: 0;
    min-height: 314px;
}

/* Footer correct logo, no duplicate temporary mark. */
.footer-brand {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand__logo {
    display: block;

    width: 170px;
    height: auto;

    object-fit: contain;
}

.footer-brand__tagline {
    display: grid;
}

.footer-brand__tagline small {
    color: #6f7890;

    font-size: 7px;
    letter-spacing: .9px;
}

/* Desktop widths around 1000–1200px: keep the approved desktop composition
   but reduce typography rather than letting text clip. */
@media (max-width: 1180px) and (min-width: 901px) {
    :root {
        --page-gutter: clamp(18px, 2.4vw, 28px);
    }

    .home-header__inner {
        grid-template-columns:
            225px
            minmax(0, 1fr)
            auto;
    }

    .brand__logo {
        width: 205px;
    }

    .main-nav__item {
        padding-inline: 8px;
        font-size: 10px;
    }

    .hero__content {
        width: 57%;
        padding-left: 34px;
    }

    .hero__art {
        left: 34%;
        width: 66%;
    }

    .hero h1 {
        max-width: 555px;

        font-size:
            clamp(34px, 4vw, 46px);
    }

    .hero h1 > strong {
        font-size: .92em;
    }

    .hero__content > p {
        max-width: 455px;
        font-size: 11px;
    }

    .hero-benefits {
        max-width: 485px;
    }

    /* Four cards stay in one row on common desktop widths.
       Each card has smaller but safe live copy. */
    .feature-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .feature-card {
        min-height: 142px;
    }

    .feature-card__icon {
        left: 11px;
        top: 15px;

        width: 42px;
        height: 42px;
    }

    .feature-card__content {
        width: 68%;
        max-width: 68%;

        padding:
            17px 6px
            13px 61px;
    }

    .feature-card h2 {
        font-size: 12px;
    }

    .feature-card p {
        max-width: 118px;

        font-size: 7.5px;
        line-height: 1.38;
    }

    .feature-card__link {
        margin-top: 9px;
        font-size: 7.5px;
    }

    .feature-card__art {
        width: 42%;
    }

    .lower-grid {
        grid-template-columns:
            .98fr 1.08fr .98fr;
    }
}

/* Tablet/mobile: switch to responsive layout cleanly instead of clipping. */
@media (max-width: 900px) {
    :root {
        --page-gutter: 14px;
    }

    .hero {
        min-height: 540px;
    }

    .hero__art {
        left: 0;
        width: 100%;

        opacity: .78;

        background-position: 62% center;
    }

    .hero__shade {
        background:
            linear-gradient(
                90deg,
                rgba(5, 8, 16, .995),
                rgba(5, 8, 16, .92) 64%,
                rgba(5, 8, 16, .48)
            );
    }

    .hero__content {
        width: min(650px, 88%);
        padding-left: 26px;
    }

    .hero h1 {
        max-width: 100%;

        font-size:
            clamp(34px, 6vw, 46px);
    }

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

    .feature-card__content {
        width: 65%;
        max-width: 65%;
    }

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

@media (max-width: 620px) {
    :root {
        --page-gutter: 8px;
    }

    .brand__logo {
        width: 190px;
    }

    .hero__content {
        width: 100%;
        padding:
            34px 20px
            26px;
    }

    .hero h1 {
        font-size:
            clamp(31px, 9vw, 39px);
    }

    .hero h1 > span,
    .hero h1 > strong {
        white-space: normal;
    }

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

    .feature-card__content {
        width: 68%;
        max-width: 68%;
    }
}


/* =========================================================
   LIVE v4 — ART CLEANUP + FINAL SPACING
   No redesign. Only removes baked-text artifacts and improves spacing.
   ========================================================= */

/* Give the live page a little more breathing room on desktop. */
@media (min-width: 901px) {
    :root {
        --page-gutter: clamp(24px, 2.8vw, 42px);
    }
}

/* Keep hero copy comfortably away from the art lane. */
.hero__content {
    width: min(565px, 50%);
}

.hero h1 {
    max-width: 555px;
}

.hero h1 > strong {
    font-size: .93em;
}

/* Feature art is decorative only and may never compete with live text. */
.feature-card {
    isolation: isolate;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(7, 10, 20, .98) 0%,
            rgba(7, 10, 20, .96) 43%,
            rgba(7, 10, 20, .58) 61%,
            rgba(7, 10, 20, .10) 80%,
            transparent 100%
        );
}

.feature-card__art {
    z-index: 1;

    right: 0;
    top: 0;

    width: 40%;
    height: 100%;

    object-fit: contain;
    object-position: right center;

    opacity: 1;

    -webkit-mask-image: none;
    mask-image: none;

    filter:
        drop-shadow(0 0 15px rgba(113, 49, 225, .16));
}

.feature-card__icon,
.feature-card__content {
    z-index: 4;
}

.feature-card__content {
    width: 69%;
    max-width: 69%;
}

.feature-card p {
    max-width: 145px;
}

/* Remove source-image header remnants from the server preview. */
.server-scene img {
    object-position: center center;
}

/* Slightly denser lower blocks: closer to the approved mockup. */
.lower-grid {
    margin-top: 12px;
}

.content-panel {
    min-height: 320px;
}

.home-footer__inner {
    min-height: 72px;
}

@media (max-width: 1180px) and (min-width: 901px) {
    .hero__content {
        width: 55%;
    }

    .hero h1 {
        max-width: 520px;
    }

    .feature-card__art {
        width: 39%;
    }

    .feature-card__content {
        width: 70%;
        max-width: 70%;
    }

    .feature-card p {
        max-width: 115px;
    }
}
