/* ========================================
   LiveFilms — 官网样式
   极简 · 暗调 · 胶片美学
   ======================================== */

:root {
    --color-bg: #000000;
    --color-bg-alt: #0a0a0a;
    --color-surface: rgba(255,255,255,0.04);
    --color-surface-border: rgba(255,255,255,0.07);

    --color-accent: #ff9500;
    --color-accent-dim: rgba(255,149,0,0.15);
    --color-accent-border: rgba(255,149,0,0.3);

    --color-green: #34c759;
    --color-green-dim: rgba(52,199,89,0.15);

    --color-text: #ffffff;
    --color-text-secondary: #888888;
    --color-text-muted: #555555;
    --color-divider: rgba(255,255,255,0.06);

    --font-mono: "SF Mono", "Monaco", "Consolas", "Liberation Mono", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", monospace;
    --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --container-max: 720px;
    --section-gap: 100px;
    --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-system);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 28px;
}

/* Grain overlay */
.grain-overlay {
    position: fixed;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0,0); }
    10% { transform: translate(-5%,-5%); }
    30% { transform: translate(5%,-5%); }
    50% { transform: translate(-5%,5%); }
    70% { transform: translate(5%,5%); }
    90% { transform: translate(-5%,0); }
}

/* ========================================
   Hero
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 28px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 520px;
}

.hero-app-icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    border: 1px solid var(--color-surface-border);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.2s;
}

.hero-tagline {
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 400;
    color: var(--color-text-secondary);
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.4s;
}

.hero-features {
    list-style: none;
    text-align: left;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.6s;
}

.hero-features li {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 2;
    padding-left: 8px;
}

.hero-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #f5f5f5;
    color: #000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.8s;
}

.hero-download-btn:hover {
    background: #ffffff;
    transform: scale(1.03);
}

.app-store-icon {
    width: 32px;
    height: 32px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.btn-text-small {
    font-size: 10px;
    opacity: 0.7;
}

.btn-text-large {
    font-size: 16px;
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.2s;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--color-text-muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--color-divider);
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

.footer-copyright {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 12px;
}

.footer-copyright a {
    color: var(--color-accent);
    text-decoration: none;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 640px) {
    .hero { padding: 60px 20px; }

    .hero-download-btn {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }
}
