/* ===========================
   GLOBAL RESET
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #090909;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    /* Add body fade/slide-in animation on load */
    animation: bodyFadeIn 1.2s cubic-bezier(.61,.01,.5,1.01) both;
}

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

/* ===========================
   ANIMATED BACKGROUND
=========================== */
.animated-background {
    inset: 0;
    overflow: hidden;
    z-index: -2;
    /* Subtle background color shifting animation */
    animation: bgColorPulse 16s ease-in-out infinite alternate;
}

@keyframes bgColorPulse {
    0% { filter: hue-rotate(0deg) brightness(1); }
    50% { filter: hue-rotate(40deg) brightness(1.05);}
    100% { filter: hue-rotate(-30deg) brightness(1);}
}

/* Gradient Orbs */
.gradient-orb {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.52;
    animation: orbFloat 12s ease-in-out infinite alternate, orbOrbit 18s linear infinite;
    pointer-events: none;
    will-change: transform, opacity, filter;
}

.orb-1 {
    background: linear-gradient(135deg,#32cd32 40%, #00ff7f 100%);
    top: 30px;
    left: -40px;
    animation-delay: 0s, 0.5s;
}

.orb-2 {
    background: linear-gradient(225deg,#0f0 25%,#00ff7f 100%);
    bottom: 30px;
    right: -40px;
    animation-delay: 0.6s, 3s;
}

.orb-3 {
    background: linear-gradient(95deg,#3fff9d 55%,#8affdf 100%);
    top: 55%;
    left: 45%;
    animation-delay: 1.8s, 5.2s;
}

@keyframes orbFloat {
    0% { transform: translateY(0) scale(1);}
    35% { filter: brightness(1.06);}
    60% { filter: brightness(1);}
    100% { transform: translateY(-90px) scale(1.2);}
}
@keyframes orbOrbit {
    0% { filter: hue-rotate(0deg);}
    50% { filter: hue-rotate(40deg);}
    100% { filter: hue-rotate(0deg);}
}

/* GRID PATTERN */
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    /* Animate grid movement and a soft shimmer */
    animation: gridMove 20s linear infinite, gridGlow 7s ease-in-out infinite alternate;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}
@keyframes gridGlow {
    0% { filter: brightness(1) blur(0px);}
    40% { filter: brightness(1.08) blur(1px);}
    100% { filter: brightness(1) blur(0px);}
}

/* ===========================
   HEADER
=========================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 2rem;
    background: rgba(9, 9, 9, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(50, 205, 50, 0.25);
    opacity: 0;
    animation: headerFadeIn 0.8s 0.3s cubic-bezier(.33,1.59,.57,1) forwards;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

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

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 36px;
    width: auto;
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(50, 205, 50, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.header-logo-img:hover {
    transform: scale(1.05);
    filter: brightness(1.5) drop-shadow(0 0 12px rgba(50, 205, 50, 0.6));
}

.header-nav {
    display: flex;
    align-items: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.5rem;
    background: rgba(20, 80, 20, 0.85);
    border: 1.5px solid rgba(50, 205, 50, 0.6);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(.33,.94,.72,1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(50, 205, 50, 0.2);
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(50, 205, 50, 0.3), transparent);
    transition: left 0.5s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    background: rgba(30, 100, 30, 0.95);
    border-color: #32cd32;
    box-shadow: 0 4px 20px rgba(50, 205, 50, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
}

.download-btn:active {
    transform: translateY(0);
}

.download-icon {
    font-size: 1.2rem;
    animation: iconBounce 2s ease-in-out infinite;
    filter: brightness(1.2);
    display: inline-block;
    line-height: 1;
}

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

.download-text {
    position: relative;
    z-index: 1;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===========================
   PAGE WRAPPER
=========================== */
.container {
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 70px; /* Add margin to account for fixed header */
    /* Animate container slide-from-bottom on load */
    opacity: 0;
    transform: translateY(32px);
    animation: containerEntrance 1s 0.6s cubic-bezier(.33,1.59,.57,1) forwards;
}
@keyframes containerEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   HERO SECTION (LOGO AREA)
=========================== */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 40vh;
    position: relative;
    margin-top: 2rem;
    /* Animate fade-in from top */
    opacity: 0;
    animation: heroSectionFade 1.1s 0.8s cubic-bezier(.66,1.14,.55,1) forwards;
}
@keyframes heroSectionFade {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.logo-container {
    position: relative;
    /* Floating and scaling for logo */
    animation: floatLogo 4s ease-in-out infinite, fadeIn 0.7s 1.1s cubic-bezier(.38,.59,.39,1.34) backwards;
}

.logo-with-name {
    max-width: 140px;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

/* Glow Behind Logo */
.logo-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(50,205,50,0.52) 70%, transparent 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(30px);
    animation: glowPulse 2.6s infinite alternate, glowColorShift 12s linear infinite;
}
@keyframes glowColorShift {
    0% { filter: blur(25px) hue-rotate(0deg);}
    30% { filter: blur(30px) hue-rotate(15deg);}
    60% { filter: blur(22px) hue-rotate(-10deg);}
    100%{ filter: blur(25px) hue-rotate(0deg);}
}

/* Glow Ring */
.logo-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid rgba(50,205,50,0.35);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotateRing 6s linear infinite, ringGlow 2.2s ease-in-out infinite alternate;
}
@keyframes ringGlow {
    0% { box-shadow: 0 0 0 0 rgba(50,205,50,0.04);}
    80% { box-shadow: 0 0 8px 4px rgba(50,205,50,0.18);}
    100% { box-shadow: 0 0 0 0 rgba(50,205,50,0.01);}
}

/* FLOAT + GLOW ANIMATIONS */
@keyframes floatLogo {
    0%,100% { transform: translateY(0);}
    30% { transform: translateY(-3px) scale(1.01);}
    50% { transform: translateY(-5px) scale(1.02);}
    88% { transform: translateY(-2px) scale(0.99);}
}

@keyframes glowPulse {
    0% { opacity: 0.42; transform: translate(-50%, -50%) scale(1);}
    60% { opacity: 1; transform: translate(-50%, -50%) scale(1.05);}
    100% { opacity: 0.44; transform: translate(-50%, -50%) scale(1);}
}

@keyframes rotateRing {
    0% { transform: translate(-50%, -50%) rotate(0deg);}
    100% { transform: translate(-50%, -50%) rotate(360deg);}
}

@keyframes fadeIn {
    from { opacity: 0;}
    to { opacity: 1;}
}

/* ===========================
   TAGLINE ANIMATION
=========================== */
.tagline {
    font-size: 1.2rem;
    color: #cfcfcf;
    margin-top: 2.5rem !important;
    opacity: 0;
    animation: taglinePop 0.7s 1.4s cubic-bezier(.77,0,.18,1.01) forwards;
    letter-spacing: 0.01em;
}
@keyframes taglinePop {
    from { opacity: 0; transform: translateY(30px);}
    to { opacity: 1; transform: translateY(0);}
}

/* Animate each "word" of the tagline in a sequential fade + blur in/out, with a slight scale for accent */
.tagline-word {
    opacity: 0;
    filter: blur(6px);
    display: inline-block;
    animation: wordFade 4.6s cubic-bezier(.67,0,.32,1) infinite;
    will-change: opacity, filter, transform;
    transform: scale(0.98);
}

.tagline-word:nth-child(1) { animation-delay: 0s; }
.tagline-word:nth-child(3) { animation-delay: 1.5s; }
.tagline-word:nth-child(5) { animation-delay: 3s; }

@keyframes wordFade {
    0% { opacity: 0; filter: blur(8px); transform: translateY(30px) scale(0.96);}
    14% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1.04);}
    44% { opacity: 0.8; transform: scale(1);}
    64% { opacity: 0; filter: blur(10px); transform: translateY(-28px) scale(0.98);}
    100% { opacity: 0; }
}

