/* ==========================================================
   TrackDayCTRL
   Landing Page v1.0
   Hero – Responsive Foundation
   ========================================================== */

.hero {
    position: relative;

    width: 100%;
    min-height: clamp(42rem, 52vw, 49rem);

    overflow: hidden;

    padding-block:
        clamp(6.5rem, 8vw, 8.5rem)
        clamp(2rem, 4vw, 3.5rem);

    background: var(--page-bg);
}

.hero::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 1;

    height: clamp(5rem, 9vw, 9rem);

    background:
        linear-gradient(
            180deg,
            rgba(5, 5, 5, 0) 0%,
            rgba(5, 5, 5, 0.18) 28%,
            rgba(5, 5, 5, 0.62) 68%,
            var(--page-bg) 100%
        );

    pointer-events: none;
}

/* ==========================================================
   Main layout
   ========================================================== */

.hero-container {
    position: static;

    width: min(
        calc(100% - (var(--page-gutter) * 2)),
        var(--container-max)
    );

    min-height: clamp(34rem, 42vw, 40rem);

    margin-inline: auto;

    display: grid;
    grid-template-columns:
        minmax(36rem, 1fr)
        minmax(0, 1fr);

    align-items: start;

    gap: 0;
}


/* ==========================================================
   Left content
   ========================================================== */

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

    min-width: 0;
}


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

    width: min(100%, 38rem);

    padding-top: clamp(2.75rem, 5vw, 5rem);
}


/* ==========================================================
   Hero heading
   ========================================================== */

.hero-title {
    display: flex;
    flex-direction: column;

    gap: clamp(0.05rem, 0.2vw, 0.2rem);

    margin: 0;

    color: var(--text);

    font-family: "Rajdhani", sans-serif;
    font-size: clamp(2.9rem, 4.6vw, 4.8rem);
    font-style: italic;
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: -0.02em;

    text-transform: uppercase;
}


.hero-title .green {
    color: var(--green);
}


.hero-title .nowrap {
    white-space: nowrap;
}


/* ==========================================================
   Subtitle
   ========================================================== */

.hero-subtitle {
    width: fit-content;
    max-width: 100%;

    margin-top: clamp(0.9rem, 1.4vw, 1.2rem);

    color: var(--text);

    font-family: "Rajdhani", sans-serif;
    font-size: clamp(1.25rem, 1.9vw, 1.65rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: 0.02em;

    text-transform: uppercase;
}


.hero-subtitle::after {
    content: "";

    display: block;

    width: 100%;
    height: 2px;

    margin-top: clamp(0.45rem, 0.7vw, 0.65rem);

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            var(--green) 12%,
            var(--green) 88%,
            transparent 100%
        );
}


/* ==========================================================
   Description
   ========================================================== */

.hero-description {
    max-width: 34rem;

    margin-top: clamp(1.1rem, 1.8vw, 1.5rem);

    color: var(--muted);

    font-family: "Inter", sans-serif;
    font-size: clamp(0.9rem, 0.95vw, 1rem);
    font-weight: 400;
    line-height: 1.6;
}


/* ==========================================================
   Tagline
   ========================================================== */

.hero-tagline {
    width: min(100%, 34rem);

    margin-top: clamp(1.5rem, 2.5vw, 2rem);

    display: flex;
    align-items: center;

    gap: clamp(0.65rem, 1vw, 0.9rem);

    color: var(--green);

    font-family: "Inter", sans-serif;
    font-size: clamp(0.68rem, 0.72vw, 0.8rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.16em;

    text-transform: uppercase;
    white-space: nowrap;
}


.hero-tagline::before,
.hero-tagline::after {
    content: "";

    display: block;

    flex: 1 1 auto;

    min-width: 1.5rem;
    height: 1px;
}


.hero-tagline::before {
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            var(--green) 100%
        );
}


.hero-tagline::after {
    background:
        linear-gradient(
            90deg,
            var(--green) 0%,
            transparent 100%
        );
}


.hero-tagline span {
    flex: 0 0 auto;
}


/* ==========================================================
   Hero image
   ========================================================== */

.hero-right {
    position: absolute;

    top: 0;
    right: clamp(-0.25rem, -0.25vw, 0.75rem);

    z-index: 0;

    width: clamp(64rem, 75vw, 84rem);
    height: auto;

    display: block;

    overflow: visible;
}

.hero-image-wrapper {
    position: relative;

    width: 100%;
    height: auto;

    display: block;
}


