.top-page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 88px;
    color: var(--text-color);
}

.top-hero {
    min-height: 520px;
    display: grid;
    align-items: center;
}

.top-hero-copy {
    min-width: 0;
}

.top-kicker {
    margin: 0 0 18px;
    color: var(--secondary-text-color);
    font-weight: 700;
}

.top-brand {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-brand-logo {
    width: clamp(72px, 14vw, 132px);
    height: clamp(72px, 14vw, 132px);
    flex: 0 0 auto;
    display: block;
    background-color: currentColor;
    mask: url("../resources/archipe_lab_logo_sq.png") center / contain no-repeat;
    -webkit-mask: url("../resources/archipe_lab_logo_sq.png") center / contain no-repeat;
}

.top-brand-name {
    min-width: 0;
    font-family: Montserrat, var(--font), sans-serif;
    font-size: clamp(2.6rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.top-lead {
    max-width: 620px;
    margin: 28px 0 0;
    color: var(--secondary-text-color);
    font-size: 1rem;
    font-weight: 700;
    line-height: 2;
}

.top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.top-primary-action,
.top-primary-action:hover,
.top-primary-action:visited,
.top-primary-action:active,
.top-secondary-action,
.top-secondary-action:hover,
.top-secondary-action:visited,
.top-secondary-action:active{
    min-height: 46px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    font-weight: 800;
}

.top-primary-action,
.top-primary-action:hover,
.top-primary-action:visited,
.top-primary-action:active {
    background: var(--primary-bg-color);
    color: var(--primary-text-color);
}

.top-primary-action.is-discord {
    background: #5865F2;
    color: #fff;
}

.top-secondary-action,
.top-secondary-action:hover,
.top-secondary-action:visited,
.top-secondary-action:active {
    border: 1px solid currentColor;
}

.top-section {
    display: grid;
    gap: 18px;
    padding: 46px 0;
    border-top: 1px solid color-mix(in srgb, var(--text-color) 22%, transparent);
}

.top-section h2 {
    margin: 0;
    padding: 0;
    font-size: 1.3rem;
}

.top-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.top-feature {
    min-width: 0;
    display: grid;
    gap: 10px;
    align-content: start;
}

.top-feature i {
    font-size: 1.4rem;
    color: var(--public-accent-color);
}

.top-feature h3 {
    margin: 0;
    font-size: 1rem;
}

.top-feature p,
.top-notice-section p {
    margin: 0;
    color: var(--secondary-text-color);
    font-weight: 700;
    line-height: 1.9;
}

.top-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-flow li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.top-flow span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-bg-color);
    color: var(--primary-text-color);
    font-weight: 900;
}

.top-flow p {
    margin: 0;
    color: var(--secondary-text-color);
    font-weight: 700;
    line-height: 1.8;
}

.top-notice-section {
    max-width: 840px;
}

@media screen and (max-width: 900px) {
    .top-hero {
        min-height: auto;
        padding: 48px 0;
    }

    .top-feature-grid,
    .top-flow {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 520px) {
    .top-page {
        width: calc(100% - 24px);
        margin-bottom: 64px;
    }

    .top-actions,
    .top-primary-action,
    .top-secondary-action {
        width: 100%;
    }

    .top-brand {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

}
