/* ============================================
   Snacks Video — Marketing Site
   Colors matched to app branding
   ============================================ */

:root {
    --purple: #8b5cf6;
    --purple-hover: #7c3aed;
    --purple-glow: rgba(139, 92, 246, 0.3);
    --bg-body: #111113;
    --bg-surface: #1a1a1e;
    --bg-elevated: #202024;
    --bg-input: #18181c;
    --text-primary: #e4e4e7;
    --text-secondary: #8b8b94;
    --text-muted: #5c5c66;
    --border: #2a2a2e;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Nav ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(17, 17, 19, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.15rem;
}

.nav-icon {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

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

.nav-links a.btn,
.nav-links a.btn:hover,
.nav-links a.btn:visited {
    color: #fff;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--purple);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.btn:hover {
    background: var(--purple-hover);
    box-shadow: 0 0 20px var(--purple-glow);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ---- Hero ---- */
.hero {
    padding: 10rem 0 5rem;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
}

.hero-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 999px;
    color: var(--purple);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.text-purple {
    color: var(--purple);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-docker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-docker-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-docker-cmd {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius);
    font-family: 'SF Mono', Monaco, Inconsolata, 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--success);
}

/* ---- Sections ---- */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-surface);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.section-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto 3rem;
}

/* ---- Features Grid ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.06);
}

.section-alt .feature-card {
    background: var(--bg-elevated);
}

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Comparison Table ---- */
.compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px;
}

.compare-table th,
.compare-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.compare-table thead th {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compare-table .highlight {
    background: rgba(139, 92, 246, 0.06);
    color: var(--text-primary);
    font-weight: 600;
}

.compare-table thead .highlight {
    color: var(--purple);
}

.compare-table tbody td {
    color: var(--text-secondary);
}

.compare-table tbody .highlight {
    color: var(--text-primary);
}

/* ---- Steps ---- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    text-align: center;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--purple);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---- Screenshot ---- */
.screenshot-placeholder {
    display: flex;
    justify-content: center;
}

.screenshot-img {
    width: 100%;
    max-width: 1000px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ---- CTA ---- */
.cta-container {
    text-align: center;
}

.cta-container h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cta-container > p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.cta-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cta-docker p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.code-block {
    display: inline-block;
    text-align: left;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    font-family: 'SF Mono', Monaco, Inconsolata, 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--success);
    line-height: 1.7;
    overflow-x: auto;
}

/* ---- Footer ---- */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-icon {
    width: 22px;
    height: 22px;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-copy a,
.footer-copy a:visited,
.footer-copy a:active {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-copy a:hover {
    color: var(--purple);
    text-decoration: none;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero {
        padding: 7rem 0 3rem;
    }

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

    .nav-links a:not(.btn) {
        display: none;
    }

    .compare-table {
        font-size: 0.8rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
