/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Brazilian Color Scheme */
:root {
    --brazil-green: #009639;
    --brazil-yellow: #FFDF00;
    --brazil-blue: #002776;
    --brazil-light-green: #00A651;
    --brazil-light-yellow: #FFF200;
    --white: #ffffff;
    --dark-text: #1a1a1a;
    --light-text: #666666;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--brazil-green) 0%, var(--brazil-light-green) 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: relative;
    overflow: hidden;
}

.header::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="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.app-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 8px var(--shadow);
    transition: transform 0.3s ease;
    background: transparent;
    border: none;
    outline: none;
}

.app-icon:hover {
    transform: scale(1.05);
}

.logo h1 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Main Content */
.main {
    flex: 1;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--brazil-yellow) 0%, transparent 70%);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

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

.hero-text h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--brazil-green), var(--brazil-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-preview {
    width: 300px;
    height: 300px;
    border-radius: 60px;
    box-shadow: 0 20px 40px var(--shadow);
    transition: transform 0.3s ease;
    animation: bounce 2s ease-in-out infinite;
    background: transparent;
    border: none;
    outline: none;
}

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

.app-preview:hover {
    transform: scale(1.05);
}

/* Download Button */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--brazil-yellow) 0%, var(--brazil-light-yellow) 100%);
    color: var(--dark-text);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 223, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

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

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 223, 0, 0.4);
    border-color: var(--brazil-yellow);
}

.download-btn.large {
    padding: 20px 40px;
    font-size: 1.3rem;
}

.play-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--brazil-blue) 0%, #1e3c72 100%);
    color: var(--white);
    position: relative;
}

.features::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="stars" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="rgba(255,223,0,0.3)"/><circle cx="10" cy="10" r="1" fill="rgba(255,223,0,0.2)"/><circle cx="40" cy="15" r="1.5" fill="rgba(255,223,0,0.25)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.1;
}

.features h3 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--brazil-yellow);
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Download Section */
.download {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--brazil-green) 0%, var(--brazil-light-green) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
}

.download::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="leaves" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M20,5 Q30,15 20,25 Q10,15 20,5" fill="rgba(255,255,255,0.1)"/><path d="M20,15 Q25,20 20,30 Q15,20 20,15" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23leaves)"/></svg>');
    opacity: 0.2;
}

.download-content {
    position: relative;
    z-index: 1;
}

.download h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.download p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--dark-text);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--brazil-yellow);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: transparent;
    border: none;
    outline: none;
}

.footer-logo span {
    font-weight: 600;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .app-preview {
        width: 250px;
        height: 250px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download h3 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .app-preview {
        width: 200px;
        height: 200px;
    }
    
    .download-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .download-btn.large {
        padding: 16px 32px;
        font-size: 1.1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
}

/* Brazilian Flag Inspired Decorative Elements */
.hero::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: var(--brazil-yellow);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.1; }
    50% { transform: translateX(-50%) scale(1.2); opacity: 0.2; }
}

/* Brazilian Carnival-inspired decorative elements */
.features::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--brazil-yellow);
    border-radius: 50%;
    opacity: 0.2;
    animation: carnivalFloat 4s ease-in-out infinite;
}

.features::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--brazil-yellow);
    border-radius: 50%;
    opacity: 0.15;
    animation: carnivalFloat 3s ease-in-out infinite reverse;
}

@keyframes carnivalFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(90deg); }
    50% { transform: translateY(-5px) rotate(180deg); }
    75% { transform: translateY(-15px) rotate(270deg); }
}

/* Brazilian pattern overlay for download section */
.download::after {
    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="brazilianPattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="8" fill="none" stroke="rgba(255,223,0,0.1)" stroke-width="2"/><polygon points="25,15 30,25 40,25 32,32 35,42 25,37 15,42 18,32 10,25 20,25" fill="rgba(255,223,0,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23brazilianPattern)"/></svg>');
    opacity: 0.3;
}

/* Additional Brazilian-inspired animations */
@keyframes samba {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

.feature-card:hover {
    animation: samba 0.5s ease-in-out;
}

/* Accessibility improvements */
.download-btn:focus,
.app-icon:focus {
    outline: 3px solid var(--brazil-yellow);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .download-btn,
    .header,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
