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

:root {
    /* Light mode colors */
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --text-primary: #1d1d1f;
    --text-secondary: #666;
    --border-color: #e5e5e7;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.95);
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark mode colors */
        --bg-primary: #1c1c1e;
        --bg-secondary: #2c2c2e;
        --bg-tertiary: #3a3a3c;
        --text-primary: #f2f2f7;
        --text-secondary: #98989d;
        --border-color: #38383a;
        --shadow-color: rgba(0, 0, 0, 0.3);
        --nav-bg: rgba(44, 44, 46, 0.95);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Prevent image copying and dragging */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* Re-enable pointer events for clickable images if needed */
.logo-img {
    pointer-events: auto;
}

/* Header and Navigation */
header {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 400;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    height: 40px;
}

.nav-links a:hover {
    color: #007aff;
}

.github-link {
    background: #24292e;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.github-link:hover {
    background: #0366d6;
    color: white !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 0 0 auto;
}

.app-icon {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #007aff;
    color: white;
}

.btn-primary:hover {
    background: #0056cc;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-download {
    background: #34c759;
    color: white;
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

.btn-download:hover {
    background: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 199, 89, 0.3);
}

.download-icon {
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
}

.btn-download:hover .download-icon {
    transform: translateY(2px);
}

.btn-github {
    background: #24292e;
    color: white;
}

.btn-github:hover {
    background: #0366d6;
}

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

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

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

.feature {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: var(--bg-tertiary);
    transition: transform 0.2s ease;
}

.feature:hover {
    transform: translateY(-4px);
}

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

.feature h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Use Cases Section */
.use-cases {
    padding: 5rem 0;
    background: var(--bg-tertiary);
}

.use-cases h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.use-case {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.use-case h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.use-case ul {
    list-style: none;
}

.use-case li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.use-case li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #34c759;
    font-weight: bold;
}

/* Download Section */
.download {
    padding: 5rem 0;
    background: var(--bg-secondary);
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.download > p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.download-options {
    margin-bottom: 3rem;
}

.download-info {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.download-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.installation-note {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 16px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.installation-note h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.installation-note p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.installation-note em {
    color: #007aff;
    font-style: italic;
}

/* GitHub Section */
.github-section {
    padding: 5rem 0;
    background: var(--bg-tertiary);
    text-align: center;
}

.github-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.github-section > p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.github-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Additional Links Section */
.additional-links {
    padding: 3rem 0;
    background: var(--bg-secondary);
    text-align: center;
}

.additional-links-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-1px);
}

/* Footer */
footer {
    background: #1d1d1f;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .app-icon {
        width: 150px;
        height: 150px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .download-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .github-links {
        flex-direction: column;
        align-items: center;
    }
    
    .additional-links-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .features h2,
    .use-cases h2,
    .download h2,
    .github-section h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
}