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

:root {
    --primary-blue: #7B9EFF;
    --dark-blue: #5B7EE8;
    --light-blue: #9FB8FF;
    --accent-blue: #C3D4FF;
    --white: #ffffff;
    --off-white: #f8fafc;
    --light-gray: #e2e8f0;
    --gray: #64748b;
    --dark-gray: #334155;
    --text-dark: #0f172a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(91, 126, 232, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    opacity: 0.9;
}

.nav-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-login {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: opacity 0.3s ease;
}

.btn-login:hover {
    opacity: 0.8;
}

.btn-get-started {
    background: var(--white);
    color: var(--dark-blue);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-get-started:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
    align-items: center;
    border-radius: 0 0 24px 24px;
}

.hero-content {
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: 3.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn-primary {
    background: var(--white);
    color: var(--dark-blue);
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 1rem 2rem;
    border: 2px solid var(--white);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark-blue);
}

/* Hero App Store Badges */
.hero-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.store-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.store-badge svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

.store-badge div {
    display: flex;
    flex-direction: column;
}

.badge-text {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.badge-name {
    font-size: 1rem;
    font-weight: 600;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-screenshot {
    max-width: 100%;
    height: auto;
    max-height: 580px;
}

/* Screenshot Card Images */
.screenshot-card img {
    max-width: 100%;
    height: auto;
    max-height: 420px;
    border-radius: 16px;
}

.screenshot-card:hover img {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* Section Base Styles */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--gray);
}

/* Features Section */
.features {
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--off-white);
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(91, 126, 232, 0.15);
    border-color: var(--accent-blue);
}

.feature-card.featured {
    background: linear-gradient(135deg, var(--off-white) 0%, var(--accent-blue) 100%);
    border-color: var(--light-blue);
}

.feature-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--white);
}

.feature-card h3 {
    font-size: 1.35rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Screenshots Section */
.screenshots {
    background: var(--off-white);
    border-radius: 24px;
}

.screenshots-gallery {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.screenshot-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.screenshot-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.screenshot-label {
    color: var(--gray);
    font-size: 0.9rem;
    text-align: center;
    max-width: 180px;
}

/* Free Section */
.free-section {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    text-align: center;
    border-radius: 24px;
    margin: 2rem auto;
    max-width: 1000px;
}

.free-content {
    max-width: 700px;
    margin: 0 auto;
}

.free-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.free-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--white);
}

.free-content h2 {
    font-size: 2.25rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.free-content p {
    font-size: 1.15rem;
    color: var(--white);
    opacity: 0.95;
    line-height: 1.7;
}

/* Download Section */
.download {
    max-width: 900px;
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.download > .download-content > p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

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

.store-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--text-dark);
    color: var(--white);
    padding: 1rem 1.75rem;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.store-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
    background: var(--dark-blue);
}

.store-button svg {
    width: 36px;
    height: 36px;
    fill: var(--white);
}

.store-button div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

.store-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.web-app-link {
    margin-top: 2rem;
}

.web-app-link p {
    color: var(--gray);
    font-size: 1rem;
}

.web-app-link a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.web-app-link a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* Contact Section */
.contact {
    background: var(--off-white);
    border-radius: 24px;
    max-width: 800px;
    padding: 3rem 2rem;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.contact-info {
    font-size: 1.15rem;
    color: var(--gray);
}

.contact-info a,
.email-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover,
.email-link:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

.obfuscated-email {
    color: var(--gray);
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 2rem 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 45px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--light-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a,
.footer-section ul li span {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a:hover {
    color: var(--accent-blue);
}

.footer-section ul li a svg {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    border-top: 1px solid var(--dark-gray);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.85rem;
}

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

.feature-card {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 1rem;
        display: block;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-links.mobile-visible,
    .nav-cta.mobile-visible {
        display: flex;
    }

    .nav-links.mobile-visible {
        flex-direction: column;
        width: 100%;
        order: 3;
        padding: 1rem 0;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 1rem;
    }

    .nav-links.mobile-visible li {
        width: 100%;
    }

    .nav-links.mobile-visible a {
        display: block;
        padding: 0.75rem 0;
        text-align: center;
    }

    .nav-cta.mobile-visible {
        flex-direction: column;
        width: 100%;
        order: 4;
        padding: 1rem 0;
        gap: 0.75rem;
        align-items: center;
    }

    .nav-cta.mobile-visible .btn-get-started {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem 4rem;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-screenshot {
        max-height: 480px;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-gallery {
        gap: 1.5rem;
    }

    .screenshot-card img {
        max-height: 320px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .free-content h2 {
        font-size: 1.75rem;
    }

    .free-content p {
        font-size: 1rem;
    }

    .contact h2 {
        font-size: 1.5rem;
    }

    .contact-info {
        font-size: 1rem;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-section:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.85rem;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .store-badge {
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }

    .screenshots-gallery {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-section:last-child {
        grid-column: span 1;
    }
}
