/* Hero Section Styles - Subtle Version (active styles) */

.site-banner-container {
    position: relative;
    overflow: hidden;
}

.hero-section {
    background: rgba(248, 250, 252, 0.5);
    position: relative;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23f1f5f9" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23e2e8f0" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.05;
    pointer-events: none;
}

/* Hero Headlines */
.hero-headline-container {
    position: relative;
    z-index: 2;
}

.hero-line-1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 0.3rem;
    text-shadow: none;
}

.hero-line-2 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
    color: var(--fs-accent);
    position: relative;
}

.hero-accent {
    color: #3182ce;
}

.hero-underline {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--fs-accent), #e65100);
    margin: 0.8rem auto;
    border-radius: 2px;
    animation: slideInFromLeft 0.8s ease-out 0.6s both;
}

/* Logo Section */
.logo-container {
    position: relative;
    z-index: 2;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
}

.site-logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    transition: transform 0.2s ease;
}

.site-logo:hover {
    transform: scale(1.02);
}

.beta-badge {
    font-size: 1.2rem;
    font-weight: 400;
    color: #64748b;
    background: rgba(100, 116, 139, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    border: 1px solid rgba(100, 116, 139, 0.1);
    position: relative;
    top: -8px;
}

/* Subheadline */
.subheadline-container {
    position: relative;
    z-index: 2;
}

.subheadline {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

.subheadline-main {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    color: #4a5568;
    margin: 0 0 0.3rem 0;
}

.subheadline-secondary {
    font-size: 1.05rem;
    font-weight: 300;
    color: #718096;
    margin: 0;
    font-style: italic;
}

.highlight-text {
    color: var(--fs-accent);
    font-weight: 500;
    position: relative;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--fs-accent), transparent);
    opacity: 0.2;
}

/* ==========================================================================
   Hero Trust Signals - Below CTA for +34% conversion lift
   Research: VWO study shows trust signals increase conversion by 34%
   ========================================================================== */

.hero-trust-signals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-top: 1.5rem;
}

.hero-trust-signals .trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
}

.hero-trust-signals .trust-item i {
    color: var(--fs-success);
    font-size: 0.85rem;
}

/* Mobile: Stack vertically for better readability */
@media (max-width: 576px) {
    .hero-trust-signals {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .hero-trust-signals .trust-item {
        font-size: 0.85rem;
    }
}

/* Tablet: Wrap nicely */
@media (min-width: 577px) and (max-width: 768px) {
    .hero-trust-signals {
        gap: 0.75rem 1rem;
    }

    .hero-trust-signals .trust-item {
        font-size: 0.85rem;
    }
}

/* Feature Highlights */
.feature-highlights {
    margin-top: 1.5rem;
    animation: fadeInUp 0.6s ease-out 1.0s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 400;
    color: #4a5568;
}

.feature-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.8);
}

.feature-item i {
    font-size: 1rem;
}

/* Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================================
   Animation Classes - Failsafe Design

   KEY: Never set opacity:0 directly on elements!
   Use animation-fill-mode:both to let keyframes handle it.
   If animation fails to run -> no opacity set -> browser default (1) -> VISIBLE
   =========================================== */

/* Animations with 'both' fill-mode: keyframes control opacity, not the element */
.animate-fade-in {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.animate-fade-in-delayed {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.animate-fade-in-delayed-2 {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.animate-scale-in {
    animation: scaleIn 0.8s ease-out 0.6s both;
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.animate-bounce {
    animation: gentleBounce 2s ease-in-out infinite;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in,
    .animate-fade-in-delayed,
    .animate-fade-in-delayed-2,
    .animate-scale-in,
    .animate-fade-up,
    .animate-bounce {
        animation: none;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gentleBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-line-1 { font-size: 1.7rem; }
    .hero-line-2 { font-size: 2.0rem; }
    .site-logo { width: 190px; }
    .subheadline-main { font-size: 1.2rem; }
}

@media (max-width: 992px) {
    .hero-line-1 { font-size: 1.6rem; }
    .hero-line-2 { font-size: 1.9rem; }
    .site-logo { width: 170px; }
    .subheadline-main { font-size: 1.15rem; }
    .subheadline-secondary { font-size: 1rem; }
}

@media (max-width: 768px) {
    .hero-section { padding: 2.5rem 0; }
    .hero-line-1 { font-size: 1.5rem; }
    .hero-line-2 { font-size: 1.8rem; }
    .site-logo { width: 150px; }
    .beta-badge { font-size: 1.1rem; }
    .subheadline-main { font-size: 1.1rem; }
    .subheadline-secondary { font-size: 0.95rem; }
    .subheadline { font-size: 1.15rem; }
    .feature-highlights {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    .feature-item {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-section { padding: 2rem 0; }
    .hero-line-1 { font-size: 1.4rem; }
    .hero-line-2 { font-size: 1.7rem; }
    .site-logo { width: 140px; }
    .beta-badge {
        font-size: 1rem;
        padding: 0.15rem 0.5rem;
        top: -5px;
    }
    .subheadline-main { font-size: 1.05rem; }
    .subheadline-secondary { font-size: 0.9rem; }
    .subheadline {
        font-size: 1.05rem;
        line-height: 1.5;
    }
    .logo-wrapper {
        flex-direction: column;
        gap: 0.4rem;
    }
    .feature-item { font-size: 0.85rem; }
}
