:root {
    --background: #090c11;
    --background-secondary: #0d1118;

    --panel: rgba(18, 23, 31, 0.94);
    --panel-light: #171d27;
    --panel-hover: #1b2230;

    --border: #29313e;
    --border-light: #364153;

    --text: #f5f7fa;
    --text-secondary: #a9b1bd;
    --text-muted: #778190;

    --accent: #d84c43;
    --accent-hover: #ef6259;
    --accent-dark: #a93631;

    --success: #5cc978;
    --success-background: rgba(92, 201, 120, 0.09);

    --warning: #e1a55b;
    --warning-background: rgba(225, 165, 91, 0.09);

    --info: #6da8dc;
    --info-background: rgba(109, 168, 220, 0.09);

    --shadow:
        0 20px 60px rgba(0, 0, 0, 0.28);

    --small-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2);

    --radius-large: 18px;
    --radius-medium: 12px;
    --radius-small: 8px;
}


/* --------------------------------------------------
   Base
-------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

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

    color: var(--text);

    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(216, 76, 67, 0.13),
            transparent 31rem
        ),
        radial-gradient(
            circle at 90% 15%,
            rgba(109, 168, 220, 0.07),
            transparent 28rem
        ),
        linear-gradient(
            180deg,
            var(--background),
            var(--background-secondary)
        );
}

button,
input,
select {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}


/* --------------------------------------------------
   Overall layout
-------------------------------------------------- */

.page-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.main-content {
    display: grid;
    gap: 28px;
    padding-bottom: 44px;
}


/* --------------------------------------------------
   Header
-------------------------------------------------- */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    min-height: 84px;
    padding: 16px 0;

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

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

.brand-mark {
    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.07em;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-dark)
        );

    box-shadow:
        0 8px 24px rgba(216, 76, 67, 0.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 18px;
    font-weight: 760;
    letter-spacing: -0.02em;
}

.brand-label {
    margin-top: 2px;

    color: var(--text-muted);
    font-size: 12px;
}

.community-badge {
    padding: 8px 12px;

    border: 1px solid var(--border);
    border-radius: 999px;

    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 650;

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


/* --------------------------------------------------
   Hero
-------------------------------------------------- */

.hero-section {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(320px, 0.85fr);
    gap: 54px;
    align-items: center;

    padding: 66px 0 34px;
}

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

.eyebrow {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--accent-hover);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero-section h1 {
    max-width: 670px;
    margin: 0;

    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.01;
    letter-spacing: -0.052em;
}

.hero-copy > p {
    max-width: 630px;
    margin: 24px 0 0;

    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.7;
}

.hero-feature-list {
    display: grid;
    gap: 12px;
}

.hero-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;

    padding: 17px;

    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: var(--radius-medium);

    background-color: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(12px);
}

.feature-icon {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;

    border: 1px solid rgba(216, 76, 67, 0.3);
    border-radius: 10px;

    color: var(--accent-hover);
    font-size: 11px;
    font-weight: 800;

    background-color: rgba(216, 76, 67, 0.08);
}

.hero-feature div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-feature strong {
    font-size: 14px;
}

.hero-feature div span {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}


/* --------------------------------------------------
   Main panels
-------------------------------------------------- */

