:root {
    --inx-navy-950: #04101f;
    --inx-navy-900: #071a31;
    --inx-navy-800: #082b4f;
    --inx-navy-700: #0a477a;

    --inx-blue-700: #075aa7;
    --inx-blue-600: #0878c9;
    --inx-blue-500: #0799e6;

    --inx-cyan-500: #19c7ef;
    --inx-cyan-300: #68ddf5;

    --gx-canvas: #eef4fa;
    --gx-canvas-2: #e6f0f8;

    --gx-surface: #ffffff;
    --gx-surface-soft: #f8fbfe;

    --gx-border: #cad9e8;
    --gx-border-subtle: #dce7f1;

    --gx-text: #132b45;
    --gx-text-muted: #64758a;

    --gx-shadow:
        0 1px 2px rgba(9, 31, 54, .04),
        0 18px 45px -28px rgba(7, 43, 79, .38);

    --gx-shadow-lg:
        0 30px 80px -42px rgba(4, 25, 49, .5);

    --gx-brand-gradient:
        linear-gradient(
            135deg,
            #083c68 0%,
            #0878c9 55%,
            #13bde8 100%
        );
}


* {
    box-sizing: border-box;
}


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


body {
    margin: 0;

    min-height: 100vh;

    background:
        radial-gradient(
            900px 440px at -5% -5%,
            rgba(8, 120, 201, .14),
            transparent 62%
        ),
        radial-gradient(
            750px 380px at 105% 0%,
            rgba(25, 199, 239, .12),
            transparent 58%
        ),
        linear-gradient(
            180deg,
            #f6f9fc 0%,
            #eef4fa 55%,
            #edf3f8 100%
        );

    color: var(--gx-text);

    font-family:
        'Inter',
        ui-sans-serif,
        system-ui,
        sans-serif;
}


/* ============================================================
   HEADER
   ============================================================ */

.gx-site-header {
    position: sticky;
    top: 0;
    z-index: 30;

    border-bottom:
        1px solid rgba(202, 217, 232, .85);

    background:
        rgba(255, 255, 255, .92);

    backdrop-filter:
        blur(18px);
}


.gx-header-inner {
    width: min(1180px, calc(100% - 32px));

    min-height: 76px;

    margin:
        0 auto;

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

    gap: 24px;
}


.gx-brand {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    text-decoration: none;
}


.gx-brand-mark {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        var(--gx-brand-gradient);

    color: white;

    font-size: 18px;
    font-weight: 800;

    box-shadow:
        0 8px 24px -10px
        rgba(8, 120, 201, .7);
}


.gx-brand-name {
    color:
        var(--inx-navy-900);

    font-size: 15px;
    font-weight: 800;

    letter-spacing:
        -.02em;
}


.gx-brand-subtitle {
    margin-top: 2px;

    color:
        var(--gx-text-muted);

    font-size: 9px;
    font-weight: 700;

    letter-spacing:
        .13em;

    text-transform:
        uppercase;
}


.gx-header-actions {
    display: flex;
    align-items: center;

    gap: 16px;
}


.gx-secure-badge {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding:
        7px 11px;

    border:
        1px solid #d7e5ee;

    border-radius:
        999px;

    background:
        #f7fbfd;

    color:
        #526a7e;

    font-size:
        11px;

    font-weight:
        600;
}


.gx-secure-dot {
    width: 7px;
    height: 7px;

    border-radius:
        999px;

    background:
        #20b486;

    box-shadow:
        0 0 0 3px
        rgba(32, 180, 134, .12);
}


.gx-header-link {
    color:
        var(--inx-blue-700);

    font-size:
        12px;

    font-weight:
        700;

    text-decoration:
        none;
}


.gx-header-link:hover {
    color:
        var(--inx-blue-500);
}


/* ============================================================
   MAIN
   ============================================================ */

.gx-main {
    width:
        min(1180px, calc(100% - 32px));

    min-height:
        calc(100vh - 160px);

    margin:
        0 auto;

    padding:
        34px 0 56px;
}


.gx-panel {
    border:
        1px solid
        rgba(202, 217, 232, .8);

    background:
        rgba(255, 255, 255, .96);

    box-shadow:
        var(--gx-shadow);
}


/* ============================================================
   HOME HERO
   ============================================================ */

