/* Qwip - Modern Framer-style CSS */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #0f0f0f;
    background: #ffffff;
    overflow-x: hidden;
}

/* Utility classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 20px;
    color: #0f0f0f;
    text-decoration: none;
}

.logo-icon {
    font-size: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 15px;
}

.nav-link:hover {
    color: #0f0f0f;
}

.nav-cta {
    background: #007bff;
    color: white !important;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.nav-mobile {
    display: none;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%);
    position: relative;
    overflow: hidden;
}

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 24px;
    padding: 6px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #007bff;
}

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

.hero-gradient {
    background: linear-gradient(135deg, #007bff 0%, #ff4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-description {
    font-size: 20px;
    color: #666666;
    margin-bottom: 32px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 16px;
}

.btn-primary {
    background: #007bff;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #0f0f0f;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

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

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #007bff;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #666666;
    font-weight: 500;
}

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

.demo-browser {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.browser-bar {
    background: #f8f9fa;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
}

.browser-dots span:nth-child(1) { background: #ff5f56; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #27ca3f; }

.browser-url {
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    flex: 1;
}

.browser-content {
    padding: 24px;
}

.demo-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.demo-image img {
    width: 100%;
    height: auto;
    display: block;
}

.detection-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    padding: 8px 12px;
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.detection-overlay.ai {
    border-left: 3px solid #ff4444;
}

.overlay-confidence {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 2px;
}

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

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 20px;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 123, 255, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f0f0f;
}

.feature-description {
    color: #666666;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 120px 0;
    background: #fafbff;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: 60px 1fr 120px;
    gap: 32px;
    align-items: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f0f0f;
}

.step-description {
    color: #666666;
    line-height: 1.6;
}

.visual-box {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid rgba(0, 123, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.visual-icon {
    color: #007bff;
    width: 32px;
    height: 32px;
}

/* Privacy Section */
.privacy {
    padding: 120px 0;
    background: #ffffff;
}

.privacy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.privacy-features {
    margin-top: 32px;
}

.privacy-feature {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.privacy-icon {
    width: 24px;
    height: 24px;
    color: #007bff;
    flex-shrink: 0;
    margin-top: 2px;
}

.privacy-feature h4 {
    font-weight: 600;
    margin-bottom: 4px;
    color: #0f0f0f;
}

.privacy-feature p {
    color: #666666;
    font-size: 15px;
}

.privacy-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 40px 24px;
}

.privacy-step {
    text-align: center;
    flex: 1;
}

.step-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.step-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #0f0f0f;
}

.step-description {
    font-size: 12px;
    color: #666666;
}

.privacy-arrow {
    font-size: 20px;
    color: #007bff;
    font-weight: 600;
}

/* Community Section */
.community {
    padding: 120px 0;
    background: #fafbff;
}

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

.community-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.community-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.card-icon {
    width: 24px;
    height: 24px;
    color: #007bff;
}

.card-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f0f0f;
}

.card-description {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-link {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: #0056b3;
}

/* Download Section */
.download {
    padding: 120px 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    color: white;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.download .section-title,
.download .section-description {
    color: white;
}

.download-features {
    margin-top: 32px;
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.feature-check {
    width: 20px;
    height: 20px;
    color: #44ff44;
}

.download-feature span {
    font-weight: 500;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 24px;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
}

.btn-title {
    font-weight: 600;
    font-size: 16px;
}

.btn-subtitle {
    font-size: 14px;
    opacity: 0.7;
}

.download-note {
    margin-top: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

.download-note p {
    margin: 0;
    font-size: 14px;
}

/* Footer */
.footer {
    background: #0f0f0f;
    color: white;
    padding: 80px 0 32px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

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

.footer-heading {
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-mobile {
        display: block;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 24px;
    }
    
    .privacy-content,
    .download-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .privacy-diagram {
        flex-direction: column;
        gap: 16px;
    }
    
    .privacy-arrow {
        transform: rotate(90deg);
    }
}

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

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-visual {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Smooth scrolling improvements */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .community-card {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease-out forwards;
    }
    
    .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; }
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus,
.card-link:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-badge {
        background: #007bff;
        color: white;
        border-color: #007bff;
    }
    
    .feature-card {
        border-color: #0f0f0f;
    }
}