/* ---------- Screenshotli marketing site ----------
   Palette mirrors the app's own dark inspector: deep navy background,
   purple accent sourced from the app icon, crisp retina typography. */

:root {
    --bg: #0b0d14;
    --bg-elev: #151826;
    --bg-alt: #10131e;
    --fg: #f5f5f7;
    --fg-muted: #9ca3af;
    --fg-dim: #6b7280;
    --line: rgba(255, 255, 255, 0.06);
    --line-strong: rgba(255, 255, 255, 0.12);

    --accent: #8a74ff;          /* matches app icon tint */
    --accent-soft: #a597ff;
    --accent-glow: rgba(138, 116, 255, 0.25);

    --radius: 14px;
    --radius-lg: 22px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Nav ---------- */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    background: rgba(11, 13, 20, 0.72);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid transparent;
    z-index: 100;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.nav.scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.nav-inner {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-back {
    font-size: 1.25rem;
    color: var(--fg-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-back:hover { color: var(--accent); }

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--fg);
    font-weight: 600;
}
.logo-img { border-radius: 8px; }

.nav-links {
    margin-left: auto;
    display: flex;
    gap: 28px;
    list-style: none;
}
.nav-links a {
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
    padding: 160px 0 80px;
    background:
        radial-gradient(ellipse at top, rgba(138, 116, 255, 0.18), transparent 60%),
        linear-gradient(180deg, #0f1222 0%, var(--bg) 100%);
    text-align: center;
}
.hero-inner { max-width: 780px; }

.hero-icon {
    border-radius: 22%;
    box-shadow:
        0 20px 60px rgba(138, 116, 255, 0.35),
        0 8px 24px rgba(0, 0, 0, 0.4);
    animation: iconPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes iconPop {
    0% { opacity: 0; transform: scale(0.6); }
    100% { opacity: 1; transform: scale(1); }
}

.hero h1 {
    margin-top: 28px;
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.05;
    animation: floatIn 0.6s ease-out 0.2s both;
}
.hero-tagline {
    margin-top: 18px;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--accent-soft);
    font-weight: 500;
    animation: floatIn 0.6s ease-out 0.35s both;
}
.hero-desc {
    margin: 18px auto 0;
    max-width: 620px;
    color: var(--fg-muted);
    font-size: 1.05rem;
    animation: floatIn 0.6s ease-out 0.5s both;
}
.hero-actions {
    margin-top: 36px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: floatIn 0.6s ease-out 0.65s both;
}
.hero-meta {
    margin-top: 28px;
    font-size: 0.85rem;
    color: var(--fg-dim);
    animation: floatIn 0.6s ease-out 0.8s both;
}

@keyframes floatIn {
    0% { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
    cursor: pointer;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #6e59ff);
    color: white;
    box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(138, 116, 255, 0.45);
}
.btn-ghost {
    color: var(--fg-muted);
    border-color: var(--line-strong);
    background: transparent;
}
.btn-ghost:hover {
    color: var(--fg);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ---------- Section primitives ---------- */

.section {
    padding: 100px 0;
}
.section.alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.section-title {
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1.15;
}
.section-sub {
    margin: 12px auto 56px;
    max-width: 580px;
    color: var(--fg-muted);
    text-align: center;
    font-size: 1.05rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-soft);
    background: rgba(138, 116, 255, 0.1);
    padding: 5px 10px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.lead {
    font-size: 1.1rem;
    color: var(--fg-muted);
    line-height: 1.6;
    margin-top: 16px;
}

/* ---------- Feature grid ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}
.feature {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s;
}
.feature:hover {
    border-color: rgba(138, 116, 255, 0.3);
    transform: translateY(-2px);
}
.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(138, 116, 255, 0.15);
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.feature h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}
.feature p {
    color: var(--fg-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* ---------- Hero shot ---------- */

.hero-shot {
    padding: 40px 0 60px;
    background: var(--bg);
}
.hero-shot img {
    margin: 0 auto;
    max-width: 1000px;
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* ---------- Two-column feature rows ---------- */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.two-col img {
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.two-col h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.checks {
    list-style: none;
    margin-top: 20px;
    display: grid;
    gap: 10px;
}
.checks li {
    position: relative;
    padding-left: 28px;
    color: var(--fg-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}
.checks li::before {
    content: "✓";
    position: absolute;
    left: 0; top: 0;
    width: 20px; height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(138, 116, 255, 0.15);
    color: var(--accent-soft);
    font-size: 0.75rem;
    font-weight: 700;
}

/* ---------- Gallery ---------- */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.gallery img {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: transform 0.25s, border-color 0.2s;
    aspect-ratio: 16/10;
    object-fit: cover;
}
.gallery img:hover {
    transform: translateY(-2px);
    border-color: rgba(138, 116, 255, 0.35);
}

/* ---------- FAQ ---------- */

.faq {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}
.faq details {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 22px;
    transition: border-color 0.2s;
}
.faq details[open] {
    border-color: rgba(138, 116, 255, 0.35);
}
.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--fg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--fg-muted);
    transition: transform 0.2s;
}
.faq details[open] summary::after {
    content: "–";
    color: var(--accent-soft);
}
.faq details p {
    color: var(--fg-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 12px;
}
.faq kbd {
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 0.82em;
    padding: 2px 6px;
    border: 1px solid var(--line-strong);
    border-bottom-width: 2px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--fg);
}

/* ---------- Download ---------- */

.download {
    padding: 120px 0;
    background:
        radial-gradient(ellipse at center, rgba(138, 116, 255, 0.18), transparent 60%),
        var(--bg);
    text-align: center;
    border-top: 1px solid var(--line);
}
.download-inner h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}
.download-inner .lead { margin-bottom: 32px; }
.download-meta {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--fg-dim);
}

/* ---------- Footer ---------- */

.footer {
    background: #06080f;
    border-top: 1px solid var(--line);
    padding: 40px 0 32px;
}
.footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--fg);
}
.footer-brand img { border-radius: 6px; }
.footer-by, .footer-by a {
    color: var(--fg-muted);
    font-size: 0.9rem;
    text-decoration: none;
}
.footer-by a { color: var(--accent-soft); }
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    color: var(--fg-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--fg); }
.footer-legal {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 24px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
    color: var(--fg-dim);
    font-size: 0.8rem;
}

/* ---------- Mobile ---------- */

@media (max-width: 820px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 36px;
        height: 36px;
        margin-left: auto;
        background: transparent;
        border: 0;
        cursor: pointer;
    }
    .nav-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--fg);
        border-radius: 2px;
    }
    .nav-links {
        position: absolute;
        top: 64px; left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(11, 13, 20, 0.95);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line);
        margin-left: 0;
        padding: 12px 24px;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s, opacity 0.2s;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links li { padding: 10px 0; }

    .hero { padding: 120px 0 60px; }
    .hero-icon { width: 96px; height: 96px; }

    .two-col {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .two-col img:first-child { order: 2; }

    .section { padding: 72px 0; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }
    .footer-brand, .footer-links { justify-content: center; }
}