/* ===========================
   FEATURE CARDS
=========================== */
.features {
    margin-top: 4rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Animate grid fade-in */
    opacity: 0;
    animation: featuresAppear 0.8s 2s cubic-bezier(.3,.87,.39,.92) forwards;
}

@keyframes featuresAppear {
    to { opacity: 1;}
}

.feature-card {
    background: rgba(255,255,255,0.06);
    padding: 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(50,205,50,0.25);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px) scale(0.97);
    animation: fadeUp 0.9s cubic-bezier(.44,.96,.25,1.13) forwards;
    /* Will be staggered using data-delay (see below) */
    transition: box-shadow 0.24s cubic-bezier(.33,.94,.72,1), transform 0.34s cubic-bezier(.33,.94,.72,1);
}

.feature-card[data-delay="0"] { animation-delay: 2.4s; }
.feature-card[data-delay="1"] { animation-delay: 2.75s; }
.feature-card[data-delay="2"] { animation-delay: 3.1s; }

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(50px) scale(0.96);}
    55% { opacity: 1;}
    100% { opacity: 1; transform: translateY(0) scale(1);}
}

/* ICON */
.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    animation: iconPulse 2.2s infinite;
}

@keyframes iconPulse {
    0% { transform: scale(1);}
    42% { transform: scale(1.05) rotate(-2deg);}
    60% { transform: scale(1.03) rotate(1deg);}
    100% { transform: scale(1);}
}

