/* ── Self-hosted Inter Font ── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/inter-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/inter-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/inter-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('assets/fonts/inter-800.woff2') format('woff2');
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple-start: #a78bfa;
    --purple-end: #c4b5fd;
    --lavender-bg: #ede9fe;
    --card-radius: 16px;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: var(--font);
    background: var(--lavender-bg);
}

/* ── Layout: 2-column split ── */
.hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 42%;
    height: 100vh;
    background: linear-gradient(160deg, #c4b5fd 0%, #a78bfa 40%, #8b5cf6 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 40px;
    z-index: 10;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 380px;
}

/* ── Hero Elements ── */
.hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.hero-tagline {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.4;
    margin-bottom: 12px;
}

.hero-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* ── Download Button ── */
.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #fff;
    color: #7c3aed;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    background: #faf5ff;
}

.btn-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* ── Mobile Notice (hidden on desktop) ── */
.mobile-notice {
    display: none;
}

/* ── Scroll Hint ── */
.hero-scroll-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    animation: nudge 2s ease-in-out infinite;
}

@keyframes nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}

/* ── Footer ── */
.hero-footer {
    position: absolute;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.hero-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.hero-footer a:hover {
    color: #fff;
}

.footer-sep {
    color: rgba(255, 255, 255, 0.3);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.4);
}

/* ── Gallery Container (right side) ── */
.gallery-container {
    position: fixed;
    top: 0;
    left: 42%;
    width: 58%;
    height: 100vh;
    overflow-y: scroll;
    background: var(--lavender-bg);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-container::-webkit-scrollbar {
    display: none;
}

/* ── Masonry Grid ── */
.gallery-scroll {
    padding: 16px;
}

.masonry-set {
    column-count: 3;
    column-gap: 14px;
}

.masonry-card {
    break-inside: avoid;
    margin-bottom: 14px;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.masonry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Mobile FAB (hidden on desktop) ── */
.fab-download {
    display: none;
}

/* ── Responsive: Tablet ── */
@media (max-width: 1024px) {
    .hero {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 80vh;
        padding: 48px 24px;
    }

    .hero-scroll-hint {
        display: none;
    }

    .gallery-container {
        position: relative;
        left: 0;
        width: 100%;
        height: auto;
        overflow: visible;
    }

    html, body {
        overflow: auto;
        height: auto;
    }

    .masonry-set {
        column-count: 3;
    }

    .fab-download {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        position: fixed;
        bottom: 24px;
        right: 24px;
        padding: 14px 24px;
        background: #7c3aed;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        font-family: var(--font);
        border-radius: 50px;
        text-decoration: none;
        box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
        z-index: 100;
        transition: all 0.2s ease;
    }

    .fab-download:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(124, 58, 237, 0.5);
    }
}

/* ── Responsive: Mobile ── */
@media (max-width: 640px) {
    .hero {
        padding: 40px 20px;
        min-height: 90vh;
    }

    .hero-icon {
        width: 96px;
        height: 96px;
        border-radius: 24px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-tagline {
        font-size: 16px;
    }

    .masonry-set {
        column-count: 2;
        column-gap: 10px;
    }

    .masonry-card {
        margin-bottom: 10px;
        border-radius: 12px;
    }

    /* On mobile, hide download button and show notice */
    .btn-download {
        display: none;
    }

    .mobile-notice {
        display: block;
        padding: 16px 20px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        margin-bottom: 24px;
    }

    .mobile-notice p {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.5;
    }

    .fab-download {
        display: none;
    }
}
