/*==========================================================
    REVLO — HERO SECTION
    Theme: Instrument Panel — pump-amber primary, red alert accent
==========================================================*/

:root{
    --ink:          #1A1512;
    --ink-soft:      rgba(26,21,18,.60);
    --ink-faint:     rgba(26,21,18,.07);
    --paper:        #FFFFFF;
    --paper-solid:  #FFFFFF;

    --primary:      #E87C12;
    --primary-dark: #C4650A;
    --primary-wash: rgba(232,124,18,.10);

    --secondary:    #F2A94E;

    --alert:        #FD2D2D;
    --alert-soft:   #FA6868;
    --alert-dark:   #D91C1C;
    --alert-wash:   rgba(253,45,45,.10);

    --success:      #1F9D6D;
    --success-wash: rgba(31,157,109,.12);

    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body:    'Space Grotesk', 'DM Sans', sans-serif;
    --font-mono:    'JetBrains Mono', 'DM Mono', monospace;

    --ease: cubic-bezier(.4,0,.2,1);
}

/*=========================================
    SECTION SHELL
=========================================*/

.hero{
    position: relative;
    overflow: hidden;
    background: var(--paper);
    padding: 6rem 0 6.5rem;
}

.hero .container{
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-wrapper{
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 4.5rem;
    align-items: center;
}

/*=========================================
    AMBIENT BACKDROP — kept quiet, not the focus
=========================================*/

.hero-backdrop{
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-grid-lines{
    position: absolute;
    inset: -1px;
    background-image:
        linear-gradient(var(--ink-faint) 1px, transparent 1px),
        linear-gradient(90deg, var(--ink-faint) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 65% 30%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse 60% 50% at 65% 30%, #000 0%, transparent 72%);
    opacity: .3;
}

.hero-bg-circle{
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
}

.hero-circle-1{
    width: 440px;
    height: 440px;
    top: -160px;
    right: -100px;
    background: radial-gradient(circle, rgba(232,124,18,.16), transparent 70%);
    animation: heroDrift 24s ease-in-out infinite;
}

.hero-circle-2{
    width: 280px;
    height: 280px;
    bottom: -100px;
    right: 260px;
    background: radial-gradient(circle, rgba(253,45,45,.06), transparent 70%);
    animation: heroDrift 28s ease-in-out infinite reverse;
}

/* third ambient circle removed — two is enough, keeps the canvas calm */

@keyframes heroDrift{
    0%, 100%{ transform: translate(0,0); }
    50%{ transform: translate(-24px, 26px); }
}

/*=========================================
    LEFT — HERO CONTENT
=========================================*/

.hero-content{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge{
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: var(--primary-wash);
    border: 1px solid rgba(232,124,18,.22);
    padding: .5rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.8rem;
}

.hero-badge-dot{
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    flex-shrink: 0;
    animation: heroPulse 1.8s ease-in-out infinite;
}

@keyframes heroPulse{
    0%, 100%{ box-shadow: 0 0 0 0 rgba(31,157,109,.45); }
    50%{ box-shadow: 0 0 0 6px rgba(31,157,109,0); }
}

.hero-title{
    font-family: var(--font-body);
    font-weight: 800;
    font-style: normal;
    font-size: clamp(2.5rem, 4.6vw, 3.75rem);
    line-height: 1.05;
    letter-spacing: -.02em;
    color: var(--ink);
    margin: 0 0 1.5rem;
}


.hero-title-accent-alt{
    color: var(--alert);
    font-style: normal;
    font-weight: 800;
}

.hero-lede{
    font-family: var(--font-body);
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 500px;
    margin: 0 0 2.3rem;
}

.hero-buttons{
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.1rem;
}

.hero-buttons .btn{
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .92rem;
    padding: .85rem 1.6rem;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .2s var(--ease), background .2s var(--ease),
                box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.hero-buttons .btn-primary{
    background: linear-gradient(135deg, var(--alert-soft) 0%, var(--alert) 100%);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.18),
        0 10px 26px rgba(253,45,45,.28),
        0 2px 6px rgba(217,28,28,.2);
}

.hero-buttons .btn-primary:hover{
    background: linear-gradient(135deg, var(--alert) 0%, var(--alert-dark) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.22),
        0 12px 30px rgba(253,45,45,.36),
        0 4px 10px rgba(217,28,28,.26);
    transform: translateY(-2px);
}

.hero-buttons .btn-outline{
    background: var(--paper-solid);
    border-color: var(--ink-faint);
    color: var(--ink);
}

.hero-buttons .btn-outline:hover{
    border-color: var(--ink);
    transform: translateY(-1px);
}

.hero-rating{
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 2.8rem;
}

.hero-rating .stars{
    color: var(--primary);
    font-size: 1rem;
    letter-spacing: .1em;
}

.hero-rating span{
    font-family: var(--font-body);
    font-size: .85rem;
    color: var(--ink-soft);
}

.hero-stats{
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 2.4rem;
    padding-top: 1.9rem;
    border-top: 1px solid var(--ink-faint);
    width: 100%;
}

.stat-card h2{
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 .2rem;
    line-height: 1;
}

.stat-card p{
    font-family: var(--font-body);
    font-size: .78rem;
    color: var(--ink-soft);
    margin: 0;
}

/*=========================================
    RIGHT — DASHBOARD CARD
=========================================*/

.hero-image{
    position: relative;
    display: flex;
    justify-content: center;
    /* reserves breathing room so the floating badge never
       collides with the card's own content below */
    padding-top: 2.25rem;
}

.dashboard-card{
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--paper-solid);
    border: 1px solid var(--ink-faint);
    border-radius: 20px;
    box-shadow: 0 30px 70px -20px rgba(26,21,18,.16);
    padding: 1.75rem;
    overflow: hidden;
}

.dashboard-glow{
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(232,124,18,.14), transparent 70%);
    pointer-events: none;
}

.dashboard-header{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.3rem;
    position: relative;
    z-index: 1;
}

.dashboard-header h3{
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 .15rem;
}

.dashboard-header span{
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--ink-soft);
    letter-spacing: .03em;
}

.status{
    display: flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 700;
    color: var(--success);
    background: var(--success-wash);
    padding: .35rem .7rem;
    border-radius: 100px;
}

.status-dot{
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    flex-shrink: 0;
}

/* --- profit meter --- */

.dashboard-meter{
    position: relative;
    z-index: 1;
    background: var(--ink);
    border-radius: 14px;
    padding: 1.1rem 1.25rem 1rem;
    margin-bottom: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
}

.dashboard-meter-label{
    font-family: var(--font-mono);
    font-size: .64rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
}

.dashboard-meter-value{
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 2.1rem;
    color: #fff;
    line-height: 1.15;
}

.dashboard-meter-value #profitTicker{
    display: inline-block;
    transition: transform .3s var(--ease), color .3s var(--ease);
}

