/* ==========================================
   HERO SECTION
   ========================================== */

:root {
    --hero-white:          #ffffff;
    --hero-peach:          #fecfbd;
    --hero-lilac:          #b080e3;
    --hero-violet:         #6322ff;
    --hero-orange-hover:   #e56422;
    --hero-slide-2-from:   #793df2;
    --hero-preview-shadow: rgba(0, 0, 0, 0.35);

    --hero-section-bg:     var(--purple-light);
    --hero-text:           rgba(80, 67, 89, 1);
    --hero-text-muted:     rgba(144, 133, 166, 1);
    --hero-accent:         var(--Brand-Orange, rgba(255, 128, 64, 1));
    --hero-surface:        var(--hero-white);

    --hero-gradient-title:   linear-gradient(239.66deg, var(--hero-peach) -13.21%, var(--hero-lilac) 54.31%, var(--hero-violet) 128.7%);
    --hero-gradient-banner:  linear-gradient(196.75deg, var(--hero-peach) -90.79%, var(--hero-lilac) 12.12%, var(--hero-violet) 125.5%);
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(70px) scale(0.985);
    }
}

.hero-section {
    background-color: var(--hero-section-bg);
    background-image: url("../assets/images/hero-fone/hero-desc-fone.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 91px 0 92px;
    overflow: hidden;
}

.hero-inner {
    max-width: 1344px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 666px 1fr;
    gap: 12px;
    align-items: start;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Gradient card (top-left) */
.hero-gradient-card {
    background: var(--hero-gradient-title);
    border-radius: 30px;
    padding: 48px;
    min-height: 333px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;

    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);

    animation: heroFadeUp 2.2s cubic-bezier(0.08, 0.82, 0.17, 1) both;
}

.hero-gradient-card__aura {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.75;
    mix-blend-mode: soft-light;

    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.hero-gradient-card__aura canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.hero-gradient-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--hero-gradient-title);
    opacity: 0.82;
    mix-blend-mode: color;
    pointer-events: none;

    border-radius: inherit;
}

.hero-gradient-card h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--hero-white);
    line-height: 1.1;
    max-width: 527px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    letter-spacing: -0.03em;
}

/* Main pricing card (right) */
.hero-main-card {
    background: var(--hero-surface) url("../assets/images/card_background.png");
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 30px;
    padding: 52px;
    min-height: 677px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    animation: heroFadeUp 2.6s cubic-bezier(0.08, 0.82, 0.17, 1) 0.55s both;
}

.hero-main-card h2 {
    font-size: 48px;
    font-weight: 800;
    color: var(--hero-text);
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 530px;
    position: relative;
    z-index: 2;
    letter-spacing: -0.03em;
}

.hero-main-card .subtitle {
    font-size: 30px;
    font-weight: 600;
    color: var(--hero-text-muted);
    line-height: 1.15;
    margin-bottom: 36px;
    position: relative;
    z-index: 2;
    letter-spacing: -0.03em;
}

.hero-section .btn--accent {
    align-self: flex-start;
    z-index: 2;
    margin-top: auto;
}

.hero-section .ihb.btn--accent::before {
    left: 32px;
}

.hero-main-card picture {
    display: contents;
}

