/* =========================================================
   SITESA HOMEPAGE V3
   Scope: Homepage public only
   ========================================================= */

/* =========================
   GLOBAL HOMEPAGE
   ========================= */

body {
    overflow-x: hidden;
}

main {
    background: #fff;
}

section {
    position: relative;
}

.section-head {
    margin-bottom: 32px;
}

.section-title {
    max-width: 720px;
    margin-bottom: 12px;
}

.section-copy {
    max-width: 660px;
}

/* =========================
   SCREEN 1 - HERO
   ========================= */

.hero {
    min-height: calc(100svh - 68px);
    padding: 52px 0 58px;
}

.hero-grid {
    grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
    gap: 52px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(64px, 7vw, 94px);
}

.hero h2 {
    max-width: 590px;
    font-size: clamp(34px, 3.4vw, 48px);
    line-height: 1.03;
}

.hero-copy > p {
    max-width: 580px;
    margin-top: 20px;
}

.hero-actions {
    margin-top: 28px;
}

.hero-company {
    margin-top: 22px;
    font-size: 11px;
    letter-spacing: .2px;
}

.app-window {
    width: 100%;
    max-width: 690px;
    margin-left: auto;
    border-radius: 20px;
}

.main-panel {
    min-width: 0;
}

/* =========================
   SCREEN 2 - PRODUCTS
   ========================= */

.product-zone {
    min-height: 88vh;
    padding: 76px 0;
    display: flex;
    align-items: center;
    background:
        linear-gradient(180deg, #fff 0%, #f8f9fb 100%);
}

.product-zone > .container {
    width: min(1220px, calc(100% - 40px));
}

.product-tabs {
    margin-top: 32px;
}

.product-tab {
    padding: 20px;
}

.product-tab strong {
    font-size: 17px;
}

.product-panel {
    margin-top: 18px;
    padding: 34px;
}

.product-panel h3 {
    font-size: clamp(27px, 3vw, 38px);
    margin-top: 10px;
}

.feature-list {
    gap: 10px;
}

.feature-item {
    min-height: 52px;
    display: flex;
    align-items: center;
}

/* =========================
   SCREEN 3 - ECOSYSTEM
   ========================= */

.portal-ecosystem {
    padding: 72px 0 34px;
}

.portal-map {
    margin-top: 34px;
}

.portal-products {
    margin-top: 44px;
}

.portal-products a {
    padding: 21px 18px;
}

.portal-core {
    margin-top: 25px;
}

/* Benefits dirapatkan menjadi bagian dari layar ekosistem */

.portal-benefits {
    padding: 34px 0 72px;
}

.portal-benefits .section-head {
    margin-bottom: 25px;
}

.portal-benefit-grid {
    margin-top: 24px;
    gap: 14px;
}

.portal-benefit-grid article {
    padding: 21px;
}

.portal-benefit-grid article > span {
    margin-bottom: 12px;
}

.portal-benefit-grid h3 {
    font-size: 16px;
}

.portal-benefit-grid p {
    font-size: 13px;
    line-height: 1.55;
}

/* =========================
   SCREEN 4 - HOW IT WORKS
   ========================= */

.flow-section {
    min-height: 65vh;
    padding: 74px 0;
    display: flex;
    align-items: center;
    background: #fff;
}

.flow-grid {
    gap: 14px;
}

.flow-card {
    min-height: 190px;
    padding: 24px;
}

.flow-number {
    margin-bottom: 20px;
}

.flow-card h3 {
    font-size: 18px;
}

.flow-card p {
    font-size: 13px;
    line-height: 1.6;
}

/* =========================
   SCREEN 5 - CTA + FOOTER
   ========================= */

.cta {
    padding: 32px 0 70px;
}

.cta-box {
    min-height: 230px;
    padding: 42px;
    border-radius: 26px;
}

.cta-box h2 {
    max-width: 700px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
}

.cta-box p {
    max-width: 720px;
    line-height: 1.7;
}

.portal-footer {
    padding-top: 52px;
}

.portal-footer-grid {
    gap: 35px;
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }

    .hero h2 {
        font-size: clamp(31px, 4vw, 42px);
    }

    .app-window {
        transform: none;
    }
}

@media (max-width: 960px) {
    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 720px;
    }

    .app-window {
        max-width: 760px;
        margin: 8px auto 0;
    }

    .product-zone {
        min-height: auto;
    }

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

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

/* =========================
   MOBILE
   ========================= */

@media (max-width: 760px) {
    .hero {
        min-height: auto;
        padding: 42px 0 48px;
    }

    .hero-grid {
        gap: 34px;
    }

    .hero-badge {
        font-size: 10px;
    }

    .hero h1 {
        font-size: clamp(55px, 18vw, 74px);
    }

    .hero h2 {
        margin-top: 17px;
        font-size: clamp(29px, 9vw, 38px);
        line-height: 1.05;
    }

    .hero-copy > p {
        margin-top: 16px;
        font-size: 15px;
        line-height: 1.65;
    }

    .hero-actions {
        margin-top: 23px;
    }

    .app-window {
        border-radius: 15px;
    }

    .window-label {
        font-size: 11px;
    }

    .product-zone,
    .portal-ecosystem,
    .portal-benefits,
    .flow-section {
        min-height: auto;
        padding: 54px 0;
    }

    .section-head {
        margin-bottom: 24px;
    }

    .section-title {
        font-size: clamp(28px, 9vw, 38px);
        line-height: 1.08;
    }

    .product-tabs {
        margin-top: 22px;
    }

    .product-panel {
        padding: 22px;
    }

    .product-panel h3 {
        font-size: 27px;
    }

    .feature-list {
        margin-top: 22px;
    }

    .feature-item {
        min-height: 48px;
        font-size: 13px;
    }

    .portal-products {
        gap: 11px;
    }

    .portal-products a {
        padding: 19px 15px;
    }

    .portal-benefit-grid,
    .flow-grid {
        grid-template-columns: 1fr;
    }

    .portal-benefit-grid article {
        padding: 20px;
    }

    .flow-card {
        min-height: auto;
    }

    .cta {
        padding: 15px 0 48px;
    }

    .cta-box {
        min-height: auto;
        padding: 27px 22px;
    }

    .cta-box h2 {
        font-size: 28px;
    }

    .portal-footer {
        padding-top: 42px;
    }
}

/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 420px) {
    .container {
        width: calc(100% - 24px);
    }

    .hero h1 {
        letter-spacing: -3px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat {
        min-height: 54px;
    }

    .panel-head {
        align-items: flex-start;
    }

    .panel-chip {
        font-size: 9px;
    }

    .portal-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   PRODUCT TAB LINKS
   ========================================================= */

.product-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 !important;
}

.product-tab-select {
    width: 100%;
    flex: 1;
    padding: 20px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.product-tab-select strong,
.product-tab-select span {
    display: block;
}

.product-tab-select strong {
    font-size: 17px;
    font-weight: 900;
}

.product-tab-select span {
    margin-top: 6px;
    font-size: 12px;
    opacity: .78;
}

.product-tab-open {
    display: block;
    padding: 11px 20px;
    border-top: 1px solid rgba(255,255,255,.18);
    font-size: 11px;
    font-weight: 900;
    transition:
        background .18s ease,
        padding-left .18s ease;
}

.product-tab.active .product-tab-open {
    color: #fff;
}

.product-tab-open:hover {
    padding-left: 24px;
    background: rgba(255,255,255,.10);
}

@media (max-width: 760px) {
    .product-tab-select {
        padding: 17px 18px;
    }

    .product-tab-open {
        padding: 10px 18px;
    }
}
