/* ===== UncoverParty shared styles ===== */

:root {
    --bg: #0a0a14;
    --bg-soft: #11111f;
    --surface: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.09);
    --text: #f1f0f7;
    --text-muted: #9b98ad;
    --pink: #ff2d78;
    --purple: #8b5cf6;
    --cyan: #22d3ee;
    --gradient: linear-gradient(120deg, var(--pink), var(--purple), var(--cyan));
    --radius: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

a {
    color: var(--cyan);
}

::selection {
    background: var(--pink);
    color: #fff;
}

/* ----- Animated background glow ----- */

.glow-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-bg::before,
.glow-bg::after {
    content: "";
    position: absolute;
    width: 60vmax;
    height: 60vmax;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.22;
    animation: drift 18s ease-in-out infinite alternate;
}

.glow-bg::before {
    background: radial-gradient(circle, var(--purple), transparent 65%);
    top: -25vmax;
    left: -15vmax;
}

.glow-bg::after {
    background: radial-gradient(circle, var(--pink), transparent 65%);
    bottom: -25vmax;
    right: -15vmax;
    animation-delay: -9s;
}

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(8vmax, 6vmax) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
    .glow-bg::before,
    .glow-bg::after {
        animation: none;
    }
}

/* ----- Header / nav ----- */

header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(10, 10, 20, 0.7);
    border-bottom: 1px solid var(--border);
}

.nav {
    max-width: 1080px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.logo {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    letter-spacing: -0.02em;
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}

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

.nav-links a.active {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
}

/* ----- Layout ----- */

main {
    flex: 1;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ----- Page hero (subpages) ----- */

.page-hero {
    text-align: center;
    padding: 72px 0 48px;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    margin-bottom: 14px;
}

.page-hero h1 .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ----- App cards (app-store style) ----- */

.apps {
    max-width: 680px;
    margin: 0 auto;
    padding-top: 48px;
    display: grid;
    gap: 18px;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-left: 6px;
}

.app-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "icon head get"
        "desc desc desc"
        "meta meta meta";
    align-items: center;
    column-gap: 16px;
    row-gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 22px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.app-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 16px 40px -20px rgba(139, 92, 246, 0.45);
}

.app-icon {
    grid-area: icon;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
}

.app-icon-who {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 8px 20px -8px rgba(255, 45, 120, 0.6);
}

.app-icon-spy {
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    box-shadow: 0 8px 20px -8px rgba(34, 211, 238, 0.5);
}

.app-head {
    grid-area: head;
    min-width: 0;
}

.app-head h2 {
    font-size: 1.2rem;
}

.app-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 2px;
}

.app-get {
    grid-area: get;
    align-self: center;
    padding: 8px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(120deg, var(--pink), var(--purple));
    box-shadow: 0 6px 18px -6px rgba(255, 45, 120, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-get:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -6px rgba(255, 45, 120, 0.8);
}

.app-desc {
    grid-area: desc;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.app-meta {
    grid-area: meta;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.app-meta span {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 12px;
}

/* ----- Intro (below apps) ----- */

.intro {
    max-width: 560px;
    margin: 72px auto 0;
    text-align: center;
}

.intro h2 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.intro p {
    color: var(--text-muted);
    font-size: 0.98rem;
}

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

.btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(120deg, var(--pink), var(--purple));
    box-shadow: 0 8px 24px -8px rgba(255, 45, 120, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -8px rgba(255, 45, 120, 0.8);
}

.btn-ghost {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: none;
    color: var(--text);
}

.btn-ghost:hover {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.25);
}

/* ----- Content cards (about / legal / contact) ----- */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 24px;
}

.card h2 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card p:last-child {
    margin-bottom: 0;
}

.card ul {
    color: var(--text-muted);
    padding-left: 22px;
    margin-bottom: 12px;
}

.card li {
    margin-bottom: 6px;
}

.content-narrow {
    max-width: 720px;
    margin: 0 auto;
}

/* ----- Contact ----- */

.contact-card {
    text-align: center;
    padding: 56px 32px;
}

.contact-email {
    display: inline-block;
    font-family: "Space Grotesk", monospace;
    font-size: clamp(1.1rem, 4vw, 1.6rem);
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 28px;
    margin: 18px 0 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    word-break: break-all;
}

.contact-email:hover {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 30px -10px rgba(34, 211, 238, 0.5);
}

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

footer {
    border-top: 1px solid var(--border);
    background: rgba(10, 10, 20, 0.6);
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ----- Responsive ----- */

@media (max-width: 600px) {
    main {
        padding: 0 14px 48px;
    }

    .nav {
        justify-content: center;
        padding: 14px 16px;
    }

    .apps {
        padding-top: 24px;
        gap: 14px;
    }

    /* Decompress the card: Play button moves to its own full-width row */
    .app-card {
        padding: 16px;
        column-gap: 12px;
        row-gap: 12px;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "icon head"
            "desc desc"
            "meta meta"
            "get get";
    }

    .app-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        font-size: 1.6rem;
    }

    .app-head h2 {
        font-size: 1.1rem;
    }

    .app-get {
        justify-self: stretch;
        text-align: center;
        padding: 11px 18px;
    }

    .app-meta {
        gap: 6px;
    }

    .app-meta span {
        padding: 3px 10px;
    }

    .intro {
        margin-top: 48px;
    }

    .page-hero {
        padding: 44px 0 28px;
    }

    .card {
        padding: 22px 18px;
        margin-bottom: 14px;
    }

    .contact-card {
        padding: 32px 18px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }
}
