/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0a84ff;
    --primary-hover: #409cff;
    --secondary-color: #5e5ce6;
    --accent-color: #30d158;
    --text-primary: #1d1d1f;
    --text-secondary: #48484a;
    --text-light: #86868b;
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f2f2f7;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-color: rgba(0, 0, 0, 0.1);
    --border-glass: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 80px rgba(10, 132, 255, 0.1);
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    --gradient-text: linear-gradient(135deg, #000000 0%, #48484a 100%);
    --gradient-primary: linear-gradient(135deg, #0a84ff 0%, #5e5ce6 100%);
}

/* Dark Mode Overrides */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f5f5f7;
        --text-secondary: #a1a1a6;
        --text-light: #6e6e73;
        --bg-primary: #121212;  /* Lighter than pure black */
        --bg-secondary: #1c1c1e;
        --bg-tertiary: #2c2c2e;
        --bg-card: rgba(44, 44, 46, 0.6);
        --bg-glass: rgba(44, 44, 46, 0.4);
        --border-color: rgba(255, 255, 255, 0.1);
        --border-glass: rgba(255, 255, 255, 0.08);
        --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
        --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
        --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.6);
        --gradient-text: linear-gradient(135deg, #fff 0%, #a1a1a6 100%);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(28, 28, 30, 0.7);
    }
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 20px;
    color: var(--text-primary);
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

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

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

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

.github-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary) !important;
}

/* Hero Image Section */
.hero-image-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 24px 40px;
}

.hero-image-container {
    position: relative;
}

.hero-image-container img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid var(--border-color);
    transition: transform 0.5s ease;
}

.hero-image-container:hover img {
    transform: translateY(-10px);
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 160px 24px 120px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero.hero-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 24px 80px;
}

.hero-centered .hero-content {
    max-width: 700px;
}

.hero-centered .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.hero-centered .hero-buttons {
    justify-content: center;
}

.hero-content {
    max-width: 540px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--text-primary); /* Fallback */
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 99px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-requirements {
    font-size: 13px;
    color: var(--text-light);
    flex-basis: 100%;
    margin-top: 4px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid var(--border-color);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: translateY(-10px);
}

/* Features Header */
.features-header {
    text-align: center;
    padding: 80px 24px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.features-header h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.features-header p {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Features Section */
.features {
    padding: 0 24px 120px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    padding: 100px 0;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    max-width: 460px;
}

.feature-media {
    flex: 1.2;
    position: relative;
}

.feature-label {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.feature-row h3 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.feature-row p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-video, .feature-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

/* Download Section */
.download-section {
    padding: 120px 24px;
    text-align: center;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

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

.download-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.download-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.download-options {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.download-option {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: left;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    transition: var(--transition);
}

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

.download-option h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.download-option p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.code-block {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 13px;
    border: 1px solid var(--border-color);
}

.code-block code {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.code-block code:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    padding: 80px 24px 40px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

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

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

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 280px;
    line-height: 1.6;
}

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

.footer-column h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-copyright {
    color: var(--text-light);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-image-section {
        padding: 100px 24px 40px;
    }
    
    .hero {
        padding-top: 140px;
        gap: 40px;
    }
    
    .hero.hero-centered {
        padding: 60px 24px 60px;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .features-header h2 {
        font-size: 40px;
    }
    
    .feature-row {
        gap: 40px;
        padding: 80px 0;
    }
    
    .feature-row h3 {
        font-size: 32px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hero-image-section {
        padding: 100px 16px 30px;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero.hero-centered {
        padding: 50px 24px 50px;
    }
    
    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .features-header {
        padding: 60px 24px 30px;
    }
    
    .features-header h2 {
        font-size: 36px;
    }
    
    .features-header p {
        font-size: 18px;
    }
    
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        gap: 32px;
        text-align: center;
        padding: 60px 0;
    }
    
    .feature-content {
        max-width: 100%;
    }
    
    .download-options {
        flex-direction: column;
        align-items: center;
    }
    
    .download-option {
        width: 100%;
        max-width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 1;
        text-align: center;
        align-items: center;
    }
    
    .footer-desc {
        text-align: center;
    }
    
    .footer-column {
        align-items: center;
    }
}
