/* KD Framework ? Hero component */

.hero {
    position: relative;
    overflow: visible;
    min-height: 100vh;
    padding: 170px 0 0;
    background:
        radial-gradient(circle at 78% 35%, rgba(37, 99, 235, 0.18), transparent 31%),
        radial-gradient(circle at 8% 18%, rgba(249, 115, 22, 0.08), transparent 25%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.hero__content,
.hero__visual,
.hero__badges {
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: #93c5fd;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero__eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.9);
}

.hero__title {
    width: max-content;
    max-width: 100%;
    padding-right: 0.08em;
    color: var(--text);
    font-size: clamp(48px, 4.45vw, 70px);
    line-height: 1.02;
    letter-spacing: -0.055em;
    overflow: visible;
}

.hero__title > span {
    display: block;
    white-space: nowrap;
}

.hero__highlight {
    display: inline-block;
    padding-right: 0.07em;
    margin-right: -0.07em;
    color: transparent;
    background: linear-gradient(100deg, #f8fafc 3%, #93c5fd 52%, #60a5fa 100%);
    background-clip: text;
    -webkit-background-clip: text;
}

.hero__description {
    max-width: 610px;
    margin-top: 26px;
    color: var(--muted);
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero__visual {
    width: 100%;
    perspective: 1200px;
}

.hero__visual.reveal {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.985);
    transition:
        opacity 820ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
        transform 820ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

.hero__visual.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    animation: hero-mockup-float 7s ease-in-out 900ms infinite alternate;
}

.hero-mockup {
    position: relative;
    overflow: hidden;
    width: min(100%, 610px);
    margin-left: auto;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 20px;
    background: var(--secondary);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), 0 0 60px rgba(37, 99, 235, 0.12);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 360ms var(--ease-premium), box-shadow 360ms ease;
}

@media (min-width: 981px) and (hover: hover) and (pointer: fine) {
    .hero-mockup:hover {
        box-shadow: 0 48px 105px rgba(0, 0, 0, 0.56), 0 0 72px rgba(37, 99, 235, 0.17);
        transform: translate3d(0, -4px, 0) rotateY(-5deg) rotateX(2deg);
    }
}

.hero-mockup::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.07), transparent 30%);
}

.hero-mockup__image {
    display: block;
    width: 100%;
    height: auto;
}

.hero-mockup__topbar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: #0b1120;
}

.hero-mockup__topbar > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #475569;
}

.hero-mockup__topbar > span:first-child { background: #f97316; }

.hero-mockup__topbar > span:nth-child(2) { background: #eab308; }

.hero-mockup__topbar > span:nth-child(3) { background: #22c55e; }

.hero-mockup__address {
    min-width: 150px;
    margin: 0 auto;
    padding: 5px 18px;
    border: 1px solid rgba(148, 163, 184, 0.11);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.9);
    color: #64748b;
    font-size: 10px;
    text-align: center;
}

.hero-mockup__screen {
    display: grid;
    grid-template-columns: 64px 1fr;
    min-height: 370px;
}

.hero-mockup__sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 21px;
    padding: 18px 0;
    border-right: 1px solid rgba(148, 163, 184, 0.1);
    background: #0b1120;
}

.hero-mockup__brand {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.hero-mockup__sidebar i {
    width: 17px;
    height: 4px;
    border-radius: 10px;
    background: #334155;
}

.hero-mockup__sidebar i:first-of-type {
    background: #60a5fa;
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.55);
}

.hero-mockup__dashboard {
    padding: 28px;
    background: linear-gradient(145deg, var(--surface), #0d1526);
}

.hero-mockup__heading,
.hero-mockup__heading > div,
.hero-mockup__chart-head {
    display: flex;
    align-items: center;
}

.hero-mockup__heading {
    justify-content: space-between;
    margin-bottom: 25px;
}

.hero-mockup__heading > div {
    gap: 10px;
}

.hero-mockup__heading b,
.hero-mockup__chart-head b {
    display: block;
    width: 92px;
    height: 9px;
    border-radius: 8px;
    background: #e2e8f0;
}

.hero-mockup__heading span,
.hero-mockup__chart-head span {
    display: block;
    width: 38px;
    height: 6px;
    border-radius: 6px;
    background: #475569;
}

.hero-mockup__heading em {
    width: 66px;
    height: 24px;
    border-radius: 7px;
    background: var(--primary);
}

.hero-mockup__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
}

.hero-mockup__metrics > div,
.hero-mockup__chart {
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.84);
}

