/*
 * VIG Live
 * Presentation layer for Galène.
 * Galène functionality remains in mainpage.js.
 */

:root {
    --vig-green: #104D42;
    --vig-green-dark: #105b4d;
    --vig-green-light: #39b49a;

    --vig-dark: #071412;
    --vig-dark-2: #0b1d19;
    --vig-dark-3: #102923;

    --vig-white: #ffffff;
    --vig-text: #e8f0ee;
    --vig-muted: #91a7a1;

    --vig-border: rgba(255,255,255,0.10);
    --vig-panel: rgba(15, 36, 31, 0.88);
}


/* RESET */

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--vig-dark);
    color: var(--vig-text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}


/* PAGE */

.vig-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 78% 30%,
            rgba(27,128,109,0.16),
            transparent 30%
        ),
        radial-gradient(
            circle at 15% 80%,
            rgba(27,128,109,0.08),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #06110f 0%,
            #091916 48%,
            #071310 100%
        );
}


/* SUBTLE GRID */

.vig-shell::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        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: 60px 60px;

    pointer-events: none;
}


/* HEADER */

.vig-header {
    position: relative;
    z-index: 2;

    width: min(1180px, calc(100% - 48px));
    margin: auto;

    height: 92px;

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

    border-bottom: 1px solid rgba(255,255,255,0.07);
}


.vig-brand {
    display: flex;
    align-items: center;
    gap: 13px;

    color: inherit;
    text-decoration: none;
}


.vig-mark {
    width: 43px;
    height: 43px;

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

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            var(--vig-green-light),
            var(--vig-green-dark)
        );

    color: white;

    font-size: 19px;
    font-weight: 900;

    box-shadow:
        0 10px 35px rgba(27,128,109,0.25);
}


.vig-brand-copy {
    line-height: 1.15;
}


.vig-company {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.1px;
}


.vig-product {
    margin-top: 5px;

    color: #69cdb9;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}


.vig-live-pill {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 8px 13px;

    border: 1px solid rgba(105,205,185,0.16);
    border-radius: 999px;

    background: rgba(27,128,109,0.07);

    color: #8fb3aa;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}


.live-indicator {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #42d7a8;

    box-shadow:
        0 0 0 4px rgba(66,215,168,0.10);
}


/* MAIN */

.vig-main {
    position: relative;
    z-index: 1;

    width: min(1180px, calc(100% - 48px));
    margin: auto;
}


/* HERO */

.hero {
    min-height: calc(100vh - 92px - 80px);

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

    align-items: center;

    gap: 90px;

    padding: 80px 0 100px;
}


/* HERO CONTENT */

.hero-content {
    max-width: 670px;
}


.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #64c9b4;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
}


.hero-eyebrow span {
    width: 28px;
    height: 1px;

    background: #3fa990;
}


.hero h1 {
    margin: 25px 0 27px;

    font-size: clamp(54px, 7vw, 82px);
    line-height: 0.94;

    letter-spacing: -5px;

    font-weight: 300;

    color: #f0f6f4;
}


.hero h1 strong {
    color: #51bba4;
    font-weight: 750;
}


.hero-text {
    max-width: 550px;

    margin: 0;

    color: var(--vig-muted);

    font-size: 17px;
    line-height: 1.7;
}


/* FEATURES */

.hero-features {
    display: flex;
    gap: 30px;

    margin-top: 40px;
}


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


.feature-icon {
    width: 29px;
    height: 29px;

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

    border: 1px solid rgba(81,187,164,0.20);
    border-radius: 8px;

    background: rgba(81,187,164,0.06);

    color: #5bc3ac;

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


.feature strong {
    display: block;

    color: #dbe7e4;

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


.feature small {
    display: block;

    margin-top: 2px;

    color: #718881;

    font-size: 10px;
}


/* JOIN PANEL */

.join-panel {
    position: relative;

    border: 1px solid rgba(91,195,172,0.18);
    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(20,48,41,0.94),
            rgba(8,24,20,0.94)
        );

    box-shadow:
        0 35px 90px rgba(0,0,0,0.42),
        0 0 80px rgba(27,128,109,0.08);

    overflow: hidden;
}


.panel-glow {
    position: absolute;

    width: 220px;
    height: 220px;

    top: -110px;
    right: -80px;

    border-radius: 50%;

    background: rgba(56,180,154,0.12);

    filter: blur(20px);

    pointer-events: none;
}


.join-panel-inner {
    position: relative;
    padding: 36px;
}


.panel-top {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 25px;
}


.panel-icon {
    width: 42px;
    height: 42px;

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

    border-radius: 11px;

    background: rgba(61,190,161,0.12);

    color: #5ac8b0;

    font-size: 20px;
    font-weight: 700;
}


.panel-label {
    color: #639d91;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}


.join-panel h2 {
    margin: 0;

    color: #f0f6f4;

    font-size: 28px;
    letter-spacing: -0.9px;
}


.panel-description {
    margin: 10px 0 29px;

    color: #829992;

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


/* INPUT */

#groupform label {
    display: block;

    margin-bottom: 9px;

    color: #8fa8a1;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}


.input-wrapper {
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 11px;

    background: rgba(0,0,0,0.18);

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}


.input-wrapper:focus-within {
    border-color: rgba(81,187,164,0.65);

    box-shadow:
        0 0 0 4px rgba(81,187,164,0.07);
}


#group {
    width: 100%;

    padding: 14px 15px;

    border: 0;
    outline: 0;

    background: transparent;

    color: #edf6f3;

    font-size: 14px;
}


#group::placeholder {
    color: #50665f;
}


/* BUTTON */

#submitbutton {
    width: 100%;

    min-height: 48px;

    margin-top: 12px;

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

    padding: 0 17px;

    border: 0;
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #3aaa91,
            #187864
        );

    color: white;

    font-size: 13px;
    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(27,128,109,0.18);

    transition:
        transform 0.2s,
        box-shadow 0.2s,
        filter 0.2s;
}