.hero-complete {
    display: block;

    width: 100%;
    max-width: none;
    height: auto;

    object-fit: contain;
    object-position: top right;

    user-select: none;
    pointer-events: none;
}


/*
   The approved fade is part of hero-complete.png.
   No additional CSS gradient or overlay is used.
*/


/* ==========================================================
   Compact desktop
   ========================================================== */

@media (max-width: 75rem) {

    .hero {
        min-height: clamp(40rem, 58vw, 46rem);
    }


    .hero-container {
        grid-template-columns:
            minmax(31rem, 1fr)
            minmax(0, 1fr);
    }


    .hero-copy {
        width: min(100%, 34rem);
    }


    .hero-description {
        max-width: 31rem;
    }


    .hero-tagline {
        width: min(100%, 31rem);
    }


    .hero-right {
    right: clamp(-1rem, -0.8vw, -0.25rem);

    width: clamp(54rem, 75vw, 69rem);
}

}


/* ==========================================================
   Tablet

   Preserve the desktop composition:
   text on the left and hero artwork behind/to the right.
   ========================================================== */

@media (max-width: 62rem) {

    .hero {
        min-height: clamp(38rem, 78vw, 46rem);

        padding-block:
            clamp(4.75rem, 8vw, 6rem)
            clamp(2rem, 5vw, 3rem);
    }


    .hero-container {
        position: relative;

        width: min(
            calc(100% - (var(--page-gutter) * 2)),
            var(--container-max)
        );

        min-height: clamp(31rem, 66vw, 39rem);

        display: block;
    }


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

        width: min(62%, 32rem);

        text-align: left;
    }


    .hero-copy {
        width: 100%;

        margin-inline: 0;
        padding-top: clamp(2rem, 5vw, 3.5rem);
    }


    .hero-title {
        align-items: flex-start;

        font-size: clamp(2.35rem, 6vw, 3.75rem);
    }


    .hero-title .nowrap {
        white-space: nowrap;
    }


    .hero-subtitle {
        margin-inline: 0;

        font-size: clamp(1rem, 2.6vw, 1.35rem);
    }


    .hero-description {
        max-width: 28rem;

        margin-inline: 0;
        margin-top: clamp(0.9rem, 2vw, 1.25rem);

        font-size: clamp(0.78rem, 1.7vw, 0.92rem);
    }


    .hero-tagline {
        width: min(100%, 27rem);

        margin-inline: 0;
        margin-top: clamp(1.15rem, 2.5vw, 1.6rem);
    }


    .hero-right {
        position: absolute;

        top: 0;
        right: clamp(-17rem, -21vw, -8rem);

        width: clamp(56rem, 103vw, 68rem);
        height: auto;

        margin: 0;
    }


    .hero-image-wrapper {
        width: 100%;
        height: auto;
    }


    .hero-complete {
        width: 100%;
        max-width: none;

        margin: 0;
    }

}


/* ==========================================================
   Mobile

   Desktop composition in a smaller scale.
   ========================================================== */
