/* ── App Marketing Page Styles ───────────────────────────────────────────── */

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 80px 0 40px; }
.hero h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.hero .subtitle { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 32px; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-badges { display: flex; gap: 12px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.7rem; color: var(--text-secondary); }
.badge .icon { width: 16px; height: 16px; }
.hero-image { width: 100%; margin: 40px auto 0; box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.download-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Shared btn style for app page (larger than marketplace btns) ───────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 500; text-decoration: none; border: none; cursor: pointer; transition: all var(--transition); }
.btn .icon { width: 18px; height: 18px; }
.btn.btn-primary { background: var(--accent); color: #ffffff; }
.btn.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn.btn-secondary { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border); }
.btn.btn-secondary:hover { background: var(--bg-hover); }

/* ── Image Placeholder ───────────────────────────────────────────────────── */
.img-placeholder {
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; background: var(--bg-secondary);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; color: var(--text-muted);
    font-size: 0.7rem; gap: 8px; position: relative;
}
.img-placeholder img { width: 100%; height: 100%; object-fit: cover; display: none; }
.img-placeholder.has-image .placeholder-content { display: none; }
.img-placeholder.has-image img { display: block; }
.img-placeholder-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 8px 12px; background: rgba(0,0,0,0.8);
    font-size: 0.65rem; color: var(--text-muted);
    text-align: center; backdrop-filter: blur(4px);
}
.img-placeholder.has-image { cursor: pointer; }

