/* Features Section */
.features-section {
    position: relative;
    z-index: 10;
    background-color: #FDFAF1;
    color: #171923;
    width: 100%;
    overflow: hidden;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.45);
}

.features-section-header {
    width: 100%;
    text-align: center;
    margin-bottom: 48px;
    padding: 0 24px;
}

.features-main-title {
    font-size: 2.2rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    color: #171923;
    line-height: 1.4;
}

.features-container {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    align-items: flex-start;
}

.features-empty-space {
    width: 5vw;
    flex-shrink: 0;
}

.features-content {
    display: flex;
    flex-wrap: nowrap;
    gap: 36px;
    padding-right: 5vw;
}

/* Make stat cards inside features match the feature-card size and stack content */
.features-container .stat-card {
    width: 408px;
    min-height: 420px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 44px;
    padding: 54px 40px 38px;
    background: #FFFFFF;
    border-radius: 32px;
    box-shadow: 0 20px 20px rgba(42, 67, 86, 0.08);
}

.features-container .stat-content-wrapper {
    display: block;
}

.features-container .stat-value {
    display: flex;
    align-items: flex-start;
    width: 100%;
    color: #EA7690;
    background: linear-gradient(137deg, #F28FA4 0%, #E8708B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    overflow: visible;
}

.features-container .stat-num-part1 {
    font-family: 'Comfortaa', sans-serif;
    font-size: 8.2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    -webkit-text-fill-color: transparent;
}

.features-container .stat-percent {
    display: inline-block;
    flex: 0 0 auto;
    margin-left: 8px;
    padding-top: 4px;
    font-family: 'Comfortaa', sans-serif;
    font-size: 4.6rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    -webkit-text-fill-color: transparent;
}

.features-container .stat-value--wide .stat-num-part1 {
    font-size: 7.35rem;
}

.features-container .stat-value--wide .stat-percent {
    font-size: 4rem;
}

.features-container .stat-text {
    width: 100%;
    margin-top: 0;
    font-size: 1.18rem;
    line-height: 1.45;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    color: #4B5563;
    max-width: none;
}

.features-container .stat-text span {
    color: #EA7690;
}

.pin-wrapper .homes-section {
    grid-area: 1 / 1;
    opacity: 0;
    pointer-events: none;
}

.feature-card {
    width: 460px;
    height: 540px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background-color: #F0F0F0;
    /* placeholder fallback */
}

.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    object-position: center 12%;
}

.glass-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 24px;
    color: #FFFFFF;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.glass-title {
    font-size: 3.5rem;
    font-weight: 500;
    margin: 0 0 12px 0;
    font-family: 'DM Sans', sans-serif;
    line-height: 1;
}

.glass-title.text-title {
    font-size: 1.75rem;
    line-height: 1.2;
}

.glass-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 1024px) {
    .features-empty-space {
        width: 10vw;
    }

    .features-content {
        gap: 24px;
    }

    .feature-card {
        width: 320px;
        height: 480px;
    }

    .features-main-title {
        font-size: 1.75rem;
    }

    .features-section-header {
        margin-bottom: 32px;
    }

    .glass-title {
        font-size: 2.5rem;
    }

    .glass-title.text-title {
        font-size: 1.5rem;
    }
}

/* Second Features Section */
/* Features Section */
.second-features-section {
    position: relative;
    z-index: 10;
    background-color: #FDFAF1;
    color: #171923;
    width: 100%;
    overflow: hidden;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.second-features-section-header {
    width: 100%;
    text-align: center;
    margin-bottom: 70px;
    padding: 0 24px;
}

.second-features-main-title {
    font-size: 1.55rem;
    font-weight: 500;
    font-family: 'Comfortaa', sans-serif;
    color: #171923;
    line-height: 1.35;
}

.second-features-container {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
}

.second-features-empty-space {
    width: 35vw;
    flex-shrink: 0;
}

.second-features-content {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    width: min(1010px, calc(100vw - 172px));
    padding: 0;
}

.second-feature-card {
    width: calc((100% - 60px) / 3);
    min-width: 0;
    height: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 0;
    overflow: visible;
    background-color: transparent;
}

.second-card-video,
.second-card-media {
    width: 100%;
    height: 302px;
    object-fit: cover;
    display: block;
    position: relative;
    object-position: center center;
    border-radius: 14px;
    background-color: #F0F0F0;
}

.second-card-copy,
.second-glass-card {
    position: static;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 30px 16px 0;
    color: #171923;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.second-glass-title {
    font-size: 3.5rem;
    font-weight: 500;
    margin: 0 0 12px 0;
    font-family: 'DM Sans', sans-serif;
    line-height: 1;
}

.second-glass-heading {
    font-size: 1.9rem;
    font-weight: 500;
    margin: 0 0 16px 0;
    font-family: 'Comfortaa', sans-serif;
    line-height: 0.98;
    color: #171923;
}

.second-glass-desc {
    font-size: 1rem;
    color: #171923;
    line-height: 1.45;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
}

.second-pin-wrapper #product-section {
    grid-area: 1 / 1;
    opacity: 0;
    pointer-events: none;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 1024px) {
    .second-features-empty-space {
        width: 10vw;
    }

    .second-features-content {
        gap: 24px;
        width: min(900px, calc(100vw - 64px));
    }

    .second-feature-card {
        width: calc((100% - 48px) / 3);
        height: auto;
    }

    .second-card-video {
        height: 300px;
    }

    .second-card-media {
        height: 240px;
    }

    .second-features-main-title {
        font-size: 1.75rem;
    }

    .second-features-section-header {
        margin-bottom: 32px;
    }

    .second-glass-title {
        font-size: 2.5rem;
    }

    .second-glass-heading {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .pin-wrapper,
    .second-pin-wrapper {
        display: block !important;
    }

    .features-section,
    .second-features-section {
        height: auto;
        min-height: auto;
        overflow: visible;
        padding: 80px 20px;
        box-shadow: none;
    }

    .features-section-header,
    .second-features-section-header {
        margin-bottom: 32px;
        padding: 0;
    }

    .features-main-title,
    .second-features-main-title {
        font-size: 1.85rem;
        line-height: 1.25;
    }

    .features-container,
    .second-features-container {
        display: block;
        width: 100%;
        transform: none !important;
    }

    .features-empty-space,
    .second-features-empty-space {
        display: none;
    }

    .features-content,
    .second-features-content {
        display: flex;
        flex-direction: column;
        gap: 24px;
        width: 100%;
        padding: 0;
        transform: none !important;
    }

    .features-container .stat-card {
        width: 100%;
        min-height: auto;
        padding: 40px 28px 32px;
        border-radius: 24px;
        gap: 32px;
    }

    .features-container .stat-num-part1 {
        font-size: 6.3rem;
    }

    .features-container .stat-percent {
        font-size: 3.3rem;
    }

    .features-container .stat-value--wide .stat-num-part1 {
        font-size: 5.45rem;
    }

    .features-container .stat-value--wide .stat-percent {
        font-size: 3rem;
    }

    .features-container .stat-text {
        font-size: 1.12rem;
        line-height: 1.45;
    }

    .pin-wrapper .homes-section,
    .second-pin-wrapper #product-section {
        grid-area: auto;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .second-feature-card {
        width: 100%;
    }

    .second-card-video,
    .second-card-media {
        height: auto;
        aspect-ratio: 1.05 / 1;
    }

    .second-card-copy,
    .second-glass-card {
        padding: 24px 0 8px;
    }

    .second-glass-heading {
        font-size: 1.75rem;
    }

    .second-glass-desc {
        font-size: 1rem;
    }
}
