/* page-home: scoped styles. */

.desktop-home {
    display: none;
}

.faceta-home {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1.25rem 2rem;
}

.visually-hidden {
    position: absolute!important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.home-hero {
    width: 100%;
    height: min(42vw,480px);
    min-height: 320px;
    border-radius: 26px 26px 0 0;
    background: #7fb8ea url('/assets/images/pages/home/bg_home.png') center 13%/cover no-repeat;
}

.home-actions {
    display: grid;
    gap: 1rem;
    padding: 0 1.25rem 1.25rem;
    background: linear-gradient(180deg,#add7f1,#d4ebf7 35%,#e8f4fb);
}

.home-action-card {
    display: block;
    overflow: hidden;
    border-radius: 22px;
    transition: transform .2s ease,box-shadow .2s ease;
}

.home-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(31,80,125,.14);
}

.home-action-card img {
    display: block;
    width: 100%;
    height: auto;
}

@media(max-width:1024px) {
    body.home {
        background: #dff1fb;
    }

    .faceta-home {
        padding: 0 0 calc(5.2rem + env(safe-area-inset-bottom));
        background: #dff1fb url('/assets/images/pages/home/bg_home.png') center top/100% auto no-repeat;
    }

    .home-hero {
        height: 114vw;
        min-height: 0;
        max-height: 760px;
        border-radius: 0;
        background: none;
    }

    .home-actions {
        gap: .95rem;
        padding: 0 3.5% 1.2rem;
        background: transparent;
    }

    .home-action-card {
        border-radius: 18px;
    }
}

@media(max-width:420px) {
    .home-actions {
        gap: .75rem;
    }

    .home-action-card {
        border-radius: 15px;
    }
}

@media(max-width:767px) {
    body.home .page-main {
        padding-bottom: 0!important;
    }

    .faceta-home {
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - var(--nav-tab-height) - env(safe-area-inset-bottom));
        min-height: calc(100dvh - var(--nav-tab-height) - env(safe-area-inset-bottom));
        padding: 0;
        background-color: #9bc9e8;
    }

    .home-hero {
        flex: 1 0 80vw;
        height: auto;
        min-height: 80vw;
        max-height: none;
    }

    .home-actions {
        flex: none;
        gap: .75rem;
        padding: 0 3.5% .75rem;
    }
}

@media(max-width:1024px) {
    body.home .page-main {
        background: #8dbde4 url('/assets/images/pages/home/bg_home.png') center top/100% auto no-repeat;
    }

    .faceta-home {
        background: transparent;
    }
}