.hero-mockup__metrics > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
}

.hero-mockup__metrics span {
    color: #64748b;
    font-size: 9px;
}

.hero-mockup__metrics strong {
    color: #f8fafc;
    font-size: 20px;
}

.hero-mockup__metrics small {
    color: #4ade80;
    font-size: 8px;
}

.hero-mockup__chart {
    margin-top: 13px;
    padding: 17px;
}

.hero-mockup__chart-head {
    gap: 9px;
}

.hero-mockup__bars {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 100px;
    margin-top: 19px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-mockup__bars i {
    width: 7%;
    height: 35%;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(to top, var(--primary), #60a5fa);
    opacity: 0.8;
}

.hero-mockup__bars i:nth-child(2) { height: 52%; }

.hero-mockup__bars i:nth-child(3) { height: 45%; }

.hero-mockup__bars i:nth-child(4) { height: 68%; }

.hero-mockup__bars i:nth-child(5) { height: 61%; }

.hero-mockup__bars i:nth-child(6) { height: 84%; }

.hero-mockup__bars i:nth-child(7) { height: 73%; }

.hero-mockup__bars i:nth-child(8) { height: 96%; }

.hero__glow {
    position: absolute;
    right: 5%;
    bottom: -2%;
    z-index: -1;
    width: 82%;
    height: 72%;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.16);
    filter: blur(58px);
    opacity: 0.65;
    transform: translateZ(0);
}

@keyframes hero-mockup-float {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(0, -6px, 0) scale(1); }
}

.hero__badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 100px;
    border-top: 1px solid rgba(148, 163, 184, 0.13);
}

.hero-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 82px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.hero-badge + .hero-badge {
    border-left: 1px solid rgba(148, 163, 184, 0.13);
}

.hero-badge span {
    font-size: 18px;
}

@media (max-width: 980px) {
    .hero {
            min-height: auto;
            padding-top: 130px;
        }

    .hero__content {
            max-width: 720px;
        }

    .hero__visual {
            max-width: 680px;
            margin: 0 auto;
        }

    .hero-mockup {
            margin: 0 auto;
            transform: none;
        }

    .hero__badges {
            margin-top: 72px;
        }
}

@media (prefers-reduced-motion: reduce) {
    .hero__visual.reveal,
    .hero__visual.reveal.is-visible {
            animation: none;
            opacity: 1;
            transform: none;
            transition: none;
        }

    .hero-mockup {
            transition: none;
        }

}

@media (max-width: 680px) {
    .hero__title {
            width: auto;
        }

    .hero__title > span {
            white-space: normal;
        }
}

@media (max-width: 480px) {
    .hero {
            padding-top: 112px;
        }

    .hero__eyebrow {
            margin-bottom: 17px;
            font-size: 11px;
        }

    .hero__title {
            font-size: clamp(29px, 10vw, 48px);
            letter-spacing: -0.05em;
        }

    .hero__description {
            margin-top: 20px;
            font-size: 16px;
            line-height: 1.6;
        }

    .hero__actions {
            display: grid;
            margin-top: 28px;
        }

    .hero-mockup {
            border-radius: 15px;
        }

    .hero-mockup__screen {
            grid-template-columns: 44px 1fr;
            min-height: 300px;
        }

    .hero-mockup__sidebar {
            gap: 18px;
        }

    .hero-mockup__brand {
            width: 27px;
            height: 27px;
        }

    .hero-mockup__dashboard {
            padding: 16px 12px;
        }

    .hero-mockup__metrics {
            gap: 6px;
        }

    .hero-mockup__metrics > div {
            gap: 6px;
            padding: 10px 7px;
        }

    .hero-mockup__metrics strong {
            font-size: 15px;
        }

    .hero-mockup__chart {
            padding: 13px;
        }

    .hero-mockup__bars {
            height: 78px;
        }

    .hero__badges {
            grid-template-columns: repeat(2, 1fr);
            margin-top: 54px;
        }

    .hero-badge {
            min-height: 66px;
            font-size: 12px;
        }

    .hero-badge:nth-child(3),
        .hero-badge:nth-child(4) {
            border-top: 1px solid rgba(148, 163, 184, 0.13);
        }

    .hero-badge:nth-child(3) {
            border-left: 0;
        }
}
