/* ===== CSS VARIABLES ===== */
:root {
    /* Colors - strict dark theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --surface: #16161f;
    --surface-elevated: #1e1e2a;
    
    --text-primary: #ffffff;
    --text-secondary: #888899;
    --text-tertiary: #555566;
    
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    
    --accent-primary: #7c5cff;
    --accent-secondary: #a470ff;
    --accent-glow: rgba(124, 92, 255, 0.15);
    
    --success: #34c759;
    --error: #ff3b30;
    
    /* Glassmorphism - subtle */
    --glass-bg: rgba(22, 22, 31, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 12px;
    
    /* Shadows */
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 22px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.material-symbols-rounded {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--transition-base);
    background: transparent;
}

.header.scrolled {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon .material-symbols-rounded {
    font-size: 20px;
}

.nav {
    display: flex;
    gap: var(--space-xl);
}

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

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

.header-cta {
    background: var(--accent-primary);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all var(--transition-base);
}

.header-cta:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 var(--space-3xl);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: var(--accent-glow);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-badge .material-symbols-rounded {
    font-size: 14px;
    color: var(--accent-primary);
}

.hero-title {
    font-size: clamp(42px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.hero-title .highlight {
    color: var(--accent-primary);
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 19px);
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--surface-elevated);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.hero-visual {
    margin-top: var(--space-3xl);
    position: relative;
}

.hero-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background: var(--bg-secondary);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--surface-elevated);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.feature-icon .material-symbols-rounded {
    font-size: 24px;
    color: white;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.feature-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-xl);
}

.step {
    text-align: center;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
}

.step-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.step-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== SCREENSHOTS ===== */
.screenshots {
    padding: var(--space-3xl) 0;
}

.screenshots-scroll {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: var(--space-md) 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.screenshots-scroll::-webkit-scrollbar {
    display: none;
}

.screenshot-card {
    flex: 0 0 280px;
    scroll-snap-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.screenshot-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

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

.screenshot-label {
    padding: var(--space-md);
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

/* ===== DOWNLOAD SECTION ===== */
.download {
    padding: var(--space-3xl) 0;
}

.download-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    text-align: center;
}

.download-content {
    position: relative;
}

.download-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.download-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 480px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.6;
}

.download-platforms {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-base);
    min-width: 180px;
}

.platform-btn:hover {
    background: var(--surface-elevated);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.platform-icon {
    font-size: 28px;
    color: var(--accent-primary);
}

.platform-info {
    text-align: left;
}

.platform-name {
    font-weight: 600;
    font-size: 13px;
    display: block;
}

.platform-label {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* ===== PLATFORM SOON ===== */
.platform-soon {
    opacity: 0.45;
    pointer-events: none;
}

/* ===== CHANGELOG ===== */
.changelog {
    padding: var(--space-3xl) 0;
}

.changelog-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.changelog-loading {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-tertiary);
    font-size: 14px;
    justify-content: center;
    padding: var(--space-2xl);
}

.changelog-entry {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.changelog-entry-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

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

.changelog-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.changelog-badge-release {
    background: rgba(124, 92, 255, 0.15);
    color: var(--accent-secondary);
    border: 1px solid rgba(124, 92, 255, 0.3);
}

.changelog-badge-patch {
    background: rgba(52, 199, 89, 0.12);
    color: var(--success);
    border: 1px solid rgba(52, 199, 89, 0.25);
}

.changelog-badge-beta {
    background: rgba(255, 159, 10, 0.12);
    color: #ff9f0a;
    border: 1px solid rgba(255, 159, 10, 0.25);
}

.changelog-date {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-left: auto;
}

.changelog-group {
    margin-bottom: var(--space-md);
}

.changelog-group:last-child {
    margin-bottom: 0;
}

.changelog-group-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-sm);
}

.changelog-group-title-new { color: var(--accent-secondary); }
.changelog-group-title-improved { color: #34c8ff; }
.changelog-group-title-fixed { color: var(--success); }

.changelog-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.changelog-items li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: var(--space-md);
    position: relative;
    line-height: 1.5;
}

.changelog-items li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
}

/* ===== FOOTER ===== */
.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

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

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 12px;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 36px;
    height: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-platforms {
        flex-direction: column;
        align-items: center;
    }
    
    .platform-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ===== ANIMATION CLASSES ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
}
