/* ========================================
   Enerinno cinematic homepage
======================================== */

.home-body {
    background: #080a0d;
}

.home-body .page-content {
    min-height: 0;
    overflow: hidden;
}

.cinematic-home {
    width: 100%;
    background: #080a0d;
}

.cinematic-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 760px;
    overflow: hidden;
    scroll-margin-top: 78px;
    color: #ffffff;
    background: #11151b;
}

.panel-background {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.002);
}

.panel-shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.panel-shade-light {
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.99) 0%,
            rgba(255, 255, 255, 0.94) 32%,
            rgba(255, 255, 255, 0.65) 50%,
            rgba(255, 255, 255, 0.06) 76%
        );
}

.panel-shade-left {
    background:
        linear-gradient(
            90deg,
            rgba(4, 6, 9, 0.94) 0%,
            rgba(4, 6, 9, 0.79) 39%,
            rgba(4, 6, 9, 0.20) 70%,
            rgba(4, 6, 9, 0.08) 100%
        );
}

.panel-shade-right {
    background:
        linear-gradient(
            90deg,
            rgba(4, 6, 9, 0.12) 0%,
            rgba(4, 6, 9, 0.28) 45%,
            rgba(4, 6, 9, 0.88) 72%,
            rgba(4, 6, 9, 0.97) 100%
        );
}

.panel-container {
    width: min(1400px, calc(100% - 80px));
    margin: 0 auto;
}

.panel-content {
    position: relative;
    z-index: 1;
    width: min(680px, 55%);
    padding: 92px 0;
}

.panel-content-right {
    margin-right: 0;
    margin-left: auto;
}

.panel-label {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #ff6a35;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.panel-label::before {
    width: 25px;
    height: 2px;
    background: #ff4f12;
    content: "";
}

.panel-content h1,
.panel-content h2 {
    margin: 20px 0 0;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-weight: 650;
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.panel-content h1 {
    max-width: 760px;
    font-size: clamp(38px, 3.6vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.panel-content h1 span {
    color: #ff4f12;
}

.panel-content h2 {
    max-width: 610px;
    font-size: clamp(34px, 3.5vw, 48px);
}

.panel-content > p {
    max-width: 610px;
    margin: 23px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    line-height: 1.75;
}

.panel-content-dark {
    color: #202735;
}

.panel-content-dark > p {
    color: #5f6978;
}

.panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 31px;
}

.panel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 49px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease,
        color 0.2s ease, transform 0.2s ease;
}

.panel-button:hover {
    transform: translateY(-2px);
}

.panel-button-orange,
.panel-button-orange:visited {
    border-color: #ff4f12;
    color: #ffffff;
    background: #ff4f12;
}

.panel-button-orange:hover {
    border-color: #df3d00;
    color: #ffffff;
    background: #df3d00;
}

.panel-button-outline-dark,
.panel-button-outline-dark:visited {
    border-color: #737d8a;
    color: #202735;
    background: rgba(255, 255, 255, 0.64);
}

.panel-button-outline-dark:hover {
    border-color: #ff4f12;
    color: #df3d00;
    background: #ffffff;
}

.panel-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    color: #697382;
    font-size: 12px;
}

.panel-trust span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid #ffb499;
    border-radius: 50%;
    color: #ff4f12;
    font-size: 10px;
}

.panel-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 38px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(12px);
}

.panel-feature-grid article {
    min-height: 135px;
    padding: 20px;
    background: rgba(5, 8, 12, 0.69);
}

.panel-feature-grid article > span,
.application-list article > span {
    color: #ff6a35;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.panel-feature-grid h3,
.application-list h3 {
    margin: 9px 0 6px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 650;
}

.panel-feature-grid p,
.application-list p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    line-height: 1.55;
}

.application-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 36px;
}

.application-list article {
    display: flex;
    gap: 14px;
    min-height: 112px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: rgba(6, 8, 12, 0.66);
    backdrop-filter: blur(10px);
}

.application-list h3 {
    margin-top: 0;
}

.integration-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    max-width: 560px;
    margin-top: 34px;
}

.integration-list span {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 5px;
    background: rgba(5, 8, 12, 0.64);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 650;
}

.integration-list span::before {
    width: 6px;
    height: 6px;
    margin-right: 10px;
    border-radius: 50%;
    background: #ff4f12;
    box-shadow: 0 0 0 4px rgba(255, 79, 18, 0.16);
    content: "";
}

.integration-action {
    margin-top: 28px;
}

@media (max-width: 900px) {
    .cinematic-panel {
        min-height: 720px;
    }

    .panel-container {
        width: min(100% - 44px, 1400px);
    }

    .panel-content {
        width: min(650px, 75%);
    }

    .panel-shade-right {
        background: rgba(4, 6, 9, 0.72);
    }

    .panel-content-right {
        margin-left: 0;
    }
}

@media (max-width: 650px) {
    .cinematic-panel {
        align-items: flex-end;
        min-height: 760px;
    }

    .panel-container.panel-content,
    .panel-container.panel-content-right {
        width: calc(100% - 28px);
        margin-right: 14px;
        margin-left: 14px;
    }

    .panel-container {
        width: min(100% - 28px, 1400px);
    }

    .panel-content {
        width: 100%;
        padding: 90px 0 55px;
    }

    .panel-shade-light {
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.18),
            rgba(255, 255, 255, 0.92) 48%,
            #ffffff 100%
        );
    }

    .panel-shade-left,
    .panel-shade-right {
        background: linear-gradient(
            to bottom,
            rgba(4, 6, 9, 0.14),
            rgba(4, 6, 9, 0.80) 43%,
            rgba(4, 6, 9, 0.98) 100%
        );
    }

    .panel-content h1 {
        font-size: clamp(38px, 11vw, 48px);
    }

    .panel-content h2 {
        font-size: clamp(31px, 9vw, 40px);
    }

    .panel-content > p {
        font-size: 14px;
    }

    .panel-actions,
    .panel-feature-grid,
    .application-list,
    .integration-list {
        grid-template-columns: 1fr;
    }

    .panel-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .panel-button {
        width: 100%;
    }

    .panel-feature-grid article {
        min-height: 105px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .panel-button {
        transition: none;
    }

    .panel-button:hover {
        transform: none;
    }
}

/* ========================================
   Align cinematic content near page edges
======================================== */

.panel-container.panel-content {
    width: min(760px, calc(100% - 80px));
    margin-right: 0;
    margin-left: clamp(40px, 5vw, 100px);
}

/* Application section remains on the right */
.panel-container.panel-content-right {
    margin-right: clamp(40px, 5vw, 100px);
    margin-left: auto;
}

/* Ensure headings remain visible on dark backgrounds */
.panel-content-light,
.panel-content-light h1,
.panel-content-light h2,
.panel-content-light h3 {
    color: #ffffff;
}

/* First section uses dark text */
.panel-content-dark,
.panel-content-dark h1,
.panel-content-dark h2,
.panel-content-dark h3 {
    color: #202735;
}

/* Keep the orange part of the first heading */
.panel-content-dark h1 span {
    color: #ff4f12;
}