.gx-hero {
    position:
        relative;

    overflow:
        hidden;

    display:
        grid;

    grid-template-columns:
        minmax(0, 1.18fr)
        minmax(320px, .82fr);

    gap:
        36px;

    padding:
        56px;

    border-radius:
        30px;

    background:
        linear-gradient(
            135deg,
            #061a30 0%,
            #073b67 52%,
            #087bb4 100%
        );

    box-shadow:
        var(--gx-shadow-lg);
}


.gx-hero::before {
    content:
        "";

    position:
        absolute;

    inset:
        0;

    opacity:
        .23;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, .11) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .11) 1px,
            transparent 1px
        );

    background-size:
        48px 48px;

    mask-image:
        linear-gradient(
            90deg,
            transparent,
            black 35%,
            black
        );

    pointer-events:
        none;
}


.gx-hero::after {
    content:
        "";

    position:
        absolute;

    width:
        440px;

    height:
        440px;

    right:
        -160px;

    top:
        -190px;

    border-radius:
        999px;

    background:
        rgba(42, 211, 242, .22);

    filter:
        blur(20px);

    pointer-events:
        none;
}


.gx-hero-content,
.gx-hero-side {
    position:
        relative;

    z-index:
        2;
}


.gx-kicker {
    display:
        inline-flex;

    margin-bottom:
        20px;

    padding:
        8px 13px;

    border:
        1px solid rgba(122, 220, 244, .34);

    border-radius:
        999px;

    background:
        rgba(255, 255, 255, .07);

    color:
        #8eeaff;

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        .15em;

    text-transform:
        uppercase;
}


.gx-hero h1 {
    max-width:
        720px;

    margin:
        0;

    color:
        white;

    font-size:
        clamp(2.35rem, 4vw, 4rem);

    line-height:
        1.04;

    letter-spacing:
        -.05em;

    font-weight:
        800;
}


.gx-hero h1 span {
    display:
        block;

    color:
        #7fe9ff;
}


.gx-hero-copy {
    max-width:
        690px;

    margin:
        24px 0 30px;

    color:
        rgba(239, 249, 255, .86);

    font-size:
        15px;

    line-height:
        1.8;
}


.gx-hero-side {
    display:
        flex;

    align-items:
        center;
}


.gx-output-card {
    width:
        100%;

    padding:
        24px;

    border:
        1px solid
        rgba(120, 217, 241, .25);

    border-radius:
        22px;

    background:
        rgba(3, 25, 47, .46);

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, .05);

    backdrop-filter:
        blur(10px);
}


.gx-output-title {
    margin-bottom:
        16px;

    color:
        #83e8ff;

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        .13em;

    text-transform:
        uppercase;
}


.gx-output-row {
    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    padding:
        10px 0;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .08);

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

    font-size:
        12px;

    font-weight:
        600;
}


.gx-output-row:last-child {
    border-bottom:
        0;
}