#submitbutton:hover {
    transform: translateY(-1px);

    filter: brightness(1.08);

    box-shadow:
        0 14px 32px rgba(27,128,109,0.28);
}


#submitbutton:active {
    transform: translateY(0);
}


#submitbutton:disabled {
    opacity: 0.55;
    cursor: wait;
}


#submitbutton b {
    font-size: 18px;
}


/* ERROR */

.error-message {
    min-height: 17px;

    margin: 9px 1px 0;

    color: #f17e72;

    font-size: 11px;
    font-weight: 600;
}


/* SECURE */

.secure-line {
    display: flex;
    align-items: center;

    margin-top: 23px;

    color: #607871;

    font-size: 10px;
}


.secure-dot {
    width: 6px;
    height: 6px;

    margin-right: 7px;

    border-radius: 50%;

    background: #42d7a8;

    box-shadow:
        0 0 0 4px rgba(66,215,168,0.07);
}


/* DECORATIVE NETWORK */

.network-line {
    position: absolute;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(62,174,151,0.22),
            transparent
        );

    pointer-events: none;
}


.network-one {
    width: 480px;

    right: -100px;
    top: 27%;
}


.network-two {
    width: 350px;

    left: -100px;
    bottom: 22%;
}


/* PUBLIC GROUPS */

.public-section {
    padding: 10px 0 60px;
}


.nogroups {
    display: none;
}


.public-heading {
    margin-bottom: 18px;
}


.public-heading span {
    color: #5dbca7;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}


.public-heading h2 {
    margin: 6px 0 0;

    color: #e5efec;

    font-size: 22px;
    letter-spacing: -0.5px;
}


.public-table-wrapper {
    overflow: hidden;

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;

    background: rgba(255,255,255,0.025);
}


#public-groups-table {
    width: 100%;

    border-collapse: collapse;
}


#public-groups-table tr:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}


#public-groups-table td {
    padding: 15px 17px;

    color: #829992;

    font-size: 12px;
}


#public-groups-table a {
    color: #5dc5ae;

    font-weight: 700;
    text-decoration: none;
}


#public-groups-table a:hover {
    color: #8ae1cf;
}


/* FOOTER */

.vig-footer {
    position: relative;
    z-index: 2;

    width: min(1180px, calc(100% - 48px));

    margin: auto;

    min-height: 70px;

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

    border-top: 1px solid rgba(255,255,255,0.07);

    color: #566c65;

    font-size: 10px;
}


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


.footer-brand strong {
    color: #a4bbb5;

    font-size: 11px;
}


.footer-meta {
    display: flex;
    align-items: center;
    gap: 9px;
}


.footer-dot {
    opacity: 0.45;
}


.vig-footer a {
    color: #607871;

    text-decoration: none;
}


.vig-footer a:hover {
    color: #70c8b5;
}


/* TABLET */

@media (max-width: 900px) {

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

        gap: 55px;

        padding-top: 65px;
    }

    .hero-content {
        max-width: 700px;
    }

    .join-panel {
        width: min(100%, 500px);
    }
}


/* MOBILE */

@media (max-width: 600px) {

    .vig-header,
    .vig-main,
    .vig-footer {
        width: calc(100% - 28px);
    }


    .vig-header {
        height: 76px;
    }


    .vig-live-pill {
        display: none;
    }


    .hero {
        min-height: auto;

        padding:
            58px 0
            70px;
    }


    .hero h1 {
        margin-top: 21px;

        font-size: clamp(48px, 15vw, 68px);

        letter-spacing: -3.5px;
    }


    .hero-text {
        font-size: 15px;
    }


    .hero-features {
        flex-direction: column;

        gap: 14px;

        margin-top: 30px;
    }


    .join-panel-inner {
        padding: 27px 23px;
    }


    .join-panel h2 {
        font-size: 25px;
    }


    .vig-footer {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;

        padding: 20px 0;
    }


    .network-line {
        display: none;
    }
}
