/* FilePop promo page
   Clean, native-feeling landing. Light/dark aware via prefers-color-scheme.
   No JS, no external fonts — system font stack keeps the weight down
   and makes the page feel like it ships from Cupertino. */

:root {
    --bg: #f5f5f7;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --text: #1d1d1f;
    --text-muted: #6e6e73;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --kbd-bg: #ffffff;
    --kbd-border: rgba(0, 0, 0, 0.15);
    --kbd-shadow: 0 1px 0 rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --surface: #1c1c1e;
        --surface-elevated: #2c2c2e;
        --text: #f5f5f7;
        --text-muted: #a1a1a6;
        --accent: #0a84ff;
        --accent-hover: #409cff;
        --border: rgba(255, 255, 255, 0.1);
        --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
        --kbd-bg: #3a3a3c;
        --kbd-border: rgba(255, 255, 255, 0.15);
        --kbd-shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                 system-ui, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Page is a stacking context so the background layer sits beneath
       everything and the fade-out near the fold happens in one place. */
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Vibrant, textured backdrop that fades unevenly toward the page's
   mid-section. Three overlapping radial gradients give the light a
   non-uniform, painterly feel; a high-frequency SVG noise PNG (encoded
   inline as a data URI) adds subtle grain so the color doesn't look
   flat. The mask-image on the whole layer is an asymmetric vertical
   gradient — the fade is intentionally lopsided so the bottom edge of
   the color doesn't read as a hard horizon line. */
body::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1200px;
    pointer-events: none;
    z-index: -1;
    background: 
        radial-gradient(ellipse 900px 700px at 15% -10%,
            rgba(255, 120, 180, 0.55), transparent 70%),
        radial-gradient(ellipse 800px 600px at 90% 20%,
            rgba(120, 100, 255, 0.55), transparent 70%),
        radial-gradient(ellipse 700px 500px at 50% 55%,
            rgba(255, 180, 80, 0.35), transparent 70%),
        linear-gradient(180deg, #ffecef 0%, #fff3e6 40%, var(--bg) 100%);
    -webkit-mask-image: linear-gradient(180deg,
        #000 0%, #000 35%, rgba(0,0,0,0.85) 55%,
        rgba(0,0,0,0.35) 78%, transparent 100%);
    mask-image: linear-gradient(180deg,
        #000 0%, #000 35%, rgba(0,0,0,0.85) 55%,
        rgba(0,0,0,0.35) 78%, transparent 100%);
}

/* Grain overlay — a tiny inline SVG turbulence tiled across the whole
   backdrop. Low opacity keeps the noise felt rather than seen, and the
   mix-blend-mode: overlay preserves the hue of the color layer below. */
body::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1200px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 240px 240px;
    -webkit-mask-image: linear-gradient(180deg,
        #000 0%, #000 40%, rgba(0,0,0,0.4) 70%, transparent 100%);
    mask-image: linear-gradient(180deg,
        #000 0%, #000 40%, rgba(0,0,0,0.4) 70%, transparent 100%);
}

@media (prefers-color-scheme: dark) {
    body::before {
        background: 
            radial-gradient(ellipse 900px 700px at 15% -10%,
                rgba(255, 80, 160, 0.38), transparent 70%),
            radial-gradient(ellipse 800px 600px at 90% 20%,
                rgba(100, 80, 255, 0.42), transparent 70%),
            radial-gradient(ellipse 700px 500px at 50% 55%,
                rgba(255, 140, 60, 0.20), transparent 70%),
            linear-gradient(180deg, #1a0f1a 0%, #141018 40%, var(--bg) 100%);
    }

    body::after {
        opacity: 0.25;
    }
}

main {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Hero --- */
.hero {
    text-align: center;
    padding: 96px 0 80px;
}

.icon {
    width: 160px;
    height: 160px;
    border-radius: 45px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
    /* Icons already have their own shape — suppress any default img styling */
    display: inline-block;
}

.hero h1 {
    font-size: 72px;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
    background: linear-gradient(180deg, var(--text) 0%, var(--text-muted) 140%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 26px;
    font-weight: 400;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.hotkey-line {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    background: var(--kbd-bg);
    border: 1px solid var(--kbd-border);
    border-radius: 6px;
    box-shadow: var(--kbd-shadow);
    margin: 0 2px;
}

.cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 980px; /* Apple-style pill */
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.button.primary {
    background: var(--accent);
    color: #ffffff;
}

.button.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.button.ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.button.ghost:hover {
    background: var(--accent);
    color: #ffffff;
}

.button.large {
    padding: 16px 40px;
    font-size: 18px;
}

.requirements {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* --- Showcase illustration --- */
.showcase {
    margin: 16px auto 48px;
    max-width: 880px;
    padding: 0 16px;
}

.showcase svg {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Features: three headliners --- */
.features-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 40px 0 24px;
}

.feature-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-hero:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 600;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border-radius: 14px;
    margin-bottom: 22px;
}

.feature-hero h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
    color: var(--text);
}

.feature-hero p {
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--text-muted);
}

/* --- Features: one-liner list --- */
.features-list {
    padding: 8px 0 80px;
}

.features-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2px 32px;
    padding: 28px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.features-list li {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

/* Hide the trailing separator on the last row of each column. Since we
   don't know the column count at write-time, we just relax the last
   item's border; imperfect for multi-column but keeps markup simple. */
.features-list li:last-child {
    border-bottom: none;
}

.features-list strong {
    color: var(--text);
    font-weight: 600;
}

.features-list code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    font-size: 13.5px;
    background: color-mix(in srgb, var(--text) 8%, transparent);
    padding: 1px 6px;
    border-radius: 4px;
}

/* --- Download --- */
.download {
    text-align: center;
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.download h2 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.download-sub {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.small-print {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 24px;
}

.small-print a {
    color: var(--accent);
    text-decoration: none;
}

.small-print a:hover {
    text-decoration: underline;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 0 32px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}

footer p {
    margin-bottom: 4px;
}

.copyright {
    opacity: 0.6;
}

@media (max-width: 640px) {
    /* --- Responsive --- */
    .hero {
        padding: 64px 0 56px;
    }

    .icon {
        width: 120px;
        height: 120px;
        border-radius: 28px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .tagline {
        font-size: 20px;
    }

    .hotkey-line {
        font-size: 15px;
    }

    .download h2 {
        font-size: 36px;
    }

    .button {
        width: 100%;
        max-width: 280px;
    }

    .features-hero {
        padding: 32px 0 16px;
    }

    .feature-hero {
        padding: 28px 24px;
    }

    .features-list ul {
        padding: 20px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Reduce motion for accessibility */
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}