.gx-output-row span {
    color:
        #66ddf6;

    font-size:
        10px;

    letter-spacing:
        .08em;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.gx-btn {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    border:
        0;

    border-radius:
        12px;

    padding:
        11px 18px;

    font-size:
        13px;

    font-weight:
        700;

    cursor:
        pointer;

    text-decoration:
        none;

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}


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


.gx-btn-primary {
    color:
        white;

    background:
        linear-gradient(
            135deg,
            #0878c9,
            #0763ad
        );

    box-shadow:
        0 10px 24px -12px
        rgba(8, 120, 201, .75);
}


.gx-btn-primary:hover {
    background:
        linear-gradient(
            135deg,
            #0985dc,
            #076ab9
        );
}


.gx-btn-secondary {
    color:
        var(--gx-text);

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

    background:
        white;
}


.gx-btn-secondary:hover {
    background:
        var(--gx-canvas-2);
}


.gx-btn-hero {
    color:
        #073456;

    background:
        white;

    box-shadow:
        0 16px 40px -18px
        rgba(0, 0, 0, .45);
}


.gx-btn-hero:hover {
    background:
        #f4fbff;
}


/* ============================================================
   FEATURE CARDS
   ============================================================ */

.gx-intro-grid {
    margin-top:
        22px;

    display:
        grid;

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

    gap:
        18px;
}


.gx-feature-panel {
    display:
        flex;

    align-items:
        flex-start;

    gap:
        18px;

    padding:
        22px;

    border-radius:
        20px;
}


.gx-feature-number,
.gx-feature-icon {
    min-width:
        48px;

    height:
        48px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        14px;

    background:
        linear-gradient(
            135deg,
            #e7f5fd,
            #d9edf9
        );

    color:
        var(--inx-blue-700);

    font-size:
        17px;

    font-weight:
        800;
}


.gx-feature-icon {
    font-size:
        11px;

    letter-spacing:
        .08em;
}


.gx-feature-panel h2 {
    margin:
        1px 0 7px;

    color:
        var(--inx-navy-900);

    font-size:
        14px;

    font-weight:
        800;
}


.gx-feature-panel p {
    margin:
        0;

    color:
        var(--gx-text-muted);

    font-size:
        12px;

    line-height:
        1.65;
}


/* ============================================================
   SESSIONS
   ============================================================ */

.gx-sessions {
    margin-top:
        22px;

    padding:
        26px;

    border-radius:
        22px;
}


.gx-sessions-header {
    display:
        flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap:
        20px;

    padding-bottom:
        18px;

    border-bottom:
        1px solid
        var(--gx-border-subtle);
}


.gx-section-kicker {
    margin-bottom:
        5px;

    color:
        var(--inx-blue-600);

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        .15em;

    text-transform:
        uppercase;
}


.gx-sessions h2,
.gx-page-heading h1 {
    margin:
        0;

    color:
        var(--inx-navy-900);

    font-weight:
        800;

    letter-spacing:
        -.025em;
}


.gx-sessions h2 {
    font-size:
        19px;
}


.gx-sessions-header p,
.gx-page-heading p {
    margin:
        5px 0 0;

    color:
        var(--gx-text-muted);

    font-size:
        12px;
}


.gx-danger-link {
    border:
        0;

    background:
        none;

    color:
        #c23a4b;

    font-size:
        11px;

    font-weight:
        700;

    cursor:
        pointer;
}


.gx-session-list {
    margin-top:
        16px;

    display:
        grid;

    gap:
        10px;
}


.gx-session-row {
    display:
        flex;

    align-items:
        stretch;

    overflow:
        hidden;

    border:
        1px solid
        var(--gx-border-subtle);

    border-radius:
        14px;

    background:
        #fbfdff;
}


.gx-session-main {
    min-width:
        0;

    flex:
        1;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        18px;

    padding:
        13px 15px;

    color:
        inherit;

    text-decoration:
        none;
}


.gx-session-main:hover {
    background:
        #f3f8fc;
}


.gx-session-name {
    color:
        var(--gx-text);

    font-size:
        13px;

    font-weight:
        700;
}


.gx-session-date {
    margin-top:
        3px;

    color:
        var(--gx-text-muted);

    font-size:
        10px;
}


.gx-session-status {
    padding:
        5px 8px;

    border-radius:
        999px;

    background:
        #edf5fb;

    color:
        #567083;

    font-size:
        9px;

    font-weight:
        700;

    letter-spacing:
        .05em;

    text-transform:
        uppercase;
}


.gx-session-delete {
    height:
        100%;

    padding:
        0 14px;

    border:
        0;

    border-left:
        1px solid
        var(--gx-border-subtle);

    background:
        white;

    color:
        #bd4050;

    font-size:
        10px;

    font-weight:
        700;

    cursor:
        pointer;
}


.gx-session-delete:hover {
    background:
        #fff5f6;
}


.gx-empty-state {
    display:
        flex;

    align-items:
        center;

    gap:
        14px;

    padding:
        22px;

    border:
        1px dashed
        #c8d8e6;

    border-radius:
        15px;

    background:
        #f8fbfd;

    color:
        var(--gx-text-muted);

    font-size:
        12px;
}


.gx-empty-state strong {
    color:
        var(--gx-text);
}


.gx-empty-state p {
    margin:
        3px 0 0;
}


.gx-empty-icon {
    width:
        38px;

    height:
        38px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        12px;

    background:
        #e6f4fb;

    color:
        var(--inx-blue-600);

    font-size:
        20px;
}


/* ============================================================
   INTERNAL PAGE HEADINGS
   ============================================================ */

.gx-page-heading {
    margin-bottom:
        18px;

    display:
        flex;

    align-items:
        flex-end;

    justify-content:
        space-between;

    gap:
        20px;
}


.gx-page-heading h1 {
    font-size:
        25px;
}


.gx-progress-wrap {
    margin-bottom:
        14px;

    padding:
        12px 14px;

    border:
        1px solid
        var(--gx-border-subtle);

    border-radius:
        16px;

    background:
        rgba(255, 255, 255, .75);
}


/* ============================================================
   CHAT
   ============================================================ */

.gx-chat-panel {
    box-shadow:
        0 25px 60px -38px
        rgba(7, 43, 79, .6);
}


.chat-bubble-assistant {
    border:
        1px solid
        var(--gx-border-subtle);

    background:
        linear-gradient(
            180deg,
            #fbfdff,
            #f1f7fb
        );

    color:
        var(--gx-text);

    box-shadow:
        0 6px 20px -17px
        rgba(12, 50, 83, .5);
}


.chat-bubble-user {
    background:
        linear-gradient(
            135deg,
            #0878c9,
            #0761a9
        );

    color:
        white;

    box-shadow:
        0 9px 25px -15px
        rgba(8, 120, 201, .8);
}


.step-pill {
    border:
        1px solid
        var(--gx-border-subtle);

    border-radius:
        999px;

    background:
        white;

    color:
        var(--gx-text-muted);

    padding:
        5px 8px;

    font-size:
        9px;

    font-weight:
        700;

    letter-spacing:
        .04em;

    text-transform:
        uppercase;
}


.step-pill.active {
    border-color:
        rgba(8, 120, 201, .34);

    background:
        rgba(8, 120, 201, .1);

    color:
        var(--inx-blue-600);
}


.step-pill.done {
    border-color:
        rgba(20, 165, 120, .27);

    background:
        rgba(20, 165, 120, .09);

    color:
        #108d69;
}


/* ============================================================
   INPUTS
   ============================================================ */

input,
textarea,
select {
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}


input:focus,
textarea:focus,
select:focus {
    outline:
        none;

    border-color:
        #2499dc !important;

    box-shadow:
        0 0 0 3px
        rgba(36, 153, 220, .12);
}


/* ============================================================
   FILE OUTPUT
   ============================================================ */

.gx-download-note {
    margin-top:
        18px;

    padding:
        16px 18px;

    border:
        1px solid
        #cae3ef;

    border-radius:
        14px;

    background:
        #edf8fc;

    color:
        #496a7d;

    font-size:
        12px;

    line-height:
        1.6;
}


.gx-download-note strong {
    color:
        #163d55;
}


/* ============================================================
   ALERTS
   ============================================================ */

.gx-alert {
    margin-bottom:
        18px;

    padding:
        13px 15px;

    border-radius:
        14px;

    font-size:
        12px;
}


.gx-alert-success {
    border:
        1px solid #bfe5d5;

    background:
        #edf9f4;

    color:
        #1b7256;
}


.gx-alert-error {
    border:
        1px solid #f0ccd2;

    background:
        #fff3f4;

    color:
        #a22f40;
}


/* ============================================================
   FOOTER
   ============================================================ */

.gx-footer {
    padding:
        0 16px 26px;

    color:
        #78889a;

    font-size:
        10px;

    letter-spacing:
        .04em;
}


.gx-footer-inner {
    width:
        min(1180px, 100%);

    margin:
        0 auto;

    display:
        flex;

    justify-content:
        center;

    gap:
        8px;
}


.gx-footer-separator {
    opacity:
        .45;
}


/* ============================================================
   CHAT MARKDOWN
   ============================================================ */

[x-cloak] {
    display:
        none !important;
}


.prose-chat strong {
    font-weight:
        700;
}


.prose-chat code {
    padding:
        .1em .35em;

    border-radius:
        .3em;

    background:
        rgba(16, 35, 61, .06);

    font-size:
        .85em;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {

    .gx-hero {
        grid-template-columns:
            1fr;

        padding:
            38px 30px;
    }

    .gx-hero-side {
        max-width:
            620px;
    }

    .gx-intro-grid {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 640px) {

    .gx-header-inner,
    .gx-main {
        width:
            min(100% - 24px, 1180px);
    }

    .gx-header-inner {
        min-height:
            68px;
    }

    .gx-brand-subtitle,
    .gx-secure-badge {
        display:
            none;
    }

    .gx-header-actions {
        gap:
            10px;
    }

    .gx-hero {
        padding:
            30px 22px;

        border-radius:
            22px;
    }

    .gx-hero h1 {
        font-size:
            2.25rem;
    }

    .gx-output-card {
        padding:
            18px;
    }

    .gx-main {
        padding-top:
            22px;
    }

    .gx-sessions {
        padding:
            20px;
    }

    .gx-sessions-header {
        flex-direction:
            column;
    }

    .gx-session-main {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .gx-page-heading {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

}
