/* =========================================================
   HERO
   Wupwui Softwares
========================================================= */

:root {
    /* ajuste fácil do tamanho do H1 */
    --hero-title-size: clamp(28px, 3.9vw, 52px);
}

/* HERO BASE */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 700px;
    padding: 124px 0 96px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 14%, rgba(242, 183, 40, .12), transparent 24%),
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, .03), transparent 18%),
        linear-gradient(115deg, #04070b 0%, #07101a 48%, #06080b 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.14), rgba(0,0,0,.05)),
        repeating-linear-gradient(145deg, rgba(255,255,255,.022) 0 1px, transparent 1px 18px);
    opacity: .95;
    pointer-events: none;
    z-index: 1;
}

.hero-section-glow {
    position: absolute;
    right: 7%;
    top: 46px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242,183,40,.11), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
    z-index: 1;
}

.hero-tiger-bg {
    position: absolute;
    left: 50%;
    top: 76px;
    width: 90%;
    max-width: 1120px;
    height: 580px;
    transform: translateX(-50%) scale(1);
    transform-origin: center center;
    background: url('../img/tigre-wupwui.png') center center / contain no-repeat;
    opacity: .38;
    filter: grayscale(.10) brightness(1.02) contrast(1.04);
    pointer-events: none;
    z-index: 1;
    animation: heroTigerBreath 18s ease-in-out infinite;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(340px, .76fr) minmax(620px, 1.24fr);
    gap: 88px;
    align-items: start;
}

.hero-content {
    max-width: 430px;
    position: relative;
    z-index: 3;
    padding-top: 18px;
}

.hero h1 {
    max-width: 430px;
    margin: 0 0 22px;
    font-size: var(--hero-title-size);
    line-height: 1.08;
    letter-spacing: -1.3px;
    font-weight: 900;
}

.title-accent {
    color: var(--gold-2);
}

.hero p {
    max-width: 470px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

/* HERO VISUAL */

.hero-visual {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.hero-visual-stage {
    position: relative;
    width: 760px;
    height: 500px;
}

/* LINHAS */

.hero-trail-back,
.hero-trail-front {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
}

.hero-trail-back {
    z-index: 1;
    border-top: 2px solid rgba(242, 183, 40, .22);
    box-shadow:
        0 -8px 26px rgba(242, 183, 40, .08),
        inset 0 8px 18px rgba(242, 183, 40, .03);
}

.trail-back-1 {
    width: 960px;
    height: 210px;
    right: -300px;
    bottom: 90px;
    transform: rotate(-12deg);
    animation: trailFlowBack1 11s ease-in-out infinite;
}

.trail-back-2 {
    width: 860px;
    height: 178px;
    right: -250px;
    bottom: 54px;
    transform: rotate(-11deg);
    opacity: .48;
    animation: trailFlowBack2 9s ease-in-out infinite;
}

/* MONITOR */

.monitor-shell {
    position: absolute;
    top: 6px;
    right: 70px;
    width: 610px;
    z-index: 3;
    transform: perspective(1500px) rotateY(-17deg) rotateX(2deg);
    transform-origin: center center;
}

.monitor-bezel {
    position: relative;
    padding: 10px;
    border-radius: 36px;
    background:
        linear-gradient(145deg, #a5a8ad 0%, #6f747c 14%, #353b44 34%, #171c23 56%, #50555d 80%, #b0b3b7 100%);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow:
        0 34px 90px rgba(0, 0, 0, .45),
        inset 0 1px 0 rgba(255,255,255,.22),
        inset 0 -1px 0 rgba(0,0,0,.30);
}

.monitor-bezel::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,.10);
    pointer-events: none;
}

.monitor-bezel::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,.05);
    pointer-events: none;
}

.monitor-screen {
    position: relative;
    min-height: 408px;
    padding: 18px 18px 16px;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(19, 27, 39, .98), rgba(8, 11, 18, .99));
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .05),
        inset 0 0 35px rgba(0,0,0,.22);
}

/* DASHBOARD */

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dashboard-dots {
    display: flex;
    gap: 8px;
}

.dashboard-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .20);
}

.dashboard-dots span:first-child {
    background: rgba(242, 183, 40, .82);
}

.dashboard-topbar small {
    color: rgba(255, 255, 255, .74);
    font-size: 12px;
    font-weight: 800;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.stat-box {
    padding: 12px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
}

.stat-box small {
    display: block;
    color: rgba(255, 255, 255, .50);
    font-size: 10px;
    margin-bottom: 6px;
}

.stat-box strong {
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.dashboard-main {
    display: grid;
    grid-template-columns: 1.18fr .82fr;
    gap: 12px;
    margin-bottom: 12px;
}

.dashboard-chart-card,
.dashboard-donut-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
}

.dashboard-card-title {
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 10px;
}

.chart-grid {
    position: relative;
    height: 132px;
    border-radius: 14px;
    overflow: hidden;
    background:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 100% 28px, 42px 100%;
}

.chart-line {
    position: absolute;
    inset: 0;
}

.chart-line::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 27px;
    height: 64px;
    background: linear-gradient(180deg, rgba(242,183,40,.24), rgba(242,183,40,0));
    clip-path: polygon(0 88%, 15% 66%, 31% 72%, 47% 42%, 63% 56%, 81% 24%, 100% 0, 100% 100%, 0 100%);
}

