/* ==========================================
   HERO SECTION - PREMIUM DARK ENGINEERING UI
   ========================================== */

:root {
    --bg-navy: #0B121C; 
    --bg-steel: #273747;
    --accent-primary: #2C96EA; 
    --text-offwhite: #F4F5F7;
    --text-muted: #9BA3AE; 
    --transition-liquid: 0.45s cubic-bezier(0.86, 0, 0.07, 1); 
}

.hero-premium {
    position: relative;
    /* Adjusted height to prevent dead space, uses natural padding */
    min-height: 90vh; 
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    padding-top: 120px; /* Space for transparent navbar */
    padding-bottom: 140px; /* Extra padding at bottom for floating trust bar */
    background-color: var(--bg-navy);
    overflow: hidden;
    /* ULTRA PRO: Rounded bottom edges */
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px; /* Space before next section */
}

/* Background Architecture (Subtle & Immersive) */
.hero-bg-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.85; 
}

.hero-bg-layer img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center right; 
    filter: grayscale(40%) contrast(115%) brightness(45%); 
    mix-blend-mode: overlay; 
}

.hero-gradient-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(11, 18, 28, 0.98) 0%, rgba(11, 18, 28, 0.7) 50%, rgba(11, 18, 28, 0.2) 100%);
}

/* Content Composition */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content-box {
    max-width: 800px; 
}

/* Eyebrow - Precise & Technical */
.hero-eyebrow {
    display: flex; align-items: center; gap: 15px; margin-bottom: 20px; 
}

.eyebrow-line {
    width: 40px; height: 2px;
    background-color: var(--accent-primary); 
    box-shadow: 0 0 10px var(--accent-primary); /* Neon subtle glow */
}

.eyebrow-text {
    font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2.5px;
    color: var(--accent-primary);
}

/* Typography */
.hero-headline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 5rem); 
    font-weight: 800; line-height: 1.1;
    color: var(--text-offwhite);
    text-transform: uppercase; letter-spacing: -1.5px; 
    margin-bottom: 25px;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); 
}

.text-accent-primary { color: var(--accent-primary); }

.hero-subheadline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    color: var(--text-muted); 
    line-height: 1.7; font-weight: 400; max-width: 680px; margin-bottom: 45px; 
}

.hero-subheadline strong { color: var(--text-offwhite); font-weight: 600; }

/* ==========================================
   ENGINEERED CTAs (ULTRA PRO PILL SHAPE)
   ========================================== */
.hero-actions {
    display: flex; gap: 20px; flex-wrap: wrap;
}

.btn-primary-engineered, 
.btn-secondary-engineered {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 36px; 
    font-family: 'Inter', sans-serif; font-size: 1.05rem; font-weight: 600;
    letter-spacing: 0.5px; text-decoration: none;
    /* ULTRA PRO: Pill shape */
    border-radius: 50px; 
    overflow: hidden; white-space: nowrap; z-index: 1;
    transition: all 0.4s ease;
}

.btn-text {
    position: relative; z-index: 2; display: flex; align-items: center; gap: 12px;
    transition: color 0.4s ease;
}

/* PRIMARY BUTTON - Sleek Tech Glow */
.btn-primary-engineered {
    background-color: var(--accent-primary);
    color: var(--text-offwhite);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 8px 25px rgba(44, 150, 234, 0.3);
}

.btn-primary-engineered::before {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--text-offwhite);
    transform: scaleY(0); transform-origin: bottom;
    transition: transform var(--transition-liquid); z-index: -1;
}

.btn-primary-engineered:hover {
    box-shadow: 0 12px 30px rgba(44, 150, 234, 0.5);
    transform: translateY(-3px);
}

.btn-primary-engineered:hover::before { transform: scaleY(1); }
.btn-primary-engineered:hover .btn-text { color: var(--bg-navy); }

/* SECONDARY BUTTON - Frosted Glass */
.btn-secondary-engineered {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-offwhite);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.btn-secondary-engineered::before {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.1); 
    transform: scaleY(0); transform-origin: bottom;
    transition: transform var(--transition-liquid); z-index: -1;
}

.btn-secondary-engineered:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.btn-secondary-engineered:hover::before { transform: scaleY(1); }

/* ==========================================
   TRUST METRICS BAR (DESKTOP: FLOATING GLASS)
   ========================================== */
.hero-trust-bar {
    position: absolute;
    /* ULTRA PRO: Floating slightly above the bottom */
    bottom: 30px; 
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 60px);
    max-width: 1100px;
    height: 90px; 
    display: flex; align-items: center; 
    background-color: rgba(11, 18, 28, 0.5); 
    border: 1px solid rgba(44, 150, 234, 0.2); 
    border-radius: 24px; /* Rounded pill container */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.trust-grid {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 0 40px; 
}

.trust-metric { display: flex; align-items: center; gap: 15px; }

.metric-value {
    font-family: 'Oswald', sans-serif; font-size: 2rem; font-weight: 700;
    color: var(--text-offwhite); line-height: 1;
}

.metric-icon {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--accent-primary); line-height: 1;
}

.metric-plus { color: var(--accent-primary); }

.metric-label {
    font-family: 'Inter', sans-serif; font-size: 0.8rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
    max-width: 120px; line-height: 1.3;
}

.metric-divider { height: 30px; width: 1px; background-color: rgba(255, 255, 255, 0.1); }


/* ==========================================
   HERO - MOBILE RESPONSIVE UX (NO EMPTY SPACE)
   ========================================== */
@media (max-width: 768px) {
    .hero-premium {
        /* FIX: Removed min-height: 100svh to kill dead space */
        min-height: auto; 
        padding-top: 100px; /* For navbar */
        padding-bottom: 30px; /* Natural spacing */
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
    }
    
    .hero-bg-layer img {
        content: url('../assets/images/mobi-hero.png'); 
        filter: grayscale(20%) contrast(110%) brightness(60%);
        mix-blend-mode: normal; 
        object-position: center;
    }

    .hero-gradient-overlay {
        background: linear-gradient(180deg, rgba(11, 18, 28, 0.95) 0%, rgba(11, 18, 28, 0.6) 40%, rgba(11, 18, 28, 0.95) 100%);
    }

    .hero-content-wrapper {
        margin-bottom: 30px; /* Controlled spacing before metrics */
    }

    .hero-headline { font-size: 2.4rem; line-height: 1.15; }

    .hero-actions {
        flex-direction: column; width: 100%; gap: 15px;
    }

    .btn-primary-engineered, .btn-secondary-engineered {
        width: 100%; text-align: center;
        padding: 16px 20px; /* Slightly slimmer on mobile */
    }

    /* ULTRA PRO MOBILE TRUST METRICS (Compact Grid instead of long boxes) */
    .hero-trust-bar {
        position: relative;
        bottom: 0; left: 0; transform: none;
        width: 100%; height: auto; 
        background-color: transparent; 
        border: none; border-radius: 0;
        box-shadow: none; backdrop-filter: none;
        padding: 0 20px;
    }

    .trust-grid {
        /* CSS Grid replaces flex to make a tight, beautiful layout */
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        gap: 12px;
        padding: 0;
    }

    /* The "30+ Years" takes full width at top, others share space below */
    .trust-grid .trust-metric:first-child {
        grid-column: span 2;
    }

    .trust-metric {
        background: rgba(255, 255, 255, 0.03); 
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px; /* Smooth rounded corners */
        padding: 15px 12px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .metric-value, .metric-icon { font-size: 1.6rem; }
    .metric-label { max-width: 100%; font-size: 0.7rem; line-height: 1.2; letter-spacing: 0.5px; }
    .metric-divider { display: none; }
}