/* ==========================================================================
   HERO / PAGE-HEADER SPLASH SECTION (STRICT FIGMA BOTTOM LAYOUT & METRICS)
   ========================================================================== */
.main-page-header .hero-section {
    position: relative;
    z-index: 1;
}

/* Hero Content Viewport (100svh height container) */
.main-page-header .hero-content-viewport {
    height: 100svh;
    max-height: 960px;
    min-height: min-content;
    overflow: hidden;

    padding-top: var(--navbar-height);
    padding-bottom: 43px;
 
}

@media (max-width: 991.98px) {
    .main-page-header .hero-content-viewport { 
        max-height: 9999px;  
        height: 100lvh;
    }
    html, body {
        height: 100%;
        min-height: -webkit-fill-available; 
    }
}
@media (max-width: 991.98px) and (orientation: landscape) {
    .main-page-header .hero-content-viewport { 
        height: auto;
        min-height: 100dvh;  
    }
}


/* HTML-driven Hero Background Image Layer */

.main-page-header .hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.main-page-header .hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    position: relative;
    z-index: 0;
}

/* Luminous dark gradient overlay to blend overflowing background seamlessly into body */
.main-page-header .hero-bg-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            var(--dark) 0%,
            var(--dark) 12%,
            rgba(16, 14, 14, 0.8) 25%,
            rgba(16, 14, 14, 0) 45%,
            rgba(16, 14, 14, 0) 100%);
    z-index: 1;
}

.main-page-header .hero-section .hero-container {
    z-index: 2;  
}
 

/* Title Definitions (Strict 52px layout from tokens.json) */

.hero-title {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title h1 {
    display: block;
    font-family: var(--font-inter);
    font-size: 52px;
    font-weight: 300;
    line-height: 1.15;
    color: var(--white);
    letter-spacing: -0.5px;
    margin: 0;
}

.hero-title-tag {
    font-family: var(--font-inter);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 6px;
    color: var(--primary);
    text-transform: uppercase;
    display: block; 
}

.hero-title-by {
    font-family: var(--font-inter);
    font-size: 28px;
    font-weight: 300;
    line-height: 1.3;
    color: var(--primary);
    display: block; 
}

@media (max-width: 767px) {
    .hero-title h1 {
        font-size: 40px;
        line-height: 1.2;
    }
    .hero-title-by {
        font-size: 22px;
    }
}


/* Button Wrapper */
.main-page-header .hero-btn-wrapper {
    margin-top: 24px;
    /* Figma offset gap */
}

/* Descriptive tagline card (Strict 329px width from figma nodes) */
.main-page-header .tagline-card {
    width: 329px;
    max-width: 100%;
}

.main-page-header .tagline-text {
    font-size: 18px;
    font-weight: 300;
    line-height: 22px;
    color: var(--light);
}

/* Responsive adjustments */
@media (max-width: 992px) {

    .main-page-header .hero-logo-bg {
        padding-top: 0;
    }

    .main-page-header .hero-content-viewport {
        padding-top: 80px;
        padding-bottom: 15px;
    }

    .main-page-header .hero-content-row {
        gap: 30px;
    }

    .main-page-header .btn-hero-cta {
        width: 100%;
        /* Fluid on small devices */
    }
}

/* Partners Section at Bottom of Hero */
.hero-container-bottom { 
}

.partner-logo {
    height: 46px;
    width: auto;
    display: block;
    opacity: 0.85;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (max-width: 767px) {
    .partner-logo {
        height: 30px;
    }
}

.partner-logo:hover {
    opacity: 1;
}


.hero-date{
    font-family: var(--font-inter), sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: 0.5px;
    color: var(--primary);
    text-align: left;
    display: block;
    opacity: 0.85;
}


.hero-form{
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.07) 100%);
    backdrop-filter: blur(50px);
    padding: 38px;
}

@media (max-width: 767px) {
    .hero-form{
        padding: 16px;
    }
}