/* Enhanced Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(7, 125, 109, 0.05) 0%,
        rgba(7, 125, 109, 0.02) 50%,
        rgba(255, 255, 255, 0) 100%
    );
}

/* Animated Background Circles */
.hero-bg::before,
.hero-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.hero-bg::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--rcash-primary) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.hero-bg::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--rcash-primary-light) 0%, transparent 70%);
    bottom: -100px;
    left: -50px;
    animation-delay: -10s;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .hero {
        padding: 6rem 0 4rem;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--rcash-primary) 0%, var(--rcash-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero-description {
        font-size: 1rem;
    }
}

/* App Download Section */
.app-download {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.download-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--rcash-primary);
}

.download-btn i {
    font-size: 2rem;
    color: var(--text-primary);
}

.download-btn div {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.download-btn small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.download-btn strong {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Hero Visual/Phone Mockup */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.phone-mockup {
    position: relative;
    z-index: 2;
}

/* Floating Cards Enhancement */
.floating-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    animation: float 6s infinite ease-in-out;
}

.float-card i {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--rcash-primary) 0%, var(--rcash-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.float-card.card-1 {
    top: 10%;
    right: 0;
    animation-delay: 0s;
}

.float-card.card-2 {
    top: 50%;
    right: -10%;
    animation-delay: 2s;
}

.float-card.card-3 {
    bottom: 15%;
    right: 5%;
    animation-delay: 4s;
}

@media (max-width: 1024px) {
    .floating-cards {
        display: none;
    }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(-1deg);
    }
    75% {
        transform: translateY(-15px) rotate(1deg);
    }
}

/* Dark Theme */
[data-theme="dark"] .hero-bg::before,
[data-theme="dark"] .hero-bg::after {
    opacity: 0.15;
}

[data-theme="dark"] .download-btn {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .float-card {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 0 3rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .app-download {
        align-items: center;
    }
    
    .download-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .download-btn {
        padding: 0.75rem 1.25rem;
    }
    
    .download-btn i {
        font-size: 1.5rem;
    }
    
    .download-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
}
