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

.hero {
    position: relative;

    display: grid;

    width: min(1500px, 95%);
    min-height: 560px;

    grid-template-columns:
        42px
        minmax(500px, 0.9fr)
        minmax(660px, 1.2fr);

    align-items: center;
    gap: 28px;

    margin: 0 auto;
    padding: 48px 0 58px;

    opacity: var(--hero-opacity, 1);
    translate: 0 var(--hero-shift, 0px);
    will-change: opacity, translate;
}


/* ========================================
   VERTIKAL TEXT
======================================== */

.hero-rail {
    position: relative;

    display: flex;

    height: 300px;

    align-items: center;
    justify-content: center;

    color: #4f5561;

    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;

    writing-mode: vertical-rl;

    transform: rotate(180deg);
}

.hero-rail::before {
    position: absolute;

    top: 0;
    bottom: 0;

    width: 1px;

    background: rgba(19, 23, 34, 0.14);

    content: "";
}

.hero-rail-dot {
    position: absolute;

    top: -4px;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #72e6d0;
}


/* ========================================
   HERO-TEXT
======================================== */

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 640px;
}

.hero-eyebrow {
    margin-bottom: 22px;

    color: #43cdb1;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.hero-title {
    margin-bottom: 28px;

    color: #121722;

    font-family: "Manrope", sans-serif;
    font-size: clamp(3.1rem, 4vw, 4.8rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.055em;
}

.hero-title span {
    display: inline;

    background:
        linear-gradient(
            90deg,
            #72e6d0 0%,
            #8fdedb 48%,
            #7b5cff 100%
        );

    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
}

.hero-description {
    max-width: 560px;

    color: #626977;

    font-size: 1rem;
    line-height: 1.75;
}


/* ========================================
   HERO-KNAPPAR
======================================== */

.hero-buttons {
    display: flex;

    align-items: center;
    gap: 28px;

    margin-top: 36px;
}

.hero-button {
    display: inline-flex;

    min-height: 54px;

    align-items: center;
    justify-content: center;
    gap: 14px;

    font-size: 0.95rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
}

.hero-button-primary {
    padding: 0 25px;

    border-radius: 12px;

    background:
        linear-gradient(
            105deg,
            #72ead5 0%,
            #9ce8dc 100%
        );

    color: #071019;

    box-shadow:
        0 14px 30px rgba(63, 204, 175, 0.18);
}

.hero-button-primary:hover {
    transform: translateY(-2px);

    box-shadow:
        0 18px 38px rgba(63, 204, 175, 0.25);
}

.hero-button-secondary {
    position: relative;

    padding: 0 5px;

    color: #121722;
}

.hero-button-secondary::after {
    position: absolute;

    bottom: 5px;
    left: 5px;

    width: 88px;
    height: 2px;

    background: #7b5cff;

    content: "";
}

.hero-button-secondary:hover {
    color: #7b5cff;
}


/* ========================================
   DASHBOARD-PLATS
======================================== */

.hero-dashboard-placeholder {
    position: relative;
    z-index: 2;

    display: grid;

    min-height: 470px;

    place-items: center;

    border: 1px dashed rgba(123, 92, 255, 0.22);
    border-radius: 28px;

    background:
        radial-gradient(
            circle at 42% 50%,
            rgba(114, 230, 208, 0.22),
            transparent 52%
        );

    color: #7a7f8b;

    font-size: 0.9rem;
}


/* ========================================
   RESPONSIVT
======================================== */

@media (max-width: 1200px) {

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

        padding-top: 70px;
    }

    .hero-dashboard-placeholder {
        grid-column: 2;

        min-height: 420px;
    }
}

@media (max-width: 760px) {

    .hero {
        width: calc(100% - 24px);

        grid-template-columns: 1fr;

        padding-top: 54px;
    }

    .hero-rail {
        display: none;
    }

    .hero-title {
        font-size: clamp(2.8rem, 13vw, 4.4rem);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-button {
        width: 100%;
    }

    .hero-dashboard-placeholder {
        grid-column: 1;

        min-height: 330px;
    }
}

/* Ljuslager och djup */
.hero {
    isolation: isolate;
}

.hero::before,
.hero::after {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(18px);
    pointer-events: none;
    content: "";
}

.hero::before {
    top: 5%;
    left: 20%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(114,230,208,.14), rgba(114,230,208,.025) 55%, transparent 72%);
}

.hero::after {
    right: 2%;
    bottom: -7%;
    width: 440px;
    height: 300px;
    background: radial-gradient(circle, rgba(123,92,255,.12), transparent 68%);
}

.hero-button-primary {
    box-shadow:
        0 8px 16px rgba(63,204,175,.14),
        0 22px 45px rgba(63,204,175,.18),
        inset 0 1px 0 rgba(255,255,255,.65);
}
