/* =========================================
   MANU PORTFOLIO — HERO
   ========================================= */


/* =========================================
   HERO
   ========================================= */

.hero {
    position: relative;

    min-height: 100svh;

    display: flex;
    align-items: center;

    overflow: hidden;

    isolation: isolate;
}


/* =========================================
   BACKGROUND
   ========================================= */

.hero__background {
    position: absolute;
    inset: 0;

    z-index: -2;

    pointer-events: none;
}


.hero__grid {
    position: absolute;
    inset: 0;

    opacity: 0.28;

    background-image:
        linear-gradient(
            rgba(139, 92, 246, 0.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(139, 92, 246, 0.055) 1px,
            transparent 1px
        );

    background-size: 72px 72px;

    mask-image:
        radial-gradient(
            ellipse at center,
            black 0%,
            transparent 75%
        );
}


.hero__glow {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(100px);

    opacity: 0.22;
}


.hero__glow--one {
    width: 520px;
    height: 520px;

    top: -180px;
    left: -140px;

    background: var(--color-primary);
}


.hero__glow--two {
    width: 420px;
    height: 420px;

    right: -120px;
    bottom: -160px;

    background: var(--color-secondary);
}


/* =========================================
   CONTAINER
   ========================================= */

.hero__container {
    position: relative;

    width: 100%;

    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(360px, 0.85fr);

    align-items: center;

    gap: clamp(50px, 7vw, 110px);

    padding-top: var(--header-height);
}


/* =========================================
   CONTENT
   ========================================= */

.hero__content {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    max-width: 820px;
}


/* =========================================
   EYEBROW
   ========================================= */

.hero__eyebrow {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 28px;

    color: var(--color-text-muted);

    font-size: 11px;
    letter-spacing: 0.16em;
}


.hero__eyebrow-line {
    display: block;

    width: 42px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            var(--color-primary),
            transparent
        );
}


/* =========================================
   TITLE
   ========================================= */

.hero__title {
    margin: 0;

    font-size: clamp(
        52px,
        6.2vw,
        96px
    );

    line-height: 0.94;

    letter-spacing: -0.055em;

    font-weight: 700;

    color: var(--color-text);

    text-wrap: balance;
}


.hero__title-line {
    display: flex;

    align-items: center;

    min-height: 1em;
}


.hero__title-line--accent {
    color: var(--color-primary);
}


.hero__title-line--accent span {
    position: relative;
}


.hero__title-line--accent span::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: -8px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            var(--color-primary),
            transparent
        );

    opacity: 0.6;
}


/* =========================================
   BOTTOM CONTENT
   ========================================= */

.hero__bottom {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 30px;

    margin-top: 42px;

    max-width: 690px;
}


.hero__description {
    max-width: 620px;

    margin: 0;

    color: var(--color-text-muted);

    font-size: clamp(
        16px,
        1.35vw,
        20px
    );

    line-height: 1.7;
}


/* =========================================
   ACTIONS
   ========================================= */

.hero__actions {
    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;
}


.hero__button {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 22px;

    min-height: 54px;

    padding: 0 22px;

    border: 1px solid transparent;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}


.hero__button span:last-child {
    font-size: 18px;

    line-height: 1;

    transition:
        transform 0.3s ease;
}


.hero__button:hover span:last-child {
    transform: translate(3px, -3px);
}


.hero__button--primary {
    color: #ffffff;

    background: var(--color-primary);

    border-color: var(--color-primary);
}


.hero__button--primary:hover {
    transform: translateY(-2px);

    background: var(--color-primary-light);

    border-color: var(--color-primary-light);
}


.hero__button--secondary {
    color: var(--color-text);

    background: transparent;

    border-color: var(--color-border);
}


.hero__button--secondary:hover {
    transform: translateY(-2px);

    border-color: var(--color-primary);

    color: var(--color-primary);
}


/* =========================================
   VISUAL
   ========================================= */

.hero__visual {
    position: relative;

    width: 100%;

    max-width: 560px;

    justify-self: end;
}


.hero__visual::before {
    content: "";

    position: absolute;

    width: 70%;
    height: 70%;

    top: 15%;
    left: 15%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(139, 92, 246, 0.2),
            transparent 70%
        );

    filter: blur(35px);

    z-index: -1;
}


/* =========================================
   VISUAL FRAME
   ========================================= */

.hero__visual-frame {
    position: relative;

    overflow: hidden;

    border: 1px solid var(--color-border);

    background:
        linear-gradient(
            145deg,
            rgba(18, 16, 26, 0.95),
            rgba(8, 6, 12, 0.98)
        );

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45);

    transform:
        perspective(1200px)
        rotateY(-7deg)
        rotateX(3deg);
}


.hero__visual-frame::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(168, 85, 247, 0.09),
            transparent 35%,
            transparent 70%,
            rgba(139, 92, 246, 0.05)
        );

    pointer-events: none;
}


/* =========================================
   VISUAL TOP
   ========================================= */

.hero__visual-top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    min-height: 58px;

    padding: 0 20px;

    border-bottom: 1px solid var(--color-border);

    color: var(--color-text-muted);

    font-size: 9px;

    letter-spacing: 0.12em;
}


.hero__visual-status {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--color-success);

    font-size: 9px;
}


.hero__visual-status span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--color-success);

    box-shadow:
        0 0 12px
        rgba(16, 185, 129, 0.65);
}


/* =========================================
   CODE
   ========================================= */

