:root {
    --bg: #050505;
    --text: #f7f7f7;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background: var(--bg);
    color: var(--text);
}

.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
    transition: background 0.25s ease, border-color 0.25s ease;
}

.topbar.scrolled {
    background: rgba(6, 6, 6, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
}

.nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
    color: #fff;
}

.page-section {
    position: relative;
}

.section-shell {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.h-hero {
    height: 100vh;
}

.h-tall {
    height: 86vh;
}

.h-medium {
    height: 80vh;
}

.media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section-swiper {
    width: 100%;
    height: 100%;
}

.section-swiper .swiper-wrapper,
.section-swiper .swiper-slide {
    height: 100%;
}

.swiper-pagination {
    bottom: 1.2rem !important;
    z-index: 20 !important;
    pointer-events: auto;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 5px !important;
    background: rgba(255, 255, 255, 0.52);
    opacity: 1;
    transition: all 0.25s ease;
}

.swiper-pagination-bullet-active {
    width: 26px;
    border-radius: 999px;
    background: #ffffff;
}

#section-8 .section8-mask {
    position: absolute;
    top: 12%;
    right: 0;
    width: 54%;
    height: 74%;
    z-index: 6;
    pointer-events: none;
    background: radial-gradient(circle at 84% 36%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 34%), linear-gradient(90deg, rgb(5 5 5 / 0%), rgb(5 5 5 / 0%));
    backdrop-filter: blur(3px);
}

#section-8 .section8-chart {
    position: absolute;
    right: 6%;
    bottom: 14%;
    width: min(42vw, 620px);
    height: min(64vh, 520px);
    z-index: 12;
    pointer-events: auto;
}

#section-8 .chart-percent {
    position: absolute;
    left: 4%;
    top: 17%;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.1rem, 1.8vw, 2.2rem);
    font-weight: 500;
    letter-spacing: 0.01em;
}

#section-8 .section8-graph-svg {
    width: 100%;
    height: 100%;
}

#section-8 .guide-line {
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 2;
    stroke-dasharray: 2.2 6;
}

#section-8 .point-dot {
    fill: rgba(255, 255, 255, 0.9);
}

#section-8 .point-top {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.65));
}

#section-8 .line-animate {
    fill: none;
    stroke: rgba(255, 255, 255, 0.98);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 0 100;
    opacity: 0;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

#section-8 .moving-arrow {
    position: absolute;
    left: 4%;
    top: 51.3%;
    width: 28px;
    height: 28px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(-10deg);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.58));
    z-index: 14;
}

#section-8 .moving-arrow::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 12px;
    width: 16px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
}

#section-8 .moving-arrow::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 7px;
    width: 10px;
    height: 10px;
    border-top: 3px solid rgba(255, 255, 255, 0.98);
    border-right: 3px solid rgba(255, 255, 255, 0.98);
    transform: rotate(45deg);
}

#section-8 .chart-point {
    position: absolute;
    width: 46px;
    height: 46px;
    border: 0;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
}

#section-8 .chart-point:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 1px;
}

#section-8 .chart-point.p1 {
    left: 2%;
    top: 66%;
}

#section-8 .chart-point.p2 {
    left: 24%;
    top: 58%;
}

#section-8 .chart-point.p3 {
    left: 47%;
    top: 54%;
}

#section-8 .chart-point.p4 {
    left: 69%;
    top: 40%;
}

#section-8 .chart-point.p5 {
    left: 91%;
    top: 10%;
    width: 52px;
    height: 52px;
}

#section-8 .section8-chart.burst .moving-arrow {
    animation: arrow-run-path 1.15s linear forwards;
}

#section-8 .section8-chart.burst .line-animate {
    animation: line-run-path 1.15s linear forwards;
}

@keyframes line-run-path {
    0% {
        stroke-dasharray: 0 100;
        opacity: 1;
    }

    25% {
        stroke-dasharray: 26 100;
        opacity: 1;
    }

    50% {
        stroke-dasharray: 50 100;
        opacity: 1;
    }

    74% {
        stroke-dasharray: 74 100;
        opacity: 1;
    }

    100% {
        stroke-dasharray: 100 100;
        opacity: 1;
    }
}

@keyframes arrow-run-path {
    0% {
        left: 4%;
        top: 51.3%;
        opacity: 1;
        transform: translate(-50%, -50%) rotate(-10deg) scale(0.96);
    }

    25% {
        left: 26.5%;
        top: 46.1%;
        opacity: 1;
        transform: translate(-50%, -50%) rotate(-7deg) scale(1);
    }

    50% {
        left: 49%;
        top: 43.7%;
        opacity: 1;
        transform: translate(-50%, -50%) rotate(-4deg) scale(1);
    }

    74% {
        left: 71.5%;
        top: 32.9%;
        opacity: 1;
        transform: translate(-50%, -50%) rotate(-20deg) scale(1);
    }

    100% {
        left: 94%;
        top: 11.8%;
        opacity: 1;
        transform: translate(-50%, -50%) rotate(-39deg) scale(1.06);
    }
}

@media (max-width: 991.98px) {
    .h-tall {
        height: 82vh;
    }

    .h-medium {
        height: 76vh;
    }

    #section-8 .section8-mask {
        width: 58%;
        top: 10%;
        height: 78%;
    }

    #section-8 .section8-chart {
        right: 5%;
        width: min(45vw, 500px);
        height: min(52vh, 410px);
    }
}

@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.5rem;
    }

    .h-hero {
        height: 100vh;
    }

    .h-tall,
    .h-medium {
        height: 74vh;
    }

    #section-8 .section8-mask {
        width: 62%;
        top: 12%;
        height: 72%;
    }

    #section-8 .section8-chart {
        right: 6%;
        bottom: 18%;
        width: min(50vw, 290px);
        height: min(42vh, 250px);
    }

    #section-8 .chart-percent {
        font-size: 1rem;
    }

    #section-8 .chart-point {
        width: 34px;
        height: 34px;
    }

    #section-8 .line-animate {
        stroke-width: 4.5;
    }

    #section-8 .moving-arrow {
        width: 22px;
        height: 22px;
    }

    #section-8 .moving-arrow::before {
        left: 1px;
        top: 10px;
        width: 13px;
        height: 2px;
    }

    #section-8 .moving-arrow::after {
        left: 12px;
        top: 6px;
        width: 8px;
        height: 8px;
        border-top-width: 2px;
        border-right-width: 2px;
    }
}
