:root {
    --kx-bg: #020713;
    --kx-bg-2: #061326;
    --kx-panel: rgba(9, 19, 36, .88);
    --kx-panel-2: rgba(17, 35, 60, .78);
    --kx-line: rgba(112, 169, 224, .18);
    --kx-line-gold: rgba(221, 171, 73, .34);
    --kx-text: #f8fbff;
    --kx-muted: #a9b7ca;
    --kx-gold: #d8a23b;
    --kx-gold-2: #ffe39b;
    --kx-blue: #2e8cff;
    --kx-cyan: #55d8ff;
    --kx-green: #4ee18b;
    --kx-radius-xl: 28px;
    --kx-radius-lg: 20px;
    --kx-shadow: 0 28px 80px rgba(0, 0, 0, .46);
}

* {
    box-sizing: border-box;
}

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

body.kx-home-page {
    position: relative;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--kx-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at 76% 16%, rgba(28, 112, 219, .24), transparent 27%), radial-gradient(circle at 16% 76%, rgba(209, 154, 50, .10), transparent 28%), linear-gradient(135deg, #020713 0%, #04101f 50%, #06162a 100%);
}

.kx-home-noise,
.kx-home-grid-bg,
.kx-home-orb {
    position: fixed;
    pointer-events: none;
}

.kx-home-noise {
    z-index: 0;
    inset: 0;
    opacity: .12;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
    mix-blend-mode: screen;
}

.kx-home-grid-bg {
    z-index: 0;
    inset: 0;
    opacity: .35;
    background-image: linear-gradient(rgba(83, 145, 205, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(83, 145, 205, .07) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.95), rgba(0,0,0,.25));
}

.kx-home-orb {
    z-index: 0;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .18;
}

.kx-home-orb-blue {
    top: -220px;
    right: -120px;
    background: #146ed8;
}

.kx-home-orb-gold {
    bottom: -280px;
    left: -180px;
    background: #b7781b;
}

.kx-home-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 44px 0 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kx-home-access-card {
    position: relative;
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 28px 42px 34px;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(113, 173, 231, .20);
    border-radius: var(--kx-radius-xl);
    background: linear-gradient(180deg, rgba(10, 24, 45, .92), rgba(5, 13, 25, .90));
    box-shadow: var(--kx-shadow), inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 0 1px rgba(13, 65, 116, .08);
    backdrop-filter: blur(16px);
}

    .kx-home-access-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--kx-gold), var(--kx-cyan), transparent);
        opacity: .95;
    }

.kx-home-brand-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.kx-home-logo {
    display: block;
    width: min(520px, 90%);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .28));
}

.kx-home-access-copy {
    margin-top: 8px;
}

.kx-home-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--kx-gold-2);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .18em;
}

.kx-home-access-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.kx-home-access-copy p {
    max-width: 620px;
    margin: 14px auto 0;
    color: var(--kx-muted);
    font-size: 15px;
    line-height: 1.55;
}

.kx-home-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: min(470px, 100%);
    margin: 24px auto 0;
}

.kx-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid rgba(110, 171, 229, .22);
    border-radius: 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

    .kx-home-btn:hover {
        transform: translateY(-2px);
    }

.kx-home-btn-primary {
    border-color: rgba(76, 183, 255, .48);
    background: linear-gradient(135deg, #1488e8, #2fb5f3);
    box-shadow: 0 12px 28px rgba(26, 144, 231, .24);
}

    .kx-home-btn-primary:hover {
        box-shadow: 0 16px 34px rgba(26, 144, 231, .34);
    }

.kx-home-btn-secondary {
    background: linear-gradient(180deg, rgba(26, 47, 76, .86), rgba(12, 25, 44, .88));
}

    .kx-home-btn-secondary:hover {
        border-color: rgba(255, 224, 146, .35);
        background: linear-gradient(180deg, rgba(35, 57, 88, .92), rgba(14, 29, 50, .92));
    }

.kx-home-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.kx-home-product-card {
    position: relative;
    min-height: 270px;
    padding: 24px 26px 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(113, 173, 231, .17);
    border-radius: 24px;
    color: inherit;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(18, 36, 61, .84), rgba(5, 13, 25, .84));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 16px 44px rgba(0, 0, 0, .20);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

    .kx-home-product-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        height: 4px;
        background: linear-gradient(90deg, #8f5d18, #f1c66b, #154e99);
    }

.kx-home-product-copy-card::before {
    background: linear-gradient(90deg, #174d91, #56c9ff, #d6a23b);
}

.kx-home-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 183, 255, .35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 58px rgba(0, 0, 0, .30);
}

.kx-home-product-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    top: -70px;
    border-radius: 50%;
    opacity: .20;
    filter: blur(54px);
    background: var(--kx-gold);
}

