:root {
    --bg-blue: #2538d8;
    --bg-blue-soft: #6372f0;
    --card-bg: #eef1ff;
    --card-accent: #ffe9ac;
    --text-main: #0f1328;
    --text-blue: #1e33db;
    --badge-blue: #1830d8;
    --shadow: 0 24px 60px rgba(10, 17, 69, 0.18);
    --radius-card: 22px;
}

.connect-kol-page {
    min-height: 100vh;
    margin: 0;
    font-family: "Inter", sans-serif;
    color: #ffffff;
    padding: 100px 0;
    background:
        radial-gradient(
            circle at left top,
            rgba(16, 32, 156, 0.9) 0%,
            rgba(16, 32, 156, 0) 30%
        ),
        radial-gradient(
            circle at right bottom,
            rgba(16, 32, 156, 0.88) 0%,
            rgba(16, 32, 156, 0) 32%
        ),
        linear-gradient(
            180deg,
            rgba(138, 149, 255, 0.18),
            rgba(37, 56, 216, 0.04)
        ),
        url("../../../images/connect-kol/dot.webp") repeat,
        linear-gradient(180deg, #5969f6 0%, var(--bg-blue) 100%);
}

.connect-kol-page * {
    box-sizing: border-box;
}

.connect-kol-page img {
    display: block;
    max-width: 100%;
}

.page-shell {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 44px 20px 40px;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 100px;
    margin-bottom: 34px;
}

.brand-logo {
    width: min(180px, 42vw);
}

.hero-heading {
    width: min(100%, 720px);
    margin-bottom: 40px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.step-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    min-height: 100%;
    padding: 25px 25px 0;
    border-radius: var(--radius-card);
    background: var(--card-bg);
    color: var(--text-main);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.step-card--accent {
    background: var(--card-accent);
}

.step-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.step-head h2 {
    margin: 0;
    color: var(--text-blue);
    font-size: 32px;
    line-height: 42px;
    font-weight: 600;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--badge-blue);
    color: #ffffff;
    font-size: 32px;
    font-weight: 500;
    flex-shrink: 0;
}

.step-card p {
    margin: 0 0 18px;
    font-size: 28px;
    line-height: 38px;
}

.step-card > img {
    width: 100%;
    margin-top: auto;
    object-fit: contain;
}

.step-card--community {
    position: absolute;
    align-self: start;
    bottom: 20px;
    left: 50%;
    width: calc(100% - 50px);
    min-height: 0;
    aspect-ratio: 399 / 233.809;
    padding: 0;
    border-radius: 20.331px;
    background: #5271ff;
    box-shadow: 0 2.541px 37.359px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    transform: translateX(-50%);
    container-type: inline-size;
}

.community-card__illustration {
    position: absolute;
    top: 7.11%;
    left: 50%;
    width: 50.63%;
    height: 33.08%;
    margin: 0;
    transform: translateX(-50%);
    object-fit: fill;
}

.community-card__copy {
    position: absolute;
    top: 42.92%;
    right: 5.1%;
    left: 5.1%;
    height: 20.1%;
    text-align: center;
}

.community-card__copy h2 {
    margin: 0;
    color: #ffffff;
    font-size: 20.331px;
    line-height: 25px;
    font-weight: 600;
    white-space: nowrap;
}

.community-card__copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15.248px;
    line-height: 21.837px;
    white-space: nowrap;
}

.community-card__button {
    position: absolute;
    top: 69.56%;
    right: 5.1%;
    left: 5.1%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 19.56%;
    border-radius: 10.166px;
    background: #ffda00;
    color: #5271ff;
    font-size: 17.79px;
    line-height: 1.5;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 160ms ease,
        filter 160ms ease,
        box-shadow 160ms ease;
}

.community-card__button:hover {
    filter: brightness(1.04);
    box-shadow: 0 5px 12px rgba(4, 38, 195, 0.2);
    transform: translateY(-2px);
}

.community-card__button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .connect-kol-page {
        padding: 50px 20px;
    }

    .page-shell {
        padding: 28px 16px;
    }

    .hero {
        gap: 50px;
        margin-bottom: 10px;
    }

    .brand-logo {
        width: 132px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step-card {
        padding: 20px 20px 0;
        border-radius: 18px;
    }

    .step-head h2 {
        font-size: 28px;
        line-height: 38px;
    }

    .step-card p {
        font-size: 22px;
        line-height: 32px;
    }

    .step-badge {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .step-card--community {
        width: calc(100% - 40px);
    }

    .community-card__copy h2 {
        font-size: clamp(14px, 5.1cqw, 20.331px);
    }

    .community-card__copy p {
        font-size: clamp(10px, 3.82cqw, 15.248px);
        line-height: 1.43;
    }

    .community-card__button {
        font-size: clamp(13px, 4.46vw, 17.79px);
    }
}

@media (min-width: 768px) {
    .page-shell {
        padding-left: 36px;
        padding-right: 36px;
    }
}
