/* =============================================
   PARTNER ECOSYSTEM SECTION
   ============================================= */

.partner-ecosystem {
    background-color: #ffffff;
    padding: 80px 20px;
    position: relative;
}

.partner-ecosystem-container {
    max-width: 1200px;
    margin: 0 auto;
}

.partner-ecosystem-title {
    font-family: 'Archia', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 2.25rem;
    color: #000000;
    margin: 0 0 48px 0;
    padding-bottom: 18px;
    position: relative;
    line-height: 1.2;
}

.partner-ecosystem-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #01e55f;
}

/* =============================================
   PARTNERSHIP TIERS
   ============================================= */

.partnership-tiers {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.partnership-tier {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 2px 4px 15px 0px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.tier-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    border-radius: 10px 0 0 10px;
}

.tier-content {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: start;
}

/* Left column: tier info */
.tier-info {
    display: flex;
    flex-direction: column;
}

.tier-name {
    font-family: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #1e1e23;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.tier-description {
    font-family: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #1e1e23;
    line-height: 1.5;
    margin: 0 0 28px 0;
}

.tier-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #01e55f;
    color: #1e1e23;
    font-family: 'Archia', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
    max-width: 220px;
    width: 100%;
    line-height: 1;
}

.tier-cta:hover {
    background: #00cc54;
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(1, 229, 95, 0.3);
}

/* Right column: logo grids */
.tier-logos {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.logo-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.logo-section-label {
    font-family: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: #b4b4b4;
    margin: 0;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 14px;
}

/* =============================================
   LOGO BOX
   Both <div> and <a> variants share the same look.
   --linked adds pointer + slightly stronger hover.
   ============================================= */

.logo-box {
    background: #fdfeff;
    border-radius: 8px;
    box-shadow: 2px 4px 15px 0px rgba(0, 0, 0, 0.06);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Reset anchor defaults so <a class="logo-box"> matches <div class="logo-box"> */
    text-decoration: none;
    color: inherit;
}

.logo-box:hover {
    transform: translateY(-2px);
    box-shadow: 2px 6px 20px 0px rgba(0, 0, 0, 0.1);
}

/* Stronger affordance for clickable logos */
.logo-box--linked {
    cursor: pointer;
}

.logo-box--linked:hover {
    box-shadow: 2px 6px 22px 0px rgba(0, 0, 0, 0.14);
}

.logo-box--linked:focus-visible {
    outline: 2px solid #01e55f;
    outline-offset: 2px;
}

.logo-box img {
    max-width: 100%;
    max-height: 42px;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none; /* Clicks pass through to the parent anchor */
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 1024px) {
    .partner-ecosystem {
        padding: 64px 20px;
    }

    .partner-ecosystem-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .tier-content {
        padding: 32px;
        gap: 36px;
    }

    .logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}

@media (max-width: 900px) {
    .tier-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tier-cta {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .partner-ecosystem {
        padding: 56px 20px;
    }

    .partner-ecosystem-title {
        font-size: 1.75rem;
        margin-bottom: 32px;
    }

    .partnership-tiers {
        gap: 24px;
    }

    .tier-accent {
        width: 5px;
    }

    .tier-content {
        padding: 28px 24px;
        gap: 28px;
    }

    .tier-name {
        font-size: 1.375rem;
    }

    .tier-description {
        font-size: 0.9375rem;
        margin-bottom: 24px;
    }

    .tier-cta {
        font-size: 0.9375rem;
    }

    .logo-section-label {
        font-size: 0.8125rem;
    }

    .logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
        gap: 10px;
    }

    .logo-box {
        min-height: 64px;
        padding: 12px;
    }

    .logo-box img {
        max-height: 36px;
    }
}

@media (max-width: 480px) {
    .partner-ecosystem-title {
        font-size: 1.5rem;
    }

    .tier-content {
        padding: 24px 20px;
    }

    .tier-name {
        font-size: 1.25rem;
    }

    .tier-description {
        font-size: 0.875rem;
    }

    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}