.kx-home-product-copy-card .kx-home-product-glow {
    background: var(--kx-blue);
}

.kx-home-product-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.kx-home-product-icon {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 224, 146, .28);
    border-radius: 16px;
    color: var(--kx-gold-2);
    font-size: 21px;
    background: linear-gradient(180deg, rgba(209, 154, 50, .18), rgba(7, 16, 28, .64));
}

.kx-home-product-icon-blue {
    border-color: rgba(85, 216, 255, .26);
    color: #8edfff;
    background: linear-gradient(180deg, rgba(46, 140, 255, .18), rgba(7, 16, 28, .64));
}

.kx-home-product-badge {
    padding: 8px 12px;
    border: 1px solid rgba(255, 224, 146, .20);
    border-radius: 999px;
    color: var(--kx-gold-2);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(209, 154, 50, .07);
}

.kx-home-product-badge-blue {
    border-color: rgba(85, 216, 255, .18);
    color: #a7e7ff;
    background: rgba(46, 140, 255, .08);
}

.kx-home-product-copy {
    position: relative;
    z-index: 1;
    margin-top: 18px;
}

    .kx-home-product-copy h2 {
        margin: 0;
        color: #fff;
        font-size: clamp(22px, 2vw, 29px);
        line-height: 1.08;
        letter-spacing: -.035em;
    }

    .kx-home-product-copy p {
        margin: 9px 0 0;
        color: var(--kx-muted);
        font-size: 13.5px;
        line-height: 1.5;
    }

.kx-home-product-metric {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
    padding: 16px 0 4px;
    border-top: 1px solid rgba(131, 177, 220, .12);
}

.kx-home-metric-value {
    min-width: 130px;
    font-size: clamp(38px, 4.2vw, 58px);
    font-weight: 950;
    line-height: .95;
    letter-spacing: -.055em;
}

.kx-home-gold {
    color: var(--kx-gold-2);
    text-shadow: 0 0 28px rgba(209, 154, 50, .18);
}

.kx-home-blue {
    color: #9fe5ff;
    text-shadow: 0 0 28px rgba(85, 216, 255, .22);
}

.kx-home-product-metric strong,
.kx-home-product-metric small {
    display: block;
}

.kx-home-product-metric strong {
    color: #fff;
    font-size: 14px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.kx-home-product-metric small {
    margin-top: 4px;
    color: var(--kx-muted);
    font-size: 12px;
    line-height: 1.35;
}

.kx-home-product-status {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 20px;
    margin-top: 8px;
    color: #7f90a7;
    font-size: 11px;
    font-weight: 700;
}

.kx-home-live-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #627286;
    box-shadow: 0 0 0 4px rgba(98, 114, 134, .08);
}

.kx-home-product-status.is-live {
    color: #8feeb6;
}

    .kx-home-product-status.is-live .kx-home-live-dot {
        background: var(--kx-green);
        box-shadow: 0 0 0 4px rgba(78, 225, 139, .10), 0 0 14px rgba(78, 225, 139, .45);
    }

.kx-home-product-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 16px;
    color: #dce8f7;
    font-size: 13px;
    font-weight: 800;
}

    .kx-home-product-footer i {
        transition: transform .2s ease;
    }

.kx-home-product-card:hover .kx-home-product-footer i {
    transform: translateX(4px);
}

.kx-home-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 18px;
    color: #75869d;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 860px) {
    .kx-home-shell {
        width: min(100% - 28px, 760px);
        justify-content: flex-start;
        padding-top: 24px;
    }

    .kx-home-products {
        grid-template-columns: 1fr;
    }

    .kx-home-access-card {
        padding: 24px 24px 28px;
    }
}

@media (max-width: 560px) {
    .kx-home-shell {
        width: min(100% - 20px, 760px);
        padding: 14px 0 22px;
    }

    .kx-home-logo {
        width: 100%;
    }

    .kx-home-access-copy h1 {
        font-size: 31px;
    }

    .kx-home-actions {
        grid-template-columns: 1fr;
    }

    .kx-home-product-card {
        padding: 22px 20px;
    }

    .kx-home-product-metric {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .kx-home-metric-value {
        min-width: 0;
    }
}

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