/* Homepage-specific styles */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--tranquil-blue), var(--deep-blue));
    color: white;
    padding: var(--space-xl) 0;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .container {
    max-width: 600px;
}

.hero-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-m);
    border-radius: 26.67%; /* iOS app icon radius */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero h1 {
    font-size: clamp(2rem, 2rem + 2.5vw, 3rem); /* 32px → 48px fluid */
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-s);
    line-height: 1.2;
    text-wrap: balance;
}

.hero-subtitle {
    font-size: var(--text-xl); /* Fluid 20px → 28px */
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-l);
    line-height: 1.5;
}

.app-store-badge {
    display: inline-block;
    margin-top: var(--space-m);
    transition: transform 0.2s ease;
}

.app-store-badge:hover {
    transform: translateY(-2px);
}

.app-store-badge img {
    height: 54px;
    width: auto;
}

.app-store-badge:focus-visible {
    outline: 3px solid white;
    outline-offset: 4px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.3);
}

/* Coming Soon Badge State */
.app-store-badge.coming-soon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.6;
    filter: grayscale(30%);
    cursor: not-allowed;
    pointer-events: none;
}

.app-store-badge.coming-soon:hover {
    transform: none; /* Disable hover animation */
}

.coming-soon-pill {
    display: inline-block;
    margin-top: 12px;
    background: linear-gradient(135deg, var(--tranquil-blue), var(--deep-blue));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* Hero CTA Section (right-aligned = 24% lift) */
.hero-cta {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--space-xl);
}

/* Trust Badges (for finance apps) */
.hero-trust {
    display: flex;
    gap: var(--space-m);
    justify-content: center;
    align-items: center;
    margin-top: var(--space-l);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Social Proof (star ratings) */
.hero-rating {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    margin-top: var(--space-s);
    justify-content: center;
}

.stars {
    color: #ffd700; /* Gold */
    font-size: 20px;
    letter-spacing: 2px;
    line-height: 1;
}

.rating-text {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
}

/* Features Section */
.features {
    padding: var(--space-xl) 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: clamp(1.75rem, 1.5rem + 1.5vw, 2.25rem); /* 28px → 36px fluid */
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: var(--space-xl);
    text-wrap: balance;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-l);
    margin-top: var(--space-l);
}

.feature-card {
    text-align: center;
    padding: var(--space-l);
    border-radius: 16px;

    /* Glassmorphism (premium UI) */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%); /* Safari */

    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 4px 24px rgba(44, 95, 141, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);

    /* GPU-accelerated animations */
    will-change: transform;
    contain: layout style paint;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-6px) translateZ(0);
    box-shadow:
        0 12px 40px rgba(44, 95, 141, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.feature-icon {
    font-size: 48px;
    display: block;
    margin-bottom: var(--space-m);
    line-height: 1;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--tranquil-blue);
    margin-bottom: var(--space-s);
}

.feature-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Mobile-first responsive styles (fluid typography handles most sizing) */
@media (max-width: 768px) {
    .hero {
        min-height: 400px;
        padding: var(--space-l) 0;
    }

    .hero-icon {
        width: 100px;
        height: 100px;
    }

    .hero-cta {
        justify-content: center; /* Center CTA on mobile */
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: var(--space-m);
    }

    .feature-card {
        padding: var(--space-m);
    }
}

@media (max-width: 480px) {
    .app-store-badge img {
        height: 48px;
    }

    .feature-icon {
        font-size: 40px;
    }
}
