/* ===== CSS Variables ===== */
:root {
    --primary-color: #0078d4;
    --primary-hover: #106ebe;
    --secondary-color: #6b7280;
    --background-color: #ffffff;
    --surface-color: #f9fafb;
    --surface-hover: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

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

/* ===== 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 var(--border-color);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

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

.logo-icon {
    font-size: 1.5rem;
}

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

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

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

/* ===== Hero Section ===== */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

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

.hero-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

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

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

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* ===== Section Styles ===== */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
}

/* ===== Features Section ===== */
.features {
    background: var(--background-color);
}

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

.feature-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

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

/* ===== Screenshots Section ===== */
.screenshots {
    background: var(--surface-color);
}

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

.screenshot-placeholder {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    border: 2px dashed var(--border-color);
}

.screenshot-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    background: var(--background-color);
}

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

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-caption {
    padding: 12px 16px;
    text-align: center;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
}

/* ===== Download Section ===== */
.download {
    background: var(--background-color);
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto 48px;
}

.download-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.2s;
}

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

.download-card-store {
    border-color: var(--primary-color);
    border-width: 2px;
}

.download-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.download-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.download-card > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.store-btn {
    display: inline-flex;
    align-items: center;
}

.store-coming-soon {
    color: var(--primary-color);
    font-weight: 500;
}

.requirements-section {
    max-width: 500px;
    margin: 0 auto 32px;
    text-align: center;
}

.requirements-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.requirements {
    list-style: none;
    text-align: left;
    display: inline-block;
}

.requirements li {
    padding: 6px 0;
    color: var(--text-secondary);
}

.version-note {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.version-note a {
    color: var(--primary-color);
    text-decoration: none;
}

.version-note a:hover {
    text-decoration: underline;
}

.sideload-instructions {
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface-color);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.sideload-instructions summary {
    padding: 16px 24px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
}

.sideload-instructions summary:hover {
    background: var(--surface-hover);
}

.sideload-instructions ol {
    padding: 0 24px 24px 48px;
    color: var(--text-secondary);
}

.sideload-instructions li {
    padding: 8px 0;
}

/* ===== Footer ===== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 24px;
}

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

.footer-brand .logo-text {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-brand p {
    margin-top: 12px;
    color: #9ca3af;
    font-size: 0.95rem;
}

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

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

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

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

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

.coming-soon-tag {
    background: #374151;
    color: #9ca3af;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.875rem;
}

.disclaimer {
    margin-top: 8px;
    font-size: 0.75rem !important;
    color: #6b7280 !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

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

    .download-options {
        grid-template-columns: 1fr;
    }

    .download-card {
        padding: 32px 24px;
    }

    .sideload-instructions ol {
        padding-left: 32px;
    }
}
