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

:root {
    --navy-dark: #1a2332;
    --slate-blue: #2d3e50;
    --blue-accent: #4a9eff;
    --blue-light: #6bb0ff;
    --green-whatsapp: #25D366;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --border-radius: 12px;
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 16px rgba(0, 0, 0, 0.4);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: var(--navy-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in.visible {
    animation: fadeInUp 0.8s ease forwards;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--navy-dark) 0%, #0f1823 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(74, 158, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation-delay: 0.2s;
}

.logo {
    width: 200px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 8px 16px rgba(74, 158, 255, 0.3));
    animation-delay: 0s;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--text-secondary);
}

.free-badge {
    margin-top: 1rem;
    color: var(--blue-light);
    font-size: 1.125rem;
    font-weight: 600;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--blue-accent) 0%, #3d8ae6 100%);
    color: white;
    box-shadow: var(--shadow-soft);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-accent) 100%);
}

.cta-button.large {
    padding: 18px 48px;
    font-size: 1.25rem;
}

.cta-button.whatsapp {
    background: linear-gradient(135deg, var(--green-whatsapp) 0%, #1ea952 100%);
    color: white;
    box-shadow: var(--shadow-soft);
}

.cta-button.whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, #2ae070 0%, var(--green-whatsapp) 100%);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
}

/* Features Section */
.features {
    padding: 100px 20px;
    background-color: var(--navy-dark);
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    animation-delay: 0.1s;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--slate-blue);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 158, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(74, 158, 255, 0.3);
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

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

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

/* Gallery Section */
.gallery {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--navy-dark) 0%, #0f1823 100%);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.screenshot-card {
    background-color: var(--slate-blue);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 158, 255, 0.1);
}

.screenshot-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
    border-color: rgba(74, 158, 255, 0.3);
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid rgba(74, 158, 255, 0.1);
}

.screenshot-caption {
    padding: 1.25rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
}

.screenshot-card:nth-child(1) { animation-delay: 0.1s; }
.screenshot-card:nth-child(2) { animation-delay: 0.2s; }
.screenshot-card:nth-child(3) { animation-delay: 0.3s; }
.screenshot-card:nth-child(4) { animation-delay: 0.4s; }

/* Why Section */
.why-section {
    padding: 100px 20px;
    background-color: var(--navy-dark);
}

.why-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation-delay: 0.2s;
}

.why-content h2 {
    margin-bottom: 2rem;
}

.why-story {
    text-align: left;
    margin-bottom: 3rem;
}

.why-story p {
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.why-story p:first-child::first-letter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--blue-accent);
    float: left;
    line-height: 1;
    margin-right: 8px;
    margin-top: 4px;
}

.why-cta-text {
    font-weight: 600;
    color: var(--blue-light) !important;
    font-size: 1.125rem !important;
    margin-top: 2rem !important;
}

.why-content .cta-button {
    margin-top: 1rem;
}

/* Sticky CTA Footer */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--slate-blue) 0%, #1e2936 100%);
    border-top: 1px solid rgba(74, 158, 255, 0.2);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    backdrop-filter: blur(10px);
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    gap: 20px;
}

.sticky-cta-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sticky-cta .cta-button {
    padding: 12px 28px;
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Community Section */
.community {
    padding: 100px 20px;
    background-color: var(--slate-blue);
}

.community-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation-delay: 0.2s;
}

.community-content h2 {
    margin-bottom: 1.5rem;
}

.community-description {
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.community-content .cta-button {
    margin-top: 1rem;
}

.community-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(74, 158, 255, 0.15);
}

.community-footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.community-footer .footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.community-footer .footer-links a {
    color: var(--blue-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.community-footer .footer-links a:hover {
    color: var(--text-primary);
}

.community-footer .separator {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    padding: 40px 20px 80px 20px;
    background-color: #0f1823;
    text-align: center;
    border-top: 1px solid rgba(74, 158, 255, 0.1);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--blue-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.separator {
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 60px 20px;
    }

    .logo {
        width: 150px;
    }

    .features-grid,
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features,
    .gallery,
    .why-section,
    .community {
        padding: 60px 20px;
    }

    .sticky-cta-content {
        flex-direction: column;
        text-align: center;
        padding: 14px 20px;
        gap: 12px;
    }

    .sticky-cta-text {
        font-size: 1rem;
    }

    .sticky-cta .cta-button {
        width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.0625rem;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .cta-button.large {
        padding: 14px 32px;
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        width: 120px;
    }

    .features-grid {
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading State */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