.hero-phone-img {
    position: absolute;
    top: 143px;
    right: -27px;
    bottom: auto;
    width: 334px;
    height: auto;
    object-fit: contain;
    object-position: top right;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.hero-main-card.hero-slide2-active .hero-phone-img {
    opacity: 0;
}

.hero-decoration-img {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-20%, -52%) rotate(-5.77deg);
    width: 580px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.arrow-btn {
    position: absolute;
    bottom: 300px;
    right: 14px;
    width: 39px;
    height: 39px;
    z-index: 3;
    cursor: pointer;
    transition: opacity 0.35s ease;
}

.arrow-btn img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Hero Slide 2 */
.hero-slide-2 {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    overflow: hidden;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 70px 0;
    background-color: var(--hero-slide-2-from);
    background-image: url("../assets/images/hero-banner-2-fone/hero-banner-2-fone-desc.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.hero-slide-2.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-s2-blur {
    position: absolute;
    pointer-events: none;
}

.hero-s2-blur-1 {
    width: 525px;
    left: -247px;
    top: 85px;
    opacity: 0.6;
    filter: blur(72px);
    transform: rotate(23.25deg);
}

.hero-s2-blur-2 {
    width: 332px;
    left: 114px;
    top: -177px;
    opacity: 0.4;
    filter: blur(72px);
    transform: rotate(69.43deg);
}

.hero-s2-heading {
    font-size: 50px;
    font-weight: 800;
    color: var(--hero-white);
    text-align: center;
    letter-spacing: -0.03em;
    line-height: 100%;
    position: relative;
    z-index: 2;
    margin-bottom: 36px;
}

.hero-s2-btn {
    align-self: center!important;
    flex-shrink: 0;
}

.hero-s2-preview {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 423px;
    border-radius: 14px;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 0;
    box-shadow: 0 20px 60px var(--hero-preview-shadow);
    top: 52px;
}

.hero-s2-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
}

.hero-s2-back {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 39px;
    height: 39px;
    cursor: pointer;
    z-index: 12;
}

.hero-s2-back img {
    width: 100%;
    height: 100%;
    display: block;
    transform: rotate(180deg);
}

@media (max-width: 1344px) {
    .hero-section {
        margin: 0 12px;
        padding: 24px 76px 24px 77px;
        border-radius: 24px;
        background-image: url("../assets/images/hero-fone/hero-tablet-fone.png");
    }

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

    .hero-left {
        display: contents;
    }

    .hero-gradient-card {
        order: 1;
        min-height: auto;
        height: auto;
        padding: 52px 38px 56px;
        border-radius: 20px;
    }

    .hero-gradient-card h1 {
        font-size: 36px;
        max-width: none;
    }

    .hero-main-card {
        order: 2;
        min-height: 318px;
        padding: 40px 40px 42px;
        border-radius: 20px;
    }

    .hero-main-card h2 {
        font-size: 36px;
        margin-bottom: 7px;
    }

    .hero-main-card .subtitle {
        font-size: clamp(15px, 3.8vw, 18px);
        margin-bottom: 18px;
    }

    .hero-section .btn--accent {
        padding: 18px 20px;
        font-size: 15px;
        gap: 8px;
    }

    .hero-section .btn--accent::before {
        width: 8px;
        height: 8px;
    }

    .hero-section .ihb.btn--accent::before {
        left: 20px;
    }

    .hero-phone-img {
        top: 10px;
        right: -8px;
        bottom: 0;
        width: auto;
        height: 100%;
    }

    .hero-main-card .arrow-btn {
        width: 30px;
        height: 30px;
        right: 5px;
        top: 47%;
        bottom: auto;
        transform: translateY(-50%);
    }

    .hero-decoration-img {
        width: 360px;
        opacity: 0.35;
        left: 52%;
    }

    /* Slide 2 */
    .hero-slide-2 {
        border-radius: 16px;
        padding: 24px 20px 0 24px;
        background-image: url("../assets/images/hero-banner-2-fone/hero-banner-2-fone-tablet.png");
    }

    .hero-s2-heading {
        font-size: 36px;
        letter-spacing: -0.03em;
        margin-bottom: 13px;
        line-height: 110%;
    }

    .hero-s2-preview {
        max-width: 318px;
        top: 0;
    }

    .hero-s2-btn {
        margin-bottom: 24px;
    }

    .hero-s2-back {
        width: 28px;
        height: 28px;
        left: 12px;
    }

    .hero-s2-blur-1 {
        width: 300px;
        left: -140px;
        top: 50px;
    }

    .hero-s2-blur-2 {
        width: 200px;
        left: 70px;
        top: -100px;
    }
}

@media (max-width: 651px) {
    .hero-section {
        margin: 0 8px;
        padding: 24px 16px 35px;
        border-radius: 30px;
        background-image: url("../assets/images/hero-fone/hero-mob-fone.png");
    }

    .hero-inner {
        gap: 8px;
    }

    .hero-gradient-card {
        padding: 52px 27px;
        border-radius: 14px;
    }

    .hero-gradient-card h1 {
        font-size: 24px;
    }

    .hero-main-card {
        padding: 24px 24px 37px;
        border-radius: 16px;
    }

    .hero-main-card h2 {
        font-size: 24px;
    }

    .hero-section .btn--accent {
        padding: 14px 16px;
        font-size: 12px;
    }

    .hero-section .btn--accent .ihb__label {
        padding-left: 12px;
    }

    .hero-section .btn--accent::before {
        width: 6px;
        height: 6px;
    }

    .hero-section .ihb.btn--accent::before {
        left: 16px;
    }

    .hero-phone-img {
        top: 69px;
        right: 0;
        height: calc(100% - 70px);
        object-position: bottom right;
    }

    .hero-s2-heading {
        font-size: 24px;
        margin-bottom: 19px;
    }

    .hero-slide-2 {
        background-image: url("../assets/images/hero-banner-2-fone/hero-banner-2-fone-mob.png");
    }

    .hero-s2-preview {
        max-width: 227px;
        top: 10px;
    }
}

.hero-section .ihb.is-on.btn--accent::before {
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(1.8);
}

@media (hover: hover) and (min-width: 1345px) {
    .hero-section .ihb:hover.btn--accent::before {
        left: 50%;
        top: 50%;
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%) scale(1.8);
    }
}