.panel {
    padding: 30px;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background:
        linear-gradient(
            145deg,
            rgba(24, 30, 40, 0.97),
            rgba(15, 20, 28, 0.97)
        );

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

.section-heading,
.subsection-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.section-heading h2,
.subsection-heading h3 {
    margin: 5px 0 0;

    letter-spacing: -0.025em;
}

.section-heading h2 {
    font-size: 26px;
}

.subsection-heading h3 {
    font-size: 21px;
}

.step-label,
.subsection-label,
.support-label {
    color: var(--accent-hover);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-note,
.legend,
.live-badge {
    padding: 7px 10px;

    border: 1px solid var(--border);
    border-radius: 999px;

    color: var(--text-muted);
    font-size: 11px;
    white-space: nowrap;

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

.live-badge {
    border-color: rgba(92, 201, 120, 0.28);
    color: var(--success);
    background-color: var(--success-background);
}

.section-description {
    max-width: 680px;
    margin: 14px 0 25px;

    color: var(--text-secondary);
    line-height: 1.6;
}


/* --------------------------------------------------
   Forms and controls
-------------------------------------------------- */

.connection-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.search-controls {
    display: grid;
    grid-template-columns:
        minmax(240px, 1fr)
        minmax(220px, 0.75fr)
        auto;
    gap: 16px;
    align-items: end;

    margin-top: 26px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}

input,
select {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;

    border: 1px solid var(--border-light);
    border-radius: var(--radius-small);
    outline: none;

    color: var(--text);

    background-color: #0c1118;

    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background-color 150ms ease;
}

input::placeholder {
    color: #606a78;
}

input:hover,
select:hover {
    border-color: #4b586b;
}

input:focus,
select:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 3px rgba(216, 76, 67, 0.14);
}

select:disabled,
input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.field-hint {
    margin: 0;

    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.5;
}

.primary-button {
    min-height: 46px;
    padding: 0 21px;

    border: 1px solid transparent;
    border-radius: var(--radius-small);

    color: #ffffff;
    font-weight: 750;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-dark)
        );

    box-shadow:
        0 9px 24px rgba(216, 76, 67, 0.18);

    transition:
        transform 150ms ease,
        background-color 150ms ease,
        box-shadow 150ms ease,
        opacity 150ms ease;
}

.primary-button:hover:not(:disabled) {
    transform: translateY(-1px);

    background:
        linear-gradient(
            135deg,
            var(--accent-hover),
            var(--accent)
        );

    box-shadow:
        0 12px 28px rgba(216, 76, 67, 0.27);
}

.primary-button:active:not(:disabled) {
    transform: translateY(0);
}

.primary-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.38;
    box-shadow: none;
}

.connect-button,
.search-button {
    white-space: nowrap;
}


/* --------------------------------------------------
   Status messages
-------------------------------------------------- */

.status-message {
    margin: 18px 0 0;
    padding: 12px 14px;

    border: 1px solid rgba(109, 168, 220, 0.18);
    border-radius: var(--radius-small);

    color: #b9d6ef;
    font-size: 13px;
    line-height: 1.5;

    background-color: var(--info-background);
}

.status-message:empty {
    display: none;
}


/* --------------------------------------------------
   Perks and results sections
-------------------------------------------------- */

.content-section {
    margin-top: 30px;
    padding-top: 28px;

    border-top: 1px solid var(--border);
}

.card-grid {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.perks-grid {
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(235px, 1fr)
        );
}

.results-grid {
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(285px, 1fr)
        );
}

.perk-card,
.result-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: 19px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background:
        linear-gradient(
            145deg,
            var(--panel-light),
            #121821
        );

    box-shadow: var(--small-shadow);

    transition:
        transform 170ms ease,
        border-color 170ms ease,
        background-color 170ms ease,
        opacity 170ms ease;
}

.perk-card:hover,
.result-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-light);
    background-color: var(--panel-hover);
}

.perk-card h4,
.result-card h4 {
    margin: 0 0 12px;

    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.015em;
}

.perk-card p,
.result-card p {
    margin: 5px 0;

    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.55;
}

.perk-card p:last-child {
    margin-top: auto;
    padding-top: 12px;

    color: var(--text-muted);
    font-size: 12px;
    font-weight: 650;
}

.perk-unlocked {
    border-color: rgba(92, 201, 120, 0.58);

    background:
        linear-gradient(
            145deg,
            rgba(92, 201, 120, 0.1),
            #121821
        );

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.22),
        inset 0 0 0 1px rgba(92, 201, 120, 0.08);
}

.perk-unlocked::before {
    content: "Available";

    position: absolute;
    top: 12px;
    right: 12px;

    padding: 4px 7px;

    border-radius: 999px;

    color: var(--success);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;

    background-color: var(--success-background);
}

.perk-locked {
    filter: grayscale(0.65);
    opacity: 0.42;
}