@media(min-width:1025px) {
    body.home .page-main {
        background: #fbfcf9;
    }

    .faceta-home {
        display: none;
    }

    .desktop-home {
        display: block;
        max-width: 1360px;
        margin: 0 auto;
        padding: 28px 48px 80px;
        color: var(--color-brand-heading);
    }

    .desktop-home-intro {
        display: flex;
        align-items: center;
        position: relative;
        isolation: isolate;
        overflow: hidden;
        border-radius: 32px;
        background-color: #e5faf7;
        background-image: linear-gradient(90deg,rgba(229,250,247,.92),rgba(229,250,247,.68) 35%,transparent 62%),url('/assets/images/pages/home/home_banner.png');
        background-position: center,right center;
        background-size: cover;
        background-repeat: no-repeat;
        min-height: 480px;
        box-shadow: 0 20px 60px #16383208;
    }

    .desktop-home-copy {
        position: relative;
        z-index: 1;
        width: 50%;
        padding: 48px;
        padding-right: 24px;
    }

    .desktop-home-eyebrow,.desktop-home .home-product-kicker {
        font-size: 11px;
        line-height: 1.5;
        letter-spacing: .16em;
        font-weight: 700;
        color: var(--color-brand-action);
        margin: 0 0 18px;
    }

    .desktop-home-copy h1 {
        font-size: clamp(36px,3.5vw,50px);
        font-weight: 750;
        line-height: 1.25;
        letter-spacing: -.045em;
        color: var(--color-brand-heading);
        margin: 0 0 24px;
    }

    .desktop-home-copy h1 span {
        color: var(--color-brand-action);
    }

    .desktop-home-copy>p:not(.desktop-home-eyebrow) {
        color: #45665d;
        line-height: 1.9;
        font-size: 15px;
        max-width: 460px;
        margin: 0;
    }

    .desktop-home-scenarios {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        list-style: none;
        padding: 0;
        margin: 24px 0;
    }

    .desktop-home-scenarios li {
        padding: 7px 12px;
        border: 1px solid #ffffff80;
        border-radius: 999px;
        background: #ffffff70;
        color: #48635c;
        font-size: 12px;
        backdrop-filter: blur(8px);
    }

    .desktop-home-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 28px;
    }

    .desktop-home .btn {
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 12px 22px;
        border-radius: 999px;
        font-weight: 600;
        font-size: 14px;
        line-height: 1.5;
        transition: transform .2s ease,background-color .2s ease,box-shadow .2s ease;
    }

    .desktop-home .btn-primary {
        background: var(--color-brand-action);
        color: #fff;
        border: 1px solid var(--color-brand-action);
    }

    .desktop-home .btn-outline {
        border: 1px solid #8cbeb4;
        background: #ffffff60;
        color: #216459;
    }

    .desktop-home .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px #008d8018;
    }

    .home-encounter-section {
        display: grid;
        grid-template-columns: 1.55fr 1fr 1fr;
        gap: 24px 48px;
        align-items: start;
        padding: 96px 12px 48px;
        border-bottom: 1px solid #dee7e1;
    }

    .home-encounter-copy h2 {
        font-size: clamp(28px,2.7vw,38px);
        font-weight: 700;
        line-height: 1.35;
        letter-spacing: -.04em;
        color: var(--color-brand-heading);
        margin: 0 0 20px;
    }

    .home-encounter-copy>p:last-child,.home-encounter-stat>p {
        margin: 0;
        color: var(--color-brand-description);
        line-height: 1.9;
        font-size: 14px;
    }

    .home-encounter-stat strong {
        display: block;
        font-size: clamp(48px,5.6vw,76px);
        line-height: 1.15;
        letter-spacing: -.05em;
        font-weight: 500;
        background: linear-gradient(115deg,#7560d9,#c96aa6);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        margin: 10px 0 22px;
    }

    .home-encounter-stat strong span {
        font-size: .58em;
        letter-spacing: 0;
    }

    .home-stat-source {
        grid-column: 1/-1;
        margin: 0;
        color: #8b9993;
        font-size: 11px;
        text-align: right;
        line-height: 1.7;
    }

    .home-feature-section {
        display: grid;
        grid-template-columns: 1fr 1.12fr;
        gap: 72px;
        align-items: center;
        padding: 100px 12px 64px;
    }

    .home-feature-section.home-feature-reverse {
        grid-template-columns: 1.12fr 1fr;
        padding-top: 40px;
        padding-bottom: 96px;
    }

    .home-feature-copy h2 {
        margin: 24px 0;
        font-size: clamp(32px,3.3vw,46px);
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: -.045em;
        color: var(--color-brand-heading);
        text-wrap: balance;
    }

    .home-feature-copy>p:not(.home-feature-label) {
        margin: 0 0 16px;
        color: var(--color-brand-description);
        line-height: 1.95;
        font-size: 15px;
    }

    .home-feature-copy>p.home-feature-lead {
        font-weight: 600;
        color: #365b4e;
        font-size: 17px;
    }

    .home-feature-label {
        display: inline-block;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .06em;
        color: #687d72;
        border: 1px solid #d6e3d9;
        border-radius: 999px;
        padding: 8px 14px;
        margin: 0;
        background: #f2f7ef;
    }

    .home-feature-reverse .home-feature-label {
        background: #f6eff9;
        border-color: #e5d9ed;
        color: #8c649d;
    }

    .home-feature-image {
        min-width: 0;
        margin: 0;
        overflow: hidden;
        border-radius: 28px;
        box-shadow: 0 22px 52px #4e3e7815;
        transform: rotate(1.2deg);
    }

    .home-feature-reverse .home-feature-image {
        transform: rotate(-1.2deg);
    }

    .home-feature-image img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 3/2;
        object-fit: cover;
    }

    .home-feature-link {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        margin-top: 18px;
        text-decoration: none;
        color: var(--color-brand-action);
        font-size: 15px;
        font-weight: 700;
    }

    .home-feature-link i {
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        background: #eaf5ee;
        border-radius: 50%;
        font-size: 13px;
        transition: transform .2s ease;
    }

    .home-feature-link:hover i {
        transform: translateX(3px);
        background: #dcefe2;
    }

    .desktop-home .home-scenarios-section {
        padding: 72px 32px;
        margin: 0;
        background: linear-gradient(140deg,var(--color-brand-surface-soft),var(--color-brand-surface-secondary));
        border: 1px solid #e6e9e2;
        border-radius: 32px;
    }

    .home-product-heading {
        max-width: 780px;
        margin: 0 auto 44px;
        text-align: center;
    }

    .home-product-heading h2 {
        font-size: clamp(34px,3.8vw,52px);
        font-weight: 700;
        line-height: 1.25;
        letter-spacing: -.05em;
        margin: 0 0 24px;
        color: var(--color-brand-heading);
    }

    .home-product-heading>p:last-child {
        font-size: 15px;
        line-height: 1.9;
        margin: 0;
        color: var(--color-brand-description);
        max-width: 660px;
        margin-inline: auto;
    }

    .home-scenario-grid {
        display: grid;
        grid-template-columns: repeat(3,minmax(0,1fr));
        gap: 22px;
    }

    .home-scenario-card {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: 1px solid #fff;
        border-radius: 22px;
        background: #fffffff2;
        box-shadow: 0 4px 16px #283a3204;
        transition: transform .25s ease,box-shadow .25s ease;
    }

    .home-scenario-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 34px #35423f12;
    }

    .home-scenario-image {
        display: block;
        width: 100%;
        aspect-ratio: 3/2;
        height: auto;
        object-fit: cover;
    }

    .home-scenario-body {
        display: flex;
        flex-direction: column;
        flex: 1;
        padding: 26px;
    }

    .home-scenario-body h3 {
        font-size: 21px;
        font-weight: 650;
        letter-spacing: -.025em;
        margin: 0 0 12px;
        color: var(--color-brand-heading);
    }

    .home-scenario-body p {
        font-size: 14px;
        line-height: 1.85;
        color: var(--color-brand-description);
        margin: 0 0 28px;
    }

    .home-scenario-body>a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid #eaf0e9;
        text-decoration: none;
        color: var(--color-brand-action);
        font-size: 12px;
        font-weight: 600;
    }

    .home-scenario-body>a i {
        display: grid;
        place-items: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #eaf5ee;
        font-size: 12px;
        transition: transform .2s ease;
    }

    .home-scenario-body>a:hover i,
    .home-technology-copy>a:hover i,
    .home-discover-link:hover i {
        transform: translateX(3px);
    }

    .home-technology-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: center;
        padding: 88px 12px;
    }

    .home-technology-copy h2 {
        font-size: clamp(30px,3vw,42px);
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: -.04em;
        margin: 0 0 24px;
        color: var(--color-brand-heading);
    }

    .home-technology-copy>p:not(.home-product-kicker) {
        font-size: 15px;
        line-height: 1.9;
        color: var(--color-brand-description);
        margin: 0;
    }

    .home-technology-copy>a {
        display: inline-flex;
        gap: 12px;
        font-size: 14px;
        font-weight: 600;
        color: var(--color-brand-action);
        text-decoration: none;
        margin-top: 26px;
    }

    .home-technology-copy>a i,
    .home-discover-link i {
        transition: transform .2s ease;
    }

    .home-patent-list {
        padding: 12px 0;
    }

    .home-patent-list>p {
        color: #8b9993;
        font-size: 12px;
        margin: 0 0 24px;
    }

    .home-patent-item {
        display: flex;
        gap: 24px;
        padding: 22px 0;
        border-top: 1px solid #dfe7e0;
    }

    .home-patent-item>span {
        color: #9a87b4;
        font-size: 16px;
        font-weight: 600;
    }

    .home-patent-item h3 {
        font-size: 14px;
        line-height: 1.6;
        font-weight: 500;
        margin: 0 0 6px;
        color: var(--color-brand-heading);
    }

    .home-patent-item p {
        color: #8b9993;
        font-size: 11px;
        letter-spacing: .04em;
        margin: 0;
    }

    .home-experience-section {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
        background: radial-gradient(ellipse at top right,#3b6352 0,transparent 65%),var(--color-brand-surface-strong);
        padding: 60px 48px;
        border-radius: 32px;
    }

    .home-experience-section>div:first-child {
        max-width: 650px;
    }

    .desktop-home .home-experience-section .home-product-kicker {
        color: #bce6c7;
    }

    .home-experience-section h2 {
        font-size: clamp(32px,3.4vw,46px);
        font-weight: 700;
        letter-spacing: -.04em;
        line-height: 1.3;
        color: #fff;
        margin: 0 0 18px;
    }

    .home-experience-section>div>p:last-child {
        color: #b6cfc0;
        font-size: 14px;
        line-height: 1.85;
        margin: 0;
    }

    .home-experience-actions {
        display: flex;
        flex: none;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .home-experience-actions .btn-primary {
        background: var(--color-brand-action-on-strong);
        border-color: var(--color-brand-action-on-strong);
        color: var(--color-brand-surface-strong);
    }

    .home-miniapp-qr {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 14px;
        border-radius: 20px;
        background: #fff;
        color: var(--color-brand-surface-strong);
        font-size: 12px;
        font-weight: 650;
        box-shadow: 0 12px 28px #071f1830;
    }

    .home-miniapp-qr img {
        display: block;
        width: 160px;
        height: 160px;
        object-fit: contain;
    }

    .home-experience-actions .home-discover-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #d0e4d5;
        text-decoration: none;
        font-size: 12px;
    }

    .home-experience-actions>a:last-child {
        color: #d0e4d5;
        text-decoration: none;
        font-size: 12px;
    }

    .desktop-home a:focus-visible {
        outline: 3px solid #8b75da;
        outline-offset: 5px;
    }
}

