html {
    scroll-behavior: smooth;
}

/* Base Reset & Variables */
:root {
    --color-bg-dark: #1A2F4F; /* Updated dark blue */
    --color-bg-light: #203A60;
    --color-accent-green: #D2FF28; /* Neon Lime Green */
    --color-accent-cyan: #5CE6EB; /* Cyan */
    --color-text-light: #FFFFFF;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-light);
    background-color: var(--color-bg-dark); /* Fallback */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, rgba(19, 43, 76, 0.7) 0%, rgba(19, 43, 76, 0) 100%);
}

.header.scrolled {
    background: rgba(19, 43, 76, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.download-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    opacity: 0;
    animation: fadeInDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--color-text-light);
    color: var(--color-bg-dark);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
}

.btn-download:hover {
    background-color: var(--color-accent-green);
    color: var(--color-bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(210, 255, 40, 0.2);
}

.btn-download i {
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    height: auto;
    padding: 120px 0 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Global Background mimicking the Ava image reference */
.global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(circle at 50% calc(30% + var(--scroll-y, 0px) * 0.3), #1C335A 0%, #0F1D33 100%);
    filter: blur(calc(var(--scroll-ratio, 0) * 12px));
    opacity: calc(1 - var(--scroll-ratio, 0) * 0.4);
    will-change: filter, opacity;
}

/* Neon Green Triangular Corners from the image */
.ava-corner {
    position: absolute;
    bottom: -10vw;
    width: 45vw;
    height: 45vw;
    max-width: 600px;
    max-height: 600px;
    background-color: var(--color-accent-green);
    z-index: 1;
    will-change: transform;
}

.ava-corner-left {
    left: -10vw;
    clip-path: polygon(0 100%, 0 30%, 70% 100%);
    /* Move up and scale based on scroll */
    transform: translateY(calc(var(--scroll-y, 0px) * -0.3)) rotate(calc(var(--scroll-y, 0px) * 0.02deg));
}

.ava-corner-right {
    right: -10vw;
    clip-path: polygon(100% 100%, 100% 30%, 30% 100%);
    transform: translateY(calc(var(--scroll-y, 0px) * -0.4)) rotate(calc(var(--scroll-y, 0px) * -0.015deg));
}

/* Floating neon particles to keep the dynamic feel */
.global-bg::before, .global-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 2;
    will-change: transform;
}

.global-bg::before {
    width: 50vw;
    height: 50vw;
    top: -20vw;
    left: -10vw;
    background: radial-gradient(circle, rgba(92, 230, 235, 0.15) 0%, transparent 70%);
    animation: float 12s ease-in-out infinite alternate;
}

.global-bg::after {
    width: 40vw;
    height: 40vw;
    bottom: -10vw;
    right: 10vw;
    background: radial-gradient(circle, rgba(210, 255, 40, 0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, -40px); }
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    padding: 0 2rem;
    margin-top: 4rem; /* Recuperamos espacio al quitar logo */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-main-logo {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: var(--color-text-light);
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.ava-font {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    letter-spacing: -0.05em;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #FFFFFF; /* Letras blancas */
    -webkit-text-stroke: 1px var(--color-accent-green); /* Borde mucho más fino */
    text-shadow: 0 0 10px rgba(210, 255, 40, 0.3); /* Resplandor suavizado */
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

.features-section {
    padding: 6rem 2rem 2rem 2rem;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.feature-card {
    background: rgba(18, 34, 56, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s, border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(26, 47, 79, 0.7);
    border-color: var(--color-accent-green);
    box-shadow: 0 15px 40px rgba(210, 255, 40, 0.15);
}

.feature-card .icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.1);
}

.feature-card .feature-icon {
    font-size: 2rem;
    color: var(--color-accent-green);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text-light);
    margin: 0;
}



/* Scroll Interactive down arrow */
.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    color: var(--color-text-light);
    font-size: 2rem;
    text-decoration: none;
    animation: bounce 2s infinite;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-down:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* Bottom Download Section */
.download-section {
    background: rgba(15, 29, 51, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.download-section .container {
    max-width: 800px;
    width: 100%;
}

.download-section .section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.download-nav-bottom {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .btn-download .btn-text {
        display: none; /* Icon only on mobile to save space */
    }
    
    .btn-download {
        width: 3.5rem;
        height: 3.5rem;
        padding: 0;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .btn-large {
        width: 4.5rem;   /* A bit bigger for the bottom section */
        height: 4.5rem;
        padding: 0;
    }
    
    .btn-download i {
        font-size: 1.8rem;
        margin: 0;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 9vw, 4rem);
    }
    
    .features-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-logo-large {
        margin-top: 60px; /* Reduce gap on mobile */
    }
}