.result-card {
    border-top: 3px solid var(--accent);
}

.result-card .company-link {
    margin-top: auto;
}

.results-status {
    margin-bottom: 2px;
}

.applications-closed {
    color: var(--warning) !important;
}


/* --------------------------------------------------
   Company links
-------------------------------------------------- */

.company-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    margin-top: 15px;
    padding: 0 14px;

    border: 1px solid rgba(109, 168, 220, 0.33);
    border-radius: var(--radius-small);

    color: #b9d9f4;
    font-size: 12px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;

    background-color: rgba(109, 168, 220, 0.08);

    transition:
        border-color 150ms ease,
        color 150ms ease,
        background-color 150ms ease,
        transform 150ms ease;
}

.company-link:hover {
    transform: translateY(-1px);

    border-color: rgba(109, 168, 220, 0.65);
    color: #ffffff;

    background-color: rgba(109, 168, 220, 0.15);
}

.company-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}


/* --------------------------------------------------
   Support panel
-------------------------------------------------- */

.support-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;

    padding: 26px 28px;

    border: 1px solid rgba(216, 76, 67, 0.27);
    border-radius: var(--radius-large);

    background:
        linear-gradient(
            135deg,
            rgba(216, 76, 67, 0.12),
            rgba(18, 23, 31, 0.94) 55%
        );

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

.support-icon {
    display: grid;
    place-items: center;

    width: 52px;
    height: 52px;

    border: 1px solid rgba(216, 76, 67, 0.35);
    border-radius: 15px;

    color: var(--accent-hover);
    font-size: 22px;

    background-color: rgba(216, 76, 67, 0.1);
}

.support-copy h2 {
    margin: 5px 0 8px;

    font-size: 21px;
    letter-spacing: -0.02em;
}

.player-id {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 650;
}

.support-copy p {
    max-width: 710px;
    margin: 0;

    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.support-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 17px;

    border: 1px solid rgba(216, 76, 67, 0.4);
    border-radius: var(--radius-small);

    color: #ffffff;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;

    background-color: rgba(216, 76, 67, 0.13);

    transition:
        transform 150ms ease,
        border-color 150ms ease,
        background-color 150ms ease;
}

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

    border-color: var(--accent-hover);
    background-color: rgba(216, 76, 67, 0.22);
}


/* --------------------------------------------------
   Footer
-------------------------------------------------- */

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;

    padding: 26px 0 34px;

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

    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.6;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--text-secondary);
    font-weight: 700;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent-hover);
}


/* --------------------------------------------------
   Responsive layouts
-------------------------------------------------- */

@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 48px;
    }

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

    .hero-feature {
        flex-direction: column;
    }

    .search-controls {
        grid-template-columns: 1fr 1fr;
    }

    .search-button {
        grid-column: 1 / -1;
    }

    .support-panel {
        grid-template-columns: auto 1fr;
    }

    .support-button {
        grid-column: 1 / -1;
    }
}


@media (max-width: 650px) {
    .page-shell {
        width: min(100% - 24px, 1180px);
    }

    .site-header {
        align-items: flex-start;
    }

    .community-badge {
        display: none;
    }

    .hero-section {
        padding-top: 38px;
    }

    .hero-section h1 {
        font-size: 39px;
    }

    .hero-copy > p {
        font-size: 16px;
    }

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

    .hero-feature {
        flex-direction: row;
    }

    .panel {
        padding: 21px;
        border-radius: 14px;
    }

    .section-heading,
    .subsection-heading {
        flex-direction: column;
        gap: 11px;
    }

    .section-note,
    .legend,
    .live-badge {
        white-space: normal;
    }

    .connection-form,
    .search-controls {
        grid-template-columns: 1fr;
    }

    .connect-button,
    .search-button {
        width: 100%;
    }

    .perks-grid,
    .results-grid {
        grid-template-columns: 1fr;
    }

    .support-panel {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .support-icon {
        width: 44px;
        height: 44px;
    }

    .support-button {
        width: 100%;
    }

    .site-footer {
        flex-direction: column;
        gap: 8px;
    }
}