@media(min-width:1025px) and (max-width:1180px) {
    .desktop-home {
        padding-inline: 28px;
    }

    .desktop-home-copy {
        padding: 32px;
        width: 52%;
    }

    .home-encounter-section {
        gap: 24px;
    }

    .home-feature-section {
        gap: 36px;
    }

    .desktop-home .home-scenarios-section {
        padding: 56px 24px;
    }

    .home-scenario-grid {
        gap: 16px;
    }

    .home-scenario-body {
        padding: 20px;
    }

    .home-technology-section {
        gap: 40px;
    }

    .home-experience-section {
        flex-direction: row;
        align-items: center;
        gap: 24px;
        padding: 36px 32px;
    }

    .home-experience-section>div:first-child {
        flex: 1;
        min-width: 0;
    }

    .home-experience-section h2 {
        font-size: clamp(28px, 3vw, 36px);
    }

    .home-experience-actions {
        flex-direction: column;
        align-items: center;
        flex: 0 0 148px;
        width: 148px;
        gap: 12px;
    }

    .home-miniapp-qr {
        width: 100%;
        box-sizing: border-box;
        gap: 7px;
        padding: 10px;
        border-radius: 16px;
        font-size: 11px;
        text-align: center;
    }

    .home-miniapp-qr img {
        width: 112px;
        height: 112px;
    }

    .home-experience-actions .home-discover-link {
        align-self: center;
        white-space: nowrap;
        font-size: 11px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .desktop-home .btn,.home-scenario-card,.home-feature-link i,.home-scenario-body>a i,.home-technology-copy>a i,.home-discover-link i {
        transition: none;
    }

    .desktop-home .btn:hover,.home-scenario-card:hover,.home-feature-link:hover i,.home-scenario-body>a:hover i,.home-technology-copy>a:hover i,.home-discover-link:hover i {
        transform: none;
    }
}
