/* 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', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

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

.nav-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
    color: #1a73e8;
    text-decoration: none;
}

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

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

.nav-link:hover {
    color: #1a73e8;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a73e8;
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--hero-bg);
    color: white;
    overflow: hidden;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.highlight {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 32px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

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

.btn-primary {
    background: var(--text-color);
    color: var(--bg-color);
}

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

.btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background: #1a73e8;
    color: white;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.note-icon {
    font-size: 1.1rem;
}

/* Browser Mockup */
.browser-mockup {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 20px 40px var(--shadow);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.browser-mockup:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
}

.browser-header {
    background: var(--bg-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

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

.browser-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #ff5f57; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #28ca42; }

.browser-url {
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    flex: 1;
}

.browser-content {
    height: 300px;
    background: var(--card-bg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paywall-overlay {
    text-align: center;
    color: #666;
    position: relative;
}

.paywall-text {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.archivejump-popup {
    background: #1a73e8;
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.3);
    animation: slideIn 0.5s ease;
}

.popup-header {
    font-weight: 600;
    margin-bottom: 4px;
}

.popup-text {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.popup-button {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

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

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #fafbfc;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 6px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px var(--shadow);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1a1a1a;
}

.large-text {
    font-size: 1.25rem;
    color: #444;
    margin-bottom: 24px;
    font-weight: 500;
}

.about-text p {
    margin-bottom: 24px;
    color: #666;
    line-height: 1.7;
}

.ethics-note {
    background: #f0f7ff;
    border: 1px solid #d1e7ff;
    border-radius: 12px;
    padding: 24px;
    margin-top: 40px;
}

.ethics-note h3 {
    color: #1a73e8;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ethics-note p {
    color: #555;
    margin-bottom: 0;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #1a73e8;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

/* Install Section */
.install {
    padding: 100px 0;
    background: #fafbfc;
}

.install-steps {
    display: flex;
    gap: 40px;
    margin-top: 60px;
}

.step {
    flex: 1;
    display: flex;
    gap: 20px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: #1a73e8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.step-content p {
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
}

.install-details {
    margin-top: 16px;
}

.install-details summary {
    color: #1a73e8;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 12px;
}

.install-details ol {
    padding-left: 20px;
    color: #666;
}

.install-details li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.install-details code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.9em;
}

.use-tips {
    background: #f0f7ff;
    border: 1px solid #d1e7ff;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.use-tips p {
    color: #555;
    margin: 0;
}

.store-status {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.store-status h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    min-width: 70px;
    text-align: center;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.progress {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-badge.available {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-note {
    margin-top: 16px;
    padding: 12px;
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    font-size: 13px;
    color: #0056b3;
}

.status-note strong {
    color: #003d82;
}

/* Support Section */
.support {
    padding: 100px 0;
}

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

.faq-item {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.support-contact {
    text-align: center;
    background: #f0f7ff;
    border: 1px solid #d1e7ff;
    border-radius: 16px;
    padding: 48px 32px;
}

.support-contact h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.support-contact p {
    color: #666;
    margin-bottom: 24px;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 32px;
}

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

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

.footer-brand > span:first-child {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: #1a73e8;
}

.footer-description {
    color: #999;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

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

.footer-section a {
    display: block;
    color: #999;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #1a73e8;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 32px;
    text-align: center;
    color: #999;
}

.footer-note {
    margin-top: 8px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-links {
        display: none;
    }
    
    .theme-toggle {
        position: fixed;
        top: 16px;
        right: 16px;
        z-index: 1001;
        margin-left: 0;
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .feature-card {
        padding: 32px 24px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .install-steps {
        flex-direction: column;
        gap: 32px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 24px 20px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .step {
        flex-direction: column;
        gap: 16px;
    }
    
    .step-number {
        align-self: flex-start;
    }
}
