/* Pixel-Mac Transfer - Modern Styles */
:root {
    --primary: #007AFF;
    --primary-dark: #0056CC;
    --secondary: #5856D6;
    --success: #32D74B;
    --warning: #FF9500;
    --error: #FF3B30;
    
    --bg-primary: #FFFFFF;
    --bg-secondary: #F2F2F7;
    --bg-tertiary: #FFFFFF;
    
    --text-primary: #000000;
    --text-secondary: #3C3C43;
    --text-tertiary: #8E8E93;
    
    --border: #D1D1D6;
    --separator: #C6C6C8;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 3px 6px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.10);
    
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; color: var(--text-secondary); }

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--separator);
}

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

.nav-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.demo-btn {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 60px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.feature-card {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

/* App Section */
.app-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.app-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.app-section > .container > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
}

.app-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.app-card h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dot.connected {
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(50, 215, 75, 0.3);
}

.status-dot.disconnected {
    background: var(--error);
    animation: pulse 2s infinite;
}

.status-dot.connecting {
    background: var(--warning);
    animation: pulse 2s infinite;
}

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

.connection-info {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(0, 122, 255, 0.1);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.connection-info ol {
    margin: 0.5rem 0 0 1.5rem;
}

.connection-info li {
    margin: 0.25rem 0;
    color: var(--text-secondary);
}

.connection-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Demo Browser */
.demo-browser {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 1rem;
}

.browser-toolbar {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    align-items: center;
    flex-wrap: wrap;
}

.current-path {
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex: 1;
    min-width: 200px;
    margin-left: 1rem;
}

/* File List */
.file-list {
    max-height: 300px;
    overflow-y: auto;
}

.demo-list {
    opacity: 0.8;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--separator);
    transition: var(--transition);
}

.file-item:hover {
    background: var(--bg-secondary);
}

.file-item:last-child {
    border-bottom: none;
}

.file-icon {
    font-size: 1.2rem;
    width: 1.5rem;
    text-align: center;
}

.file-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.file-size {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    min-width: 80px;
    text-align: right;
}

/* Upload Area */
.upload-area {
    border: 3px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin: 1rem 0;
}

.demo-upload {
    cursor: not-allowed;
    opacity: 0.6;
}

.upload-area:hover:not(.demo-upload) {
    border-color: var(--primary);
    background: rgba(0, 122, 255, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.upload-area p {
    margin: 0;
    color: var(--text-primary);
}

.upload-subtitle {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.upload-options {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.upload-options select {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Download Section */
.download-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.download-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.download-card {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.download-card.featured {
    border: 2px solid var(--primary);
    position: relative;
}

.download-card.featured::before {
    content: "Recommended";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
}

.download-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.download-card p {
    margin-bottom: 1.5rem;
}

.download-info {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    text-align: left;
}

.code-block {
    background: #1a1a1a;
    color: #00ff41;
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 0.85rem;
    text-align: left;
    overflow-x: auto;
}

/* Guide Section */
.guide-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.guide-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.guide-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.step-number {
    background: var(--primary);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    align-items: center;
}

.footer-brand h3 {
    margin-bottom: 0.5rem;
}

.footer-brand p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--success);
}

.stat span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 20px;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .features-grid,
    .download-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-stats {
        justify-content: center;
    }
    
    .browser-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .current-path {
        margin-left: 0;
        order: -1;
    }
    
    .connection-options {
        justify-content: center;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .nav-links {
        justify-content: center;
    }
}