:root {
    --ln-text-gradient: linear-gradient(90deg, #3a47d5 0%, #00d2ff 100%);
    --ln-button-gradient: linear-gradient(90deg, #4776E6 0%, #8E54E9 100%);
    --font-size-large: 2.5rem;
    --font-size-medium-heading: 1.5rem;
    --font-size-small: 0.9rem;
    --font-size-base: 1rem;
    --font-weight-light: 300;
    --font-weight-bold: 700;
    --font-primary: 'YourPrimaryFont', sans-serif;
    --font-mulish: 'Mulish', sans-serif;
}

/* Container Styles */
.container {
    width: 100%;
    max-width: 1600px;
    /* Increased to better fit 5 cards */
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.header {
    width: 100%;
    padding: 15px 30px;
    text-align: left;
    box-sizing: border-box;
}

.founding-members {
    text-align: center;
    margin-bottom: 50px;
}

.founding-members h2 {
    margin-bottom: 20px;
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-light);
    background: var(--ln-text-color);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.member-list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0 auto 50px;
    box-sizing: border-box;
}

.member-item {
    background-color: #fff;
    padding: 15px 25px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 100px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.member-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ln-text-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.member-item:hover::before {
    opacity: 0.05;
}

.member-item img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
    position: relative;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.member-item:hover img {
    filter: grayscale(0%);
}

/* Cards Container */
.members-scroll-container {
    width: 100%;
    padding-bottom: 40px;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

.members-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 10px;
    box-sizing: border-box;
    width: fit-content;
    min-width: 100%;
    margin: 0 auto;
}

.membership-card {
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 280px;
    max-width: 350px;
    flex-shrink: 0;
    box-sizing: border-box;
    color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.membership-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
}

.membership-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.membership-card:hover::before {
    opacity: 1;
}

.membership-card .popular-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #FFD700;
    color: #000;
    padding: 5px 30px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(45deg);
    width: 120px;
    text-align: center;
}

.title {
    font-size: var(--font-size-subheading);
    font-weight: var(--font-weight-light);
    margin-bottom: 15px;
    font-family: var(--font-mulish);
    letter-spacing: 0.5px;
}

.price {
    font-size: 48px;
    font-weight: var(--font-weight-bold);
    margin: 20px 0;
    font-family: var(--font-mulish);
    position: relative;
    display: inline-block;
}

.price::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
}

.price {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    line-height: 1;
}

.price .period {
    font-size: 0.5em;
    opacity: 0.8;
    margin-bottom: 0.5em;
    font-weight: normal;
}

.description {
    padding-bottom: 20px;
    font-size: var(--font-size-small);
    font-family: var(--font-mulish);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    line-height: 1.5;
}

.benefits {
    list-style-type: none;
    min-height: 200px;
    padding: 0;
    margin: 0 0 25px 0;
}

.benefits li {
    padding: 10px 0 10px 35px;
    position: relative;
    font-family: var(--font-mulish);
    line-height: 1.4;
}

.benefits li:before {
    content: "\2713";
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 5px;
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
}

.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    color: white;
    padding: 14px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-family: var(--font-primary);
    margin-top: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: var(--font-size-base);
    text-align: center;
    width: 100%;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover::before {
    left: 100%;
}

.interest-section {
    text-align: center;
    margin-top: 70px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 16px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.interest-section h3 {
    font-size: var(--font-size-subheading);
    font-weight: var(--font-weight-medium);
    margin-bottom: 20px;
    background: var(--ln-button-color);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.interest-section p {
    font-size: var(--font-size-small);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.interest-section .cta-button {
    display: inline-block;
    margin: 0 auto;
    width: auto;
    padding: 15px 40px;
    background: var(--ln-button-color);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    border: none;
}

/* Membership Card Backgrounds */
.bg-micro {
    background: linear-gradient(-30deg, #0000FF 0%, #ED1C24 200%);
}

.bg-small {
    background: linear-gradient(-35deg, #0000FF 0%, #ED1C24 170%);
}

.bg-medium {
    background: linear-gradient(-35deg, #0000FF 0%, #ED1C24 140%);
}

.bg-large {
    background: linear-gradient(-35deg, #0000FF 0%, #ED1C24 110%);
}

.bg-lifetime {
    background: linear-gradient(-30deg, #4708bd 0%, #bd1261 90%);
}

/* Responsive Adjustments */
@media (max-width: 1400px) {
    .membership-card {
        width: calc(25% - 12px);
        /* 4 cards */
    }
}

@media (max-width: 1100px) {
    .membership-card {
        width: calc(33.333% - 12px);
        /* 3 cards */
    }
}

@media (max-width: 800px) {
    .membership-card {
        width: calc(50% - 10px);
        /* 2 cards */
    }

    .members-grid {
        justify-content: flex-start;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 576px) {
    .membership-card {
        width: 280px;
        /* Single card scroll */
        min-width: 280px;
    }

    .members-grid {
        justify-content: flex-start;
    }
}

/* Prevent horizontal scroll on desktop */
@media (min-width: 1401px) {
    .members-scroll-container {
        overflow-x: visible;
    }

    .members-grid {
        justify-content: center;
    }
}