.hero__code {
    display: flex;
    flex-direction: column;

    gap: 16px;

    min-height: 300px;

    padding: 34px 30px;

    font-family:
        "JetBrains Mono",
        "Fira Code",
        "Courier New",
        monospace;

    font-size: clamp(
        10px,
        1vw,
        13px
    );

    line-height: 1.8;
}


.hero__code-line {
    display: block;

    color: var(--color-text-muted);

    white-space: nowrap;
}


.hero__code-line i {
    display: inline-block;

    width: 28px;

    color: rgba(168, 163, 184, 0.35);

    font-style: normal;

    user-select: none;
}


.hero__code-line b {
    color: var(--color-primary-light);

    font-weight: 500;
}


.hero__code-line em {
    color: var(--color-text-muted);

    font-style: normal;
}


.hero__code-line strong {
    color: var(--color-success);

    font-weight: 500;
}


.hero__code-line span {
    color: var(--color-text);
}


.hero__code-line--indent {
    padding-left: 28px;
}


/* =========================================
   VISUAL FOOTER
   ========================================= */

.hero__visual-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    min-height: 48px;

    padding: 0 20px;

    border-top: 1px solid var(--color-border);

    color: rgba(168, 163, 184, 0.55);

    font-size: 8px;

    letter-spacing: 0.08em;
}


/* =========================================
   SIDE META
   ========================================= */

.hero__meta {
    position: absolute;

    display: flex;
    align-items: center;

    gap: 8px;

    color: rgba(168, 163, 184, 0.45);

    font-size: 9px;

    letter-spacing: 0.12em;

    writing-mode: vertical-rl;
}


.hero__meta--left {
    left: 18px;

    top: 50%;

    transform: translateY(-50%);
}


.hero__meta--right {
    right: 18px;

    top: 50%;

    transform:
        translateY(-50%)
        rotate(180deg);
}


/* =========================================
   SCROLL
   ========================================= */

.hero__scroll {
    position: absolute;

    left: 50%;
    bottom: 26px;

    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 9px;

    transform: translateX(-50%);

    color: rgba(168, 163, 184, 0.5);

    font-size: 8px;

    letter-spacing: 0.16em;

    text-decoration: none;
}


.hero__scroll-arrow {
    font-size: 17px;

    line-height: 1;

    color: var(--color-primary);
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1100px) {

    .hero__container {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(300px, 0.72fr);

        gap: 45px;
    }


    .hero__title {
        font-size: clamp(
            48px,
            6vw,
            76px
        );
    }


    .hero__visual {
        max-width: 460px;
    }


    .hero__code {
        min-height: 260px;

        padding: 28px 22px;

        gap: 13px;
    }

}


/* =========================================
   TABLET / MOBILE
   ========================================= */

@media (max-width: 900px) {

    .hero {
        min-height: auto;

        padding-block:
            calc(var(--header-height) + 70px)
            100px;
    }


    .hero__container {
        grid-template-columns: 1fr;

        gap: 70px;

        text-align: center;
    }


    .hero__content {
        align-items: center;

        max-width: 850px;

        margin-inline: auto;
    }


    .hero__eyebrow {
        justify-content: center;
    }


    .hero__title {
        text-align: center;
    }


    .hero__title-line {
        justify-content: center;
    }


    .hero__bottom {
        align-items: center;

        margin-top: 34px;

        text-align: center;
    }


    .hero__description {
        margin-inline: auto;
    }


    .hero__actions {
        justify-content: center;
    }


    .hero__visual {
        justify-self: center;

        max-width: 600px;
    }


    .hero__visual-frame {
        transform:
            perspective(1200px)
            rotateY(-3deg)
            rotateX(2deg);
    }


    .hero__meta {
        display: none;
    }


    .hero__scroll {
        display: none;
    }

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .hero {
        padding-block:
            calc(var(--header-height) + 55px)
            75px;
    }


    .hero__container {
        gap: 55px;
    }


    .hero__eyebrow {
        margin-bottom: 22px;

        font-size: 9px;
    }


    .hero__eyebrow-line {
        width: 28px;
    }


    .hero__title {
        font-size: clamp(
            40px,
            11vw,
            58px
        );

        letter-spacing: -0.045em;
    }


    .hero__title-line--accent span::after {
        bottom: -5px;
    }


    .hero__bottom {
        margin-top: 30px;

        gap: 25px;
    }


    .hero__description {
        font-size: 15px;

        line-height: 1.65;
    }


    .hero__actions {
        width: 100%;

        flex-direction: column;
    }


    .hero__button {
        width: 100%;
    }


    .hero__visual {
        width: 100%;
    }


    .hero__visual-frame {
        transform: none;
    }


    .hero__visual-top {
        min-height: 50px;

        padding-inline: 14px;
    }


    .hero__code {
        min-height: 230px;

        padding: 24px 15px;

        gap: 11px;

        font-size: 9px;
    }


    .hero__code-line i {
        width: 22px;
    }


    .hero__code-line--indent {
        padding-left: 22px;
    }


    .hero__visual-footer {
        min-height: 42px;

        padding-inline: 14px;

        font-size: 6px;
    }

}


/* =========================================
   VERY SMALL MOBILE
   ========================================= */

@media (max-width: 400px) {

    .hero {
        padding-top:
            calc(var(--header-height) + 45px);
    }


    .hero__title {
        font-size: 38px;
    }


    .hero__visual-top {
        font-size: 7px;
    }


    .hero__code {
        overflow-x: auto;

        font-size: 8px;
    }


    .hero__visual-footer {
        gap: 10px;
    }

}
