:root {
    color-scheme: dark;
    --bg: #100b1d;
    --surface: #1b182b;
    --edge: #3f3453;
    --text: #fbf7ff;
    --muted: #ccc3da;
    --accent: #d596ff;
    --primary: #7324ba;
    font: 16px/1.5 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

* { box-sizing: border-box; }

body { min-width: 0; margin: 0; }
h1, h2, p { margin: 0; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: #ecdfff; }
button, input { color: inherit; font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.connect-web {
    display: grid;
    grid-template-columns: minmax(370px, 36.6fr) minmax(0, 63.4fr);
    min-height: 100vh;
    min-height: 100svh;
    background: #0b0814;
}

.connect-web-panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: clamp(30px, 5.25vw, 92px) clamp(27px, 3.6vw, 66px);
    border: 1px solid #453258;
    border-left: 0;
    border-radius: 0 56px 56px 0;
    background: radial-gradient(ellipse at 0 0, #5a1b8173, transparent 25%),
        radial-gradient(ellipse at 0 100%, #791bc458, transparent 22%),
        linear-gradient(156deg, #151023, #0e0b18 64%, #151022);
    overflow: hidden;
}

.connect-web-panel::before,
.connect-web-panel::after {
    position: absolute;
    width: 100px;
    height: 160px;
    border-radius: 30px;
    pointer-events: none;
    content: "";
}

.connect-web-panel::before {
    top: -74px;
    left: -46px;
    border-right: 1px solid #ac46f1;
    background: #5e1f8c30;
    box-shadow: 5px 0 30px #b648f865;
    transform: rotate(27deg);
}

.connect-web-panel::after {
    bottom: -96px;
    left: -54px;
    border-right: 2px solid #e1a2ff;
    background: #6820a247;
    box-shadow: 3px 0 18px #b648f8, inset -4px 0 13px #8c35e7;
    transform: rotate(-29deg);
}

.connect-web-card { width: min(100%, 440px); }

.connect-web-brand {
    display: block;
    width: min(100%, 385px);
    margin: 0 auto clamp(20px, 3vh, 37px);
    text-decoration: none;
}

.connect-web-brand .connect-brand-art { width: 100%; }

.connect-web-eyebrow {
    display: flex;
    align-items: center;
    gap: clamp(6px, .8vw, 13px);
    margin-bottom: clamp(25px, 3.8vh, 44px);
    color: #f4eaff;
    font-size: clamp(.65rem, .9vw, .94rem);
    font-weight: 760;
    letter-spacing: .22em;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
}

.connect-web-eyebrow::before,
.connect-web-eyebrow::after {
    flex: 1;
    height: 1px;
    background: #ca50f8;
    box-shadow: 0 0 8px #ab40dc;
    content: "";
}

.connect-web-card h1 {
    font-size: clamp(1.95rem, 3.16vw, 3.25rem);
    font-weight: 820;
    line-height: 1.05;
    letter-spacing: -.049em;
}

.connect-web-heading-name { display: block; }
.connect-web-gradient { color: #d376ff; }

@supports (-webkit-background-clip: text) or (background-clip: text) {
    .connect-web-gradient {
        background: linear-gradient(140deg, #c573ff, #d65aff 64%, #bd42ef);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

@media (forced-colors: active) {
    .connect-web-gradient { background: none; color: currentColor; }
}

.connect-web-intro {
    margin-top: 15px;
    color: var(--muted);
    font-size: clamp(.92rem, 1.2vw, 1.15rem);
    line-height: 1.45;
}

.connect-web-form {
    display: grid;
    gap: 12px;
    margin-top: clamp(20px, 3vh, 27px);
}

.connect-web-name-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.connect-web-field {
    display: grid;
    gap: 5px;
    font-size: .87rem;
    font-weight: 620;
}

.connect-web-field input {
    width: 100%;
    min-height: 49px;
    padding: 11px 13px;
    border: 1px solid var(--edge);
    border-radius: 13px;
    background: var(--surface);
    font-size: 1rem;
    font-weight: 450;
}

.connect-web-field input:hover { border-color: #675678; }
.connect-web-field input:focus { border-color: var(--accent); }
.connect-web-field input::placeholder { color: var(--muted); }
.connect-web-field small { color: var(--muted); font-size: .78rem; font-weight: 450; }

.connect-web-icon {
    flex: none;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.connect-web-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.connect-web-login-field { position: relative; }

.connect-web-login-field .connect-web-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    pointer-events: none;
}

.connect-web-login-field input { min-height: 54px; padding-left: 53px; }
.connect-web-login > .connect-web-text-action { justify-self: end; margin: 4px 0 10px; }

.connect-web-button {
    display: inline-flex;
    gap: 10px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid #ac65ef;
    border-radius: 16px;
    background: linear-gradient(165deg, #9b48df, var(--primary) 63%, #641ba9);
    box-shadow: inset 0 1px #df9fff48;
    color: #fff;
    font-size: 1.04rem;
    font-weight: 740;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.connect-web-button:hover { background: linear-gradient(165deg, #a15ade, #7f34c4); color: #fff; }
.connect-web-button.is-secondary { background: #161121; border-color: #d695ff; box-shadow: 0 0 0 3px #9a46d321; }
.connect-web-button.is-secondary:hover { background: #241735; border-color: #ebc8ff; }
.connect-web-form > .connect-web-button { margin-top: 2px; }

.connect-web-join { display: grid; gap: 12px; margin-top: 13px; }

.connect-web-join p { display: flex; align-items: center; gap: 18px; text-align: center; }

.connect-web-join p::before,
.connect-web-join p::after { flex: 1; height: 1px; background: var(--edge); content: ""; }

.connect-web-text-action {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: .88rem;
    font-weight: 620;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: .18em;
    cursor: pointer;
}

.connect-web-text-action:hover { color: #ecdfff; }

.connect-web-alternate {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 7px;
    align-items: baseline;
    margin-top: 19px;
    color: var(--muted);
    font-size: .88rem;
}

.connect-web-alternate a { font-weight: 670; }

.connect-web-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    margin-top: clamp(22px, 3.5vh, 38px);
    font-size: .79rem;
}

.connect-web-footer a { color: var(--muted); text-decoration: none; }
.connect-web-footer a:hover { color: var(--text); text-decoration: underline; }

.connect-web-message {
    margin-top: 17px;
    padding: 9px 12px;
    border: 1px solid #624487;
    border-radius: 9px;
    background: #2a1d3e;
    font-size: .85rem;
    overflow-wrap: anywhere;
}

.connect-web-message.is-error {
    border-color: #8a5066;
    background: #381e2b;
    color: #ffd7e4;
}

.connect-web-check-email strong { color: var(--text); overflow-wrap: anywhere; }

.connect-web-account {
    margin: 20px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--edge);
    border-radius: 9px;
    background: var(--surface);
    overflow-wrap: anywhere;
}

.connect-web-account dt { color: var(--muted); font-size: .79rem; }
.connect-web-account dd { margin: 3px 0 0; font-weight: 620; }

.connect-web-policy-links {
    display: grid;
    gap: 1px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--edge);
    border-radius: 11px;
    background: var(--edge);
    list-style: none;
    overflow: hidden;
}

.connect-web-policy-links a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 13px;
    background: var(--surface);
    font-size: .9rem;
    font-weight: 620;
    text-decoration: none;
}

.connect-web-policy-links a:hover { background: #211a30; text-decoration: underline; }
.connect-web-policy-links a:focus-visible { outline-offset: -3px; }

.connect-web-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 30px;
    color: var(--text);
    font-size: .9rem;
    cursor: pointer;
}

.connect-web-checkbox input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.connect-web-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    isolation: isolate;
    gap: clamp(22px, 16vh, 180px);
    min-width: 0;
    overflow: hidden;
    padding: clamp(48px, 14vh, 154px) clamp(28px, 4.2vw, 75px) clamp(50px, 10vh, 110px);
    background: radial-gradient(ellipse at 63% 35%, #302056, #19132d 64%, #101021);
}

.connect-web-hero > img,
.connect-web-hero::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.connect-web-hero > img {
    z-index: -2;
    object-fit: cover;
    object-position: 60% center;
}

.connect-web-hero::after {
    z-index: -1;
    background: linear-gradient(0deg, #0a0718f5 0, #110a217a 19%, transparent 42%),
        linear-gradient(130deg, #080b1dda, #080c1d55 40%, transparent 67%);
    content: "";
}

.connect-web-hero::before {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 28px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #8820aa00, #a938f04a 43%, #c467f5 87%, #823cb1 100%);
    box-shadow: 0 0 16px #b149e870;
    content: "";
    pointer-events: none;
}

.connect-web-hero-copy {
    max-width: 730px;
    text-shadow: 0 2px 22px #090b2080;
}

.connect-web-hero-copy h2 {
    font-size: clamp(2.4rem, 4.15vw, 4.8rem);
    font-weight: 830;
    line-height: 1.025;
    letter-spacing: -.048em;
}

.connect-web-hero-copy h2 span { display: block; text-shadow: none; }

.connect-web-hero-copy p {
    max-width: 42ch;
    margin-top: 19px;
    color: #ece4f7;
    font-size: clamp(1rem, 1.42vw, 1.35rem);
    line-height: 1.38;
}

.connect-web-topics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    width: min(100%, 585px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.connect-web-topics li {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 8px;
    min-height: 106px;
    padding: 0 clamp(4px, .7vw, 12px);
    font-size: clamp(.75rem, 1.15vw, 1.05rem);
    font-weight: 710;
    line-height: 1.25;
    text-align: center;
    text-shadow: 0 2px 8px #05030b;
}

.connect-web-topics li + li { border-left: 1px solid #d5acf330; }

.connect-web-topics .connect-web-icon {
    width: clamp(43px, 4.2vw, 65px);
    height: auto;
    padding: clamp(8px, 1vw, 13px);
    border: 1px solid #c855f88c;
    border-radius: 19px;
    background: radial-gradient(ellipse at 40% 20%, #4b1a678c, #150d24 75%);
    box-shadow: inset 0 0 16px #be3bf433, 0 4px 20px #900bd760;
    color: #e076ff;
}

@media (max-width: 760px) {
    .connect-web { display: block; }
    .connect-web-hero { display: none; }
    .connect-web-panel {
        align-items: flex-start;
        min-height: 100vh;
        min-height: 100svh;
        padding: max(32px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right))
            max(32px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
        border: 0;
        border-radius: 0;
        background:
            linear-gradient(90deg, #100b1da8, #100b1d3d),
            linear-gradient(180deg, #100b1d4d, var(--bg) clamp(210px, 62vw, 420px)),
            url("/assets/connect-community-cover-20261112.jpg") 65% top / 100% auto no-repeat,
            var(--bg);
    }
    .connect-web-brand { width: min(100%, 290px); margin-bottom: 20px; }
    .connect-web-eyebrow { margin-bottom: 24px; }
    .connect-web-card h1 { font-size: clamp(1.9rem, 7vw, 2.5rem); }
    .connect-web-form { gap: 11px; margin-top: 19px; }
    .connect-web-alternate { margin-top: 15px; }
    .connect-web-footer { margin-top: 22px; }
}

.connect-web-document main {
    max-width: 76ch;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

.connect-web-document main div {
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

