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

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Improve image loading performance */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

body {
    font-family: 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #fbfbfd;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(251, 251, 253, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

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

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #007aff;
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 400;
    font-size: 17px;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: #007aff;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #fbfbfd 0%, #f5f5f7 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge .ai-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1d1d1f;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: #86868b;
    margin-bottom: 2.5rem;
    line-height: 1.5;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    min-height: 44px;
}

.btn-primary {
    background: #007aff;
    color: white;
    box-shadow: 0 4px 14px 0 rgba(0, 122, 255, 0.39);
}

.btn-primary:hover {
    background: #0056cc;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(0, 122, 255, 0.49);
}

.btn-secondary {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 122, 255, 0.15);
    border-color: rgba(0, 122, 255, 0.3);
    transform: translateY(-1px);
}

.hero-image {
    text-align: center;
}

.app-screenshot {
    max-width: 280px;
    height: auto;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    object-fit: contain;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1d1d1f;
    letter-spacing: -0.02em;
}

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

.feature-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.feature-card.ai-feature {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(88, 86, 214, 0.05) 100%);
    border: 1px solid rgba(0, 122, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 122, 255, 0.2);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 18px;
    color: #007aff;
}

.ai-feature .feature-icon {
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: #86868b;
    line-height: 1.6;
    font-size: 17px;
}

/* Screenshots Section */
.screenshots {
    padding: 80px 0;
    background: #f5f5f7;
}

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

.screenshot-item {
    text-align: center;
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.screenshot-item img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 24px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    loading: lazy;
}

.screenshot-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.screenshot-item p {
    color: #86868b;
    font-size: 17px;
    line-height: 1.4;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="rgba(0,122,255,0.1)" fill-opacity="0.4"><circle cx="30" cy="30" r="2"/></g></g></svg>') repeat;
}

.ai-highlight {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 122, 255, 0.2);
    color: #64d2ff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 122, 255, 0.3);
    position: relative;
    z-index: 1;
}

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

.download-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.download-content p {
    font-size: 1.375rem;
    margin-bottom: 2rem;
    opacity: 0.85;
    color: #f2f2f7;
}

.btn-download img {
    height: 60px;
    margin-bottom: 2rem;
}

.download-info {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.download-info p {
    font-size: 17px;
    margin: 0;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f2f2f7;
}

/* Footer */
.footer {
    background: #f2f2f7;
    color: #1d1d1f;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #1d1d1f;
    font-weight: 600;
}

.footer-section p {
    color: #86868b;
    line-height: 1.6;
}

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

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

.footer-section ul li a {
    color: #86868b;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 17px;
}

.footer-section ul li a:hover {
    color: #007aff;
}

.footer-section .contact-email {
    background: #007aff;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 8px;
    transition: all 0.2s ease;
    font-size: 17px;
}

.footer-section .contact-email:hover {
    background: #0056cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 1rem;
    text-align: center;
    color: #86868b;
    font-size: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
} 