/* Smart Home Page Styles */
.smart-home-page {
    width: 100%;
    background: #000;
    color: #fff;
    padding-bottom: 120px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    color: #fff;
    text-align: center;
    margin-bottom: 26px;
}

.section-desc {
    text-align: center;
    margin-bottom: 60px;
    color: #fff;
}

/* ========== Main Banner ========== */
.main-banner {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px);
    min-height: 700px;
    overflow: hidden;
}

.main-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.main-banner .banner-bg img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.main-banner .banner-content {
    position: absolute;
    top: 200px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    max-width: 1200px;
}

.main-banner .banner-text {
    color: #fff;
}

.main-banner .banner-title {
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    white-space: pre-line;
    margin-bottom: 20px;
}

.main-banner .banner-subtitle {
    line-height: 1.5;
    margin-bottom: 64px;
    color: #fff;
}

.main-banner .banner-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.main-banner .banner-btn {
    padding: 10px 26px;
    color: #fff;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 100px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    min-width: 200px;
}

.main-banner .banner-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

/* Banner Bottom Cards - annotation style */
.banner-bottom-cards {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 100px;
}

.banner-cards-animate {
    animation: fadeUpIn 1s ease-out 1s both;
}

@keyframes fadeUpIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    padding: 0;
}

.banner-card-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.banner-card-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.banner-card-text {
    text-align: left;
}

.banner-card-title {
    color: #fff;
    font-weight: 500;
}

/* ========== Media Sections (Power Home / Solar Energy / Dynamic Pricing) ========== */
.media-section {
    padding-top: 180px;
    background: #000;
}

.media-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.media-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    overflow: hiddn;
}

video.media-content {
    object-fit: cover;
}

/* Dynamic Pricing Feature List */
.dynamic-pricing-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    justify-content: space-between;
    margin-bottom: 34px;
}

.dynamic-pricing-section .section-desc {
    margin-bottom: 33px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========== Works With Section ========== */
.works-with-section {
    padding-top: 180px;
    background: #000;
}

.works-with-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.works-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid #646464;
    border-radius: 16px;
    padding: 34px 0;
    max-height: 140px;
}

.works-with-logo img {
    max-width: 500px;
    max-height: 72px;
    object-fit: contain;
}

.works-with-showcase {
    width: 100%;
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
}

.works-with-showcase .showcase-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.works-with-showcase video.showcase-img {
    border-radius: 8px;
}

.works-with-brand-section {
    text-align: center;
}

.brand-section-title {
    margin-top: 80px;
    margin-bottom: 40px;
}

.works-with-brand-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 auto;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    height: 80px;
}

.brand-logo img {
    max-width: 200px;
    max-height: 80px;
    object-fit: contain;
}

.brand-logo:hover img {
    opacity: 0.8;
}

/* ========== Monitor Energy Section ========== */
.monitor-energy-section {
    padding-top: 180px;
    background: #000;
}

.monitor-energy-images {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: nowrap;
}

.monitor-energy-img {
    flex: 0 1 auto;
    width: calc((100% - 48px) / 3);
    min-width: 200px;
    border-radius: 8px;
    overflow: hidden;
}

/* When only 1 or 2 images, don't stretch too wide */
.monitor-energy-img:only-child {
    width: 50%;
    max-width: 590px;
}

.monitor-energy-img:first-child:nth-last-child(2),
.monitor-energy-img:first-child:nth-last-child(2)~.monitor-energy-img {
    width: calc((100% - 24px) / 2);
    max-width: 590px;
}

.monitor-energy-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ========== AI Assistant Section ========== */
.ai-assistant-section {
    padding-top: 180px;
    background: #000;
}

.ai-assistant-img {
    width: 100%;
    text-align: center;
}

.ai-assistant-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
    .main-banner {
        min-height: 700px;
        height: calc(100vh - 60px);
    }

    .banner-bottom-cards {
        gap: 40px;
    }

    .banner-card-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 768px) {
    .main-banner {
        min-height: 600px;
        height: calc(100vh - 60px);
    }

    .main-banner .banner-content {
        max-width: 90%;
        top: 30%;
    }

    .main-banner .banner-subtitle {
        margin-bottom: 32px;
    }

    .main-banner .banner-btn {
        min-width: 200px;
        padding: 12px 24px;
    }

    .section-title {
        margin-bottom: 16px;
    }

    .section-desc {
        margin-bottom: 16px;
    }

    .media-section,
    .works-with-section,
    .monitor-energy-section,
    .ai-assistant-section {
        padding-top: 100px;
    }

    .banner-bottom-cards {
        gap: 24px;
        bottom: 30px;
    }

    .banner-card-icon {
        width: 16px;
        height: 16px;
    }

    .banner-card-icon img {
        width: 16px;
        height: 16px;
    }

    .banner-card-title {
        font-size: 13px;
    }

    .works-with-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .works-with-logo {
        padding: 16px;
    }

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

    .works-with-brand-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .brand-logo {
        padding: 16px 20px;
    }

    .brand-logo img {
        /* height: 22px; */
    }

    .monitor-energy-images {
        flex-wrap: wrap;
        gap: 16px;
    }

    .monitor-energy-img {
        width: calc(50% - 8px);
        min-width: 140px;
    }

    .monitor-energy-img:only-child {
        width: 70%;
    }

    .dynamic-pricing-features {
        gap: 12px 20px;
    }

    .feature-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .main-banner {
        min-height: 500px;
        height: calc(100vh - 60px);
    }

    .main-banner .banner-subtitle {
        margin-bottom: 24px;
    }

    .main-banner .banner-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 180px;
    }

    .media-section,
    .works-with-section,
    .monitor-energy-section,
    .ai-assistant-section {
        padding-top: 60px;
    }

    .banner-bottom-cards {
        bottom: 16px;
        gap: 16px;
    }

    .banner-card-icon {
        width: 28px;
        height: 28px;
    }

    .banner-card-icon img {
        width: 14px;
        height: 14px;
    }

    .banner-card-title {
        font-size: 11px;
    }

    .monitor-energy-images {
        flex-direction: column;
        align-items: center;
    }

    .monitor-energy-img {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .monitor-energy-img:only-child,
    .monitor-energy-img:first-child:nth-last-child(2),
    .monitor-energy-img:first-child:nth-last-child(2)~.monitor-energy-img {
        width: 100%;
        max-width: 100%;
    }

    .works-with-logos {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .works-with-logo {
        padding: 16px;
    }

    .works-with-logo img {
        max-height: 32px;
    }

    .works-with-brand-logos {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .brand-logo {
        padding: 14px 16px;
    }

    .brand-logo img {
        height: 18px;
    }
}