/* TITLE */
.feature-title {
    font-size: 1.3rem;
    color: #32cd32;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(16px);
    animation: featureTitleUp 1s cubic-bezier(.55,1,.48,1.17) forwards;
    animation-delay: 3.2s;
}
@keyframes featureTitleUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* DESCRIPTION */
.feature-description {
    color: #d0d0d0;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(24px);
    animation: featureDescUp 1.2s cubic-bezier(.33,1.23,.68,1.11) forwards;
    animation-delay: 3.4s;
}
@keyframes featureDescUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HOVER EFFECTS */
.feature-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: #32cd32;
    box-shadow: 0 0 20px 0px rgba(50,205,50,0.32);
    transition: box-shadow 0.19s cubic-bezier(.22,1,.36,1), transform 0.18s cubic-bezier(.22,1,.36,1);
}

/* Shine Effect */
.feature-shine {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.34), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s cubic-bezier(.49,.13,.38,1.44);
    pointer-events: none;
}

.feature-card:hover .feature-shine {
    left: 150%;
}

/* ===========================
   FOOTER
=========================== */
.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    color: #777;
    text-align: center;
    opacity: 0;
    animation: footerAppear 0.7s 3.2s cubic-bezier(.7,.2,.47,1.13) forwards;
}

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

/* ===========================
   RESPONSIVE HEADER
=========================== */
@media (max-width: 768px) {
    .main-header {
        padding: 0.6rem 1rem;
    }
    
    .header-logo-img {
        height: 28px;
    }
    
    .download-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        gap: 0.4rem;
        background: rgba(20, 80, 20, 0.9);
        border: 1.5px solid rgba(50, 205, 50, 0.7);
    }
    
    .download-text {
        display: none;
    }
    
    .download-icon {
        font-size: 1.4rem;
        filter: brightness(1.3);
    }
    
    .container {
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 0.5rem 0.75rem;
    }
    
    .header-logo-img {
        height: 26px;
    }
    
    .download-btn {
        padding: 0.55rem 1rem;
        background: rgba(20, 80, 20, 0.95);
        border: 1.5px solid rgba(50, 205, 50, 0.8);
    }
    
    .download-icon {
        font-size: 1.5rem;
    }
}