/* ── Problem / Solution ──────────────────────────────────────────────────── */
.problem-solution { background: var(--bg-secondary); }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.ps-box { background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.ps-box.problem { border-left: 3px solid var(--text-muted); }
.ps-box.solution { border-left: 3px solid var(--accent); }
.ps-box-image { margin-bottom: 20px; }
.ps-box-image .img-placeholder { aspect-ratio: 16/10; }
.ps-box h2 { font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.ps-box h2 .icon { width: 24px; height: 24px; }
.ps-box ul { list-style: none; }
.ps-box li { font-size: 0.75rem; color: var(--text-secondary); padding: 8px 0; padding-left: 28px; position: relative; }
.ps-box li .list-icon { position: absolute; left: 0; top: 10px; width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--text-muted); }
.ps-box.solution li .list-icon { color: var(--accent); }

/* ── Use Cases ───────────────────────────────────────────────────────────── */
.use-cases h2 { text-align: center; font-size: 0.9rem; font-weight: 600; margin-bottom: 40px; }
.use-case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.use-case { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: all var(--transition); }
.use-case:hover { border-color: var(--accent); transform: translateY(-2px); }
.use-case-image { margin-bottom: 16px; }
.use-case-image .img-placeholder { aspect-ratio: 16/10; }
.use-case-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.use-case-icon { flex-shrink: 0; color: var(--text-secondary); }
.use-case h3 { font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.use-case p { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.5; }
.use-case-example { margin-top: 12px; padding: 10px 12px; background: var(--bg-tertiary); border-left: 2px solid var(--accent); border-radius: var(--radius-sm); font-size: 0.72rem; color: var(--text-secondary); font-style: italic; }

/* ── How It Works ────────────────────────────────────────────────────────── */
.how-it-works { background: var(--bg-secondary); }
.how-it-works h2 { text-align: center; font-size: 0.9rem; font-weight: 600; margin-bottom: 40px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.step { text-align: center; padding: 20px; }
.step-image { margin-bottom: 20px; }
.step-image .img-placeholder { aspect-ratio: 16/10; }
.step-number { width: 40px; height: 40px; background: var(--accent-dim); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 16px; font-size: 0.85rem; }
.step-icon-wrapper { margin-bottom: 12px; color: var(--text-secondary); display: flex; justify-content: center; }
.step h3 { font-size: 0.8rem; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 0.72rem; color: var(--text-secondary); }

/* ── Screenshots ─────────────────────────────────────────────────────────── */
.screenshots h2 { text-align: center; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.screenshots .subtitle { text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 40px; }
.screenshots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 16px; }
.screenshot { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-secondary); cursor: pointer; transition: all var(--transition); }
.screenshot:hover { border-color: var(--accent); transform: scale(1.02); }
.screenshot .img-placeholder { aspect-ratio: 16/10; }
.screenshot-label { padding: 10px 12px; background: var(--bg-tertiary); font-size: 0.75rem; font-weight: 500; color: var(--text-secondary); }

/* ── Download Section ────────────────────────────────────────────────────── */
.download-section { background: var(--bg-secondary); text-align: center; }
.download-section h2 { font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.download-section .subtitle { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 32px; }
.platform-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.platform-btn { background: var(--bg-tertiary); border: 1px solid var(--border); padding: 20px 28px; border-radius: var(--radius); cursor: pointer; transition: all var(--transition); text-align: center; text-decoration: none; color: var(--text-primary); min-width: 140px; }
.platform-btn:hover { border-color: var(--accent); background: var(--bg-hover); transform: translateY(-2px); }
.platform-btn.recommended { border-color: var(--accent); background: var(--accent-dim); }
.platform-btn.inactive { opacity: 0.4; pointer-events: none; cursor: default; }
.platform-btn .icon-wrapper { margin-bottom: 10px; color: var(--text-secondary); display: flex; justify-content: center; }
.platform-btn .name { font-size: 0.8rem; font-weight: 500; display: block; margin-bottom: 4px; }
.platform-btn .size { font-size: 0.65rem; color: var(--text-muted); }
.platform-btn .coming-soon { font-size: 0.6rem; color: var(--text-muted); display: block; margin-top: 2px; }
.download-note { font-size: 0.7rem; color: var(--text-muted); margin-top: 24px; }
.download-note a { color: var(--accent); text-decoration: none; }
.whats-new { max-width: 480px; margin: 20px auto 0; text-align: left; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.whats-new h4 { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 8px; font-weight: 500; }
.whats-new ul { list-style: none; }
.whats-new li { font-size: 0.7rem; color: var(--text-muted); padding: 3px 0; padding-left: 16px; position: relative; }
.whats-new li::before { content: '\00b7'; position: absolute; left: 4px; color: var(--accent); font-weight: bold; }

/* ── Footer (app page) ───────────────────────────────────────────────────── */
footer { background: var(--bg-tertiary); border-top: 1px solid var(--border); padding: 32px 0; text-align: center; }
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.72rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.copyright { font-size: 0.7rem; color: var(--text-muted); }

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.92); z-index: 1000; justify-content: center; align-items: center; cursor: pointer; backdrop-filter: blur(4px); }
.lightbox.active { display: flex; flex-direction: column; }
.lightbox img { max-width: 88%; max-height: 78%; object-fit: contain; border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,0.5); cursor: default; }
.lightbox-close { position: absolute; top: 16px; right: 20px; color: var(--text-secondary); font-size: 1.8rem; cursor: pointer; background: none; border: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; transition: color var(--transition); z-index: 2; }
.lightbox-close:hover { color: var(--text-primary); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); font-size: 3rem; cursor: pointer; padding: 16px; transition: color var(--transition); z-index: 2; line-height: 1; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--text-primary); }
.lightbox-caption { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; background: rgba(0,0,0,0.7); padding: 10px 20px; border-radius: var(--radius); backdrop-filter: blur(4px); }
.lightbox-caption-text { display: flex; flex-direction: column; gap: 2px; }
.lightbox-title { font-size: 0.8rem; color: var(--text-primary); font-weight: 500; }
.lightbox-subtitle { font-size: 0.65rem; color: var(--text-muted); font-weight: 400; }
.lightbox-counter { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }
.lightbox-controls { display: flex; align-items: center; gap: 8px; margin-left: auto; padding-left: 12px; border-left: 1px solid rgba(255,255,255,0.1); }
.lightbox-autoplay { background: none; border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color var(--transition); font-size: 0.6rem; padding: 2px; line-height: 1; }
.lightbox-autoplay:hover { color: var(--text-primary); }
.lightbox-autoplay.playing { color: var(--accent); }
.lightbox-progress { width: 36px; height: 2px; background: rgba(255,255,255,0.08); border-radius: 1px; overflow: hidden; opacity: 0; transition: opacity var(--transition); }
.lightbox-progress.visible { opacity: 1; }
.lightbox-progress-bar { height: 100%; width: 0; background: var(--accent); border-radius: 1px; }
.lightbox-progress-bar.active { animation: slideProgress 4s linear forwards; }
@keyframes slideProgress { from { width: 100%; } to { width: 0%; } }
.lightbox-shortcuts { position: absolute; bottom: 20px; right: 20px; font-size: 0.65rem; color: var(--text-muted); background: rgba(0,0,0,0.5); padding: 8px 12px; border-radius: var(--radius-sm); backdrop-filter: blur(4px); pointer-events: none; }
.lightbox-cta { display: flex; flex-direction: column; align-items: center; gap: 24px; cursor: default; }
.lightbox-cta img { border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.4); }
.lightbox-cta h3 { font-size: 1.2rem; color: var(--text-primary); font-weight: 600; }
.lightbox-cta .btn { cursor: pointer; }

/* ── i18n lang content ───────────────────────────────────────────────────── */
.lang-content { display: none; }
.lang-content.active { display: contents; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero { padding: 40px 0 20px; }
    .hero h1 { font-size: 1.3rem; }
    section { padding: 40px 0; }
    .ps-grid, .use-case-grid, .steps, .screenshots-grid { grid-template-columns: 1fr; }
    .platform-buttons { flex-direction: column; align-items: center; }
    .platform-btn { width: 100%; max-width: 280px; }
}