.dashboard-meter-value #profitTicker.is-ticking{
    color: var(--success);
    transform: translateY(-2px);
}

.dashboard-meter-currency{
    color: var(--secondary);
    margin-right: .1rem;
}

.dashboard-meter-sub{
    display: flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-body);
    font-size: .7rem;
    color: rgba(255,255,255,.45);
}

.dashboard-meter-live-dot{
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--success);
    animation: heroPulse 1.8s ease-in-out infinite;
}

/*=========================================
    ODOMETER ROW — sits inside .dashboard-meter,
    below the profit ticker. Mimics a real
    mechanical odometer: dark wheel cells,
    tabular mono digits, subtle inset bezel.
=========================================*/

.dashboard-odo-divider{
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,.08);
    margin: .95rem 0 .9rem;
}

.dashboard-odo{
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    width: 100%;
}

.dashboard-odo-label{
    font-family: var(--font-mono);
    font-size: .64rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
}

/* --- the odometer wheel strip + its "km" unit label --- */

.dashboard-odo-track-row{
    display: flex;
    align-items: center;
}

.dashboard-odo-track{
    display: inline-flex;
    align-items: stretch;
    gap: 3px;
    width: fit-content;
    padding: 5px;
    background: #0D0B09;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,.55);
}

.odo-digit-cell{
    position: relative;
    width: 22px;
    height: 32px;
    overflow: hidden;
    background: linear-gradient(180deg, #17130F 0%, #1F1A15 50%, #17130F 100%);
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
    flex-shrink: 0;
}

.odo-digit-strip{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.odo-digit-strip span{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--secondary);
}

/* unit suffix ("km") sitting after the digit wheels */

.dashboard-odo-track-unit{
    align-self: center;
    margin-left: .5rem;
    font-family: var(--font-mono);
    font-size: .68rem;
    color: rgba(255,255,255,.4);
}

/* --- profit per km, directly under the wheel --- */

.dashboard-odo-per-km{
    display: flex;
    align-items: baseline;
    gap: .4rem;
}

.dashboard-odo-per-km-label{
    font-family: var(--font-body);
    font-size: .72rem;
    color: rgba(255,255,255,.45);
}

.dashboard-odo-per-km-value{
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: .92rem;
    color: var(--success);
}

/* --- data grid --- */

.dashboard-grid{
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
    margin-bottom: 1.1rem;
}

.dashboard-item{
    background: var(--paper);
    border: 1px solid var(--ink-faint);
    border-radius: 10px;
    padding: .75rem .85rem;
}

.dashboard-item small{
    display: block;
    font-family: var(--font-body);
    font-size: .68rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: .3rem;
}

.dashboard-item h4{
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.dashboard-item h4 span{
    font-size: .68rem;
    font-weight: 500;
    color: var(--ink-soft);
}

/* --- health bar --- */

.dashboard-health{
    position: relative;
    z-index: 1;
}

.dashboard-health-top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
}

.dashboard-health-top small{
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.dashboard-health-top strong{
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: .82rem;
    color: var(--success);
}

.dashboard-health-bar{
    width: 100%;
    height: 7px;
    border-radius: 100px;
    background: var(--ink-faint);
    overflow: hidden;
}

.dashboard-health-fill{
    height: 100%;
    width: 0%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--primary), var(--success));
    transition: width 1.4s var(--ease);
}

