@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600&display=swap');

/* ===== Bottom Desk CTA Section ===== */
.desk-cta {
    position: relative;
    background-color: #f8fafc;
    padding: 10rem 1.5rem 12rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

/* ── CTA Scroll Animations ── */
.sticky-note,
.cta-headline,
.cta-form,
.cta-subtext,
.paper-card,
.scatter-item {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sticky-note     { transform: rotate(8deg) translateY(-40px); }
.cta-headline    { transform: translateY(30px); }
.cta-form        { transform: translateY(30px); }
.cta-subtext     { transform: translateY(20px); }
.paper-card      { transform: translateY(50px); }
.scatter-item    { transform: translateY(30px); }

/* Triggered */
.desk-cta.cta-animated .sticky-note  { opacity: 1; transform: rotate(8deg) translateY(0); transition-delay: 0.6s; }
.desk-cta.cta-animated .cta-headline { opacity: 1; transform: translateY(0); transition-delay: 0.75s; }
.desk-cta.cta-animated .cta-form     { opacity: 1; transform: translateY(0); transition-delay: 0.9s; }
.desk-cta.cta-animated .cta-subtext  { opacity: 1; transform: translateY(0); transition-delay: 1s; }
.desk-cta.cta-animated .paper-card   { opacity: 1; transform: translateY(0); }
.desk-cta.cta-animated .scatter-item { opacity: 1; transform: translateY(0); }

.desk-cta.cta-animated .pc-1           { transition-delay: 1.05s; }
.desk-cta.cta-animated .pc-2           { transition-delay: 1.15s; }
.desk-cta.cta-animated .pc-3           { transition-delay: 1.1s; }
.desk-cta.cta-animated .si-paperclip   { transition-delay: 1s; }
.desk-cta.cta-animated .si-token-green { transition-delay: 1.1s; }
.desk-cta.cta-animated .si-token-dark  { transition-delay: 1.15s; }
.desk-cta.cta-animated .si-binderclip  { transition-delay: 1.05s; }
.desk-cta.cta-animated .si-token-blue  { transition-delay: 1.2s; }

/* ── Content Wrapper ── */
.cta-content {
    position: relative;
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

/* ── Sticky Note ── */
.sticky-note {
    position: relative;
    background: #fdf577;
    width: 160px;
    padding: 1.25rem 1.5rem;
    transform: rotate(8deg);
    box-shadow:
        15px 25px 20px -10px rgba(0, 0, 0, 0.08),
        2px 4px 6px -2px rgba(0, 0, 0, 0.04);
    color: #1a1a1a;
    font-family: 'Caveat', cursive;
    font-size: 1.45rem;
    line-height: 1.15;
    text-align: center;
    z-index: 10;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.sticky-note:hover {
    transform: rotate(4deg) scale(1.05);
}

.sticky-note::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    background: transparent;
    box-shadow: 20px 30px 40px -10px rgba(0,0,0,0.15);
    z-index: -1;
    transform: rotate(-3deg);
    pointer-events: none;
}

/* ── Headline ── */
.cta-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    text-align: center;
    letter-spacing: -0.04em;
    margin-bottom: 2.5rem;
}

/* ── Form Pill ── */
.cta-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 0.4rem;
    border-radius: 999px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15,23,42,0.03);
    margin-bottom: 1.2rem;
    transition: box-shadow 0.2s;
}

.cta-form:focus-within {
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12), 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.cta-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: #334155;
    outline: none;
}

.cta-input::placeholder {
    color: #94a3b8;
}

.cta-btn {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.15s, background 0.15s;
}

.cta-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

/* ── Powered By Subtext ── */
.cta-subtext {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cta-subtext svg {
    width: 18px;
    height: 18px;
}

/* ── Scatter Items (Absolute layout at bottom edge) ── */
.scatter-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    pointer-events: none;
    z-index: 2;
}

.scatter-item {
    position: absolute;
    filter: drop-shadow(10px 15px 15px rgba(0,0,0,0.1));
}

/* Specific Scatter Positionings */
.si-paperclip {
    left: 8%;
    bottom: 45px;
    transform: rotate(-15deg);
    width: 30px;
}

.si-token-green {
    left: 22%;
    bottom: 75px;
    transform: rotate(10deg);
    width: 40px;
}

.si-token-dark {
    left: 26%;
    bottom: 40px;
    transform: rotate(-25deg);
    width: 45px;
}

.si-binderclip {
    right: 10%;
    bottom: 60px;
    transform: rotate(25deg);
    width: 65px;
    filter: drop-shadow(15px 20px 20px rgba(0,0,0,0.15));
}

.si-token-blue {
    right: 28%;
    bottom: 85px;
    transform: rotate(8deg);
    width: 35px;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .cta-form {
        flex-direction: column;
        border-radius: 20px;
        padding: 0.5rem;
        gap: 0.4rem;
    }

    .cta-input {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .cta-btn {
        width: 100%;
        padding: 0.85rem 1rem;
        text-align: center;
    }
}

/* Abstract Paper Cards */
.paper-card {
    position: absolute;
    background: #fff;
    border-radius: 8px;
    box-shadow: 
        0 10px 25px -5px rgba(0,0,0,0.05),
        0 0 0 1px rgba(0,0,0,0.02);
    padding: 1rem;
    font-family: sans-serif;
    transform-origin: center;
}

.pc-1 {
    left: 10%;
    bottom: -60px;
    width: 260px;
    height: 120px;
    transform: rotate(-4deg);
}

.pc-2 {
    right: 18%;
    bottom: -80px;
    width: 250px;
    height: 140px;
    transform: rotate(3deg);
}

.pc-3 {
    left: 45%;
    bottom: -70px;
    width: 220px;
    height: 100px;
    transform: rotate(1deg);
}

/* Micro-layouts inside the abstract papers to fake content */
.pc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pc-ava { width: 24px; height: 24px; border-radius: 50%; background: #e2e8f0; }
.pc-lines { flex: 1; }
.pc-line { height: 6px; background: #e2e8f0; border-radius: 3px; margin-bottom: 6px; }
.pc-line:last-child { width: 60%; }
.pc-tag { display: inline-block; padding: 2px 6px; background: #dcfce7; color: #059669; border-radius: 4px; font-size: 0.6rem; font-weight: bold; border: 1px solid #10b981; transform: rotate(-5deg); margin-top: 10px; }