@media (max-width: 44rem) {

    /*
       Mobile keeps the approved desktop composition,
       reduced proportionally rather than rearranged.
    */

    .hero {
        min-height: clamp(20rem, 66vw, 27rem);

        padding-block:
            3.3rem
            clamp(0.75rem, 2.5vw, 1.1rem);
    }


    .hero::after {
        height: clamp(3rem, 10vw, 5rem);
    }


    .hero-container {
        position: relative;

        width: calc(100% - 1rem);
        min-height: clamp(16.5rem, 56vw, 22rem);

        margin-inline: auto;

        display: block;
    }


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

        width: 48%;

        text-align: left;
    }


    .hero-copy {
        width: 100%;
        max-width: none;

        margin: 0;
        padding-top: clamp(1.4rem, 5vw, 2.2rem);
        
    }


    .hero-title {
        align-items: flex-start;

        gap: 0.03rem;

        font-size: clamp(1.05rem, 4.3vw, 1.55rem);
        line-height: 0.94;
    }


    .hero-title .nowrap {
        white-space: nowrap;
    }


    .hero-subtitle {
        width: fit-content;
        max-width: 100%;

        margin-top: clamp(0.35rem, 1.3vw, 0.55rem);

        font-size: clamp(0.5rem, 2vw, 0.7rem);
        line-height: 1.1;
    }


    .hero-subtitle::after {
        height: 1px;

        margin-top: 0.25rem;
    }


    .hero-description {
        max-width: 100%;

        margin-top: clamp(0.45rem, 1.8vw, 0.7rem);

        font-size: clamp(0.38rem, 1.5vw, 0.52rem);
        line-height: 1.55;
    }


    .hero-tagline {
        width: 100%;

        margin-top: clamp(0.55rem, 2vw, 0.8rem);
        margin-inline: 0;

        gap: clamp(0.25rem, 1vw, 0.4rem);

        font-size: clamp(0.3rem, 1.2vw, 0.42rem);
        letter-spacing: 0.1em;

        white-space: nowrap;
    }


    .hero-tagline::before,
    .hero-tagline::after {
        min-width: 0.4rem;
    }


    .hero-tagline span {
        flex: 0 0 auto;

        text-align: center;
    }


    .hero-right {
        position: absolute;

        top: 0.35rem;
        right: -2%;

        z-index: 0;

        width: 92%;
        height: auto;

        margin: 0;
    }


    .hero-image-wrapper {
        width: 100%;
        height: auto;
    }


    .hero-complete {
        width: 100%;
        max-width: none;
        height: auto;

        margin: 0;

        object-fit: contain;
        object-position: top right;
    }


    .quick-features {
        position: relative;
        z-index: 2;

        width: 100%;
        max-width: none;

        margin-top: clamp(1rem, 4vw, 1.6rem);
        margin-inline: 0;
    }

}


/* ==========================================================
   Narrow mobile

   Keep the same mini-desktop composition as Mobile.
   Only minor spacing adjustments are allowed here.
   ========================================================== */

@media (max-width: 29rem) {

    .hero {
        min-height: clamp(22rem, 76vw, 26rem);
    }


    .hero-container {
        min-height: clamp(18rem, 64vw, 22rem);
    }


    .hero-copy {
        width: 100%;
        max-width: none;

        padding-top: clamp(1.2rem, 5vw, 1.7rem);
    }


    .hero-title {
        font-size: clamp(0.95rem, 4.3vw, 1.25rem);
    }


    .hero-right {
        top: 0;
        right: 0;

        width: 100%;
    }


    .quick-features {
        width: 100%;

        margin-top: clamp(0.85rem, 4vw, 1.25rem);
        margin-inline: 0;
    }

}

@media (max-width: 48rem) {
    .hero {
        min-height: auto;
        padding: 6.25rem 0 1.75rem;
        overflow: hidden;
    }
    .hero-container {
        width: calc(100% - 3rem);
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }
    .hero-left { width: 100%; }
    .hero-copy { width: 100%; padding-top: 0.75rem; }
    .hero-title { font-size: clamp(2.35rem, 8vw, 4.25rem); line-height: 0.92; }
    .hero-title .nowrap { white-space: normal; }
    .hero-subtitle { margin-top: 0.9rem; font-size: clamp(1.05rem, 3.4vw, 1.6rem); }
    .hero-description { max-width: 42rem; margin-top: 1rem; font-size: clamp(0.9rem, 2vw, 1rem); line-height: 1.6; }
    .hero-tagline { width: 100%; margin-top: 1.2rem; font-size: clamp(0.62rem, 1.7vw, 0.76rem); letter-spacing: 0.11em; }
    .hero-right {
        position: relative;
        inset: auto;
        order: 2;
        width: 100%;
        margin: 0;
        overflow: hidden;
        aspect-ratio: 1.05;
        border-radius: 0.35rem;
    }
    .hero-image-wrapper { width: 100%; height: 100%; overflow: hidden; }
    .hero-complete {
        width: 135%;
        max-width: none;
        height: 100%;
        margin-left: -35%;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 25rem) {
    .hero { padding-top: 6rem; padding-bottom: 1.5rem; }
    .hero-container { width: calc(100% - 2.75rem); gap: 1rem; }
    .hero-copy { padding-top: 0.5rem; }
    .hero-title { font-size: clamp(2.2rem, 11vw, 2.9rem); }
    .hero-subtitle { font-size: clamp(1rem, 4.6vw, 1.25rem); }
    .hero-description { font-size: 0.9rem; }
    .hero-tagline { font-size: clamp(0.58rem, 2.3vw, 0.7rem); }
    .hero-right { aspect-ratio: 0.84; }
    .hero-complete {
        width: 100%;
        height: 100%;
        margin-left: 0;
        object-position: 91% center;
    }
}