/* --- floating fuel card ---
   Moved to the top-left corner as a badge, instead of the
   bottom, so it never collides with the health bar row below
   regardless of card height. */

.hero-floating-card{
    position: absolute;
    left: -28px;
    top: -24px;
    right: auto;
    bottom: auto;
    display: flex;
    align-items: center;
    gap: .7rem;
    background: var(--paper-solid);
    border: 1px solid var(--ink-faint);
    border-radius: 14px;
    padding: .8rem 1.05rem;
    box-shadow: 0 16px 34px -14px rgba(26,21,18,.18);
    animation: heroFloat 4.5s ease-in-out infinite;
    z-index: 3;
}

.hero-floating-card i{
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--alert-wash);
    color: var(--alert);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
}

.hero-floating-card strong{
    display: block;
    font-family: var(--font-mono);
    font-size: .95rem;
    color: var(--ink);
    line-height: 1.2;
}

.hero-floating-card small{
    font-family: var(--font-body);
    font-size: .68rem;
    color: var(--ink-soft);
}

@keyframes heroFloat{
    0%, 100%{ transform: translateY(0); }
    50%{ transform: translateY(-8px); }
}

/*=========================================
    RESPONSIVE
=========================================*/

@media (max-width: 1080px){

    .hero-wrapper{
        grid-template-columns: 1fr;
        gap: 3.4rem;
    }

    .hero-content{
        align-items: center;
        text-align: center;
    }

    .hero-lede{
        margin-left: auto;
        margin-right: auto;
    }

    .hero-rating{
        justify-content: center;
    }

    .hero-stats{
        justify-content: center;
        text-align: left;
    }

    .hero-image{
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .hero-floating-card{
        left: 50%;
        top: -20px;
        transform: translateX(-50%);
    }

    @keyframes heroFloat{
        0%, 100%{ transform: translateX(-50%) translateY(0); }
        50%{ transform: translateX(-50%) translateY(-8px); }
    }
}

@media (max-width: 640px){

    .hero{
        padding: 3.5rem 0 4rem;
    }

    .hero .container{
        padding: 0 1.25rem;
    }

    .hero-stats{
        grid-template-columns: repeat(2, 1fr);
        gap: 1.6rem 1.2rem;
    }

    .dashboard-card{
        max-width: 100%;
        padding: 1.4rem;
    }

    .hero-floating-card{
        display: none;
    }

    .odo-digit-cell{
        width: 19px;
        height: 28px;
    }

    .odo-digit-strip span{
        height: 28px;
        font-size: .92rem;
    }
}

/*=========================================
    REDUCED MOTION
=========================================*/

@media (prefers-reduced-motion: reduce){

    .hero-bg-circle,
    .hero-badge-dot,
    .dashboard-meter-live-dot,
    .hero-floating-card,
    .dashboard-health-fill,
    .odo-digit-strip{
        animation: none !important;
        transition: none !important;
    }
}

/*=========================================
    END
=========================================*/