/* Silkscreen - Main Stylesheet */

:root {
    --primary-color: #007AFF;
    --primary-hover: #0056b3;
    --secondary-color: #5856D6;
    --text-dark: #1d1d1f;
    --text-medium: #424245;
    --text-light: #86868b;
    --background-white: #ffffff;
    --background-light: #f5f5f7;
    --border-color: #d2d2d7;
    --success-color: #34C759;
    --gradient-start: #007AFF;
    --gradient-end: #5856D6;
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0 40px;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-medium);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.nav-links a.active {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--background-light);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 140px 40px 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--background-light) 0%, var(--background-white) 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--text-medium) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: 1.5rem;
    color: var(--text-medium);
    margin-bottom: 40px;
    font-weight: 400;
}

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

.hero-image {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Device Mockups */
.device-mockup {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    padding: 12px;
    background: #1d1d1f;
    border-radius: 40px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--background-light);
    border-radius: 28px;
    overflow: hidden;
}

.desktop-mockup {
    width: 500px;
    border-radius: 12px;
}

.desktop-bar {
    background: var(--background-light);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.desktop-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
}

.desktop-dot.red { background: #FF5F57; }
.desktop-dot.yellow { background: #FFBD2E; }
.desktop-dot.green { background: #28CA42; }

.desktop-screen {
    height: 320px;
    background: white;
    padding: 20px;
}

/* App UI Mockup Elements */
.app-header {
    background: white;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.app-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.folder-list {
    padding: 16px;
}

.folder-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    margin-bottom: 8px;
}

.folder-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.folder-info h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.folder-info span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px;
}

.screenshot-thumb {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #e0e0e0 0%, #f0f0f0 100%);
    border-radius: 8px;
}

/* Sections */
.section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.section-header p {
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

.section-alt {
    background: var(--background-light);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

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

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

/* Sync Feature Highlight */
.sync-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sync-content h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.sync-content p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 24px;
    line-height: 1.7;
}

.sync-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.sync-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sync-arrow svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-color);
    animation: pulse 2s infinite;
}

.sync-arrow span {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

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

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 100px 40px;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-section .btn {
    background: white;
    color: var(--primary-color);
}

.cta-section .btn:hover {
    background: var(--background-light);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 40px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    color: var(--text-light);
    margin-top: 16px;
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #424245;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Page Header */
.page-header {
    padding: 120px 40px 60px;
    text-align: center;
    background: var(--background-light);
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* Documentation Styles */
.docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.docs-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.docs-nav {
    list-style: none;
}

.docs-nav li {
    margin-bottom: 8px;
}

.docs-nav a {
    display: block;
    padding: 10px 16px;
    color: var(--text-medium);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.docs-nav a:hover,
.docs-nav a.active {
    background: var(--background-light);
    color: var(--primary-color);
}

.docs-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.docs-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.docs-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 30px 0 15px;
}

.docs-content p {
    color: var(--text-medium);
    margin-bottom: 16px;
    line-height: 1.8;
}

.docs-content ul, .docs-content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--text-medium);
}

.docs-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.docs-content code {
    background: var(--background-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.9em;
}

.code-block {
    background: var(--text-dark);
    color: #f5f5f7;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Support Page */
.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.support-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.2s ease;
}

.support-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.1);
}

.support-card svg {
    width: 48px;
    height: 48px;
    fill: var(--primary-color);
    margin-bottom: 20px;
}

.support-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.support-card p {
    color: var(--text-medium);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faq-answer {
    color: var(--text-medium);
    margin-top: 16px;
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question::after {
    content: '-';
}

/* Auth Pages */
.auth-container {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px 60px;
    background: var(--background-light);
}

.auth-card {
    background: white;
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 440px;
}

.auth-card h1 {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.form-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-medium);
}

.form-options a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-card .btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 16px;
}

.social-login {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: white;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: var(--background-light);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 968px) {
    .sync-feature {
        grid-template-columns: 1fr;
    }

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

    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
    }

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

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

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

    .desktop-mockup {
        width: 100%;
        max-width: 400px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
