/* Tailwind CSS CDN */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* Custom color variables */
:root {
    --primary: #007AFF;
    --primary-dark: #005ECB;
    --success: #34C759;
    --danger: #FF3B30;
    --bg-light: #F5F5F7;
    --bg-white: #FFFFFF;
    --bg-dark: #1D1D1F;
    --text-main: #1D1D1F;
    --text-secondary: #86868B;
    --gradient-start: #007AFF;
    --gradient-end: #00C6FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'San Francisco', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #F5F5F7 0%, #FFFFFF 100%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-main);
}

.logo svg {
    width: 32px;
    height: 32px;
}

.btn-download {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 122, 255, 0.3);
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 24px 60px;
    background: linear-gradient(135deg, #F5F5F7 0%, #FFFFFF 50%, #F0F8FF 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #00C6FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--primary);
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(0, 122, 255, 0.1);
    transform: translateY(-3px);
}

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

/* Hero Image - iPhone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 1s ease 0.3s forwards;
}

.iphone-mockup {
    width: 280px;
    height: 560px;
    background: #000;
    border-radius: 45px;
    padding: 12px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.3), 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
}

.iphone-notch {
    width: 120px;
    height: 28px;
    background: #000;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 35px;
    overflow: hidden;
    position: relative;
}

.app-preview {
    width: 100%;
    height: 100%;
    padding: 50px 20px 20px;
    display: flex;
    flex-direction: column;
}

.app-header {
    width: 100%;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.app-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doc-card {
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    animation: fadeIn 0.5s ease 0.5s forwards;
    opacity: 0;
}

.doc-card.small {
    height: 60px;
    animation: fadeIn 0.5s ease 0.7s forwards;
}

.app-nav {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-top: auto;
}

.nav-item {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-item.active {
    background: var(--primary);
    box-shadow: 0 0 15px rgba(0, 122, 255, 0.5);
}

/* Features Section */
.features {
    padding: 120px 24px;
    background: white;
}

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

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
}

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

.feature-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 122, 255, 0.08);
    opacity: 0;
    transform: translateY(40px);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(0, 198, 255, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.2);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-main);
}

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

/* Privacy Section */
.privacy {
    padding: 120px 24px;
    background: linear-gradient(135deg, #1D1D1F 0%, #2C2C2E 100%);
    color: white;
}

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

.privacy-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;
    background: rgba(52, 199, 89, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.privacy-icon svg {
    width: 50px;
    height: 50px;
}

.privacy-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.privacy-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
    line-height: 1.8;
}

.privacy-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.privacy-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 32px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.privacy-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.check-icon {
    width: 28px;
    height: 28px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.privacy-item span {
    font-size: 16px;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--bg-light);
    padding: 40px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

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

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

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

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

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

    .hero-image {
        margin-top: 60px;
    }

    .iphone-mockup {
        width: 240px;
        height: 480px;
    }

    .section-title {
        font-size: 32px;
    }

    .privacy-title {
        font-size: 32px;
    }

    .privacy-features {
        max-width: 400px;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 0 16px;
    }

    .logo span {
        font-size: 14px;
    }

    .btn-download {
        padding: 8px 16px;
        font-size: 12px;
    }

    .hero {
        padding: 80px 16px 40px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }

    .features {
        padding: 80px 16px;
    }

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

    .privacy {
        padding: 80px 16px;
    }

    .privacy-title {
        font-size: 28px;
    }

    .privacy-description {
        font-size: 16px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}