.chart-line::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 28px;
    height: 64px;
    border-bottom: 3px solid rgba(242,183,40,.96);
    clip-path: polygon(0 88%, 15% 66%, 31% 72%, 47% 42%, 63% 56%, 81% 24%, 100% 0, 100% 5%, 81% 28%, 63% 60%, 47% 46%, 31% 76%, 15% 70%, 0 92%);
    filter: drop-shadow(0 0 7px rgba(242,183,40,.25));
}

.chart-point {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-3);
    box-shadow: 0 0 0 4px rgba(242,183,40,.18);
}

.chart-point.p1 { left: 16px; bottom: 34px; }
.chart-point.p2 { left: 76px; bottom: 48px; }
.chart-point.p3 { left: 136px; bottom: 44px; }
.chart-point.p4 { left: 196px; bottom: 78px; }
.chart-point.p5 { left: 256px; bottom: 66px; }
.chart-point.p6 { right: 16px; bottom: 98px; }

.fake-donut {
    width: 104px;
    height: 104px;
    margin: 6px auto 14px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #121822 0 47%, transparent 48%),
        conic-gradient(var(--gold-2) 0 38%, rgba(255,255,255,.24) 38% 72%, rgba(255,255,255,.08) 72% 100%);
    box-shadow: inset 0 0 22px rgba(0,0,0,.30);
}

.donut-labels {
    display: grid;
    gap: 7px;
}

.donut-labels span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.64);
    font-size: 11px;
    font-weight: 700;
}

.donut-labels span i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold-2);
    display: inline-block;
    font-style: normal;
}

.donut-labels span:last-child i {
    background: rgba(255,255,255,.40);
}

.dashboard-bottom-table {
    display: grid;
    grid-template-columns: 1.3fr .8fr .6fr;
    gap: 8px;
    padding: 12px 13px;
    border-radius: 15px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.62);
    font-size: 11px;
    line-height: 1.4;
}

.dashboard-bottom-table div:nth-child(-n+3) {
    color: rgba(255,255,255,.82);
    font-weight: 800;
}

/* PHONE */

.phone-card {
    position: absolute;
    right: 8px;
    bottom: 16px;
    width: 176px;
    height: 342px;
    padding: 7px;
    border-radius: 36px;
    background:
        linear-gradient(145deg, #a7aaaf 0%, #6c7178 16%, #353941 38%, #171b22 58%, #4f545b 82%, #aeb1b6 100%);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow:
        0 32px 78px rgba(0,0,0,.50),
        inset 0 1px 0 rgba(255,255,255,.15),
        inset 0 -1px 0 rgba(0,0,0,.28);
    transform: rotate(2deg);
    z-index: 6;
}

.phone-card::before,
.phone-card::after {
    content: "";
    position: absolute;
    left: -2px;
    width: 3px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
}

.phone-card::before {
    top: 78px;
    height: 40px;
}

.phone-card::after {
    top: 126px;
    height: 62px;
}

.phone-notch {
    width: 68px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    margin: 4px auto 10px;
}

.phone-screen {
    height: calc(100% - 22px);
    border-radius: 30px;
    background: linear-gradient(180deg, #0c1219 0%, #101826 100%);
    border: 1px solid rgba(255,255,255,.06);
    padding: 15px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.phone-header {
    width: 100%;
    color: rgba(255,255,255,.48);
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 16px;
}

.phone-status-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(37, 211, 102, .18);
    border: 1px solid rgba(37, 211, 102, .35);
    color: #7ef0a4;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .5px;
    margin-bottom: 12px;
}

.phone-user {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 14px;
}

.phone-qr-wrap {
    width: 112px;
    height: 112px;
    padding: 7px;
    background: #fff;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
}

.phone-qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.phone-footer-text {
    color: rgba(255,255,255,.52);
    font-size: 10px;
    font-weight: 700;
    margin-top: auto;
}

/* LINHAS NA FRENTE */

.hero-trail-front {
    z-index: 5;
    border-top: 2px solid rgba(242, 183, 40, .58);
    box-shadow:
        0 -10px 28px rgba(242, 183, 40, .22),
        inset 0 8px 18px rgba(242, 183, 40, .05);
}

.trail-front-1 {
    width: 1000px;
    height: 220px;
    right: -315px;
    bottom: 54px;
    transform: rotate(-12deg);
    animation: trailFlowFront1 10s ease-in-out infinite;
}

.trail-front-2 {
    width: 900px;
    height: 182px;
    right: -270px;
    bottom: 26px;
    transform: rotate(-11deg);
    opacity: .50;
    animation: trailFlowFront2 8s ease-in-out infinite;
}

.trail-front-3 {
    width: 780px;
    height: 150px;
    right: -235px;
    bottom: 92px;
    transform: rotate(-11deg);
    opacity: .28;
    animation: trailFlowFront3 12s ease-in-out infinite;
}

/* ANIMAÇÕES */

@keyframes heroTigerBreath {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.05);
    }
}

@keyframes trailFlowBack1 {
    0%, 100% {
        transform: rotate(-12deg) translate3d(0, 0, 0);
        opacity: .26;
    }

    50% {
        transform: rotate(-12deg) translate3d(26px, -6px, 0);
        opacity: .42;
    }
}

@keyframes trailFlowBack2 {
    0%, 100% {
        transform: rotate(-11deg) translate3d(0, 0, 0);
        opacity: .34;
    }

    50% {
        transform: rotate(-11deg) translate3d(18px, -4px, 0);
        opacity: .54;
    }
}

@keyframes trailFlowFront1 {
    0%, 100% {
        transform: rotate(-12deg) translate3d(0, 0, 0);
        opacity: .70;
    }

    50% {
        transform: rotate(-12deg) translate3d(24px, -5px, 0);
        opacity: .94;
    }
}

@keyframes trailFlowFront2 {
    0%, 100% {
        transform: rotate(-11deg) translate3d(0, 0, 0);
        opacity: .42;
    }

    50% {
        transform: rotate(-11deg) translate3d(20px, -4px, 0);
        opacity: .62;
    }
}

@keyframes trailFlowFront3 {
    0%, 100% {
        transform: rotate(-11deg) translate3d(0, 0, 0);
        opacity: .22;
    }

    50% {
        transform: rotate(-11deg) translate3d(30px, -7px, 0);
        opacity: .36;
    }
}

/* RESPONSIVO HERO */

@media (max-width: 1220px) {
    .hero-grid {
        grid-template-columns: minmax(320px, .80fr) minmax(540px, 1.20fr);
        gap: 58px;
    }

    .hero-visual-stage {
        width: 690px;
    }

    .monitor-shell {
        right: 44px;
        width: 560px;
    }
}

@media (max-width: 1120px) {
    .hero {
        min-height: auto;
    }

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

    .hero-content {
        max-width: 100%;
        padding-top: 6px;
    }

    .hero h1,
    .hero p {
        max-width: 100%;
    }

    .hero-visual {
        justify-content: center;
        min-height: 500px;
    }

    .hero-visual-stage {
        width: min(100%, 720px);
        height: 500px;
    }

    .monitor-shell {
        right: 78px;
        width: min(100%, 560px);
    }

    .phone-card {
        right: 0;
        bottom: 12px;
    }

    .hero-tiger-bg {
        width: 96%;
        height: 560px;
        top: 86px;
        opacity: .26;
    }
}

@media (max-width: 940px) {
    .hero {
        padding: 82px 0 72px;
    }

    .hero-visual {
        min-height: 480px;
    }

    .hero-visual-stage {
        height: 480px;
    }

    .monitor-shell {
        right: 52px;
        width: min(100%, 520px);
    }

    .phone-card {
        width: 166px;
        height: 322px;
        right: 0;
    }

    .hero-tiger-bg {
        width: 100%;
        height: 500px;
        top: 92px;
        opacity: .22;
    }
}

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

    .hero h1 {
        line-height: 1.1;
        letter-spacing: -1px;
        max-width: 100%;
    }

    .hero p {
        font-size: 15px;
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-visual {
        min-height: auto;
        margin-top: 10px;
    }

    .hero-visual-stage {
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .monitor-shell {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        margin: 0 auto;
        transform: none;
    }

    .monitor-screen {
        min-height: auto;
    }

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

    .dashboard-main {
        grid-template-columns: 1fr;
    }

    .dashboard-bottom-table {
        font-size: 10px;
    }

    .chart-grid {
        height: 132px;
    }

    .phone-card {
        position: relative;
        right: auto;
        bottom: auto;
        margin: 18px auto 0;
        transform: none;
        width: 166px;
        height: 320px;
    }

    .hero-tiger-bg {
        width: 145%;
        max-width: none;
        height: 430px;
        top: 108px;
        opacity: .18;
    }

    .hero-trail-back,
    .hero-trail-front {
        display: none;
    }
}

@media (max-width: 430px) {
    .hero-tiger-bg {
        width: 175%;
        height: 360px;
        top: 102px;